[android-beginners] Re: How to install my application on a device with NFS mount?

2009-05-20 Thread a druid

Hmm,

I didn't try this for some time, but copying worked for me.
If I recall correctly you might have to reboot if you install a new
application.
If you update an already existing application no reboot is required.


On May 20, 1:02 am, "Lewis Z."  wrote:
> I was able to boot a device through NFS mount. I thought I could run
> my application if I copied it to /data/app. Even though I saw my
> application in shell, I couldn't find it in the application window.
>
> What steps did I miss?
>
> Thanks in advance.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Is there an easy way to make EditText look like TextView but still behave like EditText?

2009-05-20 Thread Sean Hodges

Hello Nikolar,

Your emails are getting sent, we've received it 3 times now. Don't Panic :)

Drop the "android:" prefix to your style attribute and follow the
style convention given here:
http://developer.android.com/guide/topics/resources/available-resources.html#stylesandthemes



I don't think this is what you want though, as EditText adds a "thin
veneer" decoration around it's contents, which the theme does not
dictate.

What you probably want to do is modify a TextView to be editable. An
example of this can be seen here:

http://learnandroid.blogspot.com/2008/02/changing-textview-to-receive-user-input.html

The key modification is to apply
"myTextView.setInputMethod(TextInputMethod.getInstance());".


Regards,

Sean


On Tue, May 19, 2009 at 11:02 PM, n5r11  wrote:
>
> Okay, this is the third time I'm sending this.. I hope it will finally
> deliver.
>
> On 17 мај, 14:39, Nikola Radosavljevic 
> wrote:
>> Hello there,
>>
>> I want an EditText to look like TextView but still behave like
>> EditText. I've tried applying TextView style to my EditText in my
>> layout.xml file, like this:
>>
>> >        android:id="@+id/lipsum"
>>        android:text="Lorem ipsum"
>>        android:style="@android:style/Widget_TextView"
>> />
>>
>> ..but I get an error within xml editor: "Error: No resource found that
>> matches the given name (at 'style' with value '@android:style/
>> Widget_TextView')." It is strange because @android:style/
>> Widget_TextView definitively exists - I double checked it in code via
>> android.R.style.Widget_TextView. Another strange thing is that I don't
>> get android:style offered in the xml editor while typing? There is
>> android:id, android:text and everything else.. but not
>> android:style?!
>>
>> Note: I consider the hard way (making EditText look like TextView) to
>> be: extending EditText and overriding it's onDraw method.
>>
>> Nikolar
>>
>> PS: Check outhttp://developer.android.com/guide/topics/ui/themes.html#styles.
>> Why are id and style written without android: namespace?
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Is there an easy way to make EditText look like TextView but still behave like EditText?

2009-05-20 Thread n5r11

Thanks Sean.. It's been days that the emails didn't go through, so I
also posted on android-developers group, and got an answer:



You can check out the whole thread here:
http://groups.google.rs/group/android-developers/browse_frm/thread/90634ccca4559752/1ee9a6a2f60fb86e?lnk=gst&q=%22Is+there+an+easy+way%22#1ee9a6a2f60fb86e

I guess that changing the TextView to recive input is basically what
EditView does.

Thanks Sean

On 20 мај, 12:04, Sean Hodges  wrote:
> Hello Nikolar,
>
> Your emails are getting sent, we've received it 3 times now. Don't Panic :)
>
> Drop the "android:" prefix to your style attribute and follow the
> style convention given 
> here:http://developer.android.com/guide/topics/resources/available-resourc...
>
>      android:id="@+id/lipsum"
>     android:text="Lorem ipsum"
>     style="@android:style/Widget.TextView" />
>
> I don't think this is what you want though, as EditText adds a "thin
> veneer" decoration around it's contents, which the theme does not
> dictate.
>
> What you probably want to do is modify a TextView to be editable. An
> example of this can be seen here:
>
> http://learnandroid.blogspot.com/2008/02/changing-textview-to-receive...
>
> The key modification is to apply
> "myTextView.setInputMethod(TextInputMethod.getInstance());".
>
> Regards,
>
> Sean
>
>
>
> On Tue, May 19, 2009 at 11:02 PM, n5r11  wrote:
>
> > Okay, this is the third time I'm sending this.. I hope it will finally
> > deliver.
>
> > On 17 мај, 14:39, Nikola Radosavljevic 
> > wrote:
> >> Hello there,
>
> >> I want an EditText to look like TextView but still behave like
> >> EditText. I've tried applying TextView style to my EditText in my
> >> layout.xml file, like this:
>
> >>  >>        android:id="@+id/lipsum"
> >>        android:text="Lorem ipsum"
> >>        android:style="@android:style/Widget_TextView"
> >> />
>
> >> ..but I get an error within xml editor: "Error: No resource found that
> >> matches the given name (at 'style' with value '@android:style/
> >> Widget_TextView')." It is strange because @android:style/
> >> Widget_TextView definitively exists - I double checked it in code via
> >> android.R.style.Widget_TextView. Another strange thing is that I don't
> >> get android:style offered in the xml editor while typing? There is
> >> android:id, android:text and everything else.. but not
> >> android:style?!
>
> >> Note: I consider the hard way (making EditText look like TextView) to
> >> be: extending EditText and overriding it's onDraw method.
>
> >> Nikolar
>
> >> PS: Check 
> >> outhttp://developer.android.com/guide/topics/ui/themes.html#styles.
> >> Why are id and style written without android: namespace?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: browser application..

2009-05-20 Thread vineeth Desai
Hi Bindu,
Could you please telll me how to download browser appliation files.


Warm Regards,
Vineeth

On Tue, May 19, 2009 at 6:45 PM, Kasmoori Bindu wrote:

> Hi Vineeth,
>
> I found that source code for every application exists at
>
> http://www.netmite.com/android/mydroid/packages/apps/
>
> Hope this is helpful.
>
> Best Regards,
> Bindu
>
>
> On Tue, May 19, 2009 at 6:36 PM, vineeth Desai 
> wrote:
>
>> Hi All,
>>  I have got some working knowledge on android platfotm. I am able to
>> develop some game applications.
>>   Now I have a task to write a browser for my site. It should be like
>> android market website. So that I can put my own games on that site. User
>> can access the games through my site on android phone.
>>  So please anyone can guide me how to start with. If anybody has got code
>> on a their own browser on android they can give me. I will try to modify
>> that.
>>
>> Warm Regards,
>> Vineeth.
>>
>>
>>
>
>  >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Listener Service for data sources

2009-05-20 Thread Kasmoori Bindu
Hi All,

Iam a beginner in android,  just want to develop a service which listens to
the database and it should invoke an activity as soon as there is a change.
I tried to implement Contacts listener by registering ContentObserver but
couldnot see the expected result. Kept log in onChange() method, observed
that it is not getting called, any clue  that where it might went wrong.
Please help me.

Best Regards,
Bindu

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Show View object in a View object from layout

2009-05-20 Thread Junior Einsfeld
Hello,

I have my class below that is working. Inside it is another class that
extends View and that is also running.

I need to add two buttons on this screen and then create the layout below,
which has a View and two buttons:

http://schemas.android.com/apk/res/android
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical">












How do I display the screen object in my View from the layout?

In this way does not work:

public class ServiceComposition extends Activity {

private DViewDbAdapter dbAdapter;

private WsServicos Servico;

private WsMetodos Metodo;

private Parametros Parametro;

private Parametros Returns;

Map mServices;

@Override

protected void onCreate(Bundle savedInstanceState) {

// TODO Auto-generated method stub

super.onCreate(savedInstanceState);

*setContentView(R.layout.service_composition);*

dbAdapter = new DViewDbAdapter(this);

dbAdapter.open();

long idComposition = getIntent().getLongExtra("idComposition", 3);

this.mServices = populaDados(idComposition);

*View view = findViewById(R.id.View01);*

*view = new ExibeView(this, mServices);*

//setContentView(new ExibeView(this, mServices));

}

public class ExibeView extends View {

private ImagemObjeto[] imagem;

private int balID = 0; // variable to know what ball is being dragged

private boolean moveu = false;

private int distHorz = 60;

private int distVert = 60;

Map mPoint = new HashMap();

Point point;

/*

* Point point0 = new Point(); Point point1 = new Point(); Point point2

* = new Point(); Point point3 = new Point(); Point point4 = new

* Point();

*/

 public ExibeView(Context context, Map mServices) {

super(context);

 // TODO Auto-generated constructor stub

setFocusable(true); // necessary for getting the touch events

 int QtdServices = mServices.size();

this.imagem = new ImagemObjeto[QtdServices];

for (int i = 0; i < QtdServices; i++) {

point = new Point();

point.x = distHorz;

point.y = distVert;

if (distHorz >= 180) {

distHorz = 0;

distVert += 60;

}

distHorz += 60;

mPoint.put(i, point);

}

for (int i = 0; i < QtdServices; i++) {

imagem[i] = new ImagemObjeto(context, R.drawable.quadrado,

mPoint.get(i));

}

}

// the method that draws the balls

@Override

protected void onDraw(Canvas canvas) {

// canvas.drawColor(0xFFCC); //if you want another background

// color

Paint paint = new Paint();

paint.setColor(-16776961);

// draw the balls on the canvas

for (ImagemObjeto img : imagem) {

canvas.drawBitmap(img.getBitmap(), img.getX(), img.getY(),null);

}

// calculaTraco(canvas, point0, point1, imagem[0]);

}

// events when touching the screen

public boolean onTouchEvent(MotionEvent event) {

int eventaction = event.getAction();

int X = (int) event.getX();

int Y = (int) event.getY();

boolean move = false;

switch (eventaction) {

case MotionEvent.ACTION_DOWN: // touch down so check if the finger

// is on a ball

balID = 0;

for (ImagemObjeto img : imagem) {

// check if inside the bounds of the ball (circle)

// get the center for the ball

int centerX = img.getX() + 25;

int centerY = img.getY() + 25;

// calculate the radius from the touch to the center of the

// ball

double radCircle = Math

.sqrt((double) (((centerX - X) * (centerX - X)) + (centerY - Y)

* (centerY - Y)));

// if the radius is smaller then 23 (radius of a ball is

// 22), then it must be on the ball

if (radCircle < 23) {

balID = img.getID();

moveu = false;

break;

}

// check all the bounds of the ball (square)

// if (X > ball.getX() && X < ball.getX()+50 && Y >

// ball.getY() && Y < ball.getY()+50){

// balID = ball.getID();

// break;

// }

}

break;

case MotionEvent.ACTION_MOVE: // touch drag with the ball

// move the balls the same as the finger

if (balID > 0) {

imagem[balID - 1].setX(X - 25);

imagem[balID - 1].setY(Y - 25);

moveu = true;

}

break;

case MotionEvent.ACTION_UP:

// touch drop - just do things here after dropping

//seleciona(moveu, imagem[balID - 1]);

if (!moveu){

DView dv = new DView();

dv.showAlertCustom(ServiceComposition.this);

}

break;

 }

// redraw the canvas

invalidate();

return true;

}
Can help me?

Thanks!

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] UK Android

2009-05-20 Thread neo67

Hello,

I updated my phone to the UK version thinking it will be good well its
not so does anyone know how to remove that android 1.5 UK off my
phone
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Can't use File Explorer in DDMS on device

2009-05-20 Thread BGH

Whenever I try and view the file explorer in DDMS for my dev phone it
just comes up blank. It doesn't matter whether I use the Eclipse
plugin or the stand alone program, I get the same result. The file
explorer window is completely empty. It works fine for the emulator.

Logcat is spitting out the following, not sure if it is related

05-20 23:58:34.449: WARN/System.err(102): java.io.IOException: Is a
directory
05-20 23:58:34.449: WARN/System.err(102): at
org.apache.harmony.luni.platform.OSFileSystem.readImpl(Native Method)
05-20 23:58:34.449: WARN/System.err(102): at
org.apache.harmony.luni.platform.OSFileSystem.read(OSFileSystem.java:
154)
05-20 23:58:34.459: WARN/System.err(102): at
java.io.FileInputStream.read(FileInputStream.java:333)
05-20 23:58:34.459: WARN/System.err(102): at
java.io.BufferedInputStream.fillbuf(BufferedInputStream.java:200)
05-20 23:58:34.459: WARN/System.err(102): at
java.io.BufferedInputStream.read(BufferedInputStream.java:350)
05-20 23:58:34.459: WARN/System.err(102): at
android.graphics.BitmapFactory.nativeDecodeStream(Native Method)
05-20 23:58:34.459: WARN/System.err(102): at
android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:375)
05-20 23:58:34.469: WARN/System.err(102): at
android.graphics.BitmapFactory.decodeFile(BitmapFactory.java:171)
05-20 23:58:34.469: WARN/System.err(102): at
android.graphics.BitmapFactory.decodeFile(BitmapFactory.java:196)
05-20 23:58:34.469: WARN/System.err(102): at
android.graphics.drawable.Drawable.createFromPath(Drawable.java:762)
05-20 23:58:34.469: WARN/System.err(102): at
android.widget.ImageView.resolveUri(ImageView.java:498)
05-20 23:58:34.469: WARN/System.err(102): at
android.widget.ImageView.setImageURI(ImageView.java:287)
05-20 23:58:34.469: WARN/System.err(102): at
java.lang.reflect.Method.invokeNative(Native Method)
05-20 23:58:34.469: WARN/System.err(102): at
java.lang.reflect.Method.invoke(Method.java:521)
05-20 23:58:34.469: WARN/System.err(102): at
android.widget.RemoteViews$ReflectionAction.apply(RemoteViews.java:
454)
05-20 23:58:34.479: WARN/System.err(102): at
android.widget.RemoteViews.performApply(RemoteViews.java:855)
05-20 23:58:34.479: WARN/System.err(102): at
android.widget.RemoteViews.reapply(RemoteViews.java:847)
05-20 23:58:34.479: WARN/System.err(102): at
android.appwidget.AppWidgetHostView.updateAppWidget
(AppWidgetHostView.java:155)
05-20 23:58:34.479: WARN/System.err(102): at
android.appwidget.AppWidgetHost.updateAppWidgetView(AppWidgetHost.java:
243)
05-20 23:58:34.479: WARN/System.err(102): at
android.appwidget.AppWidgetHost$UpdateHandler.handleMessage
(AppWidgetHost.java:73)
05-20 23:58:34.479: WARN/System.err(102): at
android.os.Handler.dispatchMessage(Handler.java:99)
05-20 23:58:34.479: WARN/System.err(102): at android.os.Looper.loop
(Looper.java:123)
05-20 23:58:34.479: WARN/System.err(102): at
android.app.ActivityThread.main(ActivityThread.java:3948)
05-20 23:58:34.479: WARN/System.err(102): at
java.lang.reflect.Method.invokeNative(Native Method)
05-20 23:58:34.479: WARN/System.err(102): at
java.lang.reflect.Method.invoke(Method.java:521)
05-20 23:58:34.479: WARN/System.err(102): at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run
(ZygoteInit.java:782)
05-20 23:58:34.489: WARN/System.err(102): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:540)
05-20 23:58:34.489: WARN/System.err(102): at
dalvik.system.NativeStart.main(Native Method)
05-20 23:58:34.489: DEBUG/skia(102):  read threw an exception

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Show View object in a View object from layout

2009-05-20 Thread Junior Einsfeld
Anyone?

Regards,
Junior

On Wed, May 20, 2009 at 9:51 AM, Junior Einsfeld
wrote:

> Hello,
>
> I have my class below that is working. Inside it is another class that
> extends View and that is also running.
>
> I need to add two buttons on this screen and then create the layout below,
> which has a View and two buttons:
> 
> http://schemas.android.com/apk/res/android
> android:layout_width="fill_parent"
> android:layout_height="fill_parent"
> android:orientation="vertical">
>
>  android:layout_width="fill_parent"
> android:layout_height="360px"
> android:scrollbarSize="100px"
> android:paddingBottom="-20px"
> android:clickable="true"
> android:drawingCacheQuality="auto"
> android:focusable="true"
> android:focusableInTouchMode="true"
> android:keepScreenOn="true"
> android:longClickable="true" android:visibility="visible">
> 
>
> 
> android:visibility="visible"
>
> android:text="Cancelar"
>
> android:layout_marginTop="10px"
>
> android:layout_width="150px"
>
> android:width="150px"
>
> android:id="@+btListaServicos/cancel"/>
>
> 
> android:text="Compor Serviços"
>
> android:layout_marginTop="-49px"
>
> android:width="150px"
>
> android:layout_width="150px"
>
> android:layout_marginLeft="170px"
>
> android:id="@+btListaServicos/comporServicos">
>
> 
>
> 
>
> How do I display the screen object in my View from the layout?
>
> In this way does not work:
>
> public class ServiceComposition extends Activity {
>
> private DViewDbAdapter dbAdapter;
>
> private WsServicos Servico;
>
> private WsMetodos Metodo;
>
> private Parametros Parametro;
>
> private Parametros Returns;
>
> Map mServices;
>
> @Override
>
> protected void onCreate(Bundle savedInstanceState) {
>
> // TODO Auto-generated method stub
>
> super.onCreate(savedInstanceState);
>
> *setContentView(R.layout.service_composition);*
>
> dbAdapter = new DViewDbAdapter(this);
>
> dbAdapter.open();
>
> long idComposition = getIntent().getLongExtra("idComposition", 3);
>
> this.mServices = populaDados(idComposition);
>
> *View view = findViewById(R.id.View01);*
>
> *view = new ExibeView(this, mServices);*
>
> //setContentView(new ExibeView(this, mServices));
>
> }
>
> public class ExibeView extends View {
>
> private ImagemObjeto[] imagem;
>
> private int balID = 0; // variable to know what ball is being dragged
>
> private boolean moveu = false;
>
> private int distHorz = 60;
>
> private int distVert = 60;
>
> Map mPoint = new HashMap();
>
> Point point;
>
> /*
>
> * Point point0 = new Point(); Point point1 = new Point(); Point point2
>
> * = new Point(); Point point3 = new Point(); Point point4 = new
>
> * Point();
>
> */
>
>  public ExibeView(Context context, Map mServices) {
>
> super(context);
>
>  // TODO Auto-generated constructor stub
>
> setFocusable(true); // necessary for getting the touch events
>
>  int QtdServices = mServices.size();
>
> this.imagem = new ImagemObjeto[QtdServices];
>
> for (int i = 0; i < QtdServices; i++) {
>
> point = new Point();
>
> point.x = distHorz;
>
> point.y = distVert;
>
> if (distHorz >= 180) {
>
> distHorz = 0;
>
> distVert += 60;
>
> }
>
> distHorz += 60;
>
> mPoint.put(i, point);
>
> }
>
> for (int i = 0; i < QtdServices; i++) {
>
> imagem[i] = new ImagemObjeto(context, R.drawable.quadrado,
>
> mPoint.get(i));
>
> }
>
> }
>
> // the method that draws the balls
>
> @Override
>
> protected void onDraw(Canvas canvas) {
>
> // canvas.drawColor(0xFFCC); //if you want another background
>
> // color
>
> Paint paint = new Paint();
>
> paint.setColor(-16776961);
>
> // draw the balls on the canvas
>
> for (ImagemObjeto img : imagem) {
>
> canvas.drawBitmap(img.getBitmap(), img.getX(), img.getY(),null);
>
> }
>
> // calculaTraco(canvas, point0, point1, imagem[0]);
>
> }
>
> // events when touching the screen
>
> public boolean onTouchEvent(MotionEvent event) {
>
> int eventaction = event.getAction();
>
> int X = (int) event.getX();
>
> int Y = (int) event.getY();
>
> boolean move = false;
>
> switch (eventaction) {
>
> case MotionEvent.ACTION_DOWN: // touch down so check if the finger
>
> // is on a ball
>
> balID = 0;
>
> for (ImagemObjeto img : imagem) {
>
> // check if inside the bounds of the ball (circle)
>
> // get the center for the ball
>
> int centerX = img.getX() + 25;
>
> int centerY = img.getY() + 25;
>
> // calculate the radius from the touch to the center of the
>
> // ball
>
> double radCircle = Math
>
> .sqrt((double) (((centerX - X) * (centerX - X)) + (centerY - Y)
>
> * (centerY - Y)));
>
> // if the radius is smaller then 23 (radius of a ball is
>
> // 22), then it must be on the ball
>
> if (radCircle < 23) {
>
> balID = img.getID();
>
> moveu = false;
>
> break;
>
> }
>
> // check all the bounds of the ball (square)
>
> // if (X > ball.getX() && X < ball.getX()+50 && Y >
>
> // ball.getY() && Y < ball.getY()+50){
>
> // balID = ball.getID();
>
> // break;
>
> // }
>
> }
>
> break;
>
> case MotionEvent.ACTION_MOVE: // touch drag with the ball
>
> // move the balls the same as the finger
>
> if (bal

[android-beginners] Re: is there a limit on Extras inside an intent (or a bug on putExtra) ?

2009-05-20 Thread Don Thorp
I don't know of any limits, but check that you didn't make a copy and paste
error with the constants.

On Wed, May 20, 2009 at 10:33 AM, Vignesh  wrote:

> Hi,
>
> I am struck with an interesting problem.
>
> Problem:
> I create and putExtras into the intent and try to receive on the receiving
> Activity(getBundle).  The Receiving activity receives NULL for some of the
> Strings that I had put inside the intent
>
> On debugging I found, that intent is not able to accept more than 5 values
> via putExtra.  Is there any limit on intent.putExtras?
>
> Intent intent = new Intent(screen3time.this, screen5confirm.class);
> intent.putExtra(screen1.WHEN, choosenWhen);
> //intent.mExtras.mMap.elementcount Value is 1
> intent.putExtra(screen1.WHAT, choosenWhat);
> //intent.mExtras.mMap.elementcount Value is 2
> intent.putExtra(screen1.DD, dateDatePicker.getDayOfMonth());
> //intent.mExtras.mMap.elementcount Value is 3
> intent.putExtra(screen1.MM, dateDatePicker.getMonth() + 1);
> //intent.mExtras.mMap.elementcount Value is 4
> intent.putExtra(screen1., dateDatePicker.getYear());
> //intent.mExtras.mMap.elementcount Value is 5
> intent.putExtra(screen1.HH, timePicker.getCurrentHour().intValue());
> //intent.mExtras.mMap.elementcount Value remains 5 instead of 6
> intent.putExtra(screen1.MIN, timePicker.getCurrentMinute().intValue());
> //intent.mExtras.mMap.elementcount Value remains 5 instead of 7
> intent.putExtra(screen1.REPEAT_IN_SECONDS, repeat_in_seconds);
> //intent.mExtras.mMap.elementcount Value remains 5 instead of 8
>
> Last 3 putExtra doesn't update the intent with values.
>
> Can someone help me understand if there are limits on putExtra?
>
> Thanking in advance,
> -vignesh
>
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Best way to update clock

2009-05-20 Thread RTX

im trying to ACTION_TIME_TICK

but

when i register it to the reciver it is not being called
any ideas ?

here is the manifest :


http://schemas.android.com/apk/res/android";
  package="learn.Class_01"
  android:versionCode="1"
  android:versionName="1.0">

























On May 4, 1:02 pm, kaloer  wrote:
> Thank you very much! That's exactly what i was looking for.
>
> On 4 Maj, 16:32, MrSnowflake  wrote:
>
>
>
> > I believe you are updating you clock every minute. If that's true, you
> > could(/should?) use the ACTION_TIME_TICK intent (http://
> > developer.android.com/reference/android/content/
> > Intent.html#ACTION_TIME_TICK). Register to it from you Activity and
> > your BroadcastReceiver will be called every minute.
>
> > On 4 mei, 14:38, kaloer  wrote:
>
> > > Hi,
>
> > > I have a method in my application which updates a clock. But what is
> > > the best way to run the method so that it automatically updates the
> > > clock?
>
> > > Should i use a Timer (i have heard, that it does not work very well in
> > > android) or what should i use?
> > > I will be glad if you could please post a simple example :-)
>
> > > Currently the part of my code that contains the thread looks like
> > > this, but it does not work (I don't get an exeption, but it simply
> > > does not run the updateTime() method.) :
>
> > > public class NightClock extends Activity {
>
> > >         private final ScheduledExecutorService scheduler =
> > > Executors.newScheduledThreadPool(1);
> > >         ScheduledFuture updateHandle;
>
> > >     /** Called when the activity is first created. */
> > >     @Override
> > >     public void onCreate(Bundle savedInstanceState) {
> > >         super.onCreate(savedInstanceState);
> > >         setContentView(R.layout.main);
> > >         Calendar cal = Calendar.getInstance();
> > >         updateTime();
> > >         long toTimerStart = ( 60 - cal.get(Calendar.SECOND) ) * 1000;
> > >         Runnable mUpdateTimeTask = new Runnable() {
> > >                         public void run() {
> > >                                 updateTime();
> > >                         }
> > >         };
>
> > >         updateHandle = scheduler.scheduleAtFixedRate(mUpdateTimeTask,
> > > toTimerStart, 1000, TimeUnit.MILLISECONDS);
>
> > >     }
>
> > > Thank you very much!
>
> > > //Kaloer- Hide quoted text -
>
> - Show quoted text -

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Using own codec to play media

2009-05-20 Thread AlekseyLonchin

Hi, all

I'm new in Android development, so I'll glad to any help.

I want to play media with specific decoders and source "plugin", but I
don't know how I can do it with MediaPlayer class.May be I use
incorrect way for my direction? )) May be I should investigate
openCore for it.

Any suggestions?

Thanks
Best regards, Aleksey.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Cannot create AVD in window XP

2009-05-20 Thread Norfeldt

I still don't get it..

here is what I done..
downloaded the SDK zip. extracted it to the desktop
opened the folder at moved to content to this dir: C:\Android
opened run and typed cmd typed emulator and hit ENTER
The emulator runs fine...
Close it down..
run -> cmd [ENTER]
I type:
cd \ [ENTER]
cd Android [ENTER]
cd [tools]
android create avd --target 2 --name my_avd

AND BM Nothing happens but an error..

there is no android.bat file in by tools folder.

On May 18, 11:10 pm, Raphael  wrote:
> If you are under Windows there should be SDK/tools/android.bat and
> android.sh for linux/mac. If SDK/tools is not on your path, add it.
>
> The only android.jar you can find is
> SDK/platforms/android-1.[15]/android.jar which is the API for
> ant/eclipse. It has nothing to do with the "android" command-line
> tool.
>
> R/
>
> On Sun, May 17, 2009 at 5:30 AM, Steve  wrote:
>
> > I have the same problem as this.  There is no 'android' executable in
> > the tools directory - should there be?  I only have an android.jar
> > file in the tools' parent folder, but this is not part of my path, and
> > I'm not sure if this is what is meant to be running.
>
> > On May 12, 4:19 am, "minht...@gmail.com"  wrote:
> >> Hi everyone,
>
> >> When I try tocreateAVD, I got the message "'android' is not
> >> recognized as an internal or external command,operable program or
> >> batch file."
>
> >> Even I typedcreatecommand from SDK\tools directory, I got that
> >> message.
>
> >> And I also have Java Home in Environment Variable and add java path to
> >> path of the system.
>
> >> I would appreciate any suggestion.
>
> >> Thank you

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Android source code versions

2009-05-20 Thread sandy

Is android-1.5 and cupcake-1.5 is same?

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] (no subject)

2009-05-20 Thread rotemml
im trying to catch the Time_Tick

im using appWidgetProvider
for some reason the Intent is not catched
im sure i aded the IntentFilter

any ideas ?


http://schemas.android.com/apk/res/android";
package="learn.Class_01"
android:versionCode="1"
android:versionName="1.0">




















--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Prevent image stretching in backgrounds

2009-05-20 Thread ht

I'd like to use setBackgroundDrawable() to set a background, but
prevent image stretching.  The behavior I'm looking for is to draw the
image with either no scaling, or scaling to fit the image without
changing the aspect ratio.  Any remaining area would be colored with
the background color (from setBackgroundColor).

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] putExtra error on AppWidget

2009-05-20 Thread Israel Ferrer

Hi everyone.
I am just making some AppWidget and I want to pass some Strings
through UpdateView to an Activity. But the Bundle is null.

I try this:
-Widget.java
 Intent defineIntent = new Intent(context,
Visor.class);
  defineIntent.putExtra
("org.rss.androides.post2","artist");
  PendingIntent pendingIntent =
PendingIntent.getActivity(context, 0, defineIntent, 0);
  updateViews.setOnClickPendingIntent(R.id.widget,
pendingIntent);
-Viewer.java
 Bundle b = intent.getExtras();
   if (b == null) {
   finish();
   return;
   }

Can you help me? I can use a DB but I only need 4 strings... its a
little expensive make a DB for a few strings.
Thanks in Advance

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Help with photo upload api

2009-05-20 Thread Sujay Krishna

Hi everyone,
  i'm in the process of developing an android
application that helps the user sync his local(camera) pics with his
web album(picasa or flickr or watever's feasible)

   i already tried gdata api  for java & was fed
up with the VerifyErrors & moved on to flickr's java api which was
highly complicated & since it too was for java & not for android i
doubt whether it'd work in the android platform... i'm ready to jus
use a built-in application with the help of intents... (if any)...

  plz post ur suggestions & also example code
snippets if possible...
  it'd be of gr8 help
  thanks in advance

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Problem with SQLite database .open()

2009-05-20 Thread etienne.espinass...@gmail.com

Hi,
I'm trying to develop my first "task manager" application on android
but but this one crash when I open the connection to the Database.
Here you can fin d my code:

DbAdapter:

public class ListDbAdapter {

//Db properties
private static final String DATABASE_NAME = "CUMgr_list.db";
private static final String DATABASE_TABLE = "list";
private static final int DATABASE_VERSION = 1;

//Table properties
private static final String KEY_ID = "_id";
private static final String KEY_TITLE = "title";
private static final String KEY_ITEM = "item";

//Create Script
private static final String DATABASE_CREATE = "create table"
+DATABASE_TABLE+ "(" +KEY_ID+ "integer primary key autoincrement, "
+KEY_TITLE+ "text not null," +KEY_ITEM+ "text not null);";

private SQLiteDatabase db;
private final Context context;
private MyDbHelper myDbHelper;

public ListDbAdapter(Context _context){
this.context = _context;

}

public ListDbAdapter open() throws SQLException {
myDbHelper = new MyDbHelper(context, DATABASE_NAME, null,
DATABASE_VERSION);
db = myDbHelper.getWritableDatabase();
return this;
}

public void close(){
db.close();
}

//Insert Row
public long insertEntry(String sTitle, String sItem) {
ContentValues contentValues = new ContentValues();
contentValues.put(KEY_TITLE, sTitle);
contentValues.put(KEY_ITEM, sItem);
return db.insert(DATABASE_TABLE, null, contentValues);
}

//Remove a row
public boolean removeEntry(long _id){
return db.delete(DATABASE_TABLE, KEY_ID + "=" + _id,null) > 0;
}

//Edit a row
public int updateEntry(long _id, ListItems myItems){
ContentValues contentValues = new ContentValues();
contentValues.put(KEY_TITLE, myItems.getTitle());
contentValues.put(KEY_ITEM, myItems.getItem());

return db.update(DATABASE_TABLE, contentValues, KEY_ID + "=" + 
_id,
null);
}


//internal class to create and update Db
private static class MyDbHelper extends SQLiteOpenHelper {

public MyDbHelper(Context context, String name, CursorFactory
factory,
int version){
super(context,name, factory, version);
}

@Override
public void onCreate(SQLiteDatabase _db){
_db.execSQL(DATABASE_CREATE);
}

public void onUpgrade(SQLiteDatabase _db, int _oldVersion, int
_newVersion){
_db.execSQL("DROP TABLE IF EXISTS " + DATABASE_TABLE);
onCreate(_db);
}
}

}




And the code of my Activity where I open the connection:

myButton.setOnClickListener(new OnClickListener (){
public void onClick(View v){
String sItem = myItem.getText().toString();
String sTitle = myTitle.getText().toString();
myDb.open();//connect to Db
myDb.insertEntry(sTitle, sItem);//insert in Db
myDb.close();//close Db
ListArrayList.add(sItem);
ListArrayAdapter.notifyDataSetChanged();
myItem.setText("");
}
});

I 'll be really great if you could help me.
Cordially,

Etienne

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Errors on Hello Android

2009-05-20 Thread Pete

Please see this thread:
http://groups.google.com/group/android-beginners/browse_thread/thread/780a30cbf7ac9b10?pli=1

On May 18, 8:21 pm, AISFox  wrote:
> I completely new at this and have had errors that I dont understand.
> Up to the part of compile I receive these errors:
> [2009-05-18 19:43:55 - helloandroid] no classfiles specified
> [2009-05-18 19:43:55 - helloandroid] Conversion to Dalvik format
> failed with error 1
> When I try and run it I get the Phone screen that just says ANDROID.
> Ive re checked my code and dont think there was anything wrong with
> it, it looked just like the sample on the website.
> Please help if you could.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: While creating AVD: "android: command not found"

2009-05-20 Thread Rob

Try
./android create
instead of
android create

On May 6, 4:42 pm, Josiah  wrote:
> Upgrading to SDK 1.5 using Eclipse on a Mac. Finish all the install
> steps. Following the AVD creation instructions, I cd to the SDK tools
> folder.  But every time I try following the "android" commands from
> there I get an "android: command not found" error.  I've been
> following these 
> instructions:http://developer.android.com/guide/developing/eclipse-adt.html#Creati...
>
> Any ideas?

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Plz help me to retrieve contacts

2009-05-20 Thread Jayanthi

HI All,
plz find java file

package net.learn.getContact;

import android.app.Activity;
import android.content.ContentValues;
import android.database.Cursor;
import android.net.Uri;
import android.os.Bundle;
import android.provider.Contacts;
import android.provider.Contacts.People;
import android.util.Log;

public class getContact extends Activity {

@Override
public void onCreate(Bundle icicle) {
super.onCreate(icicle);
this.setTitle("Contact Card");
setContentView(R.layout.main);
Bundle bundle = getIntent().getExtras();
 // create a new name
ContentValues values = new ContentValues();
values.put(Contacts.People.NAME, "Test Name");
// add it to the database
Uri newPerson = getContentResolver().insert
(Contacts.People.CONTENT_URI, values);
}
}
I am getting error while running the application saying Sorry has
stopped expectely try again

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] How to capture video frames

2009-05-20 Thread rocio

Hi! I´m trying to capture frames from a video file, but I don´t know
how to do it. Are there any classes like FrameGrabbingControl (in JMF)
for Android? Is it possible with MediaPlayer and MediaRecorder
classes? Thanks.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners]

2009-05-20 Thread Rotem Or
you can save it in any text file
and pars it later
but i think sql is the best way for you



-- 
Thanks
Rotem Or

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: While creating AVD: "android: command not found"

2009-05-20 Thread Rob

Try
./android create

instead of

android create

On May 6, 4:42 pm, Josiah  wrote:
> Upgrading to SDK 1.5 using Eclipse on a Mac. Finish all the install
> steps. Following the AVD creation instructions, I cd to the SDK tools
> folder.  But every time I try following the "android" commands from
> there I get an "android: command not found" error.  I've been
> following these 
> instructions:http://developer.android.com/guide/developing/eclipse-adt.html#Creati...
>
> Any ideas?

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Prevent image stretching in backgrounds

2009-05-20 Thread Romain Guy

Write a custom drawable to do this.

On Tue, May 19, 2009 at 4:12 PM, ht  wrote:
>
> I'd like to use setBackgroundDrawable() to set a background, but
> prevent image stretching.  The behavior I'm looking for is to draw the
> image with either no scaling, or scaling to fit the image without
> changing the aspect ratio.  Any remaining area would be colored with
> the background color (from setBackgroundColor).
>
> >
>



-- 
Romain Guy
Android framework engineer
romain...@android.com

Note: please don't send private questions to me, as I don't have time
to provide private support.  All such questions should be posted on
public forums, where I and others can see and answer them

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] is there a limit on Extras inside an intent (or a bug on putExtra) ?

2009-05-20 Thread Vignesh
Hi,

I am struck with an interesting problem.

Problem:
I create and putExtras into the intent and try to receive on the receiving
Activity(getBundle).  The Receiving activity receives NULL for some of the
Strings that I had put inside the intent

On debugging I found, that intent is not able to accept more than 5 values
via putExtra.  Is there any limit on intent.putExtras?

Intent intent = new Intent(screen3time.this, screen5confirm.class);
intent.putExtra(screen1.WHEN, choosenWhen);
//intent.mExtras.mMap.elementcount Value is 1
intent.putExtra(screen1.WHAT, choosenWhat);
//intent.mExtras.mMap.elementcount Value is 2
intent.putExtra(screen1.DD, dateDatePicker.getDayOfMonth());
//intent.mExtras.mMap.elementcount Value is 3
intent.putExtra(screen1.MM, dateDatePicker.getMonth() + 1);
//intent.mExtras.mMap.elementcount Value is 4
intent.putExtra(screen1., dateDatePicker.getYear());
//intent.mExtras.mMap.elementcount Value is 5
intent.putExtra(screen1.HH, timePicker.getCurrentHour().intValue());
//intent.mExtras.mMap.elementcount Value remains 5 instead of 6
intent.putExtra(screen1.MIN, timePicker.getCurrentMinute().intValue());
//intent.mExtras.mMap.elementcount Value remains 5 instead of 7
intent.putExtra(screen1.REPEAT_IN_SECONDS, repeat_in_seconds);
//intent.mExtras.mMap.elementcount Value remains 5 instead of 8

Last 3 putExtra doesn't update the intent with values.

Can someone help me understand if there are limits on putExtra?

Thanking in advance,
-vignesh

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Java Swing/AWT class on Android

2009-05-20 Thread Vaidya
I actually wanted to know if it is possible to integrate the Android Widget
package in Java and customize Java VM accordingly.


On Tue, May 19, 2009 at 8:05 PM, Vaidya  wrote:

> Thanks..
> Is it possible to integrate the Android package in Java, so that the
> application I write for Android can be used on Ubuntu also? Can I optimize
> the JVM accordingly?
>
> Regards,
> Vaidya
>
>
> On Mon, May 18, 2009 at 10:26 PM, Romain Guy  wrote:
>
>>
>> Swing requires a lot of native code that Android does not provide.
>> It's also a huge library and porting it to Android might not be a
>> simple feat. You will need AWT first :)
>>
>> On Mon, May 18, 2009 at 9:51 AM, Vaidya  wrote:
>> > Hi..
>> > I googled and found that Android does not support the Java AWT and Java
>> > Swing packages.
>> > I am developing an application using Java swing for running on Ubuntu
>> Linux.
>> > I require the same application to be able to run on Android OS also
>> (After
>> > converting to Dex format and getting the .apk package).
>> >
>> > Is it possible to integrate the Java Swings package in Android (Dalvik
>> VM)?
>> > Has anybody tried this out?
>> >
>> > Regards,
>> > Vaidya
>> >
>> > >
>> >
>>
>>
>>
>> --
>> Romain Guy
>> Android framework engineer
>> romain...@android.com
>>
>> Note: please don't send private questions to me, as I don't have time
>> to provide private support.  All such questions should be posted on
>> public forums, where I and others can see and answer them
>>
>> >>
>>
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Display network operator on home screen?

2009-05-20 Thread KonstantinDK

I don't find it possible. The only way to know what your operator is
is to go to settings-call network operators.
Right?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Show View object in a View object from layout

2009-05-20 Thread Sean Hodges

I would give it 24 hours before bumping a question. There are people
in different time zones who may know the answer, and only haven't
responded because they're dreaming of electric sheep.


On Wed, May 20, 2009 at 3:47 PM, Junior Einsfeld
 wrote:
> Anyone?
>
> Regards,
> Junior
>
> On Wed, May 20, 2009 at 9:51 AM, Junior Einsfeld 
> wrote:
>>
>> Hello,
>>
>> I have my class below that is working. Inside it is another class that
>> extends View and that is also running.
>>
>> I need to add two buttons on this screen and then create the layout below,
>> which has a View and two buttons:
>>
>> 
>> http://schemas.android.com/apk/res/android
>> android:layout_width="fill_parent"
>> android:layout_height="fill_parent"
>> android:orientation="vertical">
>>
>> > android:layout_width="fill_parent"
>> android:layout_height="360px"
>> android:scrollbarSize="100px"
>> android:paddingBottom="-20px"
>> android:clickable="true"
>> android:drawingCacheQuality="auto"
>> android:focusable="true"
>> android:focusableInTouchMode="true"
>> android:keepScreenOn="true"
>> android:longClickable="true"
>> android:visibility="visible">
>> 
>>
>> >
>> android:visibility="visible"
>>
>> android:text="Cancelar"
>>
>> android:layout_marginTop="10px"
>>
>> android:layout_width="150px"
>>
>> android:width="150px"
>>
>> android:id="@+btListaServicos/cancel"/>
>>
>> >
>> android:text="Compor Serviços"
>>
>> android:layout_marginTop="-49px"
>>
>> android:width="150px"
>>
>> android:layout_width="150px"
>>
>> android:layout_marginLeft="170px"
>>
>> android:id="@+btListaServicos/comporServicos">
>>
>> 
>>
>> 
>>
>> How do I display the screen object in my View from the layout?
>>
>> In this way does not work:
>>
>> public class ServiceComposition extends Activity {
>>
>> private DViewDbAdapter dbAdapter;
>>
>> private WsServicos Servico;
>>
>> private WsMetodos Metodo;
>>
>> private Parametros Parametro;
>>
>> private Parametros Returns;
>>
>> Map mServices;
>>
>> @Override
>>
>> protected void onCreate(Bundle savedInstanceState) {
>>
>> // TODO Auto-generated method stub
>>
>> super.onCreate(savedInstanceState);
>>
>> setContentView(R.layout.service_composition);
>>
>> dbAdapter = new DViewDbAdapter(this);
>>
>> dbAdapter.open();
>>
>> long idComposition = getIntent().getLongExtra("idComposition", 3);
>>
>> this.mServices = populaDados(idComposition);
>>
>> View view = findViewById(R.id.View01);
>>
>> view = new ExibeView(this, mServices);
>>
>> //setContentView(new ExibeView(this, mServices));
>>
>> }
>>
>> public class ExibeView extends View {
>>
>> private ImagemObjeto[] imagem;
>>
>> private int balID = 0; // variable to know what ball is being dragged
>>
>> private boolean moveu = false;
>>
>> private int distHorz = 60;
>>
>> private int distVert = 60;
>>
>> Map mPoint = new HashMap();
>>
>> Point point;
>>
>> /*
>>
>> * Point point0 = new Point(); Point point1 = new Point(); Point point2
>>
>> * = new Point(); Point point3 = new Point(); Point point4 = new
>>
>> * Point();
>>
>> */
>>
>> public ExibeView(Context context, Map mServices) {
>>
>> super(context);
>>
>> // TODO Auto-generated constructor stub
>>
>> setFocusable(true); // necessary for getting the touch events
>>
>> int QtdServices = mServices.size();
>>
>> this.imagem = new ImagemObjeto[QtdServices];
>>
>> for (int i = 0; i < QtdServices; i++) {
>>
>> point = new Point();
>>
>> point.x = distHorz;
>>
>> point.y = distVert;
>>
>> if (distHorz >= 180) {
>>
>> distHorz = 0;
>>
>> distVert += 60;
>>
>> }
>>
>> distHorz += 60;
>>
>> mPoint.put(i, point);
>>
>> }
>>
>> for (int i = 0; i < QtdServices; i++) {
>>
>> imagem[i] = new ImagemObjeto(context, R.drawable.quadrado,
>>
>> mPoint.get(i));
>>
>> }
>>
>> }
>>
>> // the method that draws the balls
>>
>> @Override
>>
>> protected void onDraw(Canvas canvas) {
>>
>> // canvas.drawColor(0xFFCC); //if you want another background
>>
>> // color
>>
>> Paint paint = new Paint();
>>
>> paint.setColor(-16776961);
>>
>> // draw the balls on the canvas
>>
>> for (ImagemObjeto img : imagem) {
>>
>> canvas.drawBitmap(img.getBitmap(), img.getX(), img.getY(),null);
>>
>> }
>>
>> // calculaTraco(canvas, point0, point1, imagem[0]);
>>
>> }
>>
>> // events when touching the screen
>>
>> public boolean onTouchEvent(MotionEvent event) {
>>
>> int eventaction = event.getAction();
>>
>> int X = (int) event.getX();
>>
>> int Y = (int) event.getY();
>>
>> boolean move = false;
>>
>> switch (eventaction) {
>>
>> case MotionEvent.ACTION_DOWN: // touch down so check if the finger
>>
>> // is on a ball
>>
>> balID = 0;
>>
>> for (ImagemObjeto img : imagem) {
>>
>> // check if inside the bounds of the ball (circle)
>>
>> // get the center for the ball
>>
>> int centerX = img.getX() + 25;
>>
>> int centerY = img.getY() + 25;
>>
>> // calculate the radius from the touch to the center of the
>>
>> // ball
>>
>> double radCircle = Math
>>
>> .sqrt((double) (((centerX - X) * (centerX - X)) + (centerY - Y)
>>
>> * (centerY - Y)));
>>
>> // if the radius is 

[android-beginners] Re: How to install my application on a device with NFS mount?

2009-05-20 Thread Lewis Z.

Thanks for the reply. It puzzles me. The application runs fine on the
Emulator.

Would it be caused by the code signing? I signed my application with a
key generated on my PC.


On May 20, 4:48 am, a druid  wrote:
> Hmm,
>
> I didn't try this for some time, but copying worked for me.
> If I recall correctly you might have to reboot if you install a new
> application.
> If you update an already existing application no reboot is required.
>
> On May 20, 1:02 am, "Lewis Z."  wrote:
>
> > I was able to boot a device through NFS mount. I thought I could run
> > my application if I copied it to /data/app. Even though I saw my
> > application in shell, I couldn't find it in the application window.
>
> > What steps did I miss?
>
> > Thanks in advance.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Prevent image stretching in backgrounds

2009-05-20 Thread ht

Thanks.
Has anyone already done this (or something similar)?  If so and you
are willing to share, I'd appreciate the help.

On May 20, 11:29 am, Romain Guy  wrote:
> Write a custom drawable to do this.
>
> On Tue, May 19, 2009 at 4:12 PM, ht  wrote:
>
> > I'd like to use setBackgroundDrawable() to set a background, but
> > prevent image stretching.  The behavior I'm looking for is to draw the
> > image with either no scaling, or scaling to fit the image without
> > changing the aspect ratio.  Any remaining area would be colored with
> > the background color (from setBackgroundColor).
>
> --
> Romain Guy
> Android framework engineer
> romain...@android.com
>
> Note: please don't send private questions to me, as I don't have time
> to provide private support.  All such questions should be posted on
> public forums, where I and others can see and answer them
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Upgraded SDK, now can't do helloAndroid project

2009-05-20 Thread er...@motorola.com

Xavier's instructions worked for me. I had to open the project
settings on a new project in Eclipse Ganymede + ADT 0.91, explicitly
set the build target and apply. After that it built correctly.

-E

On May 17, 12:34 pm, rahul  wrote:
> i also have the same problem
> please do help...
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: "Corrupt XML binary file" error when adding a PNG to res/drawable

2009-05-20 Thread Raphael

Can you file a bug at b.android.com with the zip file and your steps below?
Thanks in advance.
R/

On Mon, May 18, 2009 at 3:46 PM, Steve Smith  wrote:
> Hi,
>
> I've recreated this with a clean project.  To reproduce:
>
> * android create project -k net.haltcondition.ex.Hello -a Hello -t 2 -p hello
> * ant install
> * 
> * mkdir res/drawable
> * cp /tmp/androidmarker.png res/drawable
> * ant reinstall
> * 
>
> I've attached the resulting project.
>
> Cheers,
> Steve
>
>
> 2009/5/19 Steve Smith :
>> Hi,
>>
>> The file is res/drawable/androidmarker.png (taken from a tutorial).
>> I'm not referring to it at all; I'm merely placing it in the drawable
>> directory.  Removing it removes the error.
>>
>> Thanks,
>> Steve
>>
>> 2009/5/19 Raphael :
>>>
>>> What is the name of the png you are adding and where and how are you
>>> referring it to?
>>>
>>> R/
>>>
>>> On Sat, May 16, 2009 at 11:28 PM, Steve Smith  wrote:

 Hi,

 I'm seeing an odd error when adding a PNG file to the res/drawable
 directory in an otherwise working app:

  I/ActivityManager(  565): Start proc net.haltcondition.android.ex for
 activity net.haltcondition.android.ex/.ThreadedXmlList: pid=1237
 uid=10018 gids={3003}
 W/ResourceType( 1237): Bad XML block: header size 18254 or total size
 169478669 is larger than data size 635
 D/AndroidRuntime( 1237): Shutting down VM
 W/dalvikvm( 1237): threadid=3: thread exiting with uncaught exception
 (group=0x4000fe70)
 E/AndroidRuntime( 1237): Uncaught handler: thread main exiting due to
 uncaught exception
 E/AndroidRuntime( 1237): java.lang.RuntimeException: Unable to start
 activity ComponentInfo{net.haltcondition.android.ex/
 net.haltcondition.android.ex.ThreadedXmlList}:
 android.content.res.Resources$NotFoundException: File res/drawable/
 androidmarker.png from xml type layout resource ID #0x7f02
 E/AndroidRuntime( 1237):        at
 android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
 2268)
 E/AndroidRuntime( 1237):        at
 android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:
 2284)
 E/AndroidRuntime( 1237):        at android.app.ActivityThread.access$1800
 (ActivityThread.java:112)
 E/AndroidRuntime( 1237):        at 
 android.app.ActivityThread$H.handleMessage
 (ActivityThread.java:1692)
 E/AndroidRuntime( 1237):        at android.os.Handler.dispatchMessage
 (Handler.java:99)
 E/AndroidRuntime( 1237):        at android.os.Looper.loop(Looper.java:123)
 E/AndroidRuntime( 1237):        at android.app.ActivityThread.main
 (ActivityThread.java:3948)
 E/AndroidRuntime( 1237):        at java.lang.reflect.Method.invokeNative
 (Native Method)
 E/AndroidRuntime( 1237):        at java.lang.reflect.Method.invoke
 (Method.java:521)
 E/AndroidRuntime( 1237):        at com.android.internal.os.ZygoteInit
 $MethodAndArgsCaller.run(ZygoteInit.java:782)
 E/AndroidRuntime( 1237):        at com.android.internal.os.ZygoteInit.main
 (ZygoteInit.java:540)
 E/AndroidRuntime( 1237):        at dalvik.system.NativeStart.main(Native
 Method)
 E/AndroidRuntime( 1237): Caused by: android.content.res.Resources
 $NotFoundException: File res/drawable/androidmarker.png from xml type
 layout resource ID #0x7f02
 E/AndroidRuntime( 1237):        at
 android.content.res.Resources.loadXmlResourceParser(Resources.java:
 1843)
 E/AndroidRuntime( 1237):        at
 android.content.res.Resources.loadXmlResourceParser(Resources.java:
 1798)
 E/AndroidRuntime( 1237):        at android.content.res.Resources.getLayout
 (Resources.java:685)
 E/AndroidRuntime( 1237):        at android.view.LayoutInflater.inflate
 (LayoutInflater.java:318)
 E/AndroidRuntime( 1237):        at androidview.LayoutInflater.inflate
 (LayoutInflater.java:276)
 E/AndroidRuntime( 1237):        at
 com.android.internal.policy.impl.PhoneWindow.setContentView
 (PhoneWindow.java:309)
 E/AndroidRuntime( 1237):        at android.app.Activity.setContentView
 (Activity.java:1626)
 E/AndroidRuntime( 1237):        at
 net.haltcondition.android.ex.ThreadedXmlList.onCreate
 (ThreadedXmlList.java:34)
 E/AndroidRuntime( 1237):        at
 android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:
 1123)
 E/AndroidRuntime( 1237):        at
 android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
 2231)
 E/AndroidRuntime( 1237):        ... 11 more
 E/AndroidRuntime( 1237): Caused by: java.io.FileNotFoundException:
 Corrupt XML binary file
 E/AndroidRuntime( 1237):        at
 android.content.res.AssetManager.openXmlAssetNative(Native Method)
 E/AndroidRuntime( 1237):        at
 android.content.res.AssetManager.openXmlBlockAsset(AssetManager.java:
 471)
 E/AndroidRuntime( 1237):        a

[android-beginners] Re: Plz help me to retrieve contacts

2009-05-20 Thread Raphael

Please look in logcat (command line: adb logcat ; or Eclipse > Windows
> Perspective > DDMS) for the exact error that happens.

R/

On Wed, May 20, 2009 at 5:50 AM, Jayanthi  wrote:
>
> HI All,
> plz find java file
>
> package net.learn.getContact;
>
> import android.app.Activity;
> import android.content.ContentValues;
> import android.database.Cursor;
> import android.net.Uri;
> import android.os.Bundle;
> import android.provider.Contacts;
> import android.provider.Contacts.People;
> import android.util.Log;
>
> public class getContact extends Activity {
>
>       �...@override
>        public void onCreate(Bundle icicle) {
>            super.onCreate(icicle);
>            this.setTitle("Contact Card");
>            setContentView(R.layout.main);
>            Bundle bundle = getIntent().getExtras();
>         // create a new name
>            ContentValues values = new ContentValues();
>            values.put(Contacts.People.NAME, "Test Name");
>            // add it to the database
>            Uri newPerson = getContentResolver().insert
> (Contacts.People.CONTENT_URI, values);
> }
> }
> I am getting error while running the application saying Sorry has
> stopped expectely try again
>
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Cannot create AVD in window XP

2009-05-20 Thread Raphael

On Tue, May 19, 2009 at 3:22 PM, Norfeldt  wrote:
>
> I still don't get it..
>
> here is what I done..
> downloaded the SDK zip. extracted it to the desktop
> opened the folder at moved to content to this dir: C:\Android
> opened run and typed cmd typed emulator and hit ENTER
> The emulator runs fine...
> Close it down..
> run -> cmd [ENTER]
> I type:
> cd \ [ENTER]
> cd Android [ENTER]
> cd [tools]
> android create avd --target 2 --name my_avd
>
> AND BM Nothing happens but an error..
>
> there is no android.bat file in by tools folder.

If you type "dir" in that folder, what is the output?

R/

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: "Corrupt XML binary file" error when adding a PNG to res/drawable

2009-05-20 Thread Steve Smith

No worries:

http://code.google.com/p/android/issues/detail?id=2726

Cheers,
Steve

2009/5/21 Raphael :
>
> Can you file a bug at b.android.com with the zip file and your steps below?
> Thanks in advance.
> R/
>
> On Mon, May 18, 2009 at 3:46 PM, Steve Smith  wrote:
>> Hi,
>>
>> I've recreated this with a clean project.  To reproduce:
>>
>> * android create project -k net.haltcondition.ex.Hello -a Hello -t 2 -p hello
>> * ant install
>> * 
>> * mkdir res/drawable
>> * cp /tmp/androidmarker.png res/drawable
>> * ant reinstall
>> * 
>>
>> I've attached the resulting project.
>>
>> Cheers,
>> Steve
>>
>>
>> 2009/5/19 Steve Smith :
>>> Hi,
>>>
>>> The file is res/drawable/androidmarker.png (taken from a tutorial).
>>> I'm not referring to it at all; I'm merely placing it in the drawable
>>> directory.  Removing it removes the error.
>>>
>>> Thanks,
>>> Steve
>>>
>>> 2009/5/19 Raphael :

 What is the name of the png you are adding and where and how are you
 referring it to?

 R/

 On Sat, May 16, 2009 at 11:28 PM, Steve Smith  wrote:
>
> Hi,
>
> I'm seeing an odd error when adding a PNG file to the res/drawable
> directory in an otherwise working app:
>
>  I/ActivityManager(  565): Start proc net.haltcondition.android.ex for
> activity net.haltcondition.android.ex/.ThreadedXmlList: pid=1237
> uid=10018 gids={3003}
> W/ResourceType( 1237): Bad XML block: header size 18254 or total size
> 169478669 is larger than data size 635
> D/AndroidRuntime( 1237): Shutting down VM
> W/dalvikvm( 1237): threadid=3: thread exiting with uncaught exception
> (group=0x4000fe70)
> E/AndroidRuntime( 1237): Uncaught handler: thread main exiting due to
> uncaught exception
> E/AndroidRuntime( 1237): java.lang.RuntimeException: Unable to start
> activity ComponentInfo{net.haltcondition.android.ex/
> net.haltcondition.android.ex.ThreadedXmlList}:
> android.content.res.Resources$NotFoundException: File res/drawable/
> androidmarker.png from xml type layout resource ID #0x7f02
> E/AndroidRuntime( 1237):        at
> android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
> 2268)
> E/AndroidRuntime( 1237):        at
> android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:
> 2284)
> E/AndroidRuntime( 1237):        at android.app.ActivityThread.access$1800
> (ActivityThread.java:112)
> E/AndroidRuntime( 1237):        at 
> android.app.ActivityThread$H.handleMessage
> (ActivityThread.java:1692)
> E/AndroidRuntime( 1237):        at android.os.Handler.dispatchMessage
> (Handler.java:99)
> E/AndroidRuntime( 1237):        at android.os.Looper.loop(Looper.java:123)
> E/AndroidRuntime( 1237):        at android.app.ActivityThread.main
> (ActivityThread.java:3948)
> E/AndroidRuntime( 1237):        at java.lang.reflect.Method.invokeNative
> (Native Method)
> E/AndroidRuntime( 1237):        at java.lang.reflect.Method.invoke
> (Method.java:521)
> E/AndroidRuntime( 1237):        at com.android.internal.os.ZygoteInit
> $MethodAndArgsCaller.run(ZygoteInit.java:782)
> E/AndroidRuntime( 1237):        at com.android.internal.os.ZygoteInit.main
> (ZygoteInit.java:540)
> E/AndroidRuntime( 1237):        at dalvik.system.NativeStart.main(Native
> Method)
> E/AndroidRuntime( 1237): Caused by: android.content.res.Resources
> $NotFoundException: File res/drawable/androidmarker.png from xml type
> layout resource ID #0x7f02
> E/AndroidRuntime( 1237):        at
> android.content.res.Resources.loadXmlResourceParser(Resources.java:
> 1843)
> E/AndroidRuntime( 1237):        at
> android.content.res.Resources.loadXmlResourceParser(Resources.java:
> 1798)
> E/AndroidRuntime( 1237):        at android.content.res.Resources.getLayout
> (Resources.java:685)
> E/AndroidRuntime( 1237):        at android.view.LayoutInflater.inflate
> (LayoutInflater.java:318)
> E/AndroidRuntime( 1237):        at androidview.LayoutInflater.inflate
> (LayoutInflater.java:276)
> E/AndroidRuntime( 1237):        at
> com.android.internal.policy.impl.PhoneWindow.setContentView
> (PhoneWindow.java:309)
> E/AndroidRuntime( 1237):        at android.app.Activity.setContentView
> (Activity.java:1626)
> E/AndroidRuntime( 1237):        at
> net.haltcondition.android.ex.ThreadedXmlList.onCreate
> (ThreadedXmlList.java:34)
> E/AndroidRuntime( 1237):        at
> android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:
> 1123)
> E/AndroidRuntime( 1237):        at
> android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
> 2231)
> E/AndroidRuntime( 1237):        ... 11 more
> E/AndroidRuntime( 1237): Caused by: java.io.FileNotFoundException:
> Corrupt XML binary file
> E/AndroidRuntime( 1237):        at

[android-beginners] Re: storing values of an array

2009-05-20 Thread Raphael

Simply serialize your ints to a string and write in a simple sqlite
database. It's rather inexpensive and compact. You don't need a
provider or things like that, just use the database helper (there's
one in some sample) to create the db and a couple of query/select
commands to store and restore.

Alternatively you can do even simpler by storing the string as an app
preference:

prefs = PreferenceManager.getDefaultSharedPreferences(context);
prefs.edit().putString("name", value).commit();
prefs.getString("name);

R/

On Tue, May 19, 2009 at 11:24 PM, ayush  wrote:
>
> i'm designing a simple board game, where the positions and states of
> pieces are stored in two separate (single dimension) int arrays. i
> want to give the user the option to save the game and reload the same
> at a future time.
> is there anyway that these two arrays can be stored on the device and
> accessed later? the option of using SQL seemed a little to extensive
> since the data is just a simple array.
>
> ~ayush
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---