Error in helloandroid tutorial

by Qin XiaoYang » Mon, 23 Nov 2009 13:51:33 GMT


Sponsored Links
 Hi all,
I met the following error message appared on the emulator screen.
 "There's a big error message saying that 'Application Android Keyboard (in
process com.android.inputmethod.latin) is not responding.' and asking
whether i want to force close it or wait."
Anybody knows why? Thanks.

--



Error in helloandroid tutorial

by Indicator Veritatis » Tue, 24 Nov 2009 09:08:35 GMT


 I haven't seen that error message. But since the name of the
application in the tutorial is certainly not "Android Keyboard", you
can safely force close it. My guess is that you should go ahead and do
that, and then look for the application ("Hello Android" or
"HelloAndroid") you made during the build and run that.

Normally, that application would run anyway, without waiting for you
to start it. But that does not appear to be happening, since you are
getting this other application in the way.

But all this is only a guess. If you are lucky, after a little while
you will see more knowledgeable answers in this thread.




--


Sponsored Links


Error in helloandroid tutorial

by Qin XiaoYang » Wed, 25 Nov 2009 00:06:13 GMT


 Thanks for you help, in fact the application runs normally after force close
the message box.
I was just curious about why this error message appeared.





>



Error in helloandroid tutorial

by AJ » Mon, 14 Dec 2009 06:08:35 GMT


 I was wondering if you found out why do we see this error. I am having
this error too with Hello Android App.

--AJ







> >



Other Threads

1. attempting to build gingerbread

Hi guys,

I trying to build gingerbread and have run into some errors.

I applied the 32 bit patch, reassigned some user module tags (for some
reason, my build was complaining about them), and removed a duplicate
module.

After which the build starts fine and after some time gives me this
error (happens on openjdk and sun jdk 1.6):

target thumb C: dalvikvm <= dalvik/dalvikvm/Main.c
target asm: libdvm <= dalvik/vm/arch/x86/Call386ABI.S
In file included from dalvik/dalvikvm/Main.c:22:
bionic/libc/include/stdio.h:78: error: expected '=', ',', ';', 'asm'
or '__attribute__' before 'fpos_t'
bionic/libc/include/stdio.h:132: error: expected specifier-qualifier-
list before 'fpos_t'
bionic/libc/include/stdio.h:230: error: expected declaration
specifiers or '...' before 'fpos_t'
bionic/libc/include/stdio.h:240: error: expected declaration
specifiers or '...' before 'off_t'
bionic/libc/include/stdio.h:241: warning: type defaults to 'int' in
declaration of 'fpos_t'
bionic/libc/include/stdio.h:241: error: expected ';', ',' or ')'
before '*' token
bionic/libc/include/stdio.h:243: error: expected '=', ',', ';', 'asm'
or '__attribute__' before 'ftello'
bionic/libc/include/stdio.h:363: error: expected declaration
specifiers or '...' before 'fpos_t'
make: *** [out/target/product/generic_x86/obj/EXECUTABLES/
dalvikvm_intermediates/Main.o] Error 1
make: *** Waiting for unfinished jobs....

I would love some insight on this issue. Thanks in advance.

 - Kelvin

-- 

2. Problem with password based encryption of image files

Hi,

I'm trying to encrypt image files on Android with password based
encryption. To save the encrypted image I just do this:

FileOutputStream fos = new FileOutputStream(thumbnailFile);
CipherOutputStream cos = new CipherOutputStream(fos, encryptCipher);
Bitmap thumbnail = Bitmap.createScaledBitmap(bm2, 140, 140, true);
thumbnail.compress(Bitmap.CompressFormat.JPEG, 80, cos);

and to read it, this:

FileInputStream fis = new FileInputStream(f);
CipherInputStream cis = new CipherInputStream(fis, decryptCipher);
Bitmap b = BitmapFactory.decodeStream(cis);

but the Bitmap ends up as null.  The code works when I bypass the
encryption; that is when I use the File(Input|Output)Streams rather
than the Cipher(Input|Output)streams.

My Ciphers are created as follows:

 public void initCiphers(char password[]) {
    PBEKeySpec pbeKeySpec;
    PBEParameterSpec pbeParamSpec;
    SecretKeyFactory keyFac;

    byte[] salt = {
       (byte)0xc7, (byte)0x73, (byte)0x21, (byte)0x8c,
       (byte)0x7e, (byte)0xc8, (byte)0xee, (byte)0x99
    };
    int count = 20;
    pbeParamSpec = new PBEParameterSpec(salt, count);
    pbeKeySpec = new PBEKeySpec(password);
    try {
        keyFac = SecretKeyFactory.getInstance("PBEWithMD5AndDES");
        SecretKey pbeKey = keyFac.generateSecret(pbeKeySpec);
        encryptCipher = Cipher.getInstance("PBEWithMD5AndDES");
        decryptCipher = Cipher.getInstance("PBEWithMD5AndDES");
        encryptCipher.init(Cipher.ENCRYPT_MODE, pbeKey, pbeParamSpec);
        decryptCipher.init(Cipher.DECRYPT_MODE, pbeKey,
pbeParamSpec);
    }
    catch (Exception e) { Log.v("tag", e.toString()); }
 }

I don't get any exceptions.

There is obviously some problem with using Cipher(Output|Input)Streams
with the android functions for encoding and/or decoding images, but
since those functions are opaque and there are no exceptions, its hard
to know what it is. I suspect it has to do with padding or flushing.
Any assistance would be gratefully appreciated.

Matthew Fleming, MD
DermVision, LLC

-- 

3. c2DM error when third-party server sends data to push

4. Navigation

5. SPB Mobile Shell for Android Looks To Be A Home Replacement On Steroids, Private Beta Now Open

6. untracked pid exited error while booting froyo

7. android bluetooth