[android-beginners] Playing Sound

2009-01-06 Thread Honest
I am learning API related to sound playing. I was understanding code for it. The code is as below. private void playAudio(Integer media) { try { switch (media) { case LOCAL_AUDIO: /** * TODO: Set the path variable to a

[android-beginners] Re: send gps location through Eclipse and be nofified through LocationListener.onLocationChanged

2009-01-06 Thread Miroslav Slobodnik
Can anybody help me? Android SDK version 1.0_r2. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from

[android-beginners] Re: Playing Sound

2009-01-06 Thread Jonathan Parker
This is showing a dialog to the user to tell them to enter a path. You should handle if path = after they close the dialog as well. On Tue, Jan 6, 2009 at 7:54 PM, Honest honestsucc...@gmail.com wrote: I am learning API related to sound playing. I was understanding code for it. The code is

[android-beginners] Re: -Help- Something happened to my SDK - Resources wont load

2009-01-06 Thread g1port.com
Hi, It is not easy to 'damage' R.java file. Do you see error (exc. mark) on your png file in res folder? Did you make sure that your filename is correct? (no CAPITAL for example, even in file extension). You can also try deleting file from res folder, right click and refresh folder and than

[android-beginners] Re: Where can I get android web services information

2009-01-06 Thread g1port.com
Hi Wall. There is no Android soap library yet in framework. You can use 3rd party libraries for web services or alternatively, depending on your need you may use HttpClient classes. On Jan 2, 3:24 pm, wall surya@gmail.com wrote: Hi, Where can I get android web services information, I know

[android-beginners] Problem in Playing sound

2009-01-06 Thread Honest
I am playing sound by putting one folder which contains sound file. The coding is as below to play file. mMediaPlayer = MediaPlayer.create(this, R.raw.test_cbr); mMediaPlayer.start(); Test_cbr.mp3 is a file which i put in RAW folder which is available in RES folder. But when i am

[android-beginners] Re: Saving Files

2009-01-06 Thread g1port.com
Search for SharedPreferences class. http://code.google.com/android/reference/android/content/SharedPreferences.html Cheers. On Dec 31 2008, 4:53 am, Neelima neelima.neelu...@gmail.com wrote: Hi.. Is it possible to store application specific data in android phone. Please help if anyone

[android-beginners] Re: Reuse Drawables

2009-01-06 Thread g1port.com
Hi Immy, it should not be about reusing your image - sure you can use them from within all activities. Can you post some code? On Dec 30 2008, 7:44 am, Immy immanueln2...@gmail.com wrote: Hi.. I have reused drawable's in the second activity. The reused drawable are not seen on the screen of

[android-beginners] problem getting the files

2009-01-06 Thread baba vali
hi all, i am getting images and displaying them from the local files(data/data/mypackage/file) thru bitmap then i am facing error like this 01-06 20:55:02.879: ERROR/AndroidRuntime(1008): java.lang.OutOfMemoryError: bitmap size exceeds VM budget 01-06 20:55:02.879: ERROR/AndroidRuntime(1008):

[android-beginners] error: No repository found at https://dl-ssl.google.com/android/eclipse/.

2009-01-06 Thread Anil
Is anyone able to download and install the ADT plugin from ubuntu? (seems to be fine from windows). I am on ubuntu 8.10/eclipse 3.4.1 and get this error message: No repository found at https://dl-ssl.google.com/android/eclipse/. thanks, Anil --~--~-~--~~~---~--~~

[android-beginners] Re: -Help- Something happened to my SDK - Resources wont load

2009-01-06 Thread novice
Turns out the automatically R did not have the right package attached. I needed my package.blah blah.R but the one that was automagically added was an R but not of my package. Hopefully that made sense to somebody. Thanks for the replies. --~--~-~--~~~---~--~~

[android-beginners] Cannot start a sub activity

2009-01-06 Thread novice
Hello, I'm trying to follow the example of lunching a preference but when its time to run: Intent launchPreferencesIntent = new Intent().setClass(this, options_menu.class); startActivityForResult(launchPreferencesIntent, REQUEST_CODE_PREFERENCES); My application craps out. I can only spawn

[android-beginners] Re: Cannot start a sub activity

2009-01-06 Thread Mark Murphy
novice wrote: I'm trying to follow the example of lunching a preference but when its time to run: Intent launchPreferencesIntent = new Intent().setClass(this, options_menu.class); startActivityForResult(launchPreferencesIntent, REQUEST_CODE_PREFERENCES); You have a class named

[android-beginners] Re: Cannot start a sub activity

2009-01-06 Thread novice
Well, I check the manifest.xml and there is only one activity tag located and it looks like it describes the launcher activity. The DDMS shows: [2009-01-06 18:24:59 - DeviceMonitor]Error reading jdwp list: null My guess is I need to include that second activity? If I do how can I add it

[android-beginners] Re: Cannot start a sub activity

2009-01-06 Thread Mark Murphy
novice wrote: Well, I check the manifest.xml and there is only one activity tag located and it looks like it describes the launcher activity. The DDMS shows: [2009-01-06 18:24:59 - DeviceMonitor]Error reading jdwp list: null My guess is I need to include that second activity? Yes.

[android-beginners] Re: Cannot start a sub activity

2009-01-06 Thread novice
THANK YOU SIR!! That did it. I would never have guessed that. Thanks again. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to

[android-beginners] Re: making connections online

2009-01-06 Thread Fender
Thanks anyone! Any links to tutorials or any articles to get me started? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to

[android-beginners] Re: Where's my ContentProvider

2009-01-06 Thread Mark Murphy
Faber Fedor wrote: I'm trying to build my first ContentProvider using the example in Mark's book A Busy Coder's Guide To Android Development (which I suggest other n00bs like me should read :-). Many thanks! My database is created; I can go in via the command line/SQLite interface and play

[android-beginners] Re: Where's my ContentProvider

2009-01-06 Thread Faber Fedor
On Tue, Jan 6, 2009 at 8:43 PM, Mark Murphy mmur...@commonsware.com wrote: Faber Fedor wrote: locationsCursor is alway null, nothing is displayed, and logcat complains E/ActivityThread( 387): Failed to find provider info for com.appspot.lbtdl That suggests either your provider is not

[android-beginners] Re: Where's my ContentProvider

2009-01-06 Thread Mark Murphy
Faber Fedor wrote: So the class name goes into the manifest. what is my CONTENT_URI then? I'm assuming it's content://com.appspot.lbtdl. Since I have a table called locations, I'll access all of the locations with content://com.appspot.lbtdl/locations, right? You can. There's nothing

[android-beginners] Re: Where's my ContentProvider

2009-01-06 Thread Mark Murphy
Faber Fedor wrote: What *is* magic is that there is a public static final Uri named CONTENT_URI, and that this Uri is the base Uri for your provider, and that it begins with content://. I must be missing something since that doesn't seem magical to me. Sorry. By magic I mean it

[android-beginners] Re: problem getting the files

2009-01-06 Thread baba vali
the images are only thumbnails so it cant b big sizes i am getting this after loading 15 0r 16 files 01-07 11:22:56.603: ERROR/dalvikvm-heap(198): 1572864-byte external allocation too large for this process. 01-07 11:22:56.603: ERROR/(198): VM won't let us allocate 1572864 bytes 01-07