For example I have this problem now. I have wrote this code:
package com.Prova;
import android.app.Activity;
import android.os.Bundle;
import android.graphics.*;
public class prova extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
//setContentView(R.layout.main);
}
Paint paint;
protected void onDraw(Canvas canvas){
Bitmap
bitmap=BitmapFactory.decodeResource(getResources(),R.drawable.divano3);
canvas.drawBitmap(bitmap, 0, 0, paint);
}
}
But it doesn't work like if the onDraw method don't work. How is
possible?
On 20 Mar, 12:45, Mark Murphy <[email protected]> wrote:
> massimo wrote:
> > For example, I have try to use the demo files of Lunar. But there
> > isn't a file inside di example. There isn't R.java file.
>
> R.java is generated as part of the compile process. You will find it in
> the gen/ directory tree after your first build.
>
> --
> Mark Murphy (a Commons
> Guy)http://commonsware.com|http://twitter.com/commonsguy
>
> Android Training...At Your Office:http://commonsware.com/training
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
To unsubscribe from this group, send email to
android-developers+unsubscribegooglegroups.com or reply to this email with the
words "REMOVE ME" as the subject.