Football Fans: Download the 2012 Schedule App from Google Play!


Go Back   Android Forums > Android Development > Application Development

Application Development Dev Lounge for the Coder Folks



Reply
 
LinkBack Thread Tools
Old December 12th, 2011, 03:04 PM   #1 (permalink)
New Member
 
Join Date: Dec 2011
Posts: 2
 
Device(s):
Thanks: 0
Thanked 0 Times in 0 Posts
Default Looking for mentor.

Hey guys. Brand new here, and to Android development, but not development in general. I can currently write code in PHP, Javascript (and jQuery), AS3, Cold Fusion, etc etc and I am very strong in object-oriented programming. I'm looking to make my first android app, but I need somebody to explain the basics to me. I basically have a ton of small questions, and I'm sure I will have more along the way.

If you don't mind answering intelligent questions from a person who would rather learn than be told, please add me on any messenger (stephenriosdev*@hotmail/gmail/yahoo*).



My current questions are:
  • Do all objects/layouts have to be added to a "stage" like in flash? (i.e. setContentView(object)
  • Is there any positioning syntax that can be used or is it all like pos_x = (window.width/2)-(this.width/2) kind of stuff?
  • I'm currently running Android SDK on Eclipse. I've set up an AVD, but for some reason I don't really have full functionality on it (ie, app drawer). Am I missing something? Is there a better/more usable emulator I should be using? Or should I just use my phone (Samsung Galaxy S II Epic 4g Touch)?
  • My emulator shows an icon and the name of the app below the actual application bar with the name in it, is there a way to hide these?
  • Can I hide the application bar that says the name?
  • Is there a way to make each screen I intend to use a different activity, with one main activity running listeners and passing info as needed between them like in cold fusion?
  • If each page were defined as an activity, when a user switches pages, would the other pages just maintain their current state, or would I have to store the state and use onResume()?


If anyone is feeling helpful I would really appreciate it if you could at least point me in the right direction. Thanks!

Cutless009 is offline  
Reply With Quote
Sponsors
Old December 12th, 2011, 05:42 PM   #2 (permalink)
New Member
 
ScruffyFox's Avatar
 
Join Date: Dec 2011
Location: Bournemouth
Posts: 7
 
Device(s): Samsung Galaxy S2, Asus EEE Transformer
Thanks: 0
Thanked 0 Times in 0 Posts
callum.foxy
Default

Do you have Twitter? if so hook me up and id be glad to answer any questions for you, my twitter is @Scruffyfox

Quote:
My current questions are:
Do all objects/layouts have to be added to a "stage" like in flash? (i.e. setContentView(object)
Is there any positioning syntax that can be used or is it all like pos_x = (window.width/2)-(this.width/2) kind of stuff?
I'm currently running Android SDK on Eclipse. I've set up an AVD, but for some reason I don't really have full functionality on it (ie, app drawer). Am I missing something? Is there a better/more usable emulator I should be using? Or should I just use my phone (Samsung Galaxy S II Epic 4g Touch)?
My emulator shows an icon and the name of the app below the actual application bar with the name in it, is there a way to hide these?
Can I hide the application bar that says the name?
Is there a way to make each screen I intend to use a different activity, with one main activity running listeners and passing info as needed between them like in cold fusion?
If each page were defined as an activity, when a user switches pages, would the other pages just maintain their current state, or would I have to store the state and use onResume()?
1. All objects have to be in the activities 'content view', you can set this inside onCreate using the method "setContentView" either using view extended objects, such as text view or image view, or an ID of a layout such as main.xml (called using R.layout.main)
2. The positioning is determined by the container of the object, nothing should ever be asbolutley positioned because of the screen size differences in devices. Different containers have different uses, such as a LinearLayout puts objects in ascending order either vertically or horizontally.
3. Using your phone would be best. The emulator sucks.
4. Use the code "requestWindowFeature(Window.FEATURE_NO_TITLE) ;" in your "onCreate" just before the "setContentView"
5. To start a new activity, you need to create an Intent. and you also need another activity (seperate class file) to go to. the intent goes as follows:
Code:
Intent newActivity = new Intent(this, your_new_class_name.class);
startActivity(newActivity);
Don't forget to declare your activity in the android manifest xml
6. A activity retains all its data when going forwards, say from activity A -> activity B, but when you go back from B to A, everything in B is destroyed and the method 'onDestroy' is cleared.
ScruffyFox is offline  
Reply With Quote
Reply

Bookmarks


Go Back   Android Forums > Android Development > Application Development User CP
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -5. The time now is 11:54 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
Custom vBulletin Skins by: Relivo