android-2.2-froyo

No Activity found to handle Intent : android.intent.action.VIEW

非 Y 不嫁゛ 提交于 2019-11-26 12:23:02
问题 This is my code to play the recorded audio 3gp file Intent intent = new Intent(android.content.Intent.ACTION_VIEW); Uri data = Uri.parse(path); intent.setDataAndType(data, \"audio/mp3\"); startActivity(intent); But while running it in my HTC device (Android 2.2 Froyo) shows an exception: 05-04 16:37:37.597: WARN/System.err(4065): android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.VIEW dat=/mnt/sdcard/mnt/sdcard/audio-android.3gp typ=audio

How to programmatically set drawableLeft on Android button?

穿精又带淫゛_ 提交于 2019-11-26 11:00:39
I'm dynamically creating buttons. I styled them using XML first, and I'm trying to take the XML below and make it programattic. <Button android:id="@+id/buttonIdDoesntMatter" android:layout_height="wrap_content" android:layout_width="fill_parent" android:text="buttonName" android:drawableLeft="@drawable/imageWillChange" android:onClick="listener" android:layout_width="fill_parent"> </Button> This is what I have so far. I can do everything but the drawable. linear = (LinearLayout) findViewById(R.id.LinearView); Button button = new Button(this); button.setText("Button"); button

Android; Geocoder, why do I get “the service is not available”?

人盡茶涼 提交于 2019-11-26 08:29:35
问题 I want to use the Geocoder in an android application, I\'ve got the following piece of code to sample it : public class LocatorGeo extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); Geocoder geo = new Geocoder(getApplicationContext()); List<Address> myAddrs = new ArrayList<Address>(); try { myAddrs = geo.getFromLocationName(\"CO100AR\", 1); } catch

How do I pause Flash content in an Android WebView when my activity isn&#39;t visible?

孤街浪徒 提交于 2019-11-26 08:19:12
问题 I am experimenting with using a WebView to display Flash content inside my activity. Everything is working pretty well, but when the user hits the home key to put the activity into the background, the Flash content keeps running (sound keeps playing, etc) I have noticed that both the stock Android browser and Dolphin Browser seem to avoid this problem, and properly pause the Flash content when the browsing activity is put into the background. Ideally I would like a solution that kills the

What is a maximum size of SQLite database on Android?

邮差的信 提交于 2019-11-26 07:34:54
问题 I have a SQLite db that size is over 2.6 GiB. (The db contains maps.) This db is used by RMaps app. When move the maps to some parts at maximum zoom, the app suddenly closes. However, there is no force close message, no report button. So, I\'ve got an idea that it is caused by reading blocks that are beyond a certain limit e.g. max(int). Since RMaps is just using simple SQL statements, I think that the problem is not in RMaps but rather in Android SQLite driver. Is there a size limit of

GCM SERVICE_NOT_AVAILABLE on Android 2.2

百般思念 提交于 2019-11-26 06:42:23
问题 I am getting the error \"SERVICE_NOT_AVAILABLE\" on my GoogleCloudMessaging.register() call on a Android 2.2 device. I am writing an app that uses GoogleCloudMessaging using the new Google Play Services. I implemented it using the guidelines provided on the Android website and my source contains a lot of error checking and handling code such as making sure the Google Play Services is installed, or updated. The GCM registration code also implements a exponential backoff as google as suggested

ADT requires &#39;org.eclipse.wst.sse.core 0.0.0&#39; but it could not be found

萝らか妹 提交于 2019-11-26 05:16:20
问题 I\'m installing the Android SDK on a fresh installation of Fedora 14 (Linux). I installed eclipse, and ran the tools/android sdk tool to install all the Eclipse components for the SDK. I was able to get DDMS to install when selecting it by itself. And for the last component - the Android developer tools, I\'m getting the ugly error message pasted below. Now I\'m Stuck in Eclipse dependency hell. I\'ve searched through the available packages in Fedora and I can\'t find the one that has the