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.
Android Yeah
Thursday, July 28, 2011
Thursday, July 14, 2011
XML layout files
Use of other XML layout files than main.xml
- 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". - Place a button on the layout. (button01), save the file.
- 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
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.
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..
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
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.
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.
Subscribe to:
Posts (Atom)