Tag Archives: android

Android difference between task and process

Found this area to be pretty murky even though it looks like a pretty common question.  There is no one to one relationship between tasks and process. It can be one or multiple task spread across multiple processes. Easier way … Continue reading

Posted in Android | Tagged , , , | Leave a comment

Android AVD emulator not starting on Ubuntu

Ran into this error where the Android Emulator API 8 or 10 on Ubuntu 12.04 would not start. It just looks like it’s hanging there. The solution is this: in android-sdk you need to rename the libOpenglRender.so library. cd /path/to/android-sdk-linux/tools/lib … Continue reading

Posted in Android, Linux | Tagged , , , , , , | Leave a comment

Android: Adding a default app when building by source

I’m building Android for my TAO 3530 board, booting for a SD card, and wanted to install my own app onto the Android “image”. Here is how I did it If you’ve got a built apk place it in: /rootfs/data/app … Continue reading

Posted in Android | Tagged , , , , , , , | Leave a comment

Android: Fragment v4 support exception

After trying out fragments without using the v4 support library, I tried a layout using fragments and kept running into this exception. What does this exception mean and how do I fix it? It’s pretty simple. This is the main … Continue reading

Posted in Android, troubleshooting | Tagged , , , , | 3 Comments

Android: HelloFragment

Created one of the most basic examples of using Fragments. Seems like most people are using Fragments these days so spent some time trying it out. If you’re trying to see a real basic example here is one. https://github.com/fangstar/HelloFragment res/layout/main.xml … Continue reading

Posted in Android | Tagged , , , | Leave a comment

Android: BroadcastReceiver example of RECEIVE_BOOT_COMPLETED, ACTION_BOOT_COMPLETED

As usual right when I ask for help, I realize the error myself. Here is was my question on stackoverflow, http://stackoverflow.com/questions/11460941/broadcast-receiver-not-receiving-action-boot-completed . Ended up I misunderstood the BOOT_COMPLETED concept. Here’s my code on github: https://github.com/fangstar/BootAtStartup

Posted in Android | Tagged , , , | Leave a comment

Android: Preferences – setting default values from prefs.xml

I’ve been working on the Marakana Bootcamp Yamba app. Since I don’t keep my emulator up all day, it’s really annoying setting the preferences all the time. Therefore I looked into how to set the default value in the prefs.xml. … Continue reading

Posted in Android, Coding | Tagged , , , | 7 Comments

Android: Common UI View Properties

Most likely you’ll only care about these: Layout Width: FILL_PARENT or WRAP_CONTENT (required) Layout Height: FILL_PARENT or WRAP_CONTENT (required) Layout Weight: How greedy (0 default) or generous (1) a widget is.  0 (greedy,  myself first) or 1 (generous yield to everyone … Continue reading

Posted in Android | Tagged , | Leave a comment

Android: Eclipse and Emulator link broken

Watching the Marakana Android Bootcamp 2012 videos and noticed a handy fix to something I’ve experienced quite a bit. There are times when Eclipse loses connection and doesn’t realize that there’s an Emulator already running and then tries to start … Continue reading

Posted in Android | Tagged , , , , , | Leave a comment

Android: Marakana Android Internal Course

Got back from the Marakana Android Internals Course. Whew it was a lot of information and geared more for platform developers who want to know how the OS works how it enforces sandboxing, security, and building a custom ROM. It … Continue reading

Posted in Android | Tagged , | Leave a comment