Questions tagged [android-framework]
151 questions
25
votes
1 answer
Using `onRetainCustomNonConfigurationInstance` to retain data across configuration changes
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 Parcelables to Activity's Bundle in onSaveInstanceState docs are suggesting using Fragment with…

wasyl
- 3,421
- 3
- 27
- 36
19
votes
2 answers
Calling a method in the system process without a qualified user error
I'm using the notification listener service in android 4.4 and I'm coming across an error that causes my app to stop getting notifications posted.
It's fairly random, but when it happens I'm seeing:
12-31 01:40:44.080 21680-21680/? W/ContextImpl﹕…

Andrew
- 7,548
- 7
- 50
- 72
12
votes
3 answers
"Too many attribute references" warning
I have an app, where some fragments only consist of ListViews. Some of my users with low-end devices experience a phenomenon, where a fragment simply can not display the data. When they enter the fragment I display a ProgressBar, and this…

akohout
- 1,802
- 3
- 23
- 42
12
votes
2 answers
Android framework debugging in Eclipse
I'm working on a project where I'm making changes to the android framework sources. What's the best approach to do this in Eclipse and be able to debug? I've seen posts to attach the android source in Eclipse,but that's the 'standard' source code,…

b74ckb1rd
- 345
- 1
- 3
- 11
10
votes
1 answer
Building separate Android modules with dexpreopt disabled
For my thesis, I'm modifying the android framework and building the source (4.1.1 Jelly Bean).
I can do a full build, but because this is very time consuming (I'm developing on a ubuntu 12.04 64bit virtual machine) I'd like to build separate…

b74ckb1rd
- 345
- 1
- 3
- 11
9
votes
5 answers
Clear Edit Text - adb
How to clear focused Edit text using shell command.
I tried
adb shell input keyevent KEYCODE_CLEAR // Not worked
adb shell input keyevent KEYCODE_DEL // Delete only one char
adb shell input keyevent KEYCODE_FORWARD_DEL // Not worked
With this I am…

Krishnakant
- 1,453
- 3
- 18
- 30
9
votes
4 answers
How does Android devices get developers' public keys?
The Android system requires that all installed applications be digitally signed with a certificate whose private key is held by the application's developer. How specifically does the public key be distributed to client Android devices? Is the public…

user3361508
- 815
- 3
- 10
- 11
9
votes
3 answers
How can I prevent a Fragment's onCreateView() from being called?
So here is my code. 'currentFragment' is simply a field that tracks what is currently being displayed. This is in a class that itself is a Fragment (so I have a fragment showing a fragment).
private void selectNavBarItem(NavbarItem v)
{
Fragment…

Mark Herscher
- 1,761
- 2
- 19
- 32
9
votes
2 answers
Couldn't parse API file "frameworks/base/api/current.txt"
I tried adding some files in Android framework. Everything goes well, except in the end of compilation i am getting below error.
I tried make update-api too, but no luck, every time in compilation it is giving below errors. If anybody know how to…

AAnkit
- 27,299
- 12
- 60
- 71
8
votes
1 answer
Android: How to integrate a decoder to multimedia framework
Recently i have ported a video decoder to android successfully. Also dumped the output on a surfaceview and checked the output using native API's. Now the next task is to implement play, pause, streaming etc. i.e. the other features of the media…

Zax
- 2,870
- 7
- 52
- 76
8
votes
2 answers
Android Key Handling (Framework)
There are some parts of the framework which are not quite clear to me yet. I am well known with the flow of an input event (Kernel -> Eventhub -> InputReader -> InputDispatcher -> ...).
Situation
(Requirements: Handle input keys without changing the…

DroidBender
- 7,762
- 4
- 28
- 37
7
votes
2 answers
What is "android:" prefix mean in android framework-res module
I copy the this code from the styles.xml file in framework-res module