android-4.0-ice-cream-sandwich

Issue: Passing large data to second Activity

ⅰ亾dé卋堺 提交于 2019-11-27 07:13:32
I've got an strange issue. I was looking around the web but didn't find an answer. I'm still a beginner in android programming. So let's go: All I want to do is calling the second Activity with some data. It works fine with small data, but if the data gets large, the second Activity will not show and the first one finishes. Here's my code of the calling Method: Intent intent = new Intent(ActivitySearch.this,ActivityResults.class); Bundle bundle = new Bundle(); bundle.putParcelableArrayList("data", searchList); intent.putExtras(bundle); startActivity(intent); The part of receiving data is not

ADB doesn't recognize my Galaxy Nexus - Win7

妖精的绣舞 提交于 2019-11-27 07:13:09
I just bought a Galaxy Nexus, now I got a problem, my ADB doesn't recognize it. The Point is when I connect it, it shows it as Storage-Device on my Computer but it isn't listed as an ADB Device. When I connect my other Phone (HTC Desire HD) it recognize it without any problems. Some information about the System and Config: I'm on Win7 Service Pack 1 64bit Galaxy Nexus is in debugging mode The Device isn't shown in ADB but Windows recognize it as Massstoragedevice Eclipse and Googlepack is updated to the newest Version jsaye Check if you have installed this package in your ADB "Google USB

uninstall app silently with system privileges

拈花ヽ惹草 提交于 2019-11-27 06:38:42
My app have system privileges. It will be inside firmware, now it's located at /system/app I was able to install apps silently with this post install / uninstall APKs programmatically (PackageManager vs Intents) example app that works http://paulononaka.wordpress.com/2011/07/02/how-to-install-a-application-in-background-on-android/ But I still can't uninstall apps the same way. I tried to use reflection like as in the installation example. public ApplicationManager(Context context) throws SecurityException, NoSuchMethodException { observer = new PackageInstallObserver(); pm = context

Android tablet navigation bar won't hide

冷暖自知 提交于 2019-11-27 06:31:17
问题 I'm trying to hide the navigation bar, using methods I've found described on the internet. I have a simple layout which shows a WebView: <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="horizontal" android:id="@+id/layout" > <WebView xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/webview" android:layout_width=

What are the default color values for the Holo theme on Android 4.0?

ε祈祈猫儿з 提交于 2019-11-27 05:54:49
Does anyone have access to a list of the default colours used in the Holo them (light and dark) on Android 4.0? I'm looking for things like list backgrounds, primary and secondary text, ActionBar, etc. Google gives some examples at the Themes and Color style guidelines, but they don't really go into the actual color values being used. I can grab them from the images, but I’d rather use something a little more accurate. perhaps this is what you're looking for: https://github.com/android/platform_frameworks_base/blob/master/core/res/res/values/colors.xml If you want the default colors of Android

VerifyError deploying on API 1.6

时间秒杀一切 提交于 2019-11-27 05:46:18
问题 I've come across a backwards compatibility issue when deploying my application on android 1.6. Im getting a VerifyError on this piece of code: if(android.os.Build.VERSION.SDK_INT >= 11) { getActionBar().setBackgroundDrawable(getResources().getDrawable(R.drawable.actionbar_bg)); } This is not unexpected since getActionBar() doesn't exist pre API 11, however post-1.6 (API 5 and higher?) builds all semi-gracefully go around this according to the logcat message im getting when deploying for

Handling the missing MENU button in new versions of Android (3.x and up)

一个人想着一个人 提交于 2019-11-27 05:38:41
问题 I'm a fan of the menu button as used in Android <3.0, as it was very useful for my game apps - it allowed me to take important but gameplay irrelevant functionality (saving game, reference info links) and place it somewhere where it did not clutter up the main game interface, but was still easily accessible (the options menu). This use of keys became a problem with 3.0, because it removed the MENU button and substituted it with the Action Bar. The Action bar is really not suitable for a game

Broadcast receiver not working in ICS if the app is not started atleast once

a 夏天 提交于 2019-11-27 05:16:57
This question has been asked few times in stack overflow, but no solution, yet. I have a broadcast receiver for for receiving USB connected action.The broadcast receiver responsibility is , if I get the intent start my application.In the manifest file I have added the receiver . I have the same logic working in GingerBread, but I ICS its not working. Many questions like , broadcast-not-invoking 1 : Android Boot-Up BroadCast Not invoking and broadcastreciever-not-working If I start my app manually once, then from next time on-wards when USB is connected my App starts automatically. tries to

How to detect “Recent Apps” system button clicks (Honeycomb+)

a 夏天 提交于 2019-11-27 04:22:31
I'm wondering what method this button calls. My game always pauses/resumes correctly except for when I use this button, its seems like this button doesn't call the onPause() and onResume() methods of an Activity . It works if I exit the game, go to another window(like the one on the picture) and then use this button to resume. But If I just press this button, when ingame, the game pauses but the thread dosnt resume like it does every other time, the game kind of just stands still on screen and flickers a bit. Hard to explain but I hope I'm being sort of clear, if not, ask! None of standard

Something's wrong in Corner radius Android

大兔子大兔子 提交于 2019-11-27 04:06:50
问题 I'm making my own search view for Android 2.3. I have. LinearLayout (Horizontal) AutoCompleteTextView ImageButton I added the button and AutoCompleteTextView to LinearLayout . I want to put a corner radius in my own control like the image shown below. I set this drawable to ImageButton <selector xmlns:android="http://schemas.android.com/apk/res/android" > <item android:state_pressed="true" > <shape> <solid android:color="#27AFE0" /> <stroke android:width="0.5dp" android:color="#000000" />