Emulator too slow to start - DDK 8, Ubuntu 10.10, Eclipse 3.5.

by schibbl » Fri, 14 Jan 2011 21:19:56 GMT

Sponsored Links

I just started playing a bit with the Android SDK

Eclipse SDK

Version: 3.5.2
Build id: M20100211-1343

Intel(R) Pentium(R) Dual  CPU  T3400  @ 2.16GHz


Other Threads

1. ACTION_VIEW sefaults is no application installed for mimetype

Ooops.  I figured this out.  It was actually catching the problem fine
but crashing during my txt2 writing.



2. ACTION_VIEW sefaults is no application installed for mimetype

Hi All,

I have an app that downloads a pdf from a server and tries to open it
with an itent:

Intent intent = new Intent();
File file = new File(filepath+filename);
intent.setDataAndType(Uri.fromFile(file), "application/pdf");
try {
} catch (ActivityNotFoundException e) {
       final Exception ef = e;
       txt2.post(new Runnable() {
           public void run() {
                txt2.setText(" "+ef);

Everything works great if any applications are installed on the device
that will open a pdf.  But, if no apps are installed, this part of the
code just segfaults (my catching of the exception apparently does not

Here is the logcat output

I/ActivityManager(   61): Starting activity: Intent
{ act=android.intent.action.VIEW dat=file:///sdcard/arXiv/tmp.pdf
typ=application/pdf }
W/dalvikvm(  322): threadid=7: thread exiting with uncaught exception
E/AndroidRuntime(  322): FATAL EXCEPTION: Thread-9
E/AndroidRuntime(  322): java.lang.NullPointerException
E/AndroidRuntime(  322):        at
W/ActivityManager(   61):   Force finishing activity

So, my question is can I somehow determine if any app is available for
application/pdf mimetype ahead of time.  Or, can I prevent the code
from dying here and tell the user to install a pdf reader app?



3. Android Emulator and LTE technology :)

4. Google IO 2010 videos

5. obtain the SDK level

6. Android Eclair

7. TranslateAnimation on ImageView in GridView