Hello,
Good news for those who bought the book "A Quick Course Android" or "Android A Complete Course," the Bluetooth Android2EE's tutorial is finally available. I drop it on GitHub at the following address:
https://github.com/MathiasSeguy-Android2EE/BlueToothTuto
This tutorial explains thoroughly the establishment of a communication between two Bluetooth devices. It contains three activities and a service which aims to set up a chat between two devices.
The EnableActivity activity can detect if the Bluetooth is turned on or off and engage otherwise.
The DiscoveryActivity activity can set device discoverable, detect others Bluetooth devices and then connect to the one selected.
Once the connection is established, the Application object holds the socket, launches communication service between the two devices and also launching the communication activity.
Communication activity binds with the communication service, receives and sends messages to the other device. It also stops, starts or kills the service. Murder service also frees the socket.
The simplified class diagram:
Mathias Séguy
mathias.seguy@android2ee.com
Android2EE
Android Training, Consulting and Expertise.
Meet me on Google+
Follow me on Twitter
Join my LinkedIn network
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
Friday, July 5, 2013
Bluetooth Tutorial by Android2EE available on GitHub
Libellés :
Android,
android2ee,
bluetooth,
tutorial
Thursday, June 28, 2012
What's New in Android available on YouTube ! yes :o)
Hey,
But it's the Google IO 2012 !!!
Good news, Jelly bean (4.1) is here, Nexus 7 too
and you can see the video of the talk, one of my favorite:
Google I/O 2012 - What's New in Android?
Just enjoy Romain Guy and Chet Haase talk :o)
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,
Chet Haase,
Google IO 2012,
GUI,
Romain Guy,
What's New in Android?
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
Monday, March 5, 2012
Spring for Android 1.0.0.RC1 Released
The Spring For Android Release Candidate is here, i mean there
http://www.springsource.org/spring-android/news/1.0.0.rc1-released
So, Thanks who?
Thanks, Spring for that :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
Thursday, January 19, 2012
Adding AdSens (so called AdMob) to your Android application
Hello,
Want to add AdSense to your application, ok, simple, follow the link:
Google explains AdMob
So, Thanks who?
Thanks, Android2ee, the Android Programming Ebooks :o)
Mathias Séguy
mathias.seguy.it@gmail.com
Android2EE Author
Ebooks to learn Android Programming.
Meet me on Google+
Follow me on Twitter
Join my LinkedIn network or Viadeo one
Subscribe to:
Posts (Atom)