[android-developers] how to use aapt ---rename-manifest-package in command line

2011-11-03 Thread Sudha
Hi
I want to make two apks with diff package names using aapt
I am using the script
target name=change
echochnage manifest/echo
exec executable=${aapt} failonerror=true
arg value=add /
arg line=${v.option} /
arg value=-m /

arg value=-M /
arg path=AndroidManifest.xml /
 arg value=-S /
arg path=${resource.absolute.dir} /
arg value=-I /
arg path=${android.jar} /


arg value=--rename-manifest-package/
arg value=com.mybase.app/


/exec
/target

But where to see the resultant manifest file ?
if I give -F and the path a new apk with manifest and res is
created.How to integaret it with .class files /
can we do all these operations in a single step thru command line or
thru script ?
Pleas ehelp

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: how to use aapt ---rename-manifest-package in command line

2011-11-03 Thread Sudha
if you see the aapt help , there is an -R option but no description is
given for that

On Nov 3, 11:56 am, Sudha sudha...@gmail.com wrote:
 Hi
 I want to make two apks with diff package names using aapt
 I am using the script
 target name=change
         echochnage manifest/echo
         exec executable=${aapt} failonerror=true
             arg value=add /
             arg line=${v.option} /
             arg value=-m /

             arg value=-M /
             arg path=AndroidManifest.xml /
              arg value=-S /
             arg path=${resource.absolute.dir} /
             arg value=-I /
             arg path=${android.jar} /

         arg value=--rename-manifest-package/
             arg value=com.mybase.app/

         /exec
     /target

 But where to see the resultant manifest file ?
 if I give -F and the path a new apk with manifest and res is
 created.How to integaret it with .class files /
 can we do all these operations in a single step thru command line or
 thru script ?
 Pleas ehelp

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Android installer strange issue

2011-09-01 Thread Sudha
What I understood from your reply is that
if you press OPEN new instaces of teh appln willbe getting created
and if you press DONE and then start the app from menu , the appln
should resume ?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Android installer strange issue

2011-09-01 Thread Sudha
Then eventually the progam will crash

On Sep 1, 11:28 am, Sudha sudha...@gmail.com wrote:
 What I understood from your reply is that
 if you press OPEN new instaces of teh appln willbe getting created
 and if you press DONE and then start the app from menu , the appln
 should resume ?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Android installer strange issue

2011-08-31 Thread Sudha
But,
When you install and press done instead of open
and repeat this testing, the activity will resume form the place you
pressed menu button.
only when you press open and repeat it wont resume,it will restart.

So its not as per design I guess.else teh application should have
behaved the same way in both the scenarios.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Android installer strange issue

2011-08-30 Thread Sudha
Hi
I found a strange issue with android installer.I put the apk in the sd
card thru usb.Using file explorer I got the apk in teh device.Then
clicked and installed.then got the installated screen with open and
done buttons.If i say open then the application launches for teh first
time.
Now
1.while appln is opne, press menu button.appln gets minimized.
2.again open the application form the menu then appln restarts.
3.again repeat the steps 1 and 2

if application is taking high memory it will crash.else after
reapeting for 2 or 3 times press back button.you can see many
instances of the applna in teh back ground.

If you had seleced done and then open the appln thru the menu, the
appln wont restart.it will resume.
if you check the task manager you will see only one instance but by
pressing back button you can see many appln instances..

is this a device issue ? simple Hello world appln also has this issue.
I tested in samsung galaxy ,tabs, htc desire.all is having thsi issue
Please help

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] xml parser generator

2011-05-24 Thread Sudha
is there any android specific xml generator ?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] autoinstall from android market

2011-04-25 Thread Sudha
hi
I need to autoinstall new version of my app from android app maket
thru the same appln
1.can I detect the android market notification tru my appn ?
2.is ter any intend to pass the url and auto isnatll teh appn
3.what are the risk factors included  and how to handle them
4.is ter any machanism to revert back to teh previous version if any
network issue comes while auto installing ?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: how to convert colour image to black and white

2011-01-07 Thread sudha

Hi All,

I have resolved this problem. I have used following colormatrix to get
black n white picture:-

ColorMatrix cm1 = new ColorMatrix(new float[]{0.5f,0.5f,0.5f,0,0,
0.5f,0.5f,0.5f,0,0,
0.5f,0.5f,0.5f,0,0,
0,0,0,1,0,0,
0,0,0,0,1,0
});

Thanks to all.


On Jan 5, 12:54 pm, Ghanshyam Verma ghanshyamverm...@gmail.com
wrote:
 U CAN U PHOTO SCOP SOFTWARE

 On 1/5/11, sudha sudhagupta2...@gmail.com wrote:



  Hello all,

  I have a picture taken from android device camera, I have to convert
  the colour image to black n white.
  how can I do this?

  Thanks
  Sudha

  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-developers@googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.com
  For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

 --
 Regards ..
 *Ghanshyam Verma
 Mob-9355309157*

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: how to create pdf document using images

2011-01-06 Thread sudha
Hello Mark,

Thanks for your reply.
I have to create PDF at client side(in my android app). I have seen
this functionality in Document scanner trial version application
available in android market.
I wanted to know this can be done.

Thanks

On Jan 6, 6:25 pm, Mark Murphy mmur...@commonsware.com wrote:
 Step #1: Send the images to a server

 Step #2: Run a process on the server to convert the images into a PDF,
 by whatever means you feel appropriate (e.g., ImageMagick, generate an
 ODT document and use unoconv).



 On Thu, Jan 6, 2011 at 2:12 AM, sudha sudhagupta2...@gmail.com wrote:
  Hello,

  I have captured few images from camera, now I have to create pdf
  document using these images. please tell me how can I do this.

  Thanks
  Sudha

  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-developers@googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.com
  For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

 --
 Mark Murphy (a Commons 
 Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy

 Android 2.3 Programming Books:http://commonsware.com/books

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] how to create pdf document using images

2011-01-05 Thread sudha
Hello,

I have captured few images from camera, now I have to create pdf
document using these images. please tell me how can I do this.

Thanks
Sudha

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] how to convert colour image to black and white

2011-01-04 Thread sudha
Hello all,

I have a picture taken from android device camera, I have to convert
the colour image to black n white.
how can I do this?

Thanks
Sudha

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] how to select multiple images through intent and get their Uri in my activity to perform some task on thease images

2010-12-28 Thread sudha
Hello All,

I have to show all images from device  and user can select multiple
images, i have to get Uri of the selected images in my Activity.

I know how to select one image and get its Uri. I have done this
through following code:
Intent intent = new Intent();
intent.setType(image/*);
intent.setAction(Intent.ACTION_GET_CONTENT);

startActivityForResult(Intent.createChooser(intent, Select
Picture), 1);

issue is in how user can select multiple images.

Thanks
Sudha



-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] how to submit rating for the application to android market

2010-12-28 Thread sudha
Hello All,

I have to implement a functionality in my app, so that user can submit
his rating for the application to android app market(like the Iphone
Apps).

Is it possible to do implement this, if yes plz let me know how it can
be done.

Thanks
Sudha

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] idea for android app

2010-09-01 Thread sudha berde
Hello everyone,

Can anyone here help me out by giving a great idea on android
application??

I am desperately looking for a creative idea. Whenever i think of new
application and i think its not there, i ve been

wrong everywhere.

So please help me out.Thanks in advance!!

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: reading package name from apk file

2009-08-13 Thread Sudha

hello rk,

What am doing is not exactly automated test solution but partially
yes.

using ant scripts and tools in SDK like monkey (check below Link)...

http://developer.android.com/guide/developing/tools/monkey.html

I am generating some random input for testing games on Android
Platform.

- Sudhaker

On Aug 13, 11:46 am, rk raj.10...@gmail.com wrote:
 Sudha,

 Do you have automated test solution for Andorid?

 thanks
 raj

 On Aug 13, 11:42 am, Dianne Hackborn hack...@android.com wrote:

  Use the aapt command's dump subcommands.  For example aapt dump badging
  /path./to/.apk will print various interesting meta-data about the app.

  On Wed, Aug 12, 2009 at 10:45 PM, Sudha sudhaker...@gmail.com wrote:

   Hello Zero,

   What i want is just knowing the package name

   I donot wish to reverse engineer the code

   the main purpose is to write a script for automated testing like when
   a apk file is given in the script it installs the package on the phone
   and after testing some random test cases will uninstall the app from
   the device or emu

   for uninstalling the app from device using script what we must know is
   the package name so i want to parse the apk file not meant to
   reverse engineer..

   - Sudha

   On Aug 12, 7:22 pm, Zero zeroo...@googlemail.com wrote:
dude, maybe you should not try to mess with other ppls code if u don't
know basic reverse engineering. seriously.

On Aug 12, 3:26 pm, Sudha sudhaker...@gmail.com wrote:

 Hello,

 If i have a apk file and want to know the package name and class
 hierarchy, how do i do it?

 Suppose I have some sample APK file named SampApp.apk which contains
 classes inside com.android.sampApp.

 Is there any tool in Android SDK which shows the package name when APK
 file is passed as a parameter.

 As the Class files are compressed to dex file I am not able to check
 the actual package name.

 Regards:
 Sudha

  --
  Dianne Hackborn
  Android framework engineer
  hack...@android.com

  Note: please don't send private questions to me, as I don't have time to
  provide private support, and so won't reply to such e-mails.  All such
  questions should be posted on public forums, where I and others can see and
  answer them.- Hide quoted text -

  - Show quoted text -
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] reading package name from apk file

2009-08-12 Thread Sudha

Hello,

If i have a apk file and want to know the package name and class
hierarchy, how do i do it?

Suppose I have some sample APK file named SampApp.apk which contains
classes inside com.android.sampApp.

Is there any tool in Android SDK which shows the package name when APK
file is passed as a parameter.

As the Class files are compressed to dex file I am not able to check
the actual package name.

Regards:
Sudha
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] dialog is getting dismissed when I am flipping the device

2009-05-12 Thread Sudha

hi
I have created a dialogue to accept the name and password.
d = new Dialog(ctx);
d.setContentView(R.layout.login);

Button upload_button = (Button)d.findViewById(R.id.send_button);
upload_button.setOnClickListener(new View.OnClickListener()
{}
});
d.show();

It will display the dialog but if I flip the device the dialog will
get dismissed.
How can I avoid that .
I tried d.setcancelable(false)
it works for only back key

Please help me

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: dialog is getting dismissed when I am flipping the device

2009-05-12 Thread Sudha

is it a bug or desired behavior ?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: dialog is getting dismissed when I am flipping the device

2009-05-12 Thread Sudha



Thanks a lot
It worked !!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] How can I listen for MApView page load completed event Options

2009-05-10 Thread Sudha

Hi
In my application to load the map its taking time
so how can I detect when the map got loaded completely
plz help me ??
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Media Player sound state problems in G1

2009-05-08 Thread Sudha

By the way what are these states 1, 2, 128 etc.

Can't android people name it when raising exceptions so that
developers could know better what is the cause of exception?

I am getting full irritated because of these sound issues particularly
with the MediaPlayer and its states in android


On May 8, 10:33 am, Sudha sudhaker...@gmail.com wrote:
 I have nearly 28 sound files in which most of them have the duration
 less than a second (i.e in milliseconds), to reduce the delay in
 creating the player everytime, i created a player for each sound file
 i.e 28 MediaPlayers and each sound file plays on its own player and
 all the sounds are managed by a separate single thread (FYI only that
 sound thread can call these methods no other thread can start the
 sounds explicitly), so I can confirm that all the methos calling is
 done by a single thread.

 and regarding the other code, i have posted all what am using and the
 only other thing which is not here is the constructor which converts
 the given input stream to a file as the MediaPlayer cannot play sounds
 directly with a stream.

 (I am packing all the sounds in a single pack and open it at runtime
 and give the input stream to Player as it is done in J2ME, so again am
 converting the given input stream to a file.)
 Here is the below code of Constructor.

 protected PlayerImpl(String fileName1, InputStream inputstream)
 {
         fileName = fileName1;
         fileInputStream = inputstream;

         //Creates a FileOutput pointer to dump the InputStream., with
 permissions: 662 (rw- rw- -w-)
         FileOutputStream fOut = null;
         try{
                 fOut = Utils.getContext().openFileOutput
 (fileName,Context.MODE_WORLD_WRITEABLE);
         }
         catch(Exception filenotfound){
                 if (Utils.debugEnabled)
                         android.util.Log.d(Player ERROR,FileOutputStream 
 FAILED!);
         }
         //we dump the 'stream here...
         int n;
         try {
                 while ((n=inputstream.read(FOS_BUFFER))=0)
                 {
                         fOut.write(FOS_BUFFER, 0, n);
                 }
                 //we close fOut but DO NOT CLOSE fIn !!
                 fOut.close();
         } catch (IOException e1) {
                 if (Utils.debugEnabled)
                         android.util.Log.d(Player ERROR,temp file creation 
 FAILED);
         }

 }

 I dont think this Constructor has anything to do with the errors I
 get, to point-out mostly i found these errors are raised when the
 device is kept idle for sometime while sounds are playing, the device
 backlight goes off and device enters the idle state
 at this point all these exceptions are raised and with less
 reproducibility my game crashes.

 does the phone stop the sounds while it goes to standby mode?
 I have my own code to stop the sounds when an interrupt occurs, so
 does this conflict with the device method calls?

 On May 7, 7:59 pm, Marco Nelissen marc...@android.com wrote:

  Based on the code you posted, the stop called in state 2 is because you
  call stop() in your OnCompletionListener, which isn't necessary (it's
  already stopped at that point).
  I don't see how the other problems could happen with the code you posted,
  unless you have multiple threads accidentally using the same MediaPlayer, or
  there is some other code involved that you didn't post.

  On Thu, May 7, 2009 at 1:36 AM, Sudha sudhaker...@gmail.com wrote:

   Hi I am using MediaPlayer to play my sounds below is my another post

  http://groups.google.com/group/android-developers/browse_thread/threa...

   I tried all the possible ways stated in the above post but could not
   play sounds accordingly so changed the sound code as below,

   Now the sounds are working fine and no sound is getting skipped but am
   getting some errors which i cannot figure why they are coming...?

   Below are some errors:

   1-      E/MediaPlayer( 2173): stop called in state 1

   2-      E/MediaPlayer( 2173): stop called in state 2

   the above errors i get frequently and i get the below one's randomly,
   the game freezes and requires a force close when i encounter the below
   errors

   3-      E/MediaPlayer( 2173): setDataSource called in state 2
           W/System.err( 2173): java.lang.IllegalStateException
           W/System.err( 2173):    at
   android.media.MediaPlayer.setDataSource(Native Method)

   4-      E/MediaPlayer( 2173): setDataSource called in state 128
           W/System.err( 2173): java.lang.IllegalStateException
           W/System.err( 2173):    at
   android.media.MediaPlayer.setDataSource(Native Method)
           W/System.err( 2173):    at
   android.media.MediaPlayer.setDataSource(MediaPlayer.java:247)

   5-      E/MediaPlayer( 2173): prepareAsync called in state 128
           E/MediaPlayer( 2173): setDataSource called in state 128
           W/System.err( 2173): java.lang.IllegalStateException
           W/System.err( 2173

[android-developers] Android : MapView : slow loading of the map

2009-05-08 Thread Sudha

Hi
I got the G1.
When I am loading my mapview, mpa is getting displayed but it is
taking time.
so I want to give my own loading background and when the map gets
loaded fully
then I want to switch it to the map.
Any cluse to do this ?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Media Player sound state problems in G1

2009-05-07 Thread Sudha

Hi I am using MediaPlayer to play my sounds below is my another post

http://groups.google.com/group/android-developers/browse_thread/thread/8d1c01b055873f39#

I tried all the possible ways stated in the above post but could not
play sounds accordingly so changed the sound code as below,

Now the sounds are working fine and no sound is getting skipped but am
getting some errors which i cannot figure why they are coming...?

Below are some errors:

1-  E/MediaPlayer( 2173): stop called in state 1

2-  E/MediaPlayer( 2173): stop called in state 2

the above errors i get frequently and i get the below one's randomly,
the game freezes and requires a force close when i encounter the below
errors

3-  E/MediaPlayer( 2173): setDataSource called in state 2
 W/System.err( 2173): java.lang.IllegalStateException
 W/System.err( 2173):at
android.media.MediaPlayer.setDataSource(Native Method)

4-  E/MediaPlayer( 2173): setDataSource called in state 128
 W/System.err( 2173): java.lang.IllegalStateException
 W/System.err( 2173):at
android.media.MediaPlayer.setDataSource(Native Method)
 W/System.err( 2173):at
android.media.MediaPlayer.setDataSource(MediaPlayer.java:247)

5-  E/MediaPlayer( 2173): prepareAsync called in state 128
 E/MediaPlayer( 2173): setDataSource called in state 128
 W/System.err( 2173): java.lang.IllegalStateException
 W/System.err( 2173):at
android.media.MediaPlayer.setDataSource(Native Method)

6-  E/MediaPlayerService(   31): offset error
 E/MediaPlayer( 2173): Unable to to create media player

I have observed that all the sounds played atleast once in the game
without any error.

I want to know what are the states 1,2  128 and why are the errors
raised.

As per the 
http://developer.android.com/reference/android/media/MediaPlayer.html#Valid_and_Invalid_States
I suppose there is no problem in my code but y is that error shown...?

Plz check the below code:

public void stop() throws MediaException {
try
{
mp.stop();
mp.reset();
FileInputStream fIn = 
Utils.getContext().openFileInput(fileName);
if (fIn != null)
{
mp.setDataSource(fIn.getFD());
fIn.close();
}
}
catch(Exception e){e.printStackTrace();}
isPlayingSound = false;
}

public boolean isPlayingSound; //class member
MediaPlayer mp = null;
String last_req = ;
public void playSound(final String res) {
if (isPlayingSound){
return;
}
try {
if (!last_req.equals(res))
{
last_req = res;
mp = new MediaPlayer();

FileInputStream fIn = 
Utils.getContext().openFileInput(res);
if (fIn != null)
{
mp.setDataSource(fIn.getFD());
fIn.close();
}

mp.setOnCompletionListener(new
MediaPlayer.OnCompletionListener() {
public void onCompletion(MediaPlayer mp)
{
try
{
mp.stop();
mp.reset();
FileInputStream fIn = 
Utils.getContext().openFileInput(res);
if (fIn != null)
{

mp.setDataSource(fIn.getFD());
fIn.close();
}
isPlayingSound = false;
}
catch(Exception e){e.printStackTrace();}

}
});

mp.setOnErrorListener(new
MediaPlayer.OnErrorListener() {
public boolean onError(MediaPlayer mp, int 
what, int extra)
{
mp.release();
mp = null;
deleteSoundFile(res);
isPlayingSound = false;
last_req=;
System.gc();
new 
PlayerImpl(fileName,fileInputStream);
return false;
}
});

[android-developers] Re: Media Player sound state problems in G1

2009-05-07 Thread Sudha

I have nearly 28 sound files in which most of them have the duration
less than a second (i.e in milliseconds), to reduce the delay in
creating the player everytime, i created a player for each sound file
i.e 28 MediaPlayers and each sound file plays on its own player and
all the sounds are managed by a separate single thread (FYI only that
sound thread can call these methods no other thread can start the
sounds explicitly), so I can confirm that all the methos calling is
done by a single thread.

and regarding the other code, i have posted all what am using and the
only other thing which is not here is the constructor which converts
the given input stream to a file as the MediaPlayer cannot play sounds
directly with a stream.

(I am packing all the sounds in a single pack and open it at runtime
and give the input stream to Player as it is done in J2ME, so again am
converting the given input stream to a file.)
Here is the below code of Constructor.

protected PlayerImpl(String fileName1, InputStream inputstream)
{
fileName = fileName1;
fileInputStream = inputstream;

//Creates a FileOutput pointer to dump the InputStream., with
permissions: 662 (rw- rw- -w-)
FileOutputStream fOut = null;
try{
fOut = Utils.getContext().openFileOutput
(fileName,Context.MODE_WORLD_WRITEABLE);
}
catch(Exception filenotfound){
if (Utils.debugEnabled)
android.util.Log.d(Player ERROR,FileOutputStream 
FAILED!);
}
//we dump the 'stream here...
int n;
try {
while ((n=inputstream.read(FOS_BUFFER))=0)
{
fOut.write(FOS_BUFFER, 0, n);
}
//we close fOut but DO NOT CLOSE fIn !!
fOut.close();
} catch (IOException e1) {
if (Utils.debugEnabled)
android.util.Log.d(Player ERROR,temp file creation 
FAILED);
}

}

I dont think this Constructor has anything to do with the errors I
get, to point-out mostly i found these errors are raised when the
device is kept idle for sometime while sounds are playing, the device
backlight goes off and device enters the idle state
at this point all these exceptions are raised and with less
reproducibility my game crashes.

does the phone stop the sounds while it goes to standby mode?
I have my own code to stop the sounds when an interrupt occurs, so
does this conflict with the device method calls?

On May 7, 7:59 pm, Marco Nelissen marc...@android.com wrote:
 Based on the code you posted, the stop called in state 2 is because you
 call stop() in your OnCompletionListener, which isn't necessary (it's
 already stopped at that point).
 I don't see how the other problems could happen with the code you posted,
 unless you have multiple threads accidentally using the same MediaPlayer, or
 there is some other code involved that you didn't post.

 On Thu, May 7, 2009 at 1:36 AM, Sudha sudhaker...@gmail.com wrote:

  Hi I am using MediaPlayer to play my sounds below is my another post

 http://groups.google.com/group/android-developers/browse_thread/threa...

  I tried all the possible ways stated in the above post but could not
  play sounds accordingly so changed the sound code as below,

  Now the sounds are working fine and no sound is getting skipped but am
  getting some errors which i cannot figure why they are coming...?

  Below are some errors:

  1-      E/MediaPlayer( 2173): stop called in state 1

  2-      E/MediaPlayer( 2173): stop called in state 2

  the above errors i get frequently and i get the below one's randomly,
  the game freezes and requires a force close when i encounter the below
  errors

  3-      E/MediaPlayer( 2173): setDataSource called in state 2
          W/System.err( 2173): java.lang.IllegalStateException
          W/System.err( 2173):    at
  android.media.MediaPlayer.setDataSource(Native Method)

  4-      E/MediaPlayer( 2173): setDataSource called in state 128
          W/System.err( 2173): java.lang.IllegalStateException
          W/System.err( 2173):    at
  android.media.MediaPlayer.setDataSource(Native Method)
          W/System.err( 2173):    at
  android.media.MediaPlayer.setDataSource(MediaPlayer.java:247)

  5-      E/MediaPlayer( 2173): prepareAsync called in state 128
          E/MediaPlayer( 2173): setDataSource called in state 128
          W/System.err( 2173): java.lang.IllegalStateException
          W/System.err( 2173):    at
  android.media.MediaPlayer.setDataSource(Native Method)

  6-      E/MediaPlayerService(   31): offset error
          E/MediaPlayer( 2173): Unable to to create media player

  I have observed that all the sounds played atleast once in the game
  without any error.

  I want to know what are the states 1,2  128 and why are the errors
  raised.

  As per the
 http://developer.android.com/reference/android/media/MediaPlayer.html...
  I

[android-developers] Re: MediaPlayer.start() doesnot work fine after calling MediaPlayer.seekTo(0)

2009-04-28 Thread Sudha

Hi,

for now i have found a work around

In onCompletionListener() am resetting the player and setting
DataSource and then calling prepare() then start() so that no sounds
are skipped.

mp.setOnCompletionListener(new
MediaPlayer.OnCompletionListener() {
public void onCompletion(MediaPlayer mp)
{
try
{
mp.reset();
FileInputStream fIn = 
Utils.getContext().openFileInput(res);
if (fIn != null)
{
mp.setDataSource(fIn.getFD());
fIn.close();
}

isPlayingSound = false;
}
catch(Exception e){e.printStackTrace();}
}
});


But this way I am getting the below error but still the sounds are
being played, (i didn't observe any sound to be skipped).

 IllegalStateException: setDataSource() called in state 2

I dont know why am getting this exception coz as per below link call
to setDataSource() can be followed by reset(), Can anybody please
clarify this exception.

As per 
http://developer.android.com/reference/android/media/MediaPlayer.html#Valid_and_Invalid_States

I suppose We can also try:
mp.stop()
mp.prepare()
mp.seekTo(0)
mp.start()

i will try the above case, but want the answer to the
IllegalStateException..


On Apr 28, 8:03 am, niko20 nikolatesl...@yahoo.com wrote:
 Sorry you are right, I meant you have to pause. Worth a try anyway..

 On Apr 27, 4:19 pm, Dave Sparks davidspa...@android.com wrote:

  Try this:

  mp.prepare();
  mp.seekTo(0);
  mp.start();

  And get rid of your onPreparedListener. It is unnecessary since you
  are calling prepare().

  On Apr 27, 1:20 am, Sudha sudhaker...@gmail.com wrote:

   Hi,

   I have a requirement to play several sounds many times in my game so
   instead of creating the MediaPlayer again and again I have called
   mp.seekTo(0) in onCompletion(mp) so that it will restart.
   Sometimes the sound is not audible from the device when I call mp.start
   () after setting mp.seekTo(0); but the player calls onCompletion()
   without playing any sound, this is observed randomly on most of the
   sounds

   FYI:

     -  My sounds are of short duration mostly less than a second.
     -  I am using a separate MediaPlayer for each sound (as I need this)
     -  There are almost 28 sounds in my game so i will be creating 28
   MediaPlayers.
     -  Below is the attached code for player

   Also If I try to play many sounds one after the other in a short
   period of time i get an error saying no more track names available.
   can u tell Why this is happening...?

   check the below code:

   public boolean isPlayingSound; //class member
   MediaPlayer mp = null;
   String last_req = ;
   public void playSound(final String res) {
           if (isPlayingSound){
                   return;
           }
           try {

                   if (last_req.equals(res))
                   {
                           System.out.println(starting 
   again: +res); //
   Sudhaker
                           mp.start();
                           isPlayingSound = true;
                           return;
                   }
                   last_req = res;
                   mp = new MediaPlayer();

                   FileInputStream fIn = 
   Utils.getContext().openFileInput(res);
                   if (fIn != null)
                   {
                           //we tell the mediaplayer which file he needs to 
   play. notice we
   don't tell him if this is a MIDI, WAV, MP3 or even AVI for that
   matter.
                           //why? he is smart enough to recognize them!! we 
   don't even have to
   use valid extensions like say .mid, .mp3, .wav!!! ... WOAH!! =D
                           mp.setDataSource(fIn.getFD());
                           fIn.close();
                   }

                   mp.setOnPreparedListener(new
                   MediaPlayer.OnPreparedListener() {
                           public void onPrepared(MediaPlayer mp)
                           {
                                   mp.start();
                                   isPlayingSound = true;
                           }
                   });

                   mp.setOnCompletionListener(new
                   MediaPlayer.OnCompletionListener() {
                           public void onCompletion(MediaPlayer mp)
                           {
                                   System.out.println(sound playing 
   finished : +res +  and seek to
   start); //Sudhaker
                                   //mp.release();
                                   mp.seekTo(0);
                                   isPlayingSound = false;
                           }
                   });

                   mp.setOnErrorListener(new
                   MediaPlayer.OnErrorListener

[android-developers] Re: MediaPlayer.start() doesnot work fine after calling MediaPlayer.seekTo(0)

2009-04-28 Thread Sudha

Oops I tried the below code:

mp.setOnCompletionListener(new
MediaPlayer.OnCompletionListener() {
public void onCompletion(MediaPlayer mp)
{
mp.stop();
isPlayingSound = false;
}
});

then when the same sound is requested again called

mp.prepare();
mp.seekTo(0);
mp.start();

Even in this way most of the sounds are not played and am getting an
exception for prepare

E/MidiFile(   31): EAS_Prepare failed: [-31]
W/System.err( 4133): java.io.IOException: Prepare failed.:
status=0xFFFD
W/System.err( 4133):at android.media.MediaPlayer.prepare(Native
Method)

and the most important is my game's FPS dropped to the least and the
device is shedding its sweat to run the game. :(

Is there a simple way to play the sounds smoothly (i mean repeat the
sounds without creating them again  again or resetting it every
time...?)

coz if i reset am getting the IlleagalStateException even though the
setDataSource is called right after reset()...?

I cannot upgrade the SDK to 1.5 in the current situation but will try
the new SDK from my next project.

Can you please suggest me what to do in the current situation with SDK
1.1?


On Apr 28, 5:10 pm, Sudha sudhaker...@gmail.com wrote:
 Hi,

 for now i have found a work around

 In onCompletionListener() am resetting the player and setting
 DataSource and then calling prepare() then start() so that no sounds
 are skipped.

 mp.setOnCompletionListener(new
 MediaPlayer.OnCompletionListener() {
         public void onCompletion(MediaPlayer mp)
         {
                 try
                 {
                         mp.reset();
                         FileInputStream fIn = 
 Utils.getContext().openFileInput(res);
                         if (fIn != null)
                         {
                                 mp.setDataSource(fIn.getFD());
                                 fIn.close();
                         }

                         isPlayingSound = false;
                 }
                 catch(Exception e){e.printStackTrace();}
         }

 });

 But this way I am getting the below error but still the sounds are
 being played, (i didn't observe any sound to be skipped).

          IllegalStateException: setDataSource() called in state 2

 I dont know why am getting this exception coz as per below link call
 to setDataSource() can be followed by reset(), Can anybody please
 clarify this exception.

 As perhttp://developer.android.com/reference/android/media/MediaPlayer.html...

 I suppose We can also try:
 mp.stop()
 mp.prepare()
 mp.seekTo(0)
 mp.start()

 i will try the above case, but want the answer to the
 IllegalStateException..

 On Apr 28, 8:03 am, niko20 nikolatesl...@yahoo.com wrote:

  Sorry you are right, I meant you have to pause. Worth a try anyway..

  On Apr 27, 4:19 pm, Dave Sparks davidspa...@android.com wrote:

   Try this:

   mp.prepare();
   mp.seekTo(0);
   mp.start();

   And get rid of your onPreparedListener. It is unnecessary since you
   are calling prepare().

   On Apr 27, 1:20 am, Sudha sudhaker...@gmail.com wrote:

Hi,

I have a requirement to play several sounds many times in my game so
instead of creating the MediaPlayer again and again I have called
mp.seekTo(0) in onCompletion(mp) so that it will restart.
Sometimes the sound is not audible from the device when I call mp.start
() after setting mp.seekTo(0); but the player calls onCompletion()
without playing any sound, this is observed randomly on most of the
sounds

FYI:

  -  My sounds are of short duration mostly less than a second.
  -  I am using a separate MediaPlayer for each sound (as I need this)
  -  There are almost 28 sounds in my game so i will be creating 28
MediaPlayers.
  -  Below is the attached code for player

Also If I try to play many sounds one after the other in a short
period of time i get an error saying no more track names available.
can u tell Why this is happening...?

check the below code:

public boolean isPlayingSound; //class member
MediaPlayer mp = null;
String last_req = ;
public void playSound(final String res) {
        if (isPlayingSound){
                return;
        }
        try {

                if (last_req.equals(res))
                {
                        System.out.println(starting 
again: +res); //
Sudhaker
                        mp.start();
                        isPlayingSound = true;
                        return;
                }
                last_req = res;
                mp = new MediaPlayer();

                FileInputStream fIn = 
Utils.getContext().openFileInput(res);
                if (fIn != null)
                {
                        //we tell the mediaplayer which file he needs 
to play. notice we
don't tell him if this is a MIDI, WAV, MP3

[android-developers] Application doesnot quit on calling finish()

2009-04-28 Thread Sudha

Hi,

I have been developing a game on Android and wrote a wrapper for J2ME
classes,

When notifyDestroyed() is called in my ME program and calling finish()
but the application doesn't close correctly.

The App goes to background and when launched again it shows an error
message and presents an option to force close the App, if i force
close it and launch again, the app launches fine but again the same
has to be repeated upon every launch..

Can you please explain why the App is not being erased from memory
when finish() is called.\

when i check the log i found no exceptions when closing but when
launched again it throws a null pointer exception.

for now to work around I placed System.exit(0) after calling finish
() so that the app is exited abruptly, but am waiting for a valid
answer on whats going on behind...?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Application doesnot quit on calling finish()

2009-04-28 Thread Sudha

So can you please just brief me on where to concentrate and what all
should be done while closing an app so that it is entirely erased from
the memory when exited...?

On Apr 28, 5:51 pm, Jean-Baptiste Queru j...@android.com wrote:
 finish() doesn't close your application, is just closes your activity.
 The Appliction object itself stays behind, as well, as the entire
 process, as long as there's memory available to keep them around, so
 that re-launching your app is faster then next time around.

 JBQ



 On Tue, Apr 28, 2009 at 5:40 AM, Sudha sudhaker...@gmail.com wrote:

  Hi,

  I have been developing a game on Android and wrote a wrapper for J2ME
  classes,

  When notifyDestroyed() is called in my ME program and calling finish()
  but the application doesn't close correctly.

  The App goes to background and when launched again it shows an error
  message and presents an option to force close the App, if i force
  close it and launch again, the app launches fine but again the same
  has to be repeated upon every launch..

  Can you please explain why the App is not being erased from memory
  when finish() is called.\

  when i check the log i found no exceptions when closing but when
  launched again it throws a null pointer exception.

  for now to work around I placed System.exit(0) after calling finish
  () so that the app is exited abruptly, but am waiting for a valid
  answer on whats going on behind...?

 --
 Jean-Baptiste M. JBQ Queru
 Android Engineer, Google.

 Questions sent directly to me that have no reason for being private
 will likely get ignored or forwarded to a public forum with no further
 warning.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Application doesnot quit on calling finish()

2009-04-28 Thread Sudha

I could leave the process to OS to kill but if I want to launch it
again in no time i get exceptions as the memory allocated previously
is not being erased.

I am handling all the activities in the wrapper correctly but the
problem seems to be:

I have most of the references created and assigned to static variables

I mean all the instances of the objects are being referenced by static
variables, so might be all the variables are still hiding in the
memory even after the app has exited.

is there any other way to kill the process when finish() is called...?

On Apr 28, 6:10 pm, Jean-Baptiste Queru j...@android.com wrote:
 This is not the way Android works.

 JBQ



 On Tue, Apr 28, 2009 at 5:56 AM, Sudha sudhaker...@gmail.com wrote:

  So can you please just brief me on where to concentrate and what all
  should be done while closing an app so that it is entirely erased from
  the memory when exited...?

  On Apr 28, 5:51 pm, Jean-Baptiste Queru j...@android.com wrote:
  finish() doesn't close your application, is just closes your activity.
  The Appliction object itself stays behind, as well, as the entire
  process, as long as there's memory available to keep them around, so
  that re-launching your app is faster then next time around.

  JBQ

  On Tue, Apr 28, 2009 at 5:40 AM, Sudha sudhaker...@gmail.com wrote:

   Hi,

   I have been developing a game on Android and wrote a wrapper for J2ME
   classes,

   When notifyDestroyed() is called in my ME program and calling finish()
   but the application doesn't close correctly.

   The App goes to background and when launched again it shows an error
   message and presents an option to force close the App, if i force
   close it and launch again, the app launches fine but again the same
   has to be repeated upon every launch..

   Can you please explain why the App is not being erased from memory
   when finish() is called.\

   when i check the log i found no exceptions when closing but when
   launched again it throws a null pointer exception.

   for now to work around I placed System.exit(0) after calling finish
   () so that the app is exited abruptly, but am waiting for a valid
   answer on whats going on behind...?

  --
  Jean-Baptiste M. JBQ Queru
  Android Engineer, Google.

  Questions sent directly to me that have no reason for being private
  will likely get ignored or forwarded to a public forum with no further
  warning.

 --
 Jean-Baptiste M. JBQ Queru
 Android Engineer, Google.

 Questions sent directly to me that have no reason for being private
 will likely get ignored or forwarded to a public forum with no further
 warning.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] MediaPlayer.start() doesnot work fine after calling MediaPlayer.seekTo(0)

2009-04-27 Thread Sudha

Hi,

I have a requirement to play several sounds many times in my game so
instead of creating the MediaPlayer again and again I have called
mp.seekTo(0) in onCompletion(mp) so that it will restart.
Sometimes the sound is not audible from the device when I call mp.start
() after setting mp.seekTo(0); but the player calls onCompletion()
without playing any sound, this is observed randomly on most of the
sounds

FYI:

  -  My sounds are of short duration mostly less than a second.
  -  I am using a separate MediaPlayer for each sound (as I need this)
  -  There are almost 28 sounds in my game so i will be creating 28
MediaPlayers.
  -  Below is the attached code for player

Also If I try to play many sounds one after the other in a short
period of time i get an error saying no more track names available.
can u tell Why this is happening...?


check the below code:

public boolean isPlayingSound; //class member
MediaPlayer mp = null;
String last_req = ;
public void playSound(final String res) {
if (isPlayingSound){
return;
}
try {

if (last_req.equals(res))
{
System.out.println(starting again: 
+res); //
Sudhaker
mp.start();
isPlayingSound = true;
return;
}
last_req = res;
mp = new MediaPlayer();

FileInputStream fIn = Utils.getContext().openFileInput(res);
if (fIn != null)
{
//we tell the mediaplayer which file he needs to play. 
notice we
don't tell him if this is a MIDI, WAV, MP3 or even AVI for that
matter.
//why? he is smart enough to recognize them!! we don't 
even have to
use valid extensions like say .mid, .mp3, .wav!!! ... WOAH!! =D
mp.setDataSource(fIn.getFD());
fIn.close();
}

mp.setOnPreparedListener(new
MediaPlayer.OnPreparedListener() {
public void onPrepared(MediaPlayer mp)
{
mp.start();
isPlayingSound = true;
}
});

mp.setOnCompletionListener(new
MediaPlayer.OnCompletionListener() {
public void onCompletion(MediaPlayer mp)
{
System.out.println(sound playing finished : 
+res +  and seek to
start); //Sudhaker
//mp.release();
mp.seekTo(0);
isPlayingSound = false;
}
});

mp.setOnErrorListener(new
MediaPlayer.OnErrorListener() {
public boolean onError(MediaPlayer mp, int what, int 
extra)
{
mp.release();
mp = null;
deleteSoundFile(res);
isPlayingSound = false;
last_req=;
return false;
}
});

// mp.prepareAsync();
if (isLooping())
{
mp.setLooping(true);
}
mp.prepare();

} catch (Exception e) {
mp.release();
deleteSoundFile(res);
isPlayingSound = false;
mp = null;
new PlayerImpl(fileName,fileInputStream);
last_req=;
playSound(fileName);
}
}


please reply asap...

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] how to get storage path for photos, videos, tones, graphics, music and recording from the android handse

2009-01-15 Thread sudha

Hello,

i wanted Storage Path for  photos, videos, tones, graphics, music and
recording from the android  handset. In j2me  I have used following
perameters J2me to access path values:-

System.getProperty(fileconn.dir.photos);
System.getProperty(fileconn.dir.photos.name);
System.getProperty(fileconn.dir.memorycard.photos);
System.getProperty(fileconn.dir.memorycard.photos.name);

System.getProperty(fileconn.dir.videos);
System.getProperty(fileconn.dir.videos.name);
System.getProperty(fileconn.dir.memorycard.videos);
System.getProperty(fileconn.dir.memorycard.videos.name);

System.getProperty(fileconn.dir.tones);
System.getProperty(fileconn.dir.tones.name);
System.getProperty(fileconn.dir.memorycard.tones);
System.getProperty(fileconn.dir.memorycard.tones.name);

System.getProperty(fileconn.dir.graphics);
System.getProperty(fileconn.dir.graphics.name);
System.getProperty(fileconn.dir.memorycard.graphics);
System.getProperty(fileconn.dir.memorycard.graphics.name);

System.getProperty(fileconn.dir.music);
System.getProperty(fileconn.dir.music.name);
System.getProperty(fileconn.dir.memorycard.music);
System.getProperty(fileconn.dir.memorycard.music.name);

System.getProperty(fileconn.dir.recordings);
System.getProperty(fileconn.dir.recordings.name);
System.getProperty(fileconn.dir.memorycard.recordings);
System.getProperty(fileconn.dir.memorycard.recordings.name);

Can anyone tell me how can i access these values from the handset for
android.
its very urgent
Thanks
Sudha Gupta

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Installing a signed release apk over USB

2009-01-07 Thread Sudha Gupta
Hello,

I have developed a signed app, i want to test this app in G1 on device
anywhere.
i have uploaded this app on the web server. when I am downloading this app
on the G1, its not giving error on download but when i am installing it, its
giving error application install unsucessful.
plz tell me how can i download app on the G1 from the web server.

Plz help me
Sudha Gupta

On Wed, Jan 7, 2009 at 5:35 AM, Al Sutton a...@funkyandroid.com wrote:


 For accurate testing you should upload the apk to a website, and then
 download it from the site using the browser to go through the install
 procedure.

 adb install allows you to get away with some things that the non-adb
 install methods wont (e.g. signing of apps).

 Al.

 ivan wrote:
  How does one upload a signed apk file to their G1 (using the USB) for
  the final round of testing? ... or should I simply use Eclipse to Run
  as... on the phone to test the finally compilation, without actually
  installing the signed version?
 
  
 


 --
 ==
 Funky Android Limited is registered in England  Wales with the
 company number  6741909. The registered head office is Kemp House,
 152-160 City Road, London,  EC1V 2NX, UK.

 The views expressed in this email are those of the author and not
 necessarily those of Funky Android Limited, it's associates, or it's
 subsidiaries.


 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Problem with mapview again

2009-01-06 Thread Sudha

Hi
last month I had made a mapview to display the
google map(used the apikey) and
used the setCenter(geopoint).
it was working fine and moving to that part of the map.

but today when I cheked it again
what ever value I gave its moving to one location
in the water near green land.

But with the default application its working fine
I am using r2 sdk.

Please help ...


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] XML PULL PARSER

2009-01-05 Thread Sudha

Hi
I am tryting to read an xml file of the format
response
statusname/name/status
gravityg1/g1/gravity
/response

My xml pull parser is reading till to
status.but its not reading the gravity tag.
it reached ENd_DOCUMENT after reading /status

I understood that xmlpullparser can read only one level..
any idea ablout resolving the issue ?

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: how to update apk's Jad file in run time

2009-01-04 Thread sudha

can i make changes in classes.dex file like..can I replace any string
in classes.dex file with some other string(which is of the same
length) and rezip the file.
will this work for .apk on android??

Plz Help me Its urgent

Thanks
Sudha Gupta

On Dec 5 2008, 5:39 pm, Dianne Hackborn hack...@android.com wrote:
 An .apk is read-only, you can't modify it.

 On Thu, Dec 4, 2008 at 11:19 PM, Sudha Gupta sudhagupta2...@gmail.comwrote:



  Hello,
   I have a application in J2me, its a client server application. In this
  application user registers the handset(with the phone number) on the web
  site , In return server sends a message to the handset with the link to
  download the client application on the handset.
  before download of the client application, server appends few values(like
  device id, user id) in the jad file.
   I am developing the same application for Android, I wanted to know how
  this information (device id, user id) will be added in the apk in run time.

  Plz help me

  Thanks
  Sudha gupta

 --
 Dianne Hackborn
 Android framework engineer
 hack...@android.com

 Note: please don't send private questions to me, as I don't have time to
 provide private support.  All such questions should be posted on public
 forums, where I and others can see and answer them.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Device scroller issue

2008-12-08 Thread Sudha

Hi
I have converted one J2Me code to Android..
the problem is that
the Dpad( as apperas in teh emulator) works fine in teh emulator
But when I put it in the device ..
some times the device scroller works(its only a track ball..no Dpad as
seen in  the emulator)
and some times not.especially in the left and right direction..
any one faced any such issues..
please help ?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] how to update apk's Jad file in run time

2008-12-05 Thread Sudha Gupta
Hello,
 I have a application in J2me, its a client server application. In this
application user registers the handset(with the phone number) on the web
site , In return server sends a message to the handset with the link to
download the client application on the handset.
before download of the client application, server appends few values(like
device id, user id) in the jad file.
 I am developing the same application for Android, I wanted to know how this
information (device id, user id) will be added in the apk in run time.

Plz help me

Thanks
Sudha gupta

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Shares Preferences are not getting deleted

2008-11-12 Thread Sudha

I dont know anything about the viewing that file.
I didnt try..will try soon and tell u

as far as no one tried to help me out
I thot of makinganother apk which will
uninstall ur apks..
that should search in every folder and find out is tehre any traces of
it left ..etc etc
but I dont think thats the right one

and for linkers qnI dont have the handset...

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Shares Preferences are not getting deleted

2008-11-11 Thread Sudha

Hi
shared preferences are very simple.
1.create it
prefereceObj = context.getSharedPreferences(preferenceName,
modeOfAccess)
2.to write the data
1.obtain the editor
Editor edr= prefereceObj.edit();
2.use edr.putString(key, value)..putBoolean etc etc
3.edr.commit()

3.to read it
prefereceObj.getFloat(key, defaultvalue if the pref/key is not there);

4.that it...


but I am not getting my answer...
mine is like a game application.if u ones delete the game.. the data
will be there and
if you reinstall it teh game is using the old data..
thats bad...
how to do it...
its behaving like ur desktop application..if u delete the front end
the back end will be there..
hmmm

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Shares Preferences are not getting deleted

2008-11-11 Thread Sudha

hi
u can delete the values by using the clear() function
it wont delete the file..yaarr
its getting saved in data/data/ur apkpath/shared_prefs/urpref name.xml



On Nov 11, 4:52 pm, yasmin afrose [EMAIL PROTECTED] wrote:
 Thanks..I got the output...

 But still I didn't try the delete action.

 Thanks,
 Yasmin





 On Tue, Nov 11, 2008 at 4:56 PM, Sudha [EMAIL PROTECTED] wrote:

  Hi
  shared preferences are very simple.
  1.create it
  prefereceObj = context.getSharedPreferences(preferenceName,
  modeOfAccess)
  2.to write the data
  1.obtain the editor
  Editor edr= prefereceObj.edit();
  2.use edr.putString(key, value)..putBoolean etc etc
  3.edr.commit()

  3.to read it
  prefereceObj.getFloat(key, defaultvalue if the pref/key is not there);

  4.that it...

  but I am not getting my answer...
  mine is like a game application.if u ones delete the game.. the data
  will be there and
  if you reinstall it teh game is using the old data..
  thats bad...
  how to do it...
  its behaving like ur desktop application..if u delete the front end
  the back end will be there..
  hmmm

 --
 Everything is Possible For U only- Hide quoted text -

 - Show quoted text -
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Shares Preferences are not getting deleted

2008-11-11 Thread Sudha

Yes
it seems to be the same..
same case with your sqlite also..
since teh data is getting saved in data/data folder
and ur application in data/app folder
when u r deleting from ur emulator ( as far as I know)
we are deleting it from the data/app folder only
so the data wont getting deleted..

So I wanna know is there any specific apk or batch file in the device
which will delete all the application realted data once you remove the
apk...
?
experts plz help

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Shares Preferences are not getting deleted

2008-11-10 Thread Sudha

Hi
I am using sharepreferences in my application in the mode
MODE_PRIVATE.
its working fine.But when I am deleting my application from the
emulator and installing it
takes the values from the old sharedpreference..that means when I am
deleting its not removing teh sharedpreference...
any solution for that ?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Shares Preferences are not getting deleted

2008-11-10 Thread Sudha

hi
what I did is I created a sharedpreference to store my application
data..
when the application is deleting..its not removing the data stored.
just like our desktop application..
thats the problem faced by me.. so I want toknow is there nayway to do
that..

Plz mention ur problem so that I can help u


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: How to put apk to G1 Phone

2008-10-24 Thread Sudha



thanks for your reply
But this is for working in the debug mode..
Suppose I had my certified apk and want to download into the device
then ?

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] if I include the classes.zip of J2Me ??

2008-10-24 Thread Sudha

hi
I have a stupid question
suppose thru the eclipse if I put the J2Me classes.zip file to my
android project.
and I just create an Activity and a view which
only calling or directing the lifecycle methods of j2me
will it work ?

I am dare to try this out...
can anyone show some light on this
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] How to put apk to G1 Phone

2008-10-23 Thread Sudha

Hi
can anyone tell me how to install my apk to a G1 phone ?
ota , datta cable ?
after downloading do I need to install the apk ?
Thanks
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Problem with MapView

2008-10-22 Thread Sudha

hi all
I was using the Mapview and was getting the map and the application
was working fine
till to 3 pm today..
then after it started to show the grey grid... no map

those who are having the map application plz chek that agian..
is it the problem with the google server ?


On Oct 17, 7:33 pm, Matthias [EMAIL PROTECTED] wrote:
 oh boy... I have figured out what went wrong...

 I used the geo command to send location fixes, but this thing takes
 GPS coordinates as lon/lat pairs, not as lat/lon (like any GEO-related
 API that I have ever seen does), so the map dropped me in some
 uncharted lands (which were gray...).

 Great, one more wasted day thanks to terrible user interface
 design. :-/

 On Oct 17, 4:08 pm, Matthias [EMAIL PROTECTED] wrote:



  darn, nevermind... the Maps demo in ApiDemos is also missing that
  file, produces the same error, but it does show a map.

  this is getting more obscure with every minute.

  On Oct 17, 3:56 pm, Matthias [EMAIL PROTECTED] wrote:

   Yes, I do have a location set.

   I think I know where the problem originates from though. As has
   appeared in the log traces before, the gray map thing seems to happen
   when the error Couldn't find file /data/data/your-app-package/
   DATA_Tiles occurs; from my understanding, this file holds the map
   tile data from which a map is constructed. If that file is missing,
   well, then no map will be rendered of course.

   I don't know why my application package is missing that file. This
   should be handled by the runtime of course. I will now try to manually
   copy that file over from another (working) package to my package and
   check if that'll fix it.

   On Oct 17, 3:10 pm, Ludwig [EMAIL PROTECTED] wrote:

Do you actually have a location set? I vaguely remember that I once had 
the
grey screen, where it was not the permission to get the data off the 
net,
but the fact that the view did not know what/where to view.
Ludwig

2008/10/17 Matthias [EMAIL PROTECTED]

 That didn't work for me. I am still getting a grey plane where the map
 should be. :-/

 Any other ideas?

 On Aug 20, 9:32 pm, Megha Joshi [EMAIL PROTECTED] wrote:
  Move the uses-permission tags above the application tag:

   uses-permission
 android:name=android.permission.ACCESS_COARSE_LOCATION
  /
     uses-permission android:name=android.permission.INTERNET /

      application android:icon=@drawable/icon
  android:label=@string/app_name
       uses-library android:name=com.google.android.maps /

  On Wed, Aug 20, 2008 at 3:44 AM, dapper [EMAIL PROTECTED] wrote:

   Hi there,

   I am just starting out with android and for my first app after the
   tutorial I would like to display a Map. I have basically taken the
   Sample code and put it into my own project. However I only seem 
   to get
   the grey grid and no map. Can anyone help (banging my head here). 
   I am
   using 0.9.

   I know it is something stupid but can't see it.

   Thanks

   This is my main.xml

   ?xml version=1.0 encoding=utf-8?
   LinearLayout xmlns:android=http://schemas.android.com/apk/res/
   android
          android:layout_width=fill_parent
      android:layout_height=fill_parent
      com.google.android.maps.MapView
          android:id=@+id/map
          android:layout_width=fill_parent
          android:layout_height=fill_parent
          android:enabled=true
          android:clickable=true
          android:apiKey=mymapkey
          /
   /LinearLayout

   My code

   public class HotelCompanion extends MapActivity {

          MapView mMapView;

     [EMAIL PROTECTED]
      public void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.main);
          MapView map = (MapView) findViewById(R.id.map);
          MapController mc = map.getController();
          mc.setZoom(9);
      }

         [EMAIL PROTECTED]
          protected boolean isRouteDisplayed() {
                  return false;
          }
   }

   and my manifest

   ?xml version=1.0 encoding=utf-8?
   manifest 
   xmlns:android=http://schemas.android.com/apk/res/android;
      package=dharmesh.android.hotel
      application android:icon=@drawable/icon 
   android:label=@string/
   app_name
      uses-library android:name=com.google.android.maps /

      uses-permission
   android:name=android.permission.ACCESS_COARSE_LOCATION /
      uses-permission android:name=android.permission.INTERNET /

          activity android:name=.HotelCompanion
   android:label=@string/app_name
              intent-filter
                  action android:name=android.intent.action.MAIN 
   /
                  category
   

[android-developers] Re: skia : error in decode file

2008-10-05 Thread Sudha

Hi
My code is like

imageStream = new FileInputStream(new File(+imageNames[position]));
imageShow = BitmapFactory.decodeFile(+imageNames[position]);
imageStream.close();

for the first image, position = 0 its coming fine
but from next image onwards its showing the skia exception

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] skia : error in decode file

2008-10-03 Thread Sudha

Hi I had a strange problem
I am reading the images from the sdcard which are taken using the
camera in a for loop .
1st image is coming fine
and from second image onwards
I am getting
skia  fialure readaeing
skia  jpeg setjump exit
I am reading the image as
imageShow = BitmapFactory.decodeFile(+imageNames[position]);

I tried decodeStream() ,decodeBytearay etc
same isssues repeats
but the first image is coming proper..
Plz help mee

I am using 0.9 sdk


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Synchronization issue:plz help

2008-10-02 Thread Sudha

Hi all
I am facing one issue with Listactivity and progressDialogue.

I have a class extending ListActivity.
and in  onListItemClick()
when I am clicking one item
it should display the dialogue box and then do teh calculation and
tehn dismiss teh dialogye
I have writen the code like

progressDialogue.show (...)
postInvalidate()
calculation
progressDialogue.dismiss();
postInvalidate()

but the dilaogue is getting displayed but not going from teh screen
after the calculation.
how to resolve this sync issue ?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Alignment issue related to ListView

2008-10-01 Thread Sudha

thnaks
but no change !
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Alignment issue related to ListView

2008-09-30 Thread Sudha

My layout looks like  this way

?xml version=1.0 encoding=utf-8?
LinearLayout xmlns:android=http://schemas.android.com/apk/res/
android
android:orientation=vertical
android:layout_width=fill_parent
android:layout_height=fill_parent

ListView  android:id=@id/android:list
 android:layout_width=fill_parent
 android:layout_height=0dip
 android:layout_weight=1
 android:cacheColorHint=#
 android:layout_centerHorizontal=true
 android:background =@drawable/b1
 /

TextView  android:id=@id/android:empty
 android:layout_width=fill_parent
 android:layout_height=fill_parent
 android:text=/

/LinearLayout

But the list is coming in the top left corner.
1.how to align the listview such that it takesup teh entire screen.
I tried to change the weight value.But no effect
2.how to put the list viw in the center of the screen
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] ProgressBar no coming on a ListActivity

2008-09-30 Thread Sudha

Hi
I am having a ListActivity
in the onListItemClick() of an item I need to do some processing
so I need to show a progressbar on the screen.

But ProgressBar is not getting shown
I gave probar.show()
no effect
plz help
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: ProgressBar no coming on a ListActivity

2008-09-30 Thread Sudha

I tried
//myProgressDialog.show();
//myProgressDialog.setView(getCurrentFocus());
//requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS);
// setProgressBarVisibility(true);
nothing worked
Please help
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: How to read a file from res/text folder

2008-09-29 Thread Sudha

Thanks for your help.
I made another one.
made a folder called raw and placed my file
InputStream is = resources.openRawResource(R.raw.text);
It worked fine

Thanks a lot for your help
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] How to read a file from res/text folder

2008-09-28 Thread Sudha

I have a file in res/text/
I need to read it.
we use getClass().getResourceAsStream(/text/text.txt) in J2Me.
How it can be possible in android ?

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: create a calendar in android

2008-09-24 Thread Sudha


I am very new to android.
I have a small idearather stupid..
I dont know whether it will work or not.

Android works on unix..so cant we invoke the unix commands (shell
commnads )through android
and get the result ?
like for creating the calender
can we use the
cal month year
command in unix ?

Plz correct me if I am wrong ?
cant we use the kernal like this way ?
is there any such chance ?

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Where does the emulator look for the SD Card Image File ?

2008-09-24 Thread Sudha

sorry Ludwing
..

the issue for 1.0 remains same for me
I tried it many times closing and re opening the emulator..

is the camera and teh pics in teh picture folder works the same way as
in 0.9 ?
When I opend the /sdcard/dcim/camera in 0.9 its a folder with a pid
file inside
But in 1.0 is a file.

I tried to do the adb pull...
I am in utter confusion


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] can we invoke the unix or shell commnads in our application

2008-09-24 Thread Sudha

hi
I have a stupid idea .
is there any way to invoke the shell commnads in the apllication and
get the result..
eg.. to get the calender there is no widget in android
so can we use the
cal month year command in shell to get teh calender ?

Please put your responses


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Where does the emulator look for the SD Card Image File ?

2008-09-24 Thread Sudha

in addition to the above mail

I tried  to pull out the default image coming the camera
folder( apperas in the pictures in the emulator) and tried to push teh
same back to /sdcar/dcim/camera.
now also teh image appreas liek red block and blank screen when
selected..

Nothing is happening with the 1.0
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] problem when moving image to the sdcard

2008-09-23 Thread Sudha

I tried to copy one jpg image to teh sdcard using
push h.jpg /sdcard/dcim/camera

when I open the pictures in the emulator
a redcolor rectangle comes and a blank screen is shown
why so ?
how can I see the copied image in the pictures ?

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Removal of javax.microedition.lcdui.Graphics

2008-09-10 Thread Sudha

I was using M5 .Now I switched my application to SDK 0.9.
I am getting the error on eclipse that
the import  javax.microedition.lcdui.Graphics cannot be resolved.
In my program I am using the
Graphics.TOP|Grpahics.LEFT.

Can any one help me to find
whether that option is removed , why and anywhere else it is
implemented ?
Thanks

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Removal of javax.microedition.lcdui.Graphics

2008-09-10 Thread Sudha

I was using M5 .Now I switched my application to SDK 0.9.
I am getting the error on eclipse that
the import  javax.microedition.lcdui.Graphics cannot be resolved.
In my program I am using the
Graphics.TOP|Grpahics.LEFT.

Can any one help me to find
whether that option is removed , why and anywhere else it is
implemented ?
Thanks

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---