Re: [android-beginners] Re: Why it is so difficult to generate gen file

2010-07-26 Thread Shaista Naaz
Hi, Thanks for reply. I found out the reason for the errors. Since I am new to Android, I did not know that after making changes in .xml files I should not try to build it ( if it was already built before ), if I do so my R.java will not be generated properly, what I should do is just Run History

Re: [android-beginners]Is it possible to change the skin of the annunciator bar in the phone.

2010-07-26 Thread Shaista Naaz
Hi Abthul, Thank you so much for your reply. I will try doing this. Best Regards, Shaista On Thu, Jul 22, 2010 at 6:01 PM, ABTHUL RAZEETH abthulraze...@gmail.comwrote: change the windowBackground drawable to some color drawable in the respective layout files. On Thu, Jul 22, 2010 at 4:56

[android-beginners] JNI in android

2010-07-26 Thread sowmya
Hi I want to port c library in android for that i am writing native interface my c library contains generic pointers like void* .how can i define these in java jni files .do i need to define as byte[] and typecast in .cpp ? Also i want to know how to handle the callbacks from c library in jni --

Re: [android-beginners] Turkish Language support (tr-tr)

2010-07-26 Thread Shaista Naaz
Hi, I am also curious about this, as what changes do I need to do so that I can see the text in different languages. Currently I am looking for Hindi language. Please note : The changes I am doing in on the eclipse and not on any specific phone. Any suggestion is highly appreciated. Thanks in

[android-beginners] problem with r,java

2010-07-26 Thread G Ganesh
Hi, I am new to android. I am now familiar on how to create project and know what are the files that will b generated. I know that the file, r.java will be created automatically when a project is being created but i cant find r,java file when i create a new project.Witout creating this r.java

Re: [android-beginners] problem with r,java

2010-07-26 Thread Saket Srivastav
Can you just write down the exact steps that you followed while creating the project.. Regards Saket Srivastav On Mon, Jul 26, 2010 at 2:56 AM, G Ganesh ganesh.in.andr...@gmail.comwrote: Hi, I am new to android. I am now familiar on how to create project and know what are the files

[android-beginners] Re: internet connection on android emulator

2010-07-26 Thread RichardC
Windows XP, Emulator running 2.2 Click browser look at internet from an app needs uses-permission android:name=android.permission.INTERNET/uses- permission On Jul 26, 3:49 am, androidreamer anshu.sau...@gmail.com wrote: Is anyone here has successfully run internet on 2.2 froyo(on

[android-beginners] Re: problem with r,java

2010-07-26 Thread DanH
R.java should be in the gen directory of your project, and further nested (if you observe it in the file system) by the directories of your project path. If you installed the Android add-on for Eclipse R.java should be automatically created, but I don't recall if it's created immediately after

[android-beginners] Re: JNI in android

2010-07-26 Thread DanH
You shouldn't have a void* in any of the JNI C interfaces. If you need a void* that Java code can pass around you should wrapper the value with a Java object. Callback would be handled with the invocation interface. On Jul 26, 1:26 am, sowmya ajaychalas...@gmail.com wrote: Hi  I want to port

Re: [android-beginners] Re: problem with r,java

2010-07-26 Thread Shaista Naaz
Hi Ganesh, When we make the project first time, it takes some sequence of build, clean, switching build automatically on and off and run, if you run this sequence some two or three times your R.java should be created and in the console of your eclipse you will see something like loading your

[android-beginners] Re: GPS satellite icon

2010-07-26 Thread Jake Colman
Bret, Is your hack only required for continuous GPS monitoring? What abotu if you request updates only when the location has changed by a certain distance? Does it keep the GPS on continuously just so it knows whether the you have moved the required distance? If so, it sounds like Id be

[android-beginners] Regarding the surfaceview

2010-07-26 Thread ameya dandekar
Hi, I am currently working on the app in which my media player class is singleton, and i want to play the video files. I use surfaceView for the video display part. But the problem i m facing is when i change the orientation , the previous playback disappears (if was playing) and the new

[android-beginners] Re: problem with r,java

2010-07-26 Thread Walach
Click right on your project, and refresh (or F5). then go to Project menu , and click on Build All if you can't click, first uncheck Build automaticlyin the same menu (Project). -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking

[android-beginners] Notepadv2

2010-07-26 Thread Sam Hobbs
I am getting errors from the Notepadv2 sample in the tutorials. If the problem is that I made a mistake, then I will try to figure it out but I really think I followed instructions. The tutorial is at: http://developer.android.com/resources/tutorials/notepad/index.html The Notepadv1 works for

Re: [android-beginners] Notepadv2

2010-07-26 Thread Kostya Vasilyev
Sam, According to docs: http://developer.android.com/reference/android/view/ViewGroup.LayoutParams.html match_parent is introduced in API version 8, that is, Android 2.2 Your project is probably set up to compile against an earlier version of Android. If that is the case, use

Re: [android-beginners] Notepadv2

2010-07-26 Thread Ali Murtaza
Ya I think your version is previous. Go to the properties of the project and convert it into version 8. If you have not then download the updated version Thanks On Mon, Jul 26, 2010 at 9:12 PM, Kostya Vasilyev kmans...@gmail.com wrote: Sam, According to docs:

[android-beginners] Re: GPS satellite icon

2010-07-26 Thread Bret Foreman
Jake, At least on my Droid, Android 2.1 keeps the GPS receiver on continuously whenever there is a registered listener, regardless of the time/distance update parameters. It's much better to unregister and re-register the listener when you need an update. Of course, this might be fixed in Android

[android-beginners] Imagebutton layout

2010-07-26 Thread coldskull
Hello I have been trying to do a simple layout for sometime now I still haven't figured it out. Basically, I want to show four imagebuttons of equal size on the screen (each button 1/4th the size of the screen). Sort of like the picsquare logo (www.picsquare.com). I am trying to avoid absolute

Re: [android-beginners] Changes required to handle dual orientations

2010-07-26 Thread Kostya Vasilyev
Bret, You use the same layout XML file names and same widget IDs in both files - that way, orientation changes (and other alternate resources) are completely transparent to the application code. But it's res/layout-land, not res/layout/land. More info here:

[android-beginners] Re: Changes required to handle dual orientations

2010-07-26 Thread Bret Foreman
I mistyped. The file path is actually res/layout-land. The exception is happening when I call findViewById for one particular button. I stared at the two xml files as carefully as I could and the ID of that button is identical in both files. Other buttons are not causing any trouble. To add to the

Re: [android-beginners] Notepadv2

2010-07-26 Thread Sam Hobbs
I downloaded it a week ago; is that too old? Ali Murtaza wrote: Ya I think your version is previous. Go to the properties of the project and convert it into version 8. If you have not then download the updated version Thanks On Mon, Jul 26, 2010 at 9:12 PM, Kostya Vasilyev kmans...@gmail.com

Re: [android-beginners] Notepadv2

2010-07-26 Thread Sam Hobbs
Oh, thank you very much; using 2.2 works. The instructions for Notepadv2 (exercise 2) say to create the project the same as Notepadv1 (exercise 1) and Notepadv1 says we recommend selecting a target with the lowest platform version available, so is that misleading? Should the Notepadv2

Re: [android-beginners] Re: Changes required to handle dual orientations

2010-07-26 Thread Kostya Vasilyev
Something's got to be different. Open R.java and scan for your view id there, check to see if maybe you have a close sounding ID, or there is a capitalization difference. -- Kostya 26.07.2010 21:05, Bret Foreman пишет: I mistyped. The file path is actually res/layout-land. The exception is

[android-beginners] Re: Changes required to handle dual orientations

2010-07-26 Thread Bret Foreman
Here's a little more detail from layout-land (fails) and layout (works) respectivley. The fist button causes a runtime exception in findViewById, the second works: FAILS Button android:layout_height=wrap_content android:id=@+id/ ViewEvents android:text=View Events

[android-beginners] Re: Large jars in Android

2010-07-26 Thread kypriakos
Hey Paul, I will try increasing the -Xmx to 768 and hope it helps out. I am also looking for circular refs in the jars just in case that is the problem but I doubt I will find any. Some older postings do refer to apps that go to size up to 16MB and more so my 5MB one should not be the issue. I

Re: [android-beginners] Re: Changes required to handle dual orientations

2010-07-26 Thread Kostya Vasilyev
Bret, Is there really a line break in the failing case? I mean between @+id/ and ViewEvents? 26.07.2010 21:17, Bret Foreman пишет: Here's a little more detail from layout-land (fails) and layout (works) respectivley. The fist button causes a runtime exception in findViewById, the second

Re: [android-beginners] Imagebutton layout

2010-07-26 Thread Justin Anderson
Use a LinearLayout or RelativeLayout and set the weight of each item to the same value... like 1. -- There are only 10 types of people in the world... Those who know binary and those who don't.

Re: [android-beginners] Re: Unable to deploy apps to AVD using Eclipse

2010-07-26 Thread Abduaziz Hasan
@Sam Thank you for your support. I have tried different configurations and disabled the antivirus and the firewall though I doubt this is related to anyone of them. @DanH Yes that is right, but considering the large number of developers who are using the SDK without any problem leave me with

[android-beginners] Re: Imagebutton layout

2010-07-26 Thread coldskull
Thanks! it worked. Only thing i am not sure of now is how to set the weight of a Button programmatically instead of thru the xml. I could not see any setWeight method and the LayoutParams class also does not have the weight param. On Jul 26, 10:56 am, Justin Anderson janderson@gmail.com

[android-beginners] Re: Changes required to handle dual orientations

2010-07-26 Thread Bret Foreman
No, no line break. That's just an artifact of the cut and paste. -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe

[android-beginners] Re: Unable to deploy apps to AVD using Eclipse

2010-07-26 Thread DanH
Also, I have run Eclipse under Administrator role which in turn will invoke any process as trusted. Norton seems to mistrust Administrator stuff more than ordinary user stuff. Note that a lot of things (like Data Execution Protection) appear to be unique to the 64-bit version of Windoze, so

Re: [android-beginners] Re: Unable to deploy apps to AVD using Eclipse

2010-07-26 Thread Kostya Vasilyev
Data Execution Protection is not unique to 64 bit. First appeared in XP, I believe. In fact, I have it enabled (at default level) and having no problems with the emulator. -- Kostya Vasilyev -- http://kmansoft.wordpress.com 26.07.2010 23:40 пользователь DanH danhi...@ieee.org написал: Also, I

Re: [android-beginners] Re: Changes required to handle dual orientations

2010-07-26 Thread Kostya Vasilyev
Hmm. Looks good. What I would do at this point is gradually rebuild the layouts bottom up, starting with the problem view, and assigning new id tokens. -- Kostya Vasilyev -- http://kmansoft.wordpress.com 26.07.2010 23:27 пользователь Bret Foreman bret.fore...@gmail.com написал: No, no line

Re: [android-beginners] Re: Changes required to handle dual orientations

2010-07-26 Thread Kostya Vasilyev
Also, try removing layout_gravity. Shouldn't matter, but that's the only difference I am able to see. -- Kostya Vasilyev -- http://kmansoft.wordpress.com 26.07.2010 23:27 пользователь Bret Foreman bret.fore...@gmail.com написал: No, no line break. That's just an artifact of the cut and paste.

[android-beginners] Re: Changes required to handle dual orientations

2010-07-26 Thread Bret Foreman
Found the problem. I should have learned my lesson by now. When you do any substantial resource changes, you have to uninstall the app from all your targets or you end up with a toxic mix of old and new resources info. Problem solved. -- You received this message because you are subscribed to

Re: [android-beginners] Re: Imagebutton layout

2010-07-26 Thread Justin Anderson
Hmmm... that is interesting. Why can't you just do it through the XML though? -- There are only 10 types of people in the world... Those who know binary and those who don't.

Re: [android-beginners] Re: Imagebutton layout

2010-07-26 Thread Justin Anderson
Just so you know, a quick search on StackOverflow gave me a possible solution: http://stackoverflow.com/questions/3224193/set-the-layout-weight-of-a-textview-programmatically -- There are only 10 types of people in the world...

[android-beginners] Re: Imagebutton layout

2010-07-26 Thread coldskull
Cool! thanks On Jul 26, 1:58 pm, Justin Anderson janderson@gmail.com wrote: Just so you know, a quick search on StackOverflow gave me a possible solution:http://stackoverflow.com/questions/3224193/set-the-layout-weight-of-a...

Re: [android-beginners] Re: Unable to deploy apps to AVD using Eclipse

2010-07-26 Thread Sam Hobbs
Evidently there are two versions of DEP; the earlier version is done using software and a newer version that uses hardware. The hardware version exists only in 64-bit processors and is used only by 64-bit Windows. DEP can prevent code from being executed that is in memory designated as data.

Re: [android-beginners] Reverting to Eclipse 3.5

2010-07-26 Thread Mark H. Nichols
On Jul 22, 2010, at 9:50 AM, Doug Gordon wrote: Just getting into Android devel, I downloaded and installed the latest Eclipse, which is 3.6 (Helios). Now I see that it's recommended to stay with 3.5 due to some XML-editing bugs with the ADT or something like that. So if I want

[android-beginners] Loading images in android

2010-07-26 Thread ethan
Hi, I am trying to load an image from my res/drawable folder to my app by pushing a button on my application. What is the easiest way to achieve this ? Thanks Ethan. -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and