android-framework

Using `onRetainCustomNonConfigurationInstance` to retain data across configuration changes

Deadly 提交于 2019-11-30 10:59:44
问题 I've been programming for Android for some time, and I'm still looking for solutions to retain data over configuration changes. Aside from saving Parcelable s to Activity's Bundle in onSaveInstanceState docs are suggesting using Fragment with setRetainInstance flag set to true. But I've just come across some code that uses onRetainCustomNonConfigurationInstance to hold arbitrary objects (in a fancy way, but essentially big objects without references to Activity etc.). I have never seen this

Installing Software has encountered a prob… - android

雨燕双飞 提交于 2019-11-30 10:25:56
I get this problem in the console every time I launch the sdk, ... Framework Resource Parser] Collect preferences failed, class java/lang/AutoCloseable not found in /Applications/adt-bundle-mac-x86_64-20130917/sdk/platforms/android-19/android.jar In other to resolve this I found this solution: Collect Preferences Failed by sunil . However when I attempted the solution found here: I had the same problem, but I already resolved it now. Try the following steps 1 go Help | Install New Sofware... 2 select "Android Developer Tools Update Site - http://dl- ssl.google.com/android/eclipse/". 3 press

Using `onRetainCustomNonConfigurationInstance` to retain data across configuration changes

你离开我真会死。 提交于 2019-11-29 22:22:36
I've been programming for Android for some time, and I'm still looking for solutions to retain data over configuration changes. Aside from saving Parcelable s to Activity's Bundle in onSaveInstanceState docs are suggesting using Fragment with setRetainInstance flag set to true. But I've just come across some code that uses onRetainCustomNonConfigurationInstance to hold arbitrary objects (in a fancy way, but essentially big objects without references to Activity etc.). I have never seen this method used, so I have some doubts: Is this method safe to call to store arbitrary objects (in a sense

Installing Software has encountered a prob… - android

北城余情 提交于 2019-11-29 15:39:45
问题 I get this problem in the console every time I launch the sdk, ... Framework Resource Parser] Collect preferences failed, class java/lang/AutoCloseable not found in /Applications/adt-bundle-mac-x86_64-20130917/sdk/platforms/android-19/android.jar In other to resolve this I found this solution: Collect Preferences Failed by sunil. However when I attempted the solution found here: I had the same problem, but I already resolved it now. Try the following steps 1 go Help | Install New Sofware... 2

Configure eclipse to use my own Android SDK (framework.jar)

狂风中的少年 提交于 2019-11-29 00:47:06
I made a custom framework.jar for my device. This new framework include a new API which I'd like to use in my apps. Unfortunately, besides I included my own framework.jar in java build path, eclipse didn't see my new API and throw compiling time errors. How can I configure eclipse to use my custom framework.jar instead of the jar within android SDK? [EDIT] Based in @Yuri 's answer and some other insights, I created a tool (actually it is a shell script) to create a new platform in android SDK and merge jar files into it. It's available in XDA forums to download as well the instructions to use:

How to create a stagefright plugin

自作多情 提交于 2019-11-28 18:29:57
I have a task which involves integration of a video decoder into Stagefright (Android's multimedia framework). I searched and found the following about creating a new plugin for Stagefright : To add support for a new format, you need to: Develop a new Extractor class, if the container is not supported yet. Develop a new Decoder class, that implements the interface needed by the StageFright core to read the data. Associate the mime-type of the files to read to your new Decoder in the OMXCodec.cpp file, in the kDecoderInfo array. static const CodecInfo kDecoderInfo[] = { {MEDIA_MIMETYPE_AUDIO

Configure eclipse to use my own Android SDK (framework.jar)

大兔子大兔子 提交于 2019-11-27 15:26:09
问题 I made a custom framework.jar for my device. This new framework include a new API which I'd like to use in my apps. Unfortunately, besides I included my own framework.jar in java build path, eclipse didn't see my new API and throw compiling time errors. How can I configure eclipse to use my custom framework.jar instead of the jar within android SDK? [EDIT] Based in @Yuri 's answer and some other insights, I created a tool (actually it is a shell script) to create a new platform in android SDK

How to create a stagefright plugin

二次信任 提交于 2019-11-27 11:23:33
问题 I have a task which involves integration of a video decoder into Stagefright (Android's multimedia framework). I searched and found the following about creating a new plugin for Stagefright : To add support for a new format, you need to: Develop a new Extractor class, if the container is not supported yet. Develop a new Decoder class, that implements the interface needed by the StageFright core to read the data. Associate the mime-type of the files to read to your new Decoder in the OMXCodec