[android-beginners] Unable to run the application even once.

2009-08-25 Thread nitin

Hello, when I am trying to run the application for the first time, it
is giving error in console as:

[2009-08-25 12:47:24 - temp] --
[2009-08-25 12:47:24 - temp] Android Launch!
[2009-08-25 12:47:24 - temp] adb is running normally.
[2009-08-25 12:47:24 - temp] Launching: info.temp.temp
[2009-08-25 12:47:24 - temp] Automatic Target Mode: launching new
emulator.
[2009-08-25 12:47:24 - temp] Launching a new emulator.
[2009-08-25 12:47:24 - Emulator] invalid command-line parameter:
SDAndroid
[2009-08-25 12:47:24 - Emulator] Android Emulator usage: emulator
[options] [-qemu args]
.
.
.
.
.
[2009-08-25 12:47:24 - Emulator]  -help-keyset-file   key
bindings configuration file
[2009-08-25 12:47:24 - Emulator]  -help-all   prints
all help content
[2009-08-25 12:47:24 - Emulator]


I tried clearing windows/preferences/Android/Launch/Default Emulator
Option textbox, but no luck. Earlier 'SDAndroid' was written in this
box.

pls help.is some setting to do?

thanks
Nitin
--~--~-~--~~~---~--~~
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 this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Please help in creating simple text file

2009-08-25 Thread nitin

I'm setting these permissions, but I am not storing file in SD Card by
in data/files/ folder:








On Aug 24, 7:27 pm, Donn Felker  wrote:
> Are you setting the SDCard permission properly in the manifest?
>
>
>
>
>
> On Mon, Aug 24, 2009 at 7:22 AM, nitin  wrote:
>
> > though I was using 'this' as context in onCreate event. I ran the same
> > code after removing 'Context' as parameter, still same result. At last
> > I uninstalled the application from Emulator and restarted
> > everythingit worked with the same code :) Thanks for your
> > valuable timebut I am still thinking does Emulator not refresh
> > things properly?
>
> > On Aug 22, 2:46 pm, Mark Murphy  wrote:
> > > nitin wrote:
> > > > when i tried after changing the code like:
> > > > catch (IOException ioe) {
> > > > return ioe.toString();
> > > > }
>
> > > > Giving error:
> > > > java.io.FileNotFoundException:
> > > > /data/data/hello.world/files/test.txt
>
> > > > online samples are giving the same code...am i missing some
> > > > setting/permission? pls help
>
> > > Where are you getting the Context from? If it is your Activity instance,
> > > this code should work. If you are somehow creating your own Context
> > > object, then that might be the source of your problem -- use a Context
> > > given to you by Android, such as an Activity or Service object.
>
> > > --
> > > Mark Murphy (a Commons Guy)http://commonsware.com|
> >http://twitter.com/commonsguy
>
> > > Android App Developer Training:http://commonsware.com/training.html
>
> --
> Donnhttp://blog.donnfelker.com/- Hide quoted text -
>
> - Show quoted text -
--~--~-~--~~~---~--~~
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 this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Please help in creating simple text file

2009-08-24 Thread nitin

though I was using 'this' as context in onCreate event. I ran the same
code after removing 'Context' as parameter, still same result. At last
I uninstalled the application from Emulator and restarted
everythingit worked with the same code :) Thanks for your
valuable timebut I am still thinking does Emulator not refresh
things properly?

On Aug 22, 2:46 pm, Mark Murphy  wrote:
> nitin wrote:
> > when i tried after changing the code like:
> > catch (IOException ioe) {
> > return ioe.toString();
> > }
>
> > Giving error:
> > java.io.FileNotFoundException:
> > /data/data/hello.world/files/test.txt
>
> > online samples are giving the same code...am i missing some
> > setting/permission? pls help
>
> Where are you getting the Context from? If it is your Activity instance,
> this code should work. If you are somehow creating your own Context
> object, then that might be the source of your problem -- use a Context
> given to you by Android, such as an Activity or Service object.
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://twitter.com/commonsguy
>
> Android App Developer Training:http://commonsware.com/training.html
--~--~-~--~~~---~--~~
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 this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Please help in creating simple text file

2009-08-21 Thread nitin

when i tried after changing the code like:
catch (IOException ioe) {
return ioe.toString();
}

Giving error:
java.io.FileNotFoundException:
/data/data/hello.world/files/test.txt

online samples are giving the same code...am i missing some
setting/permission? pls help


On Aug 21, 6:30 pm, Mark Murphy  wrote:
> nitin wrote:
> > thanks for quick response, I am new to android and self learner. how
> > to see the adb logcat or in Eclipse.
>
> http://developer.android.com/guide/developing/tools/ddms.htmlhttp://developer.android.com/guide/developing/tools/adb.html
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://twitter.com/commonsguy
>
> Android App Developer Training:http://commonsware.com/training.html
--~--~-~--~~~---~--~~
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 this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Please help in creating simple text file

2009-08-21 Thread nitin

hello sir,

thanks for quick response, I am new to android and self learner. how
to see the adb logcat or in Eclipse.
Is there something wrong in above code or some setting is required?
please help, sample code will be useful.

Thanks


On Aug 21, 3:09 pm, Mark Murphy  wrote:
> nitin wrote:
> > hello,
>
> > I want to create a simple text file in data/data/com.my.package/files/
> > test.txt. My code is as follows:
>
> > private String CreateFile(Context context){
> >            try{
> >                    FileOutputStream fOut = context.openFileOutput
> > ("test.txt",MODE_WORLD_WRITEABLE);
> >                    fOut.close();
> >                    return "1";
> >            }
> >            catch(Exception e){
> >                    return e.getMessage();
> >            }
> >     }
>
> > I tried MODE_WORLD_READABLE also, but still gives error like:
> > data/data/com.my.package/files/test.txt
>
> That is not an error.
>
> Look at your Java stack trace to find the error. The Java stack trace
> can be obtained through adb logcat, DDMS, or the DDMS perspective in
> Eclipse.
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://twitter.com/commonsguy
>
> Need Android talent? Ask on HADO!http://wiki.andmob.org/hado- Hide quoted 
> text -
>
> - Show quoted text -
--~--~-~--~~~---~--~~
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 this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Please help in creating simple text file

2009-08-21 Thread nitin

hello,

I want to create a simple text file in data/data/com.my.package/files/
test.txt. My code is as follows:

private String CreateFile(Context context){
try{
FileOutputStream fOut = context.openFileOutput
("test.txt",MODE_WORLD_WRITEABLE);
fOut.close();
return "1";
}
catch(Exception e){
return e.getMessage();
}
}

I tried MODE_WORLD_READABLE also, but still gives error like:
data/data/com.my.package/files/test.txt


can anyone please helpvery urgent

Thanks
--~--~-~--~~~---~--~~
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 this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: android media Apps

2009-08-20 Thread nitin

hello,

I could not see Window/Android AVD Manager in Eclipse. I also tried to
see it after running the application in emulator, how can I see it?
could you please help?


On Jul 23, 5:01 pm, Kacper86  wrote:
> In Eclipse click Window/Android AVD Manager. There you can create a
> new instance of emulator. If you want it to have a virtual SD Card
> then fill in the field "SDCard" (e.g. you can fill it with "64M").
>
> I'm not sure if you can add a new card to an existing emulator.
>
> On Jul 23, 10:42 am, atharva chauthaiwale 
> wrote:
>
> > Hi friends,
> >                 I m trying to play a .mp3 file using MediaPlayer class on
> > android emulator . I referred code from ApiDemos. It says that media file
> > should be present on SD card. How do I emulate SD card on emulator? When I
> > tried to run default media player application it says SD card not installed.
> > Same error message I get while tryign to use camera. Thanks in advance for
> > help :)
>
> > Regards,
> > Atharva
--~--~-~--~~~---~--~~
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 this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Need help for displaying any layout as popup

2009-08-06 Thread nitin

hello all,

pls help me! how to display any layout (linear in my case) as popup on
click of some button or TableRow.  A sample code  will be very
helpful.pls help very urgent...could not find anywhere.

some thing like:

Toast toast = new Toast(this);
LinearLayout lay = (LinearLayout) findViewById(R.id.MyLayout);
toast.setView(lay);
toast.show();


Thanks
nitin

--~--~-~--~~~---~--~~
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 this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---