Welcome Android Developpers
Welcome Android Developpers
My name is Mathias Séguy, I am an Android Expert and Trainer and created the Android2EE company.
For full information, it’s here : Android2EE's Training
You can meet me on Google+, follow me on Twitter or on LinkedIn
My name is Mathias Séguy, I am an Android Expert and Trainer and created the Android2EE company.
For full information, it’s here : Android2EE's Training
You can meet me on Google+, follow me on Twitter or on LinkedIn
Monday, April 23, 2012
LearnComputer publish a Review of the ebook "Android a Complete Course"
A review of my ebook "Android a Complete Course" from learncomputer.com can be found here. And i am proud of it. Thanks to LearnComputer.com for it.
http://www.learncomputer.com/android-a-complete-course-ebook-review/
So, Thanks who?
Thanks, "LearnComputer.Com, Your Information Technology Trainers" :o)
Mathias Séguy
mathias.seguy.it@gmail.com
Auteur Android2EE
Ebooks to learn Android Programming.
Meet me on Google+
Follow me on Twitter
Join my LinkedIn network ou Viadeo
Monday, April 9, 2012
AdMobs Part 2: The real test and it's small problem
Ok, back to AdMobs.
Sometimes it's not so obvious than it looks like especillay when you're tired.
So for AdMobs, first download the Jar here :
https://developers.google.com/mobile-ads-sdk/download
Then unzip it (beside to your Android SDK is a good idea).
Then include it into your project:
1) Include the jar within your project properly
Copy paste the jar within your project (create a lib folder and paste it there)
Open your Build Path and:
- First add the Jar to your librairies (use the "Add Jar" button and choose the one in your \lib folder)
- Second, add the lib folder as a Source of your project
->Either an build error (the class can't be found)
->Either a run Time error (the class can't be found, the exact sentence looks like: ERROR/AndroidRuntime(2339): Caused by: java.lang.ClassNotFoundException: com.admob.ads.AdView in loader dalvik.system.PathClassLoader@ )
2)When adding to a layout.xml take care about the xmlns:ads.
In fact the parent container of your adMobs banner must declare the namespace of your adMobs.
So insure that the layout container is the following:
LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:ads="http://schemas.android.com/apk/lib/com.google.ads"
If your don't do that you'll have an error in your layout/main.xml when trying to build your project that looks like the ads:adSize is missing...
3)And at least in your Manifest if you have an error when pasting the
try to open your project.properties and target at least
# Project target.
target=android-13
I defines which SDK to use to compile.
But it not seems to me a good idea. If any one understand that, please tell me. I don't want to change my compilation just because of a lib...
Now it should works...
In your build path:
So, Thanks who?
Thanks, Android2ee, the Android Programming Ebooks :o)
Mathias Séguy
mathias.seguy.it@gmail.com
Auteur Android2EE
Ebooks to learn Android Programming.
Meet me on Google+
Follow me on Twitter
Join my LinkedIn network ou Viadeo
2)When adding to a layout.xml take care about the xmlns:ads.
In fact the parent container of your adMobs banner must declare the namespace of your adMobs.
So insure that the layout container is the following:
LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:ads="http://schemas.android.com/apk/lib/com.google.ads"
If your don't do that you'll have an error in your layout/main.xml when trying to build your project that looks like the ads:adSize is missing...
3)And at least in your Manifest if you have an error when pasting the
android:name="com.google.ads.AdActivity"
android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize"/>
try to open your project.properties and target at least
# Project target.
target=android-13
I defines which SDK to use to compile.
But it not seems to me a good idea. If any one understand that, please tell me. I don't want to change my compilation just because of a lib...
Now it should works...
In your build path:
So, Thanks who?
Thanks, Android2ee, the Android Programming Ebooks :o)
Mathias Séguy
mathias.seguy.it@gmail.com
Auteur Android2EE
Ebooks to learn Android Programming.
Meet me on Google+
Follow me on Twitter
Join my LinkedIn network ou Viadeo
Friday, April 6, 2012
Export Aborted because fatal lint errors where found... WTF !!!.
Hello,
So today, you woke up this morning and thought, "I would rebuild my Android application, good idea". You didn't change anything, but when you do "Android Tools-> Export signed application" a strange message appeared on the top of eclipse:
"Export aborted because fatal lint errors were found. These are listed in the Lint View... Blablabla..."
Ok so you took your coffe and now you're back again in front of the computer trying to find the Lint View. And you read in the LintView the following message when you click on the line "Obsolete Proguard File...":
Obsolete ProGuard file; use -keepclasseswithmembers instead of -keepclasseswithmembernames
Issue: Looks for problems in proguard config files
Id: Proguard
Using -keepclasseswithmembernames in a proguard config file is not correct; it can cause some symbols to be renamed which should not be.
Earlier versions of ADT used to create proguard.cfg files with the wrong format. Instead of -keepclasseswithmembernames use -keepclasseswithmembers, since the old flags also implies "allow shrinking" which means symbols only referred to from XML and not Java (such as possibly CustomViews) can get deleted.
http://http://code.google.com/p/android/issues/detail?id=16384
Ok don't panic, open your proguard-project.txt (it's a file at the root of your eclipse project) and just change the words keepclasseswithmembernames by keepclasseswithmember (delete name at the end of the word). (you should have 3 changes to do).
Save the file (it is renammed as proguard.cfg automaticly), relaunch the "Android Tools-> Export signed application" , it works.
This is due to the ADT update to the version 17.
So, Thanks who?
Thanks, Android2ee, the Android Programming Ebooks :o)
Mathias Séguy
mathias.seguy.it@gmail.com
Auteur Android2EE
Ebooks to learn Android Programming.
Meet me on Google+
Follow me on Twitter
Join my LinkedIn network ou Viadeo
Libellés :
Android,
android2ee,
fatal lint errors,
ProGuard
Subscribe to:
Posts (Atom)