Additional Information Available on:
Cal Poly Web Site with Android material: https://sites.google.com/site/androidappcourse/home
code.google.com/android
anddev.org
Look through Lunar Lander example for sprite manipulation and physics engine
Should know more java (basic concepts like):
Inner class, polymorphism
Note to self: look up Josh Block book - Intermediate & Advanced Java concepts
Adding Audio:
Add song.mp3 to res/raw/song.mp3 folder
Warning: filenames must be all lowercase! To solve, refactor all filenames.
For Video Viewing:
Use android.widget.VideoView
Play videos in mp4, etc.
Bringing up a web browser (Sample Code)
case 0:
Uri uri = Uri.prase("http://developer.android.com");
Intent inetnt = new Intent(Intent.ACTION_VIEW, uri);
startActivity(intent);
break;
Use Content Providers for Text Messages
Content Providers for Cameras and Camcorders
Always access via 'content://'
Needs a unique string identifying the content provider
Optional to have more than one data type
Optional to have instances of a given data type
Steps to create a Content Provider
1.) Create Provider Class (Includie a static final that defines your content uri)
2.) Create Properties
3.) Update Manifest
Underlying system is Linux based - use same formatting for locations (i.e. use all undercase)
To get external storage - from android.os
Environment.getExternalStorageDirectory()
Environment.getExternalStoragePublicDirector()
I also might be collaborating with some of my fellow classmates on projects outside of class!
No comments:
Post a Comment