Category Archives: Android

unparsed aapt error s check the console for output

Błąd pojawił się u mnie się po utworzeniu, a następnie usunięciu pliku .xml w projekcie.

Rozwiązanie, które mi pomogło to:

1. Otwieram perspektywę Problems.

2. Zaznaczam błąd o treści „unparsed aapt error s check the console for output”

3. Kasuję go.

4. Przebudowuję cały projekt.

źródło rozwiązania: http://osdir.com/ml/Android-Developers/2010-03/msg03060.html

Share this article

  • Blip
  • Delicious
  • Digg
  • Facebook
  • Grono
  • Kciuk
  • NK
  • Twitter
  • Wykop

Cannot refer to a non-final variable an inner class defined in a different method

PROBLEM:

I had a problem with compiling my Android project. While trying to compile, the error

SOLUTION:

Founded @ anddev.org

Share this article

  • Blip
  • Delicious
  • Digg
  • Facebook
  • Grono
  • Kciuk
  • NK
  • Twitter
  • Wykop

How to connect to database on Android emulator (at OSX)?

1. Run your emulator and check the port on which he’s running.

2. Connect to the emulator via shell (terminal)

Use command:

$ adb -s <emulatorId> shell

My example:

$ adb -s emulator-5554 shell

Hint: to list all active emulators use command:

$ adb devices

3. Each Android database is hold in a file .

The path pattern to your db file is (while you connected to emulator):

# /data/data/<your_app_package>/databases

So just go there to see your databases, in my example it looks like this:

# cd /data/data/com.example.application/databases
# ls EXAMPLE_DATABASE

4. Open your database.

So now, while I know which db I want to open I do this:

# sqlite3 /data/data/net.hopbit.dev.myapplication/databases/MY_EXAMPLE_DATABASE
SQLite version 3.6.22
Enter „.help” for instructions
Enter SQL statements terminated with a „;”

5. Manage your DB and execute queries

Now, when I’m connected to my database I can manage my db and execute some queries, here’s example:

sqlite> .tables
NOTES_TAB    USERS_TAB
sqlite> select * from users_tab;
LOGIN|NAME|SURNAME
test1|Test|One
test2|Test|Two

 


Resources:
* Android Debug Bridge | Android Developers
* Command Line Shell For SQLite

Share this article

  • Blip
  • Delicious
  • Digg
  • Facebook
  • Grono
  • Kciuk
  • NK
  • Twitter
  • Wykop

Problem with importing IntentReceiver

Hi.

Problem:

I had problem with importing IntentReceiver class during dig some Android tutorial.

Solution:

Import android.content.BroadcastReceiver class instead of IntentReceiver. IntentReceiver was replaced by BroadcastRecever.

I’ve found above solution at: Android Developers Google Group

Share this article

  • Blip
  • Delicious
  • Digg
  • Facebook
  • Grono
  • Kciuk
  • NK
  • Twitter
  • Wykop

Type Conversion to Dalvik format failed with error 1

Hi,

Currently it’s weekend. Instead of griping on headake after yesterday’s friday evening, I’m working on my engeering thesis… Yes, still…

I’ve been moving my projects directories around my eclipse workspace and find a compilation error mentioned at the topic of this post, while trying to run my app..

I’ve googled a little, and find a hint on this page. In my case the adequate solution was just setting again the android.jar library build path and just cleaning my project.

Share this article

  • Blip
  • Delicious
  • Digg
  • Facebook
  • Grono
  • Kciuk
  • NK
  • Twitter
  • Wykop