android-4.0-ice-cream-sandwich

ADB doesn't recognize my Galaxy Nexus - Win7

末鹿安然 提交于 2019-11-27 03:59:50
问题 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

Cannot convert from android.support.v4.app.Fragment to android.app.Fragment

本秂侑毒 提交于 2019-11-27 03:02:01
问题 I'm doing my first Android app, and wanted to get straight into the ICS API. I have so far created an app using an ActionBar, with swipeable tabs using Viewpager and Fragments. I do however experience some errors that I keep returning to. Depending on how I implement it, it always keep going back to an "Type mismatch" error: "cannot convert from android.support.v4.app.Fragment to android.app.Fragment". I have tried removing all import references to either, and this error appears when I only

The best way to create drop down menu in android 2.x like in ICS

无人久伴 提交于 2019-11-27 01:53:21
问题 I want to create button with drop down menu, like overflow menu button in ActionBar on ICS. I have problem because PopupMenu there isn't in android 2.x. The second way using Spinner but it's not for me, because Spinner always show the first item on my custom background or my selected item. How can I acheive it? In general, I want ContextMenu but little and on position clicked view. Thanks. It looks like this : 回答1: If your purpose is to recreate an action bar, you could take a look at the

Disable Home Button in Android ICS (4.0)

一个人想着一个人 提交于 2019-11-27 01:38:31
I am making a proprietary app for a company which will never release it to the Android Market (or Play Store I guess now) in Ice Cream Sandwich (Android 4.0). I need to disable the Home so the users cannot maliciously uninstall software or delete the data that the app captures. This latest version is the first to be written in 4.0, the previous versions were written in 2.2 and 3.2. For disabling the Home button in 2.2, I associated the app as a home replacement, so the button just reopened the app, but I can no longer use this method, as that somewhat prevents us from doing our updates to the

is there a way to disable hardware acceleration only for android 4.0.3?

风流意气都作罢 提交于 2019-11-27 01:37:49
问题 I have recently stumbled upon an issue with android 4.0.3, where Im getting the following Exception as soon as the application starts (on other android versions it works fine): java.lang.NullPointerException at android.view.GLES20RecordingCanvas.drawPatch(GLES20RecordingCanvas.java:97) at android.graphics.NinePatch.draw(NinePatch.java:125) at android.graphics.drawable.NinePatchDrawable.draw(NinePatchDrawable.java:189) at android.widget.ImageView.onDraw(ImageView.java:892) at android.view.View

Does the Android ICS API have a native equivalent to ViewPager support lib?

余生长醉 提交于 2019-11-27 01:27:43
问题 I have searched a bit around for a pager for fragment , I develop on ICS API. I know about ViewPager and all the support libs for earlier version but i don't get why I should use a support library consider the fact that I use the lastest version of the api and don't plan to support earlier version. Do I have to write the "ViewPager" myself or is there something i didn't see in the api. 回答1: Does the Android ICS API have a native equivalent to ViewPager support lib? No. I know about ViewPager

Android 4.0: widgets not appearing?

心不动则不痛 提交于 2019-11-27 00:52:34
I have a widget I created against Android 2.1 that's been fine and selling on the market. I had a user complain that he bought it and it never showed up on his Android 4.0 device. I loaded up the 4.0 emulator, ran it from Eclipse, it reported a successful installation and in fact I can see it listed in the "Widget Preview" app, and I can run it there and it seems fine, but it doesn't show up anywhere under "Widgets" -- I can't actually find it to drag it to the home screen! I assume this is the same thing the user is seeing. Any idea what's going on here? Why is it fine in 2.1 but doesn't show

Adding widgets to a launcher page without bindAppWidgetId()

℡╲_俬逩灬. 提交于 2019-11-27 00:37:53
问题 I'm trying to turn the stock ICS launcher into a standalone app. I'm nearly there - the only things not working are the search icon and dropping widgets onto the screen, which causes a crash. The crash is because the stock launcher uses appWidgetManager.bindAppWidgetId(appWidgetId, componentName); to add widgets, which apparently only system apps have permission to do. So my question is, what is the correct way for a non-system app to add widgets and acheive the same UI experience as the

android 4.0, text on the action bar NEVER shows

感情迁移 提交于 2019-11-26 23:55:06
I am trying to use the new api's from google, specifically the action bar. When the build was set at api 10, if I pressed the menu button, I got nice looking menu options, each with a picture and icon. When using api 14, No matter what I try, it always puts the icon in the action bar with NO text. I have tried everything I can think of. I gave it the "with text" property, changed the text to a single character (in case it was a room issue), but nothing. I have seen this done before, even in the developer guide at android.developer, but I can't seem to find an answer as to HOW to get it to show

How to read and edit Android calendar events using the new Android 4.0 Ice Cream Sandwich API?

不打扰是莪最后的温柔 提交于 2019-11-26 23:53:43
We are trying to show user the Ice cream Sandwich calendar view, when they want to add a new event. We can only test this in emulator. The other problem is that we can't find any examples how to use CalendarProvider. This is the right class when it comes to dealing with Sandwich calendar? Would this be easier to do with Google Gdata API? [EDIT] So what we got working was adding an event to calendar but it was not through the API, we open the calendar in the correct view. But now the problem is that it does not work in the emulator because we haven't been able to get the calendar synced. So the