Noob Android programming

Mineer

Expert Member
Joined
Apr 30, 2008
Messages
3,190
Reaction score
4
Location
/\/¯¯¯¯¯\/\
Hi hoping someone could help,

When creating a new android application project, "compile with" field is blank and for the life in me I cant figure out how to get something in there to compile my first project

"Minimum required SDK" and "target SDK" has the defaults in and has many options to select from.
pls help p.s. using eclipse

Thanks in advance
 
Last edited:
I assume so, I have and SDK folder and when opening the sdk manager.exe
it shows this
screenshot.jpg

should I install the arm and intel System images?
 
I had the same crap. I installed the sdk and got errors about this missing etc., etc.

I wanted to port an IOS app I had written.

That was 8 months ago. Just annoyed me. So i dropped it. took me awhile to decide which Android env, which in itself was tedious and I wasnt that comfortable with my choice anyway, so i just left it.

Now I am updating my ios app for ios 7.

Revisit Android later. Hopefully when there is a decent installation :)
 
Hi hoping someone could help,

When creating a new android application project, "compile with" field is blank and for the life in me I cant figure out how to get something in there to compile my first project

"Minimum required SDK" and "target SDK" has the defaults in and has many options to select from.
pls help p.s. using eclipse

Thanks in advance

Sorry to hear you're struggling. I use Netbeans and CodeNameOne for my Android applications.

It seems like you need to set the Android API Level, have you used the Eclipse ADT plugin and pointed it to the SDK correctly?
 
Last edited:
Hi hoping someone could help,

When creating a new android application project, "compile with" field is blank and for the life in me I cant figure out how to get something in there to compile my first project

"Minimum required SDK" and "target SDK" has the defaults in and has many options to select from.
pls help p.s. using eclipse

Thanks in advance

Eclipse usually compiles the project in the background as you save/update files. That is if you have your ADT set up correctly in Eclipse. But if you are able to create an Android project, then most likely you have it set up right. Have you followed the "Hello World" example (http://developer.android.com/training/basics/firstapp/index.html) on the Android development site?
 
thanks for the response so far,
I uninstalled everything and now re-installing seems I need to run SDK Manager as an administrator, strange as my profile is set as Administrator

holding thumbs
 
Off topic: Anyone use Google's Android Studio to develop Android apps yet?

Jip. It's nice. Nothing large-scale, mind you, just making a small widget that I wanted personally. But it's based off IntelliJ Idea which is a really solid IDE, and the Android plugin is still version 0.1. If it's already this functional, I can only believe that it will be amazing by the time they hit 1.0. Also, it's not a fork of IntelliJ. It's built on IntelliJ core. So all plugins will work, all updates will feed in, etc etc. Google really seems to be trying very hard to show developers some love. I tried Android Studio, and I felt some of that love :P
 
K thanks for the help so far those video links is amazing, got to about to video 20 and my project is moving along from no android experience, did java some yrs back so guess its helping,

could anyone tell me what is wrong with the following code keep getting errors

Code:
TextView AnswerText;
public void setAnswerText(String answer){
		Resources res = getResources();
		String packagename = getPackageName();
		int text = res.getIdentifier(answer, "String", packagename);
		AnswerText.setText(text);
			
	}

maybe I am not sending the String answer correctly ?

in strings.xml I have
<string name="Q12">12. test.</string>
and I am sending "Q12" as a string to this function but it fails every time I run it must I use the full qualifier ?
 
Last edited:
Have you initialized AnswerText? i.e. something like AnswerText = (TextView) findViewById(R.id.answer_text);

That should work. otherwise post your stacktrace so we can see where the error is. hope this helps
 
Have you initialized AnswerText? i.e. something like AnswerText = (TextView) findViewById(R.id.answer_text);

That should work. otherwise post your stacktrace so we can see where the error is. hope this helps

yes I have initialized it, its not here but in the main block i.e. when the object gets created

how can add more info to the problem, what sort of info do you guys need
 
Last edited:
Top
Sign up to the MyBroadband newsletter
X