Problems with project compilation under RAD 7.0 boundled with WAS 6.1

If You have error log with below codes:

SRVE0203E  SRVE0206E  SRVE0187E  SRVE0210I  SRVE0234I

Then just read carefully given error log (each path, line by line) and find the path which You’ve set incorrectly.


Links:
* IBM developerWorks

Share this article

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

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

Problems with internet connection over WiFi

Latlety me and my roommates have had a problems with internet connection. Firtstly the connection start to beeing slower. Next while I thought that somebody has broken into our network, so I’ve connected via LAN and turn off WiFii connection. After this, when I was connected only via LAN, everything works fine. But if I try to connect any other device via LAN or WiFi, the conection started to fail and I can’t load any site on any device. Everything started about 1 month ago. Ealier I didn’t have any problems with creation and work on this network. After many attempts I’ve found on internet article that give me an idea that the problem wasn’t bad configuration but router or modem. So in about couple of days I’ve bought new router, install and configure it on my network, and gues what… It works :)

Here are pieces of my local network:
1) ISP – UPC Poland
2) MODEM – Scientific Atlanta Webstart EPC 2203
3) ROUTER: Linksys Wireless-G Broadband Router WRT54GL on default software (ealier: Pentagram Cerberus WiFi 802.11g Lite)
4) DEVICES: 4 laptops that have built in wifi cards that runs on OSX, Windows XP, Windows 7, Windows Vista. 3 mobile devices with internal WiFi cards: Samsung Galaxy GT-i7500, Nokia, Samsung Monte

HINT: When I was runnning on ealier router (Pentagram) I had problems with internet connection on Samsung Galaxy i7500. After router change everything works fine. But I’m not sure that the source of those problems was router.

Share this article

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

Skróty w Eclipse IDE @ OSX

Command + F8 Zmień perspektywę (Java, Debug, Git, etc.)
Command + ALT + Down/Up Arrow Skopiuj bieżącą linię powyżej/poniżej.
ALT + Down/Up Arrow Przesuń bieżącą linię wyżej/niżej.

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

VIM Keyboard Shortcuts

General

i start insert mode
Esc back to to command mode
:w [filename] save current file as specified [filename]
:q quit vim

Moving around the text

j up
k down
h left
l right
e move to the end of current or next word
b move to the beginning of current or next word

sources:
1) keyxl.com

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

html:img vs html:image (ku pamięci)

<html:image/> tworzy <input type=”image” />

<html:img /> tworzy zwykły <img />

Share this article

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