http://stackoverflow.com/questions/2550099/how-to-kill-an-android-activity-when-leaving-it-so-that-it-cannot-be-accessed-fro
http://www.androidcompetencycenter.com/2009/01/android-basics-managing-activity-states-part-i/
http://androidforums.com/application-development/133372-onpause-onstop-problems.html
The software hurdles, blockers and bugs that I come across at workplace and don't want to solve all over again next time if and ever I face them.
Tuesday, August 31, 2010
Garbage collection and performance
http://www.ibm.com/developerworks/java/library/j-jtp01274.html - Hints, tips, and myths about writing garbage collection-friendly classes
Sunday, August 29, 2010
API demos notes
1. SharedPreferences : http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/app/PersistentState.html
http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/app/RedirectEnter.html - follow the classes in the source for advanced SharedPreferences ops.
eg: preferences.edit().remove("text").commit();
2. TextView.BufferType.EDITABLE - This allows us to later extend the text buffer : http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/app/ReceiveResult.html
3. Example of removing yourself from the history stack after forwarding to another activity(just call finish) : http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/app/Forwarding.html
4. Translucent activity - android:theme="@style/Theme.Transparent" in the activity declaration in manifest : http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/app/TranslucentActivity.html
5. Translucent+BLUR background -
// Have the system blur any windows behind this one.
getWindow().setFlags(WindowManager.LayoutParams.FLAG_BLUR_BEHIND,
WindowManager.LayoutParams.FLAG_BLUR_BEHIND);
Also in manifest - android:theme="@style/Theme.Transparent"> : http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/app/TranslucentBlurActivity.html
6. Services : later
7.
http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/app/RedirectEnter.html - follow the classes in the source for advanced SharedPreferences ops.
eg: preferences.edit().remove("text").commit();
2. TextView.BufferType.EDITABLE - This allows us to later extend the text buffer : http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/app/ReceiveResult.html
3. Example of removing yourself from the history stack after forwarding to another activity(just call finish) : http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/app/Forwarding.html
4. Translucent activity - android:theme="@style/Theme.Transparent" in the activity declaration in manifest : http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/app/TranslucentActivity.html
5. Translucent+BLUR background -
// Have the system blur any windows behind this one.
getWindow().setFlags(WindowManager.LayoutParams.FLAG_BLUR_BEHIND,
WindowManager.LayoutParams.FLAG_BLUR_BEHIND);
Also in manifest - android:theme="@style/Theme.Transparent"> : http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/app/TranslucentBlurActivity.html
6. Services : later
7.
Friday, August 27, 2010
Layout inflation. Create view from XML
http://developerlife.com/tutorials/?p=303 - Just use LayoutInflator instead of ViewInflate. See http://osdir.com/ml/Android-Developers/2010-02/msg03977.html where it says VI was replaced with LI.
Wednesday, August 25, 2010
My Android links
http://developerlife.com/tutorials/?p=300 - Getting started
http://android-developers.blogspot.com/2009/02/android-layout-tricks-1.html - Using relativelayout to reduce embedding of linearlayouts.
http://mobiforge.com/designing/story/understanding-user-interface-android-part-3-more-views - viewswitcher
http://groups.google.com/group/android-developers/browse_thread/thread/9b7dfa2cd9abec6b - android audio discussions April2010
http://groups.google.com/group/android-developers/browse_thread/thread/dda83b16eda1f848/b5d3cc89efea6dbd?lnk=gst&q=audio+direct+buffer#b5d3cc89efea6dbd - why not use NDK private APIs.
http://www.androidcompetencycenter.com/2009/01/android-basics-managing-activity-states-part-i/
http://android-developers.blogspot.com/2010/07/multithreading-for-performance.html
http://source.android.com/porting/dalvik.html - android dalvik official page
http://android-developers.blogspot.com/2009/02/android-layout-tricks-1.html - Using relativelayout to reduce embedding of linearlayouts.
http://mobiforge.com/designing/story/understanding-user-interface-android-part-3-more-views - viewswitcher
http://groups.google.com/group/android-developers/browse_thread/thread/9b7dfa2cd9abec6b - android audio discussions April2010
http://groups.google.com/group/android-developers/browse_thread/thread/dda83b16eda1f848/b5d3cc89efea6dbd?lnk=gst&q=audio+direct+buffer#b5d3cc89efea6dbd - why not use NDK private APIs.
http://www.androidcompetencycenter.com/2009/01/android-basics-managing-activity-states-part-i/
http://android-developers.blogspot.com/2010/07/multithreading-for-performance.html
http://source.android.com/porting/dalvik.html - android dalvik official page
Monday, August 9, 2010
Android error: "audiorecord Could not get audio input for record source 1"
http://comments.gmane.org/gmane.comp.handhelds.android.devel/84064 - says: "I was trying to start recording
from 2 separate threads at the same time causing a conflict."
http://langtagsandroid.langtags.com/blog/?p=605 - says: Everytime you get an error instantiating AudioRecord it doesn´t release it´s resources the way it should so you won´t be able to request it again unless you restart your phone (or close and reopen
the emulator).
from 2 separate threads at the same time causing a conflict."
http://langtagsandroid.langtags.com/blog/?p=605 - says: Everytime you get an error instantiating AudioRecord it doesn´t release it´s resources the way it should so you won´t be able to request it again unless you restart your phone (or close and reopen
the emulator).
This solution (restarting emulator) worked for me
Sunday, August 8, 2010
Android: Horizontal Progress Bar
<ProgressBar
android:id="@+id/ProgressBar01"
android:layout_height="wrap_content"
android:layout_width="250px"
style="?android:attr/progressBarStyleHorizontal">
</ProgressBar>
android:id="@+id/ProgressBar01"
android:layout_height="wrap_content"
android:layout_width="250px"
style="?android:attr/progressBarStyleHorizontal">
</ProgressBar>
Subscribe to:
Posts (Atom)