[android-developers] Re: How to do file handling in android

2008-05-04 Thread Naveen Garg
Thanks Bruno!! It was really helpful. I would appreciate if you could tell me how to do this using SD Card. On May 5, 10:46 am, Bruno Sauer <[EMAIL PROTECTED]> wrote: > here's a start: put a "Hello World" message in a file named > 'res/raw/helloworld' then try this:Stringmessage= ""; //

[android-developers] Re: Static variables or variables, saved in Bundle?

2008-05-04 Thread Bruno Sauer
without having looked at snake, that's probably got to do with the "Activity Lifecycle" described in http://code.google.com/android/reference/android/app/Activity.html There's also a good description of architecture fundamentals on youtube http://www.youtube.com/watch?v=QBGfUs9mQYY&feature=Pla

[android-developers] Mock Location Provider

2008-05-04 Thread scorpio
hi, i am creating a mock location provider for Chennai (India). I created few sentences in nmea file, the locations file and properties file. But i came across some problem . 1. How to get the checkSum value ? 2. using push, shall we can push the folder(test1) to eclipse. please reply immeadiat

[android-developers] Re: How to do file handling in android

2008-05-04 Thread Bruno Sauer
here's a start: put a "Hello World" message in a file named 'res/raw/helloworld' then try this:     String message = ""; // get message from file     Resources resources = getResources();         InputStream xmlStream = resources.openRawResource( R.raw.helloworld );         try {    

[android-developers] Re: All Screen Size...

2008-05-04 Thread Dan U.
http://code.google.com/android/devel/resources-i18n.html#AlternateResources On May 4, 9:45 pm, baskar <[EMAIL PROTECTED]> wrote: > Hi All, > > How to implement my application on all screen sizes in the > emulator?... > > Regards, > Baskar. --~--~-~--~~~---~--~~

[android-developers] Re: Static variables or variables, saved in Bundle?

2008-05-04 Thread Dan U.
http://groups.google.com/group/android-developers/browse_thread/thread/502fe58d8ed44102 might be of help. On May 4, 10:12 pm, vitvikt <[EMAIL PROTECTED]> wrote: > Hi, all > > Can anybody say, for what purpose in Snake example saveState() used? > Before this function we can read: > /** > * Sa

[android-developers] AlertDialog Existence Check

2008-05-04 Thread Greg
how can I check if alerdialog has been shown on the screen i mean i just want to do that if alertdialog is already shown then i don’t want to show it again ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android

[android-developers] Re: PNG size changed

2008-05-04 Thread hackbod
aapt recompresses all PNG images as part of building the application's resources. One of the purposes for this is to make sure they are as small as possible, but clearly there is something broken here. :} On May 4, 6:50 am, sasuke <[EMAIL PROTECTED]> wrote: > I have a PNG image with 86 KB in siz

[android-developers] Static variables or variables, saved in Bundle?

2008-05-04 Thread vitvikt
Hi, all Can anybody say, for what purpose in Snake example saveState() used? Before this function we can read: /** * Save game state so that the user does not lose anything * if the game process is killed while we are in the * background. * * @return a Bundle with this vi

[android-developers] All Screen Size...

2008-05-04 Thread baskar
Hi All, How to implement my application on all screen sizes in the emulator?... Regards, Baskar. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to a

[android-developers] How to do file handling in android

2008-05-04 Thread Naveen Garg
Please let me know how to do file handling in Android. Some sample code will be of great use to me. Thanking in advance, Naveen --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to t

[android-developers] Re: Edit Text Max Limit charactars

2008-05-04 Thread Greg
hello any body there who can help me ? On May 2, 10:34 pm, David Given <[EMAIL PROTECTED]> wrote: > Greg wrote: > > hello u there?? > > Um, you only posted your message three minutes ago. You may want to wait > a little longer before following up, like about 24 hours. > > -- > ┌─── dg@cowlark.com

[android-developers] Re: Add RelativeLayout in LinearLayout thru code

2008-05-04 Thread Dan U.
Your code works fine for me. Do you have more information about the crash? Is there a stack trace? I did change it a bit to let me test with an xml layout (I tested both with xml layout and programmatically): class ViewLayout extends LinearLayout { public ViewLayout(Context context, Attr

[android-developers] Add RelativeLayout in LinearLayout thru code

2008-05-04 Thread dreamer
I want to add a relativelayout in linearlayout in my code: My code is: class ViewLayout extends LinearLayout { ViewLayout(Context context) { .. try{ RelativeLayout rel = new RelativeLayout(context); // create rel layout RelativeLayout.LayoutParams relLayout = new R

[android-developers] Re: how to detect longpress on touchscreen?

2008-05-04 Thread Evan JIANG
Hi, What about in onTouchEvent, check the MotionEvent event's getDownTime()? Regards, Evan JIANG On Sun, May 4, 2008 at 10:16 PM, Chenguo <[EMAIL PROTECTED]> wrote: > > hi,everyone! > Can anybody tell me that how to detect longpress on touchscreen and > get the longpress-point's lo

[android-developers] how to detect longpress on touchscreen?

2008-05-04 Thread Chenguo
hi,everyone! Can anybody tell me that how to detect longpress on touchscreen and get the longpress-point's location in ImageView?I tried to use OnLongClickListener, but it seems that onTouchEvent can not work when OnLongClickListener is set. I suffered this for days.Can anybody

[android-developers] PNG size changed

2008-05-04 Thread sasuke
I have a PNG image with 86 KB in size and 8 in bit depth. But when i look at the image in the apk (bin folder), it's size changed to 193 KB and 24 in bit depth... I don't even modify the image in my code what happened? --~--~-~--~~~---~--~~ You received this m