Jump to content

Android Programming, how ?


Recommended Posts

Guest menccgele
Posted

I was wondering if there is a way to explain step by step for NOOB how to program android applications.

On google i found some tuts. They forced me :) to download Eclipse and android-sdk-windows. Download all the targets, connected Eclipse with android-sdk and made my first program "Hello, Android" B)

package com.android.helloandroid;

import android.app.Activity;
import android.os.Bundle;
[b]import android.widget.TextView;[/b]

public class HelloAndroid extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
[b]TextView tv = new TextView(this);
tv.setText("Hello, Android");
setContentView(tv);[/b]
}
}[/codebox]

Whole code for .apk are java or combined with other language(whats the name of the other?)??

Or just try to make this topic tutorial for programming ;)

Using Phone: Pulse

Known lang: C++

Guest helikopter
Posted
I was wondering if there is a way to explain step by step for NOOB how to program android applications.

On google i found some tuts. They forced me :) to download Eclipse and android-sdk-windows. Download all the targets, connected Eclipse with android-sdk and made my first program "Hello, Android" B)

package com.android.helloandroid;

import android.app.Activity;
import android.os.Bundle;
[b]import android.widget.TextView;[/b]

public class HelloAndroid extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
[b]TextView tv = new TextView(this);
tv.setText("Hello, Android");
setContentView(tv);[/b]
}
}[/codebox]

Whole code for .apk are java or combined with other language(whats the name of the other?)??

Or just try to make this topic tutorial for programming ;)

Using Phone: Pulse

Known lang: C++

are you really sure that this topic should be inside the pulse forum on modaco? i assume there are much better places on the internet to discuss such things.

Guest david_dawkins
Posted (edited)
are you really sure that this topic should be inside the pulse forum on modaco? i assume there are much better places on the internet to discuss such things.

There really isn't a need to slap him. We're friendly here, right? :)

Here are some excellent sites that got me started developing for my Pulse:

- developer.android.com - Good for "official" reference and tutorials

- www.anddev.com - Enthusiasts tutorials, some great stuff here

- www.rbgrn.net - Robert Green, author of LightRacer

- www.rokonandroid.com - Game engine for Android

EDIT: Don't forget to check out the Android NDK (native development kit in C/C++), since you're a C++ developer

Beyond that it's Google all the way down. Have fun!

Dave D

Edited by david_dawkins
Posted
There really isn't a need to slap him. We're friendly here, right? :)

Here are some excellent sites that got me started developing for my Pulse:

- developer.android.com - Good for "official" reference and tutorials

- www.anddev.com - Enthusiasts tutorials, some great stuff here

- www.rbgrn.net - Robert Green, author of LightRacer

- www.rokonandroid.com - Game engine for Android

EDIT: Don't forget to check out the Android NDK (native development kit in C/C++), since you're a C++ developer

Beyond that it's Google all the way down. Have fun!

Dave D

I bought a great book that explained how to program for android. It's called 'Beginning Android', it's by 'Mark L. Murphy', it's published by Apress. The version I've got only supports the SDK up to 1.5, but owning a pulse that probably doesn't matter anyway :). It says you should know how to program in Java, but I mainly know Python and I'm doing ok.

I'm not sure what good developing in the Android NDK would do; whilst as a C++ developer it might be somewhat useful to start off with, I looked at the description and it suggests that it merely complements dalvik. In addition, if android was (for example) compiled for x86, you might have to recompile your software for it. Honestly, I'm not an Android developer, so I couldn't give you the best idea, but from what I've seen so far, java+dalvik is probably more efficient than running the c++ code on android.

Guest helikopter
Posted
There really isn't a need to slap him. We're friendly here, right? :)

Here are some excellent sites that got me started developing for my Pulse:

- developer.android.com - Good for "official" reference and tutorials

- www.anddev.com - Enthusiasts tutorials, some great stuff here

- www.rbgrn.net - Robert Green, author of LightRacer

- www.rokonandroid.com - Game engine for Android

EDIT: Don't forget to check out the Android NDK (native development kit in C/C++), since you're a C++ developer

Beyond that it's Google all the way down. Have fun!

Dave D

i didn't want to be rude, sorry for that if it felt that way. but i seriously think that it's not the forum to discuss that.

Guest david_dawkins
Posted
I bought a great book that explained how to program for android. It's called 'Beginning Android', it's by 'Mark L. Murphy', it's published by Apress. ...

I'm not sure what good developing in the Android NDK would do; ...

I may buy myself that book, in fact, talk about serendipity, my sister is getting irate with me for not telling her what I want for my birthday...

Android NDK will be good for low-level stuff like a physics engine; tight loops crunching numbers. That's according to the release docs themselves. I wouldn't use it for GUI programming.

Dave

Posted
I may buy myself that book, in fact, talk about serendipity, my sister is getting irate with me for not telling her what I want for my birthday...

Android NDK will be good for low-level stuff like a physics engine; tight loops crunching numbers. That's according to the release docs themselves. I wouldn't use it for GUI programming.

Dave

I just thought I'd give you a little taster of the chapter names, so you might work out what it teaches you :)

Part 1: Core Concepts

Big picture, project structure, inside the manifest

Part 2:

Creating skeleton application, using xml layouts, employing widgets, working with containers, selection widgets, lists, fancy widgets, applying menus, fonts, embedding webkit broser, popup messages, dealing with threads, handling activity lifecycle events.

Part 3: Data Stores, Network Services and APIs

Preferences, Accessing Files, Working with Resources, Local databases, leveraging java libraries, communicating via the internet.

Part 4: intents

creating intent filters, launching activities and sub-activities, finding available actions via introspection, handling rotation

Part 5: Content providers and services

Using a CP, Building a CP, Requesting/Requiring permissions

creating a service, invokoing a service, notifications

Part 6: Other

Accessing Location based services

Mapview and Mapactivity

Telephone calls

Searchmanager

Dev Tools

Where do we go to next?

Introducing android1.5

I would say that the book is written for earlier versions of the API, so you may have to 'upgrade' yourself if you only use this. For example, this uses the bundle icicle in the first chapters, this has been replaced in 1.5, from what I was reading (though it still works).

Guest menccgele
Posted

Thanks for all the good replays. I`ll try the best of me to learn android software.

And helikopter, mind your own business. There are Admin and Moderators who will tell me WHERE and WHAT to post. DONT PUSH !!!!!!!!!!!!

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.