6 Replies - 4185 Views - Last Post: 11 July 2011 - 04:06 AM

#1 lnc12  Icon User is offline

  • D.I.C Regular

Reputation: 1
  • View blog
  • Posts: 268
  • Joined: 21-May 08

Android: I get some strange warnings

Posted 27 March 2010 - 01:46 AM

Hey I've just started to learn Android programming and for this program:
package com.example.helloandroid;

import android.app.Activity;
import android.os.Bundle;
import android.widget.TextView;

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


I get these warnings doing compiling

Quote

[2010-03-27 09:39:52 - Emulator] 2010-03-27 09:39:52.432 emulator[1237:903] Warning once: This application, or a library it uses, is using NSQuickDrawView, which has been deprecated. Apps should cease use of QuickDraw and move to Quartz.
[2010-03-27 09:40:16 - HelloAndroid] WARNING: Application does not specify an API level requirement!
[2010-03-27 09:40:16 - HelloAndroid] Device API version is 7 (Android 2.1)

Anu one who know why I get this ?? cause I can't find a reason in the programs nor in my AVD

Is This A Good Question/Topic? 0
  • +

Replies To: Android: I get some strange warnings

#2 JackOfAllTrades  Icon User is offline

  • Saucy!
  • member icon

Reputation: 5960
  • View blog
  • Posts: 23,235
  • Joined: 23-August 08

Re: Android: I get some strange warnings

Posted 27 March 2010 - 05:39 AM

Moved to Mobile Development
Was This Post Helpful? 0
  • +
  • -

#3 homemade-jam  Icon User is offline

  • Gabe's Nemesis
  • member icon

Reputation: 11
  • View blog
  • Posts: 1,300
  • Joined: 17-March 08

Re: Android: I get some strange warnings

Posted 27 March 2010 - 06:11 AM

I take it you are using the tutorial from here http://developer.and...ello-world.html

Are you using the most up to date SDK? You possibly may not have setup your project correctly in Eclipse.
Was This Post Helpful? 0
  • +
  • -

#4 lnc12  Icon User is offline

  • D.I.C Regular

Reputation: 1
  • View blog
  • Posts: 268
  • Joined: 21-May 08

Re: Android: I get some strange warnings

Posted 27 March 2010 - 09:44 AM

View Posthomemade-jam, on 27 March 2010 - 05:11 AM, said:

I take it you are using the tutorial from here http://developer.and...ello-world.html

Are you using the most up to date SDK? You possibly may not have setup your project correctly in Eclipse.

Yeps I'm using that guide, I'm using the newest SDK, and I double check the project again and again and I can't find any thing there is wrong, so that is why I don't get it :/
Was This Post Helpful? 0
  • +
  • -

#5 homemade-jam  Icon User is offline

  • Gabe's Nemesis
  • member icon

Reputation: 11
  • View blog
  • Posts: 1,300
  • Joined: 17-March 08

Re: Android: I get some strange warnings

Posted 28 March 2010 - 01:26 PM

Ah, I've just spotted you're a mac user...
Here's the bug track on Google

They didn't seem too interested with the problem to begin with and didn't bother reading until the end...they may detail the fix somewhere in the thread otherwise it might be worth running a windows vm if you can't fix it!
Was This Post Helpful? 0
  • +
  • -

#6 lnc12  Icon User is offline

  • D.I.C Regular

Reputation: 1
  • View blog
  • Posts: 268
  • Joined: 21-May 08

Re: Android: I get some strange warnings

Posted 29 March 2010 - 02:37 PM

Well the warnings arn't gone but my program works now, so I think I'll lead it be
Was This Post Helpful? 0
  • +
  • -

#7 robinthapa  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 32
  • Joined: 16-June 11

Re: Android: I get some strange warnings

Posted 11 July 2011 - 04:06 AM

View Postlnc12, on 30 March 2010 - 03:07 AM, said:

Well the warnings arn't gone but my program works now, so I think I'll lead it be


check ure AndroidManifest.xml file
Look at this line and change accordingly.
<uses-sdk android:minSdkVersion="8" />
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1