Questions tagged [android-framework]

152 questions
24
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…
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
  • 6,122
  • 7
  • 42
  • 64
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,742
  • 3
  • 21
  • 41
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
  • 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…
8
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
  • 705
  • 3
  • 9
  • 11
8
votes
4 answers

Add one android project as a library in AOSP App

I want to add some features into Browser app by start an activity from another android application. It gives me package does not exist while I make the Main Project. Notice that I see the AndroidLib is built successfully into an…
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,612
  • 6
  • 44
  • 69
8
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
  • 26,030
  • 10
  • 55
  • 68
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,154
  • 3
  • 24
  • 37
6
votes
3 answers

Is there any difference in using Context.getText and Context.getResources.getText?

So I've noticed that there seem to be two ways to get the same data, and I'm not sure if there are guidelines to when you should use either (other than, bypassing the getResources could be memory saving if you don't actually want to use the object…
Hayley
  • 63
  • 5
6
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