[android-developers] (beginner question) variables reset when I change device orientation?

2016-04-11 Thread Jesse Clark
I am new to Android development. I am experimenting with making a simple app that displays a number that increases by one when the Up button is pressed and decreases by one when the Down button is pressed. It works correctly, except when I rotate the device from landscape to portrait or vice

Re: [android-developers] Beginner question on layouts

2012-11-20 Thread TreKing
On Thu, Nov 15, 2012 at 6:23 PM, Brandon Cormier wrote: > When I create a Windows application in java I use a layout such as the > border layout, grid layout, flow layout, etch... and then add it to the > frame. That way no matter how big I resize the window, it always looks the > same. How do you

[android-developers] Beginner question on layouts

2012-11-20 Thread Brandon Cormier
So I am new to Android development and have a question on layouts. When I create my app in Eclipse I have it set up so that I can see what it would look like on a Nexus S (4 in., 480 x 800). This looks great when I open it on my Exhibit 2 4G (3.7 in., 480 x 800), however it looks terrible when I

Re: [android-developers] Beginner question : "The type of the expression must be an array type but it resolved to double"

2012-08-16 Thread Luiz Fernando Rodrigues
you declared double P_N_*comp* but you are using P_N check out your P_N declaration. Luiz 2012/8/13 jg > Hello, > > Before anything, I would like to mention that I am new to Android > develoment, and java as well... > So please, apologize in advance if I ask a "stupid" question (but there is >

[android-developers] Beginner question : "The type of the expression must be an array type but it resolved to double"

2012-08-16 Thread jg
Hello, Before anything, I would like to mention that I am new to Android develoment, and java as well... So please, apologize in advance if I ask a "stupid" question (but there is no such thing as a stupid question, is it ;) ? ), or if I do anything wrong in this post (I figured out it might be

Re: [android-developers] Beginner Question

2012-02-23 Thread Mark Murphy
On Wed, Feb 22, 2012 at 11:58 AM, rhaazy wrote: > I have a question related to how the tutorial is asking me to > structure my code. > The code is from a tutorial where I create a gridview and set up a > click listener event: > gridview.setOnItemClickListener(new OnItemClickListener() { >        

[android-developers] Beginner Question

2012-02-23 Thread rhaazy
Hi everyone. I'm not sure if this question belongs here but here goes.. I am a professional asp.net developer looking to get into android dev. I have been going through tutorials and having fun so far! I have a question related to how the tutorial is asking me to structure my code. The code is f

[android-developers] Beginner question about Imageviews and Layouts

2011-01-24 Thread MartyParty
hi guys, So all I want to do is display an image and draw a small white square on top of it. This square will be moved around by the user to select a portion of the image to crop. I wrote an XML layout file to handle the picture, but getting the white box to draw hasn't worked. I created an Ima

Re: [android-developers] Beginner question about creating new class Eclipse

2010-07-07 Thread Frank Weiss
For the superclass, click the Browse button. Click the question mark in the lower left for an explanation of the Superclass Selection dialog. Similarly for the interfaces. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this gro

[android-developers] Beginner question about creating new class Eclipse

2010-07-07 Thread Sergio Viudes
I'm creating a new class, using eclipse "New Java Class" dialog box. I can write the superclass I want (I can't find using "browse" button), but I can't write or select an interface to implement. I click "add" but ther is nothing to select. What I'm doing wrong? Sorry for my bad english, I'm from

Re: [android-developers] Beginner Question: Is it possible to put each class into it's own java file in Eclispe?

2010-04-20 Thread ~ TreKing
On Tue, Apr 20, 2010 at 4:41 PM, Binxalot wrote: > Is it possible to put my classes in to their own java files and then import > those classes into a main program java file as needed like I do in C#? > Yes. Which you could have found out on your own in about 5 minutes. -

Re: [android-developers] Beginner Question: Is it possible to put each class into it's own java file in Eclispe?

2010-04-20 Thread Dianne Hackborn
The Java compiler requires that each top-level class be in its own source file. On Tue, Apr 20, 2010 at 2:41 PM, Binxalot wrote: > I'm coming over from C# where I can make a namespace and then have > each class placed into its own .cs file if I want, but in all of the > examples I've seen for an

[android-developers] Beginner Question: Is it possible to put each class into it's own java file in Eclispe?

2010-04-20 Thread Binxalot
I'm coming over from C# where I can make a namespace and then have each class placed into its own .cs file if I want, but in all of the examples I've seen for android all of the methods and classes are all in one big java file. Is it possible to put my classes in to their own java files and then i

Re: [android-developers] Beginner Question

2009-11-29 Thread Wayne Wenthin
Give it some time. The emulator is very slow to load. Once its up it will be fine. Just don't shut it down everytime and you will be good. On Thu, Nov 26, 2009 at 1:40 PM, LeBlanc217 wrote: > Hey sorry this might seem kinda dumb but just recently I decided to > try out programing for Androi

[android-developers] Beginner Question

2009-11-28 Thread LeBlanc217
Hey sorry this might seem kinda dumb but just recently I decided to try out programing for Android and wanted to start with simple hello world. My code is all correct and compiles correctly but when the emulator comes up only the word ANDROID stays on the screen and I have no idea why. Does anyone

[android-developers] Beginner Question / Calendar API

2009-04-09 Thread andreas
Hi, I'm really just a beginner and fiddling a little bit around with java and my G1. I'd like to create a calendar event from the phone and learned, that there is no Android API for the calendar. I thought it should be possible to access the google calendar via web. I googled a bit and found som