For those interested in Android development and also a challenge and to compete:
http://code.google.com/android/adc/
First http://developer.android.com/sdk/index.html
For eclipse install the plugin, and an example of Java Android Application
package com.example.helloandroid;
import android.app.Activity;
import android.graphics.Canvas;
import android.os.Bundle;
import android.widget.*;
import android.view.*;
import android.view.ViewGroup.LayoutParams;
public class HelloAndroid extends Activity {
/** Called when the activity is first created. */
LinearLayout mLinearLayout;
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
// Create a LinearLayout in which to add the ImageView
mLinearLayout = new LinearLayout(this);
// Instantiate an ImageView and define its properties
ImageView i = new ImageView(this);
i.setImageResource(R.drawable.guitar2_bg);
i.setAdjustViewBounds(true); // set the ImageView bounds to match the Drawable's dimensions
i.setLayoutParams(new Gallery.LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT));
// Add the ImageView to the layout and set the layout as the content view
mLinearLayout.addView(i);
setContentView(mLinearLayout);
}
}
Also a nice breakthrough new in this area:
http://www.technologyreview.com/communications/24624/?a=f
Daftar Harga Molto 2016 Terbaru
Acum 9 ani
Niciun comentariu:
Trimiteți un comentariu