Thursday, July 28, 2011

Error - Can't find @drawable/ic_tab_artists_grey

Sometimes you can get error message when openeing a project from Eclipse. To remove the error that seams like there is no error try to do this.

Click on the menu "Project" and select "Clean". In many cases this will remove the error message.

Thursday, July 14, 2011

XML layout files

Use of other XML layout files than main.xml

  1. Create a new empty layout file. (Right click on the projekt and select "New" and "Android XML File")
    Mark resource as "Layout". Give the file a file name, in my case i use "inventory.xml".
  2. Place a button on the layout. (button01), save the file.
  3. In the onCreate event, place this code:
    ---
    super.onCreate(savedInstanceState);
    setContentView(R.layout.inventory);
    //findViewById(R.id.button1).setOnClickListener(xProduct); (example for doing something with the button)
    ---
    After this line of code you are able to access all objects in your own layout file.

Wednesday, July 13, 2011

AR.Drone

Graphical Layout can't found TabWidget

When useing a TabWidget with TabHost you can get this error:

Error during post inflation process:
TabHost requires a TabWidget with id "android:id/tabs".
View found with id 'tabs' is 'com.android.layoutlib.bridge.MockView'

The following classes could not be found:


Try to change the default Android version to 1.5 or 1.6, you should now be able to see the correct graphic layout.

Eclipse editor indicating error in source file but it seems like there is no error.

Eclipse editor indicating error in source file but it seems like there is no error.

Try to change something in the source file and then save the file, sometimes this will remove the error messages that may appear in some cases. Try this, it may help you..

Steps to begin to develope for Android devices

Step 1: Download Software

1. Download Eclipse (Classic)   http://www.eclipse.org/downloads
2. Download JDK   http://www.oracle.com/technetwork/java/javase/downloads/index.html
3. Download Android SDK   http://developer.android.com/sdk/index.html


Step 2: Installing software

1. Install Eclipse by copying the "Eclipse" folder to: "c:\program\"  (from the archive)
2. Install JDK (.exe file)
3. Install Android SDK. After installation the SDK will automaticly install packages for you.
4. Start Eclipse and open "Help/Install New Software".
5. Install the ADT plugin in Eclipse:
    1. Start Eclipse. Go to: Help/Install New software.
    2. Click "Add" and enter the following URL: https://dl-ssl.google.com/android/eclipse/
    3. Click on "Developer Tools" and then mark "Android Development Tools".
    4. Click on "Next" and then "Finish". Android Development Tools will now be installed in Eclipse.



Connect to your x10 via usb
Adb.exe is missing after restart
Error generating final archive debug

Adb.exe is missing. (Windows 7)

After restarting the computer when the Android SDK have been installed Eclipse can start with an error message telling that the adb.exe is not found.
I found out that Windows itself must do something to the installed files because they are not found in the installation directory after restart. It seems like Windows 7 remove some files that the SDK relies on. The file "adb.exe" is removed and you nead to install the whole package again.
 I also found out that the file path in my case "C:\Program Files (x86)\Android" was set to "read only" so when i tried to install the SDK again, it didn't work before i removed the "read only" attribute.

After installing the Android SDK the installed Eclipse works again.

Tuesday, July 12, 2011

Sony Ericsson Xperia active

Connect to your X10 via USB from Eclipse

If you want to install and debug applications directly on your device you need to install an appropriate device driver.

To install driver for SonyEricsson X10 mini you connect your phone via USB and select "Install PC Companion" in the Phone display OR you download the latest version of PC Companion from www.SonyEricsson.com.

To check if your device is found do this:

1. Start Eclipse.
2. Create an empty Android Project.
3. Right click on the project and select "Run as/Android Appliaction".
4. Your find your device, the name will look something like "4326554515A34A74".
5. Select the device and click OK.

Tuesday, July 5, 2011

Top Apps on Android Market

Top Apps on Android Market

1. WhatsApp
2. 3G Watchdog
3. DailyHoroscope
4. Vem ringde
5. SMHI Väder
6. Lucid Dreaming
7. Jewels
8. LäkarFarmaka
9. Advance Task Killer
10. Twitter
12. Sportify
14. Facebook
15. Google Authenticator
16. Sleep as an Droid

Download Eclipse

Download Eclipse to start doing software för Android Market!

Go to www.eclipse.org to read about how to install and begin to develope applications for Android.

For the moment the latest version of Eclipse is 3.7. To begin to develope Android apps you can use Eclipse Classic

Direct download link:
http://www.eclipse.org/downloads/packages/eclipse-classic-37/indigor

error generating final archive debug certificate expired

Getting this error, try this.

Delete your debug certificate (debug.keystore).

Windows path: %USERHOME%/.android

In Eclipse, Clean the project: 'Project' -> 'Clean'