[android-developers] Re: getAssets().open(file.txt)
Hi zeeshan , As you said you have changed only the text file. I assume that you have added your new file in assets folder. I am not sure if you have added Ur_file_name.xml in res/layout folder. I mean you should also add a .xml file in layout folder with the same name as your file. You can also check it is already done as read_asset.xml in layout folder. Just check, i am guessing that this is the problem. Thanks, Naina On 2/19/09, david liu wrote: > Can you paste the log here? > > On Thu, Feb 19, 2009 at 6:31 PM, zeeshan wrote: > >> >> i am trying to access a resource file by >> >> try { >>InputStream is = getAssets().open("read_asset.txt"); >> >> >> int size = is.available(); >> >>byte[] buffer = new byte[size]; >>is.read(buffer); >>is.close(); >> >>// Convert the buffer into a string. >>String text = new String(buffer); >> >>// Finally stick the string into the text view. >> TextView tv = (TextView)findViewById(R.id.text); >>tv.setText(text); >>} catch (IOException e) { >> >>// Should never happen! >>throw new RuntimeException(e); >>} >> >> >> >> and it is returning me exception, please help me >> >> >> >> 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 android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Regarding passing array strings from one activity to another activity
Hi, I have two activities. I want to pass array strings from one activity to another. I am using putStringArray and getStringArray functions. But still its not working. Could you please let me know how can I do it? Is there any other way to do it? 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: How to prevent my application being closed on clicking the back button on emulator
Hi, Thanks for replying. Yes, i have to use two separate activities to display screens. No I am not using the finish() in the first activitiy :-( To be frank as I am still learning this android development, I am not getting how to use two different activities to display screens. I just know that I need to use two activities in my application and tried also but somehow its not working :-( I guess if I am having two activities then i need to use intents for the same. But I guess something is going wrong in using intents. Could you please guide me for this with some sample application? I would be greatfull :-) Thanks, On 2/12/09, Sundog wrote: > > By "screens", do you mean separate activities displaying screens? > That's the first thing. Only activities will work correctly with the > back button. > > If you are properly doing it with two separate activities, how are you > calling the second one? Are you using a finish() in the first > activity? If so, remove it. > > On Feb 11, 4:30 pm, Komal wrote: >> Hello NewDev, >> I am facing the same problem.do u have solution of it???if u have then >> please post it. >> Thanx. >> >> On Feb 5, 9:47 pm, NewDev wrote: >> >> >> >> > Hi, >> >> > I have anapplicationwith main view having a search button. On >> > clicking the search button, search results are displayed in a text >> > view. When I hit thebackbutton at this view, instead of navigating >> > to the previous screen,applicationitself gets closed. Could anybody >> > please let me know how togobackto previous screen. >> >> > Thanks in andvance, >> >> > Naina- 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] Re: Regarding using Spinner(Combo box) for displaying file names
Thanks Pratap, I will try the same. Naina On Sat, Jan 24, 2009 at 11:36 AM, PRATAP SOLAPUR wrote: > I'll do it like this... > > Spinner s1 = (Spinner) findViewById(R.id.spinner1); > ArrayAdapter adapter = new > ArrayAdapter(getApplicationContext(),android.R.layout.simple_spinner_dropdown_item,filenameList); > adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); > s1.setAdapter(adapter); > > where fileNamesList is an arraylist of file names u want to > display.. > On Wed, Jan 21, 2009 at 6:25 PM, Naina K wrote: >> >> Hi, >> >> This is Naina. I am trying to write an application where I need to >> list down all file names and using Spinner, i want to select the >> required file. Could you please let me know about this. >> >> Thanks, >> >> Naina >> >> > > > > > --~--~-~--~~~---~--~~ 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] Regarding using Spinner(Combo box) for displaying file names
Hi, This is Naina. I am trying to write an application where I need to list down all file names and using Spinner, i want to select the required file. Could you please let me know about this. Thanks, Naina --~--~-~--~~~---~--~~ 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] Regarding
Hi, This is Naina. I went through the link, http://geeth.ganesan.googlepages.com/android-tutorial]geeth.ganesan - ANDROID-TUTORIAL[/url]. I am trying to use the Spinner application written by Geetha. I tried to run the same Spinner application on the android emulator using Eclipse IDE. But its not working. I am getting the exception error which is attached. I am not understanding where is the problem. I did not get any errors also. Please help me out. Thanks, Naina --~--~-~--~~~---~--~~ 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 do I set proper date and time on emulator?
Hi, No, its working fine in my emulator. I did not get any error message. I could select Settings and set the time and date. I guess there is some problem with the emulator. May be u can try two things, one is Close the emulator and start it. If it does not work then I guess u need to uninstall & install the emulator again. Thanks, Naina On 1/6/09, Sarath Kamisetty wrote: > > Hmm ... When I select Settings I see an error message that says "That > action is not currently supported". > > On Mon, Jan 5, 2009 at 9:48 PM, Naina K wrote: >> >> Hi, >> >> If u want to set the time and date on the emulator, Click on Menu >> button and select Settings and then click on Date & Time to set the >> time zone, time and date. >> >> Thanks, >> >> Naina >> >> On 1/5/09, Sarath Kamisetty wrote: >>> >>> Hi, >>> >>> I see that the date and time on my emulator are incorrect. How do I >>> set the correct date and time ? >>> >>> Thanks, >>> Sarath >>> >>> > >>> >> >> > >> > > > > --~--~-~--~~~---~--~~ 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 do I set proper date and time on emulator?
Hi, If u want to set the time and date on the emulator, Click on Menu button and select Settings and then click on Date & Time to set the time zone, time and date. Thanks, Naina On 1/5/09, Sarath Kamisetty wrote: > > Hi, > > I see that the date and time on my emulator are incorrect. How do I > set the correct date and time ? > > Thanks, > Sarath > > > > --~--~-~--~~~---~--~~ 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] HAPPY NEW YEAR
HELLO ALL, WISH U ALL A VERY HAPPY & PROSPEROUS NEW YEAR. THANKS, NAINA --~--~-~--~~~---~--~~ 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: Regarding .apk files
Hello, If I have an .apk file for android application, I would like to know how can I convert this .apk file to .java file so that I can see the code in that application. I have tried using dexdump to get the .dex file, but I am not getting the proper results. Please let me know if anybody has worked on this. Thanks, Naina On 12/11/08, fadden wrote: > > On Dec 10, 5:08 am, Naina wrote: >> I would like to know, if i have only .apk file with me, how to get the >> APIs and Classes that are present in the .apk file. Please let me know >> if anybody has any idea. > > There are two utility programs built in the open-source tree, > "dexlist" and "dexdump". "dexlist foo.apk" will give you a list of > all of the methods found in foo.apk. dexdump does a similar thing, > but with vastly more detail. > > It looks like dexdump is included in v1.0r2 of the SDK, but dexlist is > not. An ARM version of dexdump may also be found on the device > itself. > > > > --~--~-~--~~~---~--~~ 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]
Hello, I am new to this android. I want to write my own application to interface with the application which is already present in the android mobile. Could anybody please let me know how to register our application in Android platform? 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 android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Regarding .apk files
Hello, Thanks for the quick reply . Is there a way to register ( suppose our application ) ourselves and get the information about the apis called from another application ( using apks ). The intention is to find out that the application is not doing any malicious calls which it is not suppose to do ( like accessing the contact details ) . I am also aware that to some extent the androidmanifest.xml gives the permissions . Please let me know. Thanks On 12/11/08, fadden <[EMAIL PROTECTED]> wrote: > > On Dec 10, 5:08 am, Naina <[EMAIL PROTECTED]> wrote: >> I would like to know, if i have only .apk file with me, how to get the >> APIs and Classes that are present in the .apk file. Please let me know >> if anybody has any idea. > > There are two utility programs built in the open-source tree, > "dexlist" and "dexdump". "dexlist foo.apk" will give you a list of > all of the methods found in foo.apk. dexdump does a similar thing, > but with vastly more detail. > > It looks like dexdump is included in v1.0r2 of the SDK, but dexlist is > not. An ARM version of dexdump may also be found on the device > itself. > > > > --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---