Problem:Could not find HelloAndroid.apk!

by Markuz05 » Tue, 03 Feb 2009 02:04:35 GMT


Sponsored Links
 Hi,
I tried to run my first android application both in Windows Xp and
Ubuntu.
In Windows i had no problem, but in ubuntu when a try to run the
program i have this error:
Could not find HelloAndroid.apk!
I installed sun jdk 6 and eclipse 3.4 and the ADT plugin
I relinked java and keytool (from GCJ to Java 6) but nothing changed.
Have you got any suggestions?
bye bye

--~--~---------~--~----~------------~-------~--~----~



Problem:Could not find HelloAndroid.apk!

by Markuz05 » Tue, 03 Feb 2009 19:07:58 GMT


 Nothing??



--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


Problem:Could not find HelloAndroid.apk!

by Markuz05 » Wed, 04 Feb 2009 15:44:55 GMT


 I tried deleteing and regenerating the certificate with the keytool
but now I have this error:
"Error generating final archive: Keystore was tampered with, or
password was incorrect"
Is there any file where set the keytool password ?





--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. Querying Content Providers

Hi,

I want to query a content provider, e.g. contacts. (API 2.x). I create
a cursor like this

Cursor cursor =
getContentResolver().query(ContactsContract.Contacts.CONTENT_URI,
null, null, null, null);

Now I have an internal table represented by this cursor and I can
browse through this table with the aid of that cursor. In order to
know what data I have I need to know the columns of my table, I assume
in my case these

http://developer.android.com/reference/android/provider/ContactsContract.Contacts.html

are the columns I have available and I can pick from. So lets try this

        while(cursor.moveToNext())
        {
                String data =
cursor.getString(cursor.getColumnIndex(ContactsContract.Contacts.XXXXXXXX));
                Log.e("myTag", data);

        }
        cursor.close();

I would assume that where I have typed XXXXXXXX that I can enter any
column from the link above, so for example

String data =
cursor.getString(cursor.getColumnIndex(ContactsContract.Contacts.DISPLAY_NAME_PRIMARY));

Eclipse auto complete does not offer me a DISPLAY_NAME_PRIMARY but a
DISPLAY_NAME. Using DISPLAY_NAME seems to work. So the question is, am
I just lucky to get the data and in fact I haven't understood
something? Or is that a plain bug in the documentation?

The biggest problem is that it seems to be worse for other providers,
e.g. 
http://developer.android.com/reference/android/provider/ContactsContract.Groups.html
, this

Cursor groupC =
getContentResolver().query(ContactsContract.Groups.CONTENT_URI, null,
null, null, null);
        while(groupC.moveToNext())
        {
         String group =
groupC.getString(cursor.getColumnIndex(ContactsContract.Groups._ID));
                 Log.e("myTag", group); //
        }
        groupC.close();

works fine. It prints number 1....6 hence I assume I have 6 entries in
my table (though I only have 5 contacts groups in my contact
application). But this:

Cursor groupC =
getContentResolver().query(ContactsContract.Groups.CONTENT_URI, null,
null, null, null);
        while(groupC.moveToNext())
        {
         String group =
groupC.getString(cursor.getColumnIndex(ContactsContract.Groups.TITLE));
                 Log.e("myTag", group); //
        }
        groupC.close();

Leads to a crash "Caused by: java.lang.IllegalStateException: get
field slot from row 0 col -1 failed".

Anyone who can shed some light on this problem?

Thanks.
A.




-- 

2. How to add camera on android platform

Hi All,

I want to add mt9p031 camera sensor on android platform.

please find  me some pointers on this.




Regards
Ashwani

-- 

3. Android Dev Phone question

4. Recents

5. Looking for android dev (2-10 yrs) Bangalore

6. AppWidget preferences

7. Mount as USB driv