Re: [android-beginners] Help needed to write a caculator program

2010-07-27 Thread Justin Anderson
*> can anyone help me in writing the code for adding two numbers and
displaying the solution in the EditTextField.*

int z = 5 + 6;

EditText textField;
//Do stuff to initialize textField
textField.setText("" + z);

Now, I'm going to refer you to two different links that you should read:
http://developer.android.com/guide/index.html
http://www.catb.org/~esr/faqs/smart-questions.html

--
There are only 10 types of people in the world...
Those who know binary and those who don't.
--


On Tue, Jul 27, 2010 at 12:45 PM, ANUSHA PAUDIYAL <
anusha.paudiy...@gmail.com> wrote:

> Hi
> I am trying to write program for a calculator.
> can anyone help me in writing the code for adding two numbers and
> displaying the solution in the EditTextField.
>
> -A
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Beginners" group.
>
> NEW! Try asking and tagging your question on Stack Overflow at
> http://stackoverflow.com/questions/tagged/android
>
> 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
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

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 needed to write a caculator program

2010-07-27 Thread ANUSHA PAUDIYAL
Hi
I am trying to write program for a calculator.
can anyone help me in writing the code for adding two numbers and displaying
the solution in the EditTextField.

-A

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

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


Re: [android-beginners] Help, please - How to display videos as thumbs?

2010-07-17 Thread Victoria Busse
Hey I just saw that I forgot s.th. within  getCount(), so I changed it to

 public int getCount() {
   //return mThumbIds.length;
  if(vidUris!=null){
   return vidUris.length;}
   return 0;
   }

The thing now is that I still cannot see any videos displayed in my
GridView, but I get a message saying: "Sorry, but this video cannot be
played!"

As I don't want to play the videos but only display them in the GridView
like in an directory, do I maybe have to use MediaStore.Video.Thumbnails
instead, which I just found when I googled a little...though I don't know
what I should do with it in my code...if someone could help me out here,
that would be really really great... Thanks


On Sat, Jul 17, 2010 at 11:15 AM, Victoria wrote:

> Hi there,
>
> I am looking for a way to display the videos as thumbnails from my
> sdcard in a GridView. The way I tried doesn't seem to work, they don't
> show in the emulator...but I have no idea where I have done something
> wrong. If someone could give me a hand here, that would be great.
> Thank you very much in advance. Cheers.
>
> This is the code I am using to access the videos:
>
>package com.mobilevideoeditor.moved;
>
>import java.util.ArrayList;
>
>import android.app.Activity;
>import android.content.Context;
>import android.database.Cursor;
>import android.net.Uri;
>import android.os.Bundle;
>import android.provider.MediaStore;
>import android.util.Log;
>import android.view.View;
>import android.view.ViewGroup;
>import android.widget.BaseAdapter;
>import android.widget.GridView;
>import android.widget.VideoView;
>
>
>
>
>public class EditGalleryView extends Activity {
>Uri[] vidUris;
>public void onCreate(Bundle savedInstanceState) {
>super.onCreate(savedInstanceState);
>setContentView(R.layout.videogrid);
>
>GridView vGrid=(GridView) findViewById(R.id.vgrid);
>vGrid.setAdapter(new VideoAdapter(this));
>
>Uri uri = MediaStore.Video.Media.EXTERNAL_CONTENT_URI;
>
>Log.d("EditGalleryView", "uri:"+uri);
>String[] projection = {
>MediaStore.Video.Media.DESCRIPTION,
>MediaStore.Video.Media.DATA
>
>};
>
>Cursor c = this.managedQuery(uri, projection, null, null,
>MediaStore.Video.Media.DATE_ADDED);
> Log.d("EditGalleryView", "vids available:"
> +c.getCount());
>
> ArrayList experimentVids = new
> ArrayList();
>
>
> if (c.getCount() != 0) {
> c.moveToFirst();
>
> experimentVids.add(Uri.parse(c.getString(1)));
> while (c.moveToNext()) {
>
> experimentVids.add(Uri.parse(c.getString(1)));
>
>  }
>  }
> Log.d("ClassName",
> "experimentVids.length:"
> +experimentVids.size());
>  if
> (experimentVids.size() !=
> 0) {
>vidUris =
> new
> Uri[experimentVids.size()];
>  for (int i
> = 0; i <
> experimentVids.size(); i++) {
>
>  vidUris[i] =
> experimentVids.get(i);
>  }
>
>  Log.d("EditGalleryView",
> "vidUris:"+vidUris.length);
>  }
>  }
>
>
>public class VideoAdapter extends BaseAdapter {
>private Context mContext;
>
>public VideoAdapter(Context c) {
>mContext = c;
>}
>
>public int getCount() {
>//return mThumbIds.length;
>   if(vidUris!=null){
>return vidUris.length;}
>return 0;
>}
>
>
>public Object getItem(int position) {
>//return null;
>return position;
>}
>
>public long getItemId(int position) {
>//return 0;
>return position;
>}
>
>// create a new ImageView for each item referenced by the
> Adapter
>public View getView(int position, View convertView, ViewGroup
> parent) {
>   VideoView videoView;
>if (convertView == null) {  // if it's not recycled,
> initialize some attributes
>videoView = new VideoView(mContext);
>videoView.setVideoURI(vidUris[position]);
>videoView.setLayoutParams(new
> GridView.LayoutParams(85, 85));
>   //
> videoView.setScaleType(VideoView.S

[android-beginners] Help, please - How to display videos as thumbs?

2010-07-17 Thread Victoria
Hi there,

I am looking for a way to display the videos as thumbnails from my
sdcard in a GridView. The way I tried doesn't seem to work, they don't
show in the emulator...but I have no idea where I have done something
wrong. If someone could give me a hand here, that would be great.
Thank you very much in advance. Cheers.

This is the code I am using to access the videos:

package com.mobilevideoeditor.moved;

import java.util.ArrayList;

import android.app.Activity;
import android.content.Context;
import android.database.Cursor;
import android.net.Uri;
import android.os.Bundle;
import android.provider.MediaStore;
import android.util.Log;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.GridView;
import android.widget.VideoView;




public class EditGalleryView extends Activity {
Uri[] vidUris;
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.videogrid);

GridView vGrid=(GridView) findViewById(R.id.vgrid);
vGrid.setAdapter(new VideoAdapter(this));

Uri uri = MediaStore.Video.Media.EXTERNAL_CONTENT_URI;

Log.d("EditGalleryView", "uri:"+uri);
String[] projection = {
MediaStore.Video.Media.DESCRIPTION,
MediaStore.Video.Media.DATA

};

Cursor c = this.managedQuery(uri, projection, null, null,
MediaStore.Video.Media.DATE_ADDED);
 Log.d("EditGalleryView", "vids available:"
+c.getCount());

 ArrayList experimentVids = new
ArrayList();


 if (c.getCount() != 0) {
 c.moveToFirst();
 
experimentVids.add(Uri.parse(c.getString(1)));
 while (c.moveToNext()) {
 
experimentVids.add(Uri.parse(c.getString(1)));

  }
  }
 Log.d("ClassName", "experimentVids.length:"
+experimentVids.size());
  if 
(experimentVids.size() !=
0) {
vidUris = new
Uri[experimentVids.size()];
  for (int i = 
0; i <
experimentVids.size(); i++) {
  
vidUris[i] =
experimentVids.get(i);
  }
  
Log.d("EditGalleryView",
"vidUris:"+vidUris.length);
  }
  }


public class VideoAdapter extends BaseAdapter {
private Context mContext;

public VideoAdapter(Context c) {
mContext = c;
}

public int getCount() {
//return mThumbIds.length;
   if(vidUris!=null){
return vidUris.length;}
return 0;
}


public Object getItem(int position) {
//return null;
return position;
}

public long getItemId(int position) {
//return 0;
return position;
}

// create a new ImageView for each item referenced by the
Adapter
public View getView(int position, View convertView, ViewGroup
parent) {
   VideoView videoView;
if (convertView == null) {  // if it's not recycled,
initialize some attributes
videoView = new VideoView(mContext);
videoView.setVideoURI(vidUris[position]);
videoView.setLayoutParams(new
GridView.LayoutParams(85, 85));
   //
videoView.setScaleType(VideoView.ScaleType.CENTER_CROP);
videoView.setPadding(8, 8, 8, 8);
} else {
videoView = (VideoView) convertView;
}

  //  imageView.setImageResource(mThumbIds[position]);
return videoView;
}

   /* // references to our images
private Integer[] mThumbIds = {
R.drawable.sample_2, R.drawable.sample_3,
R.drawable.sample_4, R.drawable.sample_2,
R.drawable.sample_6, R.drawable.sample_3,
R.drawable.sample_4, R.drawable.sample_1,

};*/

}

}


-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your q

Re: [android-beginners] HELP: A Verizon Droid puzzle.

2010-07-11 Thread ca44


Hi Mark, 

My youngest son just tested this on his Droid and the results are: 



It worked. 



Thx 

-Chris 


- Original Message - 
From: "whitemice"  
To: "Android Beginners"  
Sent: Sunday, July 11, 2010 10:20:29 AM 
Subject: [android-beginners] HELP: A Verizon Droid puzzle. 

I am based in Germany and publish the "Last Call Widget" on the 
Android Market.  I have been steady improving it over time, but one 
group of users still complain about it not working on their devices. 

My widget listens for the "android.intent.action.PHONE_STATE" intent, 
and then sets an alarm to update the last call UI in 20 seconds, then 
60 seconds, then 5 minutes, 1 hour, etc.  This works reliably on all 
my test devices, even with aggressive task killers (try it yourself). 
Unfortunately I have a cluster of users with Motorola Droids on the 
Verizon network who complain that the UI does not automatically 
update. 

I believe Verizon is a CDMA network (we have GSM here in Europe), 
though the Android API docs don't specify any implementation 
differences.  This could also be a driver issue on the Motorola Droid 
(we have GSM Motorola Milestones in Europe). 

I am wondering if anyone reading is in a position to offer any ideas, 
or test the widget on a Droid and/or CDMA network to see if they can 
reproduce an issue (with logs)? 

Regards 
Mark 

-- 
You received this message because you are subscribed to the Google 
Groups "Android Beginners" group. 

NEW! Try asking and tagging your question on Stack Overflow at 
http://stackoverflow.com/questions/tagged/android 

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 

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

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: A Verizon Droid puzzle.

2010-07-11 Thread whitemice
I am based in Germany and publish the "Last Call Widget" on the
Android Market.  I have been steady improving it over time, but one
group of users still complain about it not working on their devices.

My widget listens for the "android.intent.action.PHONE_STATE" intent,
and then sets an alarm to update the last call UI in 20 seconds, then
60 seconds, then 5 minutes, 1 hour, etc.  This works reliably on all
my test devices, even with aggressive task killers (try it yourself).
Unfortunately I have a cluster of users with Motorola Droids on the
Verizon network who complain that the UI does not automatically
update.

I believe Verizon is a CDMA network (we have GSM here in Europe),
though the Android API docs don't specify any implementation
differences.  This could also be a driver issue on the Motorola Droid
(we have GSM Motorola Milestones in Europe).

I am wondering if anyone reading is in a position to offer any ideas,
or test the widget on a Droid and/or CDMA network to see if they can
reproduce an issue (with logs)?

Regards
Mark

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

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 Emulator Testing

2010-04-25 Thread Ubuntu Explorer
Hi,
I am trying to test my basic applications with Android emulator and have one
issue.
My PC is from stone age (too old) and is appropriately slow.

The emulator locks itself and in the settings I can only see an emulator
display lock setting time of 30 minutes max.
Is it possible to turn this off?

Regards,
UE.

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

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 please...

2010-04-11 Thread timothy
Hi group, I still have not been able to get some assistance in
retrieving contact data and I could really use the help. Right now, the
only thing I can access without any null pointer or cursor out of bounds
exceptions being thrown is the contacts display name. Does anyone know
how to access a phone number as well as the thumbnail icon associated
with a contact? Thanks.

package com.grey.gui;

import android.app.ListActivity;
import android.content.ContentResolver;
import android.content.Context;
import android.content.Intent;
import android.database.Cursor;
import android.os.Bundle;
import android.provider.ContactsContract;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.CursorAdapter;
import android.widget.ListView;
import android.widget.TextView;

public class MainPage extends ListActivity {

private Cursor c;
private ContentResolver cr;

@Override
public void onCreate(Bundle icicle) {
super.onCreate(icicle);
cr = getContentResolver();
c = cr.query(ContactsContract.Contacts.CONTENT_URI, null, null,
null,null);

this.setListAdapter(new MyContactsAdapter(this,c));

 
}
@Override
public void onListItemClick(ListView l, View v, int position, long id){
 super.onListItemClick(l, v, position, id);  
 Intent newIntent = new Intent(Intent.ACTION_MAIN); 
 newIntent.setClass(this, Summary.class);   
 startActivity(newIntent);
}

  private class MyContactsAdapter extends CursorAdapter{

private Cursor mCursor;
private Context mContext;
private final LayoutInflater mInflater;

public MyContactsAdapter(Context context, Cursor cursor) {
  super(context, cursor, true);
  mInflater = LayoutInflater.from(context);
  mContext = context;
}


private TextView t;
@Override
public void bindView(View view, Context context, Cursor 
cursor) {
String name =
cursor.getString(cursor.getColumnIndex(ContactsContract.Contacts.DISPLAY_NAME));
Log.d("Name",name);
t = (TextView) view.findViewById(R.id.txtName);

if(name != null) t.setText(name); 

String hasNumber =
cursor.getString(cursor.getColumnIndex(ContactsContract.Contacts.HAS_PHONE_NUMBER));
Log.d("hasNumber", hasNumber);
  //if(hasNumber.equals("1")){
String number =
cursor.getString(cursor.getColumnIndex(ContactsContract.PhoneLookup.NUMBER));
//Log.d("Number", number);
//TextView a = (TextView) 
view.findViewById(R.id.phoneNumber);
//a.setText(number);
  //}
  /*ImageView i = (ImageView) 
view.findViewById(R.id.icon);
  byte[] img =
cursor.getBlob(cursor.getColumnIndex(ContactsContract.Contacts.PHOTO_ID));
  Bitmap b = BitmapFactory.decodeByteArray(img, 0, 
img.length);
  i.setImageBitmap(b);*/
}



@Override

public View newView(Context context, Cursor cursor, 
ViewGroup
parent) {
  final View view = mInflater.inflate(R.layout.main, parent,
false);
  return view;

}

  }


}




-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

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

To unsubscribe, reply using "remove me" as the subject.


[android-beginners] HELP! Get contact's thumbnail picture!

2010-04-10 Thread Timothy Passaro
Hi all, I am still struggling trying to get this to work and any help
would be great:

ImageView i = (ImageView) view.findViewById(R.id.pix);
 byte[] img =
cursor.getBlob(cursor.getColumnIndex(ContactsContract.Contacts.PHOTO_ID));
  Bitmap b = BitmapFactory.decodeByteArray(img, 0, img.length);
  i.setImageBitmap(b);

In this method, the cursor is :

 c = cr.query(ContactsContract.Contacts.CONTENT_URI, null, null,
null,null);

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

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

To unsubscribe, reply using "remove me" as the subject.


[android-beginners] Help: Issue with Android GridView, TouchListener and onTouch()

2010-04-03 Thread Jack
I am using the following code to do things with gridview(slightly
modified from 
http://developer.android.com/resources/tutorials/views/hello-gridview.html).
I want to replace the onClicklistener and the onClick() method with
their "touch" equivalents i.e. touchlistener and onTouch() so that
when i touch an element in the gridview the image of the element
changes and a double touch on the same element takes it back to the
orginal state.

How do I do this? I can't get my code to do this. The clicklistener
works to some extent but the touch isn't. Please help.

public class ImageAdapter extends BaseAdapter {
private Context mContext;

public ImageAdapter(Context c) {
mContext = c;
}

public int getCount() {
return mThumbIds.length;
}

public Object getItem(int position) {
return null;
}

public long getItemId(int position) {
return 0;
}

// create a new ImageView for each item referenced by the Adapter
public View getView(int position, View convertView, ViewGroup parent)
{
ImageView imageView;
if (convertView == null) {  // if it's not recycled, initialize
some attributes
imageView = new ImageView(mContext);
imageView.setLayoutParams(new GridView.LayoutParams(85, 85));
imageView.setScaleType(ImageView.ScaleType.CENTER_CROP);
imageView.setPadding(8, 8, 8, 8);

imageView.setOnClickListener(new View.OnClickListener()
{

  @Override
  public void onClick(View view)
{

  if(position==0)
  {
  //do this
  }
  else
  {
//do this
  }
   }
});

} else {
imageView = (ImageView) convertView;
}

imageView.setImageResource(mThumbIds[position]);
return imageView;
}

// references to our images
private Integer[] mThumbIds = {
R.drawable.sample_2, R.drawable.sample_3,
R.drawable.sample_4, R.drawable.sample_5,
R.drawable.sample_6, R.drawable.sample_7,
R.drawable.sample_0, R.drawable.sample_1,
R.drawable.sample_2, R.drawable.sample_3,
R.drawable.sample_4, R.drawable.sample_5,
R.drawable.sample_6, R.drawable.sample_7,
R.drawable.sample_0, R.drawable.sample_1,
R.drawable.sample_2, R.drawable.sample_3,
R.drawable.sample_4, R.drawable.sample_5,
R.drawable.sample_6, R.drawable.sample_7
};
}

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

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

To unsubscribe, reply using "remove me" as the subject.


[android-beginners] Help required on Eclair Video Camera framework

2010-03-26 Thread Subash
Android release: Eclair on TI SDP3430 board
Objective: To integrate the video encoding functionality(H.264 codec)
using proprietary mechanism instead of onboard DSP
Primary code changes: OMX component for video encoding and CameraHal
modified (see below for details)

Files in these directories are modified:
hardware/ti/omx/video/src/openmax_il/video_encode/inc/
hardware/ti/omx/video/src/openmax_il/video_encode/src/
hardware/ti/omap3/camera/


Problem Description:
Video camera preview starts. But fails on the author driver
PREPARE command.

Problem details:
From the logs I can see that the preview starts. After that we
try to initialize the camcorder.
[VIDIOC_S_CTRL, VIDIOC_QUERYBUF ioctl's have passed by now, and the
driver ioctl's of VIDIOC_QBUF and VIDIOC_DQBUF are working fine now ]

OMX core gets loaded. After this AuthorDriver will report the below
commands and its status:
AUTHOR_INIT  PVMFSuccess
AUTHOR_SET_VIDEO_SOURCE  PVMFSuccess
AUTHOR_SET_OUTPUT_FORMAT  PVMFSuccess
AUTHOR_SET_VIDEO_ENCODER  PVMFSuccess   (H263 is set)

>From the log, now OMX_Core loads the OMX.TI.Video.encoder component
(which is what I have replaced)
Following the Set/Get parameter invocations happen from CameraHal, and
below are their results:
SetParameter:OMX_IndexParamStandardComponentRole exit status = 0
GetParameter :OMX_IndexParamVideoInit   -do-
GetParameter:OMX_IndexParamPortDefinition  -do-
GetParameter:OMX_IndexParamPortDefinition   -do-
GetParameter:OMX_IndexParamVideoPortFormat   -do-

CameraService log shows the camera is now in preview mode, and the
preview frames are coming from the driver (can be seen in the LCD)

In the Author driver, I can see that some component has issued a
PREPARE command. CommandCompleted(const PVCmdResponse&aResponse) in
the Author driver is invoked, which reports that error is: -15. From
the Packet Video framework, this error code refers to
PVMFErrNoResources. This is the place where I am not getting the clear
flow and request for your
help.

Now, to debug I had some debug messages in below packet video files:
a) external/opencore/engines/2way/src/pv_2way_engine.cpp
b) external/opencore/nodes/pvomxencnode/src/pvmf_omx_enc_node.cpp

My debug messages arent coming from the PVMF. So I want to understand
the flow between the OMX, packet video and authordriver. That will
help me know, who has set the error value to PVMFErrNoResources and
invoked the AuthorDriver::CommandCompleted().

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

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

To unsubscribe from this group, send email to 
android-beginners+unsubscribegooglegroups.com or reply to this email with the 
words "REMOVE ME" as the subject.


[android-beginners] Help with displaying HTML formatted strings from an ArrayAdapter

2010-03-23 Thread Soren
  I appologize for the absolute beginner questions, but I am having a
tough time understanding this.

  I need some help of how to display the strings that I have marked up
with simple html into a TextView. I have found "Spanned
fromHtml(String source)", but I don't know how to plug it into my java
code or really how to use it. In my code below would HistoryList be my
string source?

Here is my Java:

package com.SorenWinslow.TriumphHistory;

import android.app.ListActivity;
import android.os.Bundle;
import android.widget.ArrayAdapter;

public class TriumphHistory extends ListActivity {
String[] HistoryList;

/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);

ArrayAdapter adapter;
HistoryList = getResources().getStringArray(R.array.history);
adapter = new ArrayAdapter
(this,R.layout.historylistlayout,HistoryList);
setListAdapter(adapter);

}
}

Here is a sample of history:




1883Some stuff happened
1884Some more stuff happened before the other
stuff




http://schemas.android.com/apk/res/android";
android:id="@android:id/text1"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceLarge"
android:gravity="center_vertical"
android:textColor="#ff"
android:background="#50"
android:layout_marginTop="5px"
android:minHeight="?android:attr/listPreferredItemHeight"
android:padding="3px"
android:textSize="8pt" android:layout_gravity="top|left"/>


And here is my main.xml




http://schemas.android.com/apk/res/
android"
android:orientation="vertical"
android:textColor="#ff"
android:background="#80"
android:isScrollContainer="true"
android:layout_height="fill_parent"
android:layout_width="fill_parent"
android:scrollbarStyle="insideOverlay">

  http://schemas.android.com/apk/res/
android"
android:id="@android:id/list"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:clickable="true"
android:dividerHeight="1px"/>



-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

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

To unsubscribe from this group, send email to 
android-beginners+unsubscribegooglegroups.com or reply to this email with the 
words "REMOVE ME" as the subject.


Re: [android-beginners] Help Needed : MediaRecorder error: java.io.IOException: prepare failed

2010-03-16 Thread LG ZHU
hi:all ,i'm seeing same issue .can you help me ?




2009/9/8 preetam_pict 

>
> Hi all
>
> I am trying to write a sample program to record the video (say
> camcorder application).
> When i run my program using the emulator (I have android-sdk-
> windows-1.5_r3) I see java.io.IOException: prepare failed. error in
> logcat output.
>
> Further I can see that I have came across this error when i call
> MediaRecorder.prepare()
> from CamcorderActivity.surfaceCreated()
> But I am surprised to see that activity got launched and I am seeing
> the camera preview!  Again the preview is seen only in half of the
> screen! Its weird!!!
>
> Further when i do recorder.start() to record the video I get
> java.lang.IllegalStateException. Yes this is obvious since the prepare
> () has failed.
> But the question is why prepare() has failed ?
>
> Can someone please help me to understand whats happening here!
> Am i missing something ???
>
> thanks in advance
> ~pp
>
> Here is my code ...
> package com.example;
>
> import java.io.IOException;
>
> import android.app.Activity;
> import android.graphics.PixelFormat;
> import android.media.MediaRecorder;
> import android.os.Bundle;
> import android.util.Log;
> import android.view.KeyEvent;
> import android.view.SurfaceHolder;
> import android.view.SurfaceView;
>
> public class CamcorderActivity extends Activity implements
>   SurfaceHolder.Callback
> {
>   private MediaRecorder recorder;
>   private SurfaceView   surfaceView;
>   private SurfaceHolder surfaceHolder;
>
>   private boolean   recording = false;
>
>   /** Called when the activity is first created. */
>   @Override
>   public void onCreate(Bundle savedInstanceState)
>   {
>   super.onCreate(savedInstanceState);
>
>   // configure the surface
>   getWindow().setFormat(PixelFormat.TRANSLUCENT);
>   setContentView(R.layout.main);
>   surfaceView = (SurfaceView) findViewById
> (R.id.camcordersurface);
>   surfaceHolder = surfaceView.getHolder();
>   surfaceHolder.addCallback(this);
>   surfaceHolder.setType(SurfaceHolder.SURFACE_TYPE_PUSH_BUFFERS);
>   configureRecorder();
>   }
>
>   private void configureRecorder()
>   {
>   // configure media recorder
>   recorder = new MediaRecorder();
>   recorder.setAudioSource(MediaRecorder.AudioSource.MIC);
>   recorder.setVideoSource(MediaRecorder.VideoSource.DEFAULT);
>   recorder.setOutputFormat(MediaRecorder.OutputFormat.MPEG_4);
>   recorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB);
>   recorder.setVideoEncoder(MediaRecorder.VideoEncoder.MPEG_4_SP);
>   }
>
>   private void stopRecorder()
>   {
>   try
>   {
>   if (recorder == null)
>   {
>   return;
>   }
>   recorder.stop();
>   recorder.reset();
>   recorder.release();
>   recording = false;
>   recorder = null;
>   }
>   finally
>   {
>   if (recorder != null)
>   {
>   recorder.release();
>   }
>   }
>   }
>
>   private void startRecorder()
>   {
>   recorder.start();
>   recording = true;
>   }
>
>   @Override
>   public boolean onKeyDown(int keyCode, KeyEvent event)
>   {
>   if (keyCode == KeyEvent.KEYCODE_DPAD_CENTER)
>   {
>   // if not recording then start
>   if (!recording)
>   {
>   startRecorder();
>   }
>   else
>   {
>   // if already recording then stop
>   stopRecorder();
>   finish();
>   }
>   return true;
>   }
>   return super.onKeyDown(keyCode, event);
>   }
>
>   @Override
>   public void surfaceChanged(SurfaceHolder holder, int format, int
> width,
>   int height)
>   {
>   // do nothing
>   }
>
>   @Override
>   public void surfaceCreated(SurfaceHolder holder)
>   {
>   recorder.setOutputFile("/sdcard/test" + System.currentTimeMillis
> ()
>   + ".mp4");
>   recorder.setPreviewDisplay(holder.getSurface());
>   try
>   {
>   recorder.prepare();
>   }
>   catch (IOException e)
>   {
>   Log.e("error -- ", e.toString(), e);
>   // TODO:
>   // show error message
>   }
>   }
>
>   @Override
>   public void surfaceDestroyed(SurfaceHolder holder)
>   {
>   stopRecorder();
>   }
> }
>
> And the layout ...
>
> 
> http://schemas.android.com/apk/res/
> android"
>   android:orientation="vertical"
> android:layout_width="fill_parent"
>   android:layout_height="fill_parent">
>  android:layout_width="fill_parent"
> android:layout_height="10dip"
>   android:layout_weight="1">
>   
> 
>
> --~--~-~--~~~---~--~~
> 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 

[android-beginners] Help converting C# code

2010-03-13 Thread Mr. Baseball 34
I am trying to convert a C# game to Android and need some help withe
the graphics stuff.

Can anyone show me how to convert this to Java?

using System;
using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;
using System.Drawing.Drawing2D;

namespace MyGame
{
  public partial class MyButton : Button
  {
GraphicsPath path;
GraphicsPath innerPath;

private bool _clicked = false;
public bool Clicked
{
  get { return _clicked; }
  set
  {
_clicked = value;
Invalidate();
  }
}

public MyButton()
{
  InitializeComponent();
}

protected override void OnPaint(PaintEventArgs pevent)
{
  Graphics g = pevent.Graphics;
  g.SmoothingMode = SmoothingMode.AntiAlias;

  // Create painting objects
  Brush b = new SolidBrush(this.ForeColor);

  // Create Rectangle To Limit brush area.
  Rectangle rect = new Rectangle(0, 0, 150, 150);

  LinearGradientBrush linearBrush =
new LinearGradientBrush(rect,
Color.FromArgb(20,20,20),
this.ForeColor,
225);

  path = new GraphicsPath();
  innerPath = new GraphicsPath();

  path.AddArc(0, 0, 270, 270, 180, 90);
  path.AddArc(120, 0, 30, 30, 270, 90);
  path.AddLine(150, 0, 150, 85);
  path.AddArc(100, 100, 100, 100, -90, -90);
  path.AddLine(100, 150, 0, 150);
  path.AddArc(0, 120, 30, 30, 90, 90);

  innerPath.AddArc(10, 10, 250, 250, 180, 90);
  innerPath.AddArc(130, 10, 10, 10, 270, 90);
  innerPath.AddLine(140, 0, 140, 90);
  innerPath.AddArc(90, 90, 100, 100, -90, -90);
  innerPath.AddLine(90, 140, 10, 140);
  innerPath.AddArc(10, 130, 10, 10, 90, 90);

  this.Region = new Region(path);

  PathGradientBrush pgbrush = new PathGradientBrush(innerPath);
  pgbrush.CenterPoint = new Point(75, 75);
  pgbrush.CenterColor = Color.White;
  pgbrush.SurroundColors = new Color[] {
Color.FromArgb(250,this.ForeColor) };

  if (_clicked == false)
  {
g.FillPath(linearBrush, path);
g.FillPath(b, innerPath);
  }
  else
  {
g.FillPath(linearBrush, path);
g.FillPath(pgbrush, innerPath);
  }

  // Dispose of painting objects
  b.Dispose();
  pgbrush.Dispose();
  linearBrush.Dispose();
}

protected override void OnMouseEnter(EventArgs e)
{
  this.Cursor = Cursors.Hand;
  base.OnMouseEnter(e);
}

protected override void OnMouseLeave(EventArgs e)
{
  this.Cursor = Cursors.Arrow;
  base.OnMouseLeave(e);
}

protected override void OnMouseDown(MouseEventArgs mevent)
{
  _clicked = true;
  base.OnMouseDown(mevent);
}

protected override void OnMouseUp(MouseEventArgs mevent)
{
  _clicked = false;
  base.OnMouseUp(mevent);
}
  }
}

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

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 me to select some days from a calendar base on some dates that I have please

2010-03-09 Thread bcatza
I am working to an aplication who calculate the menstruation of girls.

input:  a calendar
  - start_day(the start day of menstrual cycle wich is with
red in the calendar )
  - end_day(the end day of menstrual cycle wich is with yellow
in the calendar)
   - mens(menstruation length)


output(what I want to optain):

  I want to display on the calendar the
start(red background) and the end(yellow background) of menstruation
for the next 6 month. I manage to do this for 2 months and im block
now.

PLEASE IF SOMEONE  HAVE ANY IDEA!! Thank you verry much!

Catalin







code for calendar: ShowCalendar.java:



public class ShowCalendar extends Activity
{
public static final String selectedDate="selectedDate";
public int mYear;
public int mMonth;
public int mDay;
static int realDay, realMonth, realYear, currentMonth,
currentYear;
private Enumeration e;
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.calendar);
GregorianCalendar cal = new GregorianCalendar(); //Create
calendar
realDay = cal.get(GregorianCalendar.DAY_OF_MONTH); //Get day
realMonth = cal.get(GregorianCalendar.MONTH); //Get month
realYear = cal.get(GregorianCalendar.YEAR); //Get year
currentMonth=realMonth;
currentYear=realYear;

TextView t1=(TextView) findViewById(R.id.t1);
TextView t2=(TextView) findViewById(R.id.t2);
TextView t3=(TextView) findViewById(R.id.t3);
TextView t4=(TextView) findViewById(R.id.t4);
TextView t5=(TextView) findViewById(R.id.t5);
TextView t6=(TextView) findViewById(R.id.t6);
TextView t7=(TextView) findViewById(R.id.t7);
TextView t8=(TextView) findViewById(R.id.t8);
TextView t9=(TextView) findViewById(R.id.t9);
TextView t10=(TextView) findViewById(R.id.t10);
TextView t11=(TextView) findViewById(R.id.t11);
TextView t12=(TextView) findViewById(R.id.t12);
TextView t13=(TextView) findViewById(R.id.t13);
TextView t14=(TextView) findViewById(R.id.t14);
TextView t15=(TextView) findViewById(R.id.t15);
TextView t16=(TextView) findViewById(R.id.t16);
TextView t17=(TextView) findViewById(R.id.t17);
TextView t18=(TextView) findViewById(R.id.t18);
TextView t19=(TextView) findViewById(R.id.t19);
TextView t20=(TextView) findViewById(R.id.t20);
TextView t21=(TextView) findViewById(R.id.t21);
TextView t22=(TextView) findViewById(R.id.t22);
TextView t23=(TextView) findViewById(R.id.t23);
TextView t24=(TextView) findViewById(R.id.t24);
TextView t25=(TextView) findViewById(R.id.t25);
TextView t26=(TextView) findViewById(R.id.t26);
TextView t27=(TextView) findViewById(R.id.t27);
TextView t28=(TextView) findViewById(R.id.t28);
TextView t29=(TextView) findViewById(R.id.t29);
TextView t30=(TextView) findViewById(R.id.t30);
TextView t31=(TextView) findViewById(R.id.t31);
TextView t32=(TextView) findViewById(R.id.t32);
TextView t33=(TextView) findViewById(R.id.t33);
TextView t34=(TextView) findViewById(R.id.t34);
TextView t35=(TextView) findViewById(R.id.t35);
TextView t36=(TextView) findViewById(R.id.t36);
TextView t37=(TextView) findViewById(R.id.t37);
TextView t38=(TextView) findViewById(R.id.t38);
TextView t39=(TextView) findViewById(R.id.t39);
TextView t40=(TextView) findViewById(R.id.t40);
TextView t41=(TextView) findViewById(R.id.t41);
TextView t42=(TextView) findViewById(R.id.t42);

TextView[][] a=new TextView[][]{{t1,t2,t3,t4,t5,t6,t7},
{t8,t9,t10,t11,t12,t13,t14},{t15,t16,t17,t18,t19,t20,t21},
{t22,t23,t24,t25,t26,t27,t28},{t29,t30,t31,t32,t33,t34,t35},
{t36,t37,t38,t39,t40,t41,t42}};

refreshCalendar(realMonth,realYear,a);

}
public void refreshCalendar(int month,int year,final TextView[][]
a){
Girl aGirl=null;
//Variables
String[] months = {"January", "February", "March", "April",
"May", "June", "July", "August", "September", "October", "November",
"December"};
int nod, som, mom;
//Get number of days and start of month
GregorianCalendar cal2 = new GregorianCalendar(year, month,
7);
nod = cal2.getActualMaximum(GregorianCalendar.DAY_OF_MONTH);
som = cal2.get(GregorianCalendar.DAY_OF_WEEK);
mom= cal2.get(GregorianCalendar.MONTH);
int row;
int column;

TextView monthYear=(TextView) findViewById(R.id.month);
TextView average=(TextView) findViewById(R.id.mens_red);

B

Re: [android-beginners] help installing ADT eclipse Plugin

2010-02-23 Thread Rogério de Souza Moraes
Hi,

do you is using what kind of operational system? You can try to add
http://download.eclipse.org/releases/galileo to the update list and do an
update. This may install the pluggins that are missing.

Regards,

Rogerio

2010/2/22 bmesta 

> Hello,
>
> I tried following the installation steps on
> http://developer.android.com/sdk/eclipse-adt.html
> but i get the following errors when i reach the last step.
>
> The error i get is the following:
> Cannot complete the install because one or more required items could
> not be found.
>  Software being installed: Android Development Tools
> 0.9.5.v200911191123-20404 (com.android.ide.eclipse.adt.feature.group
> 0.9.5.v200911191123-20404)
>  Missing requirement: Android Development Tools
> 0.9.5.v200911191123-20404 (com.android.ide.eclipse.adt.feature.group
> 0.9.5.v200911191123-20404) requires 'org.eclipse.wst.xml.ui 0.0.0' but
> it could not be found
>
> FYI, I tried all three different ways even downloading the archive and
> installing it manually but unfortunately no luck. How do you fix this?
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Beginners" group.
>
> NEW! Try asking and tagging your question on Stack Overflow at
> http://stackoverflow.com/questions/tagged/android
>
> 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
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

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 installing ADT eclipse Plugin

2010-02-22 Thread bmesta
Hello,

I tried following the installation steps on 
http://developer.android.com/sdk/eclipse-adt.html
but i get the following errors when i reach the last step.

The error i get is the following:
Cannot complete the install because one or more required items could
not be found.
  Software being installed: Android Development Tools
0.9.5.v200911191123-20404 (com.android.ide.eclipse.adt.feature.group
0.9.5.v200911191123-20404)
  Missing requirement: Android Development Tools
0.9.5.v200911191123-20404 (com.android.ide.eclipse.adt.feature.group
0.9.5.v200911191123-20404) requires 'org.eclipse.wst.xml.ui 0.0.0' but
it could not be found

FYI, I tried all three different ways even downloading the archive and
installing it manually but unfortunately no luck. How do you fix this?

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

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 Cannot Deploy to Droid

2010-02-22 Thread Dale
Hi -

I've been working on a Bluetooth application for about a month.  I
used the sample application BlueToothChat as a base.  Today while
working on the it I went to deploy to my Droid phone and it started
the AVD emulator.  I cannot deploy to this because it does not have a
bluetooth emulator.  The only thing that I did today was change the
application icon.

I can run ddms and connect to the phone and see logging so I know that
it is connected.  I don't have a firewall running.

I've been searching around trying to find a resolution to this.  Does
anyone have any thougths?


Thanks,

Dale

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

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 for Network game

2010-02-22 Thread Laxmi Katti
Hi,
 I have developed a game. Now want to make a network version of this
game. So please anybody could help me with how to get 2 emulators to
work, how to check the network and stuff like that. I have no idea
about this so please if anybody could give me a link to some tutorial
or some discussion or any thing, it would be great help.
Thanks

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

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 sound aplication

2010-02-16 Thread Waphomet
Hi everybody, I've been sarching in forums (and google) trying to find
something helpful but I had no luck, so I hope someone here could help
me.

I'm trying to make a simple "Piano -like" app, so I can press a button
and a sound will be playing as long as I'm pressing it. I would also
like to record in a text file what buttons I've been presing and how
much time (just similar to midi format), so I could reproduce it
later.

The question is: what media resource should I use? I should record the
"plain sounds" in some kind of music format (one archive for each
sound ) and then call them using soundpool? There's no other more
optimized option... 'cause I don't like the sound of what I've been
thinking of...specially if I want to make a composer mode and deal
with time.

Thanks and sorry for my poor English... greetings from Spain :-) South
Europe :-)

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

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 REQUIRED

2010-02-08 Thread Chirayu Dalwadi
Hi Community,

I have problems with,

1. Notifications
2. Linkify
3. Dynamic generation of tables

I have referred to many codes available online, but none of them works for
me.
Please suggest a simple way to enable that in my application.

Thank You in advance.

-- 
Warm Regards,
Chirayu Dalwadi

"Pain is temporary. Quitting lasts forever." -- Lance Armstrong

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

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! -- Weird emulator problem

2010-02-02 Thread Saung Li
I have a really weird problem with my Android emulator. I've installed
Eclipse (3.5.1 Java version), SDK with the android 2.1 platform, and the
ADT plugin. Whenever I run the emulator, it acts strangely. It types "="
into text fields at regular intervals and the keyboard automatically pops up
so I can't click on the applications button. I am using Windows 32 bit.
If I try to click away, say go to home, all this stuff will automatically
pop up again so I can't navigate around.
Anyone know what the problem is and how I can fix it?
I get some non-response errors too.
Here are the screenshots for these two problems:

http://img641.imageshack.us/img641/3076/weird.jpg
http://img59.imageshack.us/img59/6671/weird2k.jpg

Saung

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

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 Random number generator

2010-01-28 Thread Tag
I'm very new to android and java, so I don't have a very good
understanding of how to work through certain problems other than
taking wild stabs here and there.

The problem i'm trying to overcome is generating a simple random
number between 1 and 9 from the click of a button and getting that
number to appear in a TextView.

This is what I have so far, but it always fails at the .setText()

public class AndroidRandom extends Activity {
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
Button b = (Button)findViewById(R.id.Button);

b.setOnClickListener(new View.OnClickListener() {
public void onClick(View v) {
TextView a = 
(TextView)findViewById(R.id.Output);
long tim = System.currentTimeMillis();
Random random = new Random(tim);
int RandomNumber = random.nextInt(9);
a.setText(RandomNumber);
}
});
}
}

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

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 android contacts

2010-01-13 Thread Ed Holley
Is there a system to make a plug in for contacts?  I am seeking to change
sort order if possible programaticaly.

sent on location from my Motorola Droid
-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

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 scrollbar in resized LinearLayout

2010-01-04 Thread Stephen B
I'm developing my first Android application. I've got it working, in a
basic, "It compiles, it links, and it even accepts input and doesn't
crash," sort of way. I'm seeing a very strange behavior, though, when
I deploy it to my DROID (android version 2.0.1). If I start the app
with the phone held so that it's in a portrait orientation, there's
enough room for all the layout elements and the screen does not have
any scrollbars. If I start the app with the phone held so that it's in
landscape orientation (slide the keyboard out, or just hold the phone
up as if to use the camera) there isn't enough vertical space for all
the elements and there's a scrollbar on the right.

Now for the mystery: if I start out in portrait mode and then turn the
phone over to landscape, the screen gets reoriented but *no scrollbar
appears*. Am I missing some callback? Is there something like an
"orientation changed" event that I should listen for and tell the view
to redraw?

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

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


Re: [android-beginners] help regarding implementation of SAX parser in android

2009-12-31 Thread TreKing
I haven't used SaxParser, but wouldn't what you're doing be relative to the
file in which you're running that code?
So unless your source file is in the same root folder as /res/, I wouldn't
expect that to work.

-
TreKing - Chicago transit tracking app for Android-powered devices
http://sites.google.com/site/rezmobileapps/treking


On Fri, Jan 1, 2010 at 12:38 AM, Yousuf Faheem wrote:

> Hi,
>
> Happy New Year to all.
> I am trying to implement a SAX parser in my android application.
> I placed my xml file in res/xml folder and declared my path as
> "/res/xml/book.xml".
>
> SAXParserFactory spf = SAXParserFactory.newInstance();
> try {
>
>
> SAXParser sp = spf.newSAXParser();
> sp.parse("/res/xml/book.xml",this);
>
> }catch(SAXException se) {
> se.printStackTrace();
> }
>
> still the application gives a file not found error. Any clue what going on
> with the code.
>
> Thanks & Regards,
> Yousuf Syed
> 773-719-4786
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Beginners" group.
>
> NEW! Try asking and tagging your question on Stack Overflow at
> http://stackoverflow.com/questions/tagged/android
>
> 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
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

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 regarding implementation of SAX parser in android

2009-12-31 Thread Yousuf Faheem
Hi,

Happy New Year to all.
I am trying to implement a SAX parser in my android application.
I placed my xml file in res/xml folder and declared my path as
"/res/xml/book.xml".

SAXParserFactory spf = SAXParserFactory.newInstance();
try {


SAXParser sp = spf.newSAXParser();
sp.parse("/res/xml/book.xml",this);

}catch(SAXException se) {
se.printStackTrace();
}

still the application gives a file not found error. Any clue what going on
with the code.

Thanks & Regards,
Yousuf Syed
773-719-4786

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

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 finding documentation for actions in the manifest file

2009-12-10 Thread Joe Mihalich
Hi,

 This has been killing me.  I finally found examples around the
net for things I wanted to experiment with.  I had to go searching cuz
I could find this information anywhere in the API Docs.

 I got one answered, but I need help with the other.

 1) For listening for broadcast SMS messages through a broadcast
receiver, I see that you have to defined the action, for the intent in
the broadcast receiver element as:

   
   
   
   

   First, where is that name

android.provider.Telephony.SMS_RECEIVED defined?  How am I supposed to
track that down in the API Doc?

There is no android.provider.Telephony class or package.

   Second, in the code for receiving the actual broadcast, I see
you need to do something like this to get the message(s).

   Object[] pdus = (Object[]) bundle.get("pdus");

   Where is it defined that the extra name in the bundle is "pdus"
for SMS messages.

Thanks,
Joe

-- 
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 regarding facebook integration applicaiton

2009-12-02 Thread Yousuf Syed
Hi,

Can anyone help me with some ideas or clues on how to integrate my android
application with facebook.

Thanks in advance,


Yousuf.

-- 
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

Re: [android-beginners] Help! My simple app works in Eclipse Emulator but not on droid

2009-11-23 Thread Justin Anderson
Debug the app on your Droid through Eclipse and look at the logcat info
--
There are only 10 types of people in the world...
Those who know binary and those who don't.
--


On Fri, Nov 20, 2009 at 12:03 AM, andrew android wrote:

> My simple app - with no fancy stuff - just one preferences screen and
> simple while loop logic keeps crashing on my droid though it works
> fine in the emulator ... I've tried everything I could find online for
> possible answers, I think...  is there something very basic I'm
> missing?
>
> I get a blank screen showing the app title and nothing else!  It hangs
> forever before crashing!
>
>
> Thank you so much for helping!  Anyone?
>
> --
> 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

-- 
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! My simple app works in Eclipse Emulator but not on droid

2009-11-22 Thread andrew android
My simple app - with no fancy stuff - just one preferences screen and
simple while loop logic keeps crashing on my droid though it works
fine in the emulator ... I've tried everything I could find online for
possible answers, I think...  is there something very basic I'm
missing?

I get a blank screen showing the app title and nothing else!  It hangs
forever before crashing!


Thank you so much for helping!  Anyone?

-- 
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 - Any music player that can read Chinese?

2009-11-19 Thread PP
The built-in music player I got can't read Chinese and I couldn't find
one that reads Chinese in the market . . . please help . . . I have no
idea whose/which songs Im playin' or I can choose from since most
titles and artists' names don't show ... 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] Help getting Hello world to go

2009-11-18 Thread Bugsy
Hello all,
I just downloaded the SDK for Android yesterday and I'm looking
forward in being part of the community.

The bottom line is I can't choose a Build target in the Eclipse
(Galileo) wizard.
Menu item File\new\Project... to the wizard were I select Android
\Android Project next> but no build target is available .

I'm on Windows Vista 64
Eclipse 20090920-1017 (latest?)
I have the Android SDK R3 (latest?)
I have the ADT plugin
I think I have all the right components

I have checked for updates etc and all seams well. Following the steps
to build Hello world, the first step is to Crate an AVD. I ran the
batch file with "android create avd --target 2 --name my_avd" and I
get an error in the command line "please set ANDEROID_SWT" to the
swt.jar dir so, I'm on a 64 bit system so my path is set to (my
installed path)...\x86_64 .
Looking at the bat file it is like the GOTO statement is not running
because I do have ANDEROID_SWT path set
I have manulay set "swt_path" but this does not help.
So fare I can't get past the first step to set an AVD.

Can someone please help me?
~Bugsy

-- 
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 getting Hello world to go

2009-11-18 Thread Mike Bogues
Hello all,
I just downloaded the SDK for Android yesterday and I'm looking forward in 
being part of the community.

The bottom line is I can't choose a Build target in the Eclipse(Galileo) wizard.
Menu item File\new\Project... to the wizard were I select Android\Android 
Project next> but no build target is available .

I'm on Windows Vista 64 
Eclipse 20090920-1017 (latest?)
I have the Android SDK R3 (latest?)
I have the ADT plugin
I think I have all the right components

I have checked for updates etc and all seams well. Following the steps to build 
Hello world, the first step is to Crate an AVD. I ran the batch file with 
"android create avd --target 2 --name my_avd" and I get an error in the command 
line "please set ANDEROID_SWT" to the swt.jar dir so, I'm on a 64 bit 
system so my path is set to (my installed path)...\x86_64 . 
Looking at the bat file it is like the GOTO statement is not running because I 
do have ANDEROID_SWT path set 
I have manulay set "swt_path" but this does not help. 
So fare I can't get past the first step to set an AVD. 

Can someone please help me?
~Bugsy

-- 
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 getting Hello world to go

2009-11-18 Thread Mike Bogues
Hello all,
I just downloaded the SDK for Android yesterday and I'm looking forward in 
being part of the community.

The bottom line is I can't choose a Build target in the Eclipse(Galileo) wizard.
Menu item File\new\Project... to the wizard were I select Android\Android 
Project next> but no build target is available .

I'm on Windows Vista 64 
Eclipse 20090920-1017 (latest?)
I have the Android SDK R3 (latest?)
I have the ADT plugin
I think I have all the right components

I have checked for updates etc and all seams well. Following the steps to build 
Hello world, the first step is to Crate an AVD. I ran the batch file with 
"android create avd --target 2 --name my_avd" and I get an error in the command 
line "please set ANDEROID_SWT" to the swt.jar dir so, I'm on a 64 bit 
system so my path is set to (my installed path)...\x86_64 . 
Looking at the bat file it is like the GOTO statement is not running because I 
do have ANDEROID_SWT path set 
I have manulay set "swt_path" but this does not help. 
So fare I can't get past the first step to set an AVD. 

Can someone please help me?
~Bugsy

-- 
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! Error when querying non primary key in database

2009-11-15 Thread rcantrel
Hi,

I am new to Android and SQLite.  I am trying to query a table on a non
primary key column. Is this possible? FYI, I am able to create, insert
and retrieve all rows. The structure of the table is as follows:
.
private static final String DATABASE_NAME = "WordSolver";
private static final String DATABASE_TABLE = "words";
public static final String KEY_ROWID = "_id";
public static final String KEY_WORD = "word";
.
private static final String DATABASE_CREATE = "CREATE TABLE "+
DATABASE_TABLE+
 
"("+ KEY_ROWID +" INTEGER PRIMARY KEY,"+
 
KEY_WORD +" TEXT);";
...
//Method to retrieve by word
public Cursor getWord(String word) throws SQLException
{
//db is the SQLiteDatabase
Cursor c = db.query(DATABASE_TABLE, new String[]{KEY_WORD},
KEY_WORD+"="+word, new String[]{KEY_WORD},null,null,null);

if (c != null) {
c.moveToFirst();
}
return c;
}

...
This always errors on the query.  Is it not possible to query on a non
primary key column? Or is there something else I am missing.  Any help
will be very appreciated.

-- 
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

2009-11-12 Thread droidpdx
This is my first time developing an app, not just for android, but in
general.  Needing some serious help.  If anyone would be willing I'm a
quick learner and will try not to ask you the same question twice.
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


Re: [android-beginners] Help with creating a sport scoring application

2009-11-11 Thread Carol Bolger
Sounds interesting however I think you need to provide more details. Are you
wanting someone to code the app for you? Or do you plan on learning to
program in the process?

On Tue, Nov 10, 2009 at 12:13 PM, Sam  wrote:

> Hi community
>
> I am new to programming...i have this idea of creating a sport scoring
> app
> but i have no idea how to do the coding
> i knw some basic concepts of object oriented programming
> but i want to knw how to layout the structure of the programming
> if anyone wants to join me (can share the rights) or help me out in
> this project you will be most welcome
>
> i have a solid business plan for this app...
>
> the basic idea of the app is as follows
>
> in any sportat any given event has finite set of outcomes
> so the interface is an intuitive interface to score and keep
> statistics...
> usually sport scoring applications are very very clumsy with all the
> options on one screen
>
> in this...v start from idle postion ...lets say in cricket t idle
> position is the bowler bowling the ball
> once the bowler bowls ...there are finite outcomes
> ...the screen shows only those options required at THAT point of
> time...the next screens depend on the option u chooseif you choose
> out...the next screen will ask u how he was out
> if its a run...then next options wil be how many ...next will be wich
> area...n so on
>
> i believe the app needs strong database and data counters its all
> confusing for me
> but i am very clear abt the requirements for the app
> plz contact me if any one is interested
>
> --
> 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

-- 
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 installation on Mac.

2009-11-11 Thread Ram
Hi,

I downloaded android sdk release 3 for mac as per the instructions,
but when I try to download the platforms by running Android SDK and
AVD Manager - I get the following error:

Failed to fetch URL https://dl-ssl.google.com/android/repository/repository.xml,
reason: HTTPS SSL error. You might want to force download through HTTP
in the settings.

I don't understand why I should be getting this error in the first
place.  However, since I couldn't fix it, I tried changing the https
prefix to http.  This time, I got one step further - it was able to
show available packages - but these packages are only API packages and
the USB package.  It doesn't show the platform packages which are
required for the API packages to work.  When I go ahead to install
these anyway - the installation fails because there are no platforms.

Just to confirm - I don't see any files/folders under the platforms
directory.  List of AVDs in Android UI is empty as well.

After spending nearly two hours trying various combinations of this
and researching online, I am at my wits end, so any help is quite
appreciated!

Thanks,
Ram.

-- 
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 creating a sport scoring application

2009-11-10 Thread Sam
Hi community

I am new to programming...i have this idea of creating a sport scoring
app
but i have no idea how to do the coding
i knw some basic concepts of object oriented programming
but i want to knw how to layout the structure of the programming
if anyone wants to join me (can share the rights) or help me out in
this project you will be most welcome

i have a solid business plan for this app...

the basic idea of the app is as follows

in any sportat any given event has finite set of outcomes
so the interface is an intuitive interface to score and keep
statistics...
usually sport scoring applications are very very clumsy with all the
options on one screen

in this...v start from idle postion ...lets say in cricket t idle
position is the bowler bowling the ball
once the bowler bowls ...there are finite outcomes
...the screen shows only those options required at THAT point of
time...the next screens depend on the option u chooseif you choose
out...the next screen will ask u how he was out
if its a run...then next options wil be how many ...next will be wich
area...n so on

i believe the app needs strong database and data counters its all
confusing for me
but i am very clear abt the requirements for the app
plz contact me if any one is interested

-- 
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 getting platform

2009-11-02 Thread Drew
let me first say that I'm new to Adroid and SDK

Problem: when I try to download the any platform under the "Availible
Packages" section of the Android GUI, it doesn't do anything when I
click "Install Selected". It will get the list and show me what can be
downloaded, but won't actually download it.

What I've done:
Java is installed
the PATH is set in my .bashrc file
added "sdkman.force.http=true" to .android/androidtools.cfg

Any ideas would be appreciated. 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] help with AnalogClock widget - remoteview and appwidgetprovider

2009-11-01 Thread Zi Yong Chua
Hi guys,

I am trying to develop and AnalogClock widget on the home screen that
changes depending on the time of day. I am finding problems getting to
the right code to make it happen, and will hope to seek you help and
advise here.

1) Getting the dial resource in AnalogClock to change in code
I have been trying to get the AnalogClock in my widget XML file to
change based on the system time. However, I realized that
AppWidgetProvider do not support findViewbyID and i was trying to
figure out how to make use of remoteviews to change the AnalogClock
image. Any experts can enlighten me on this issue? Now I am
implementing another method, but it is very ugly.

2) Getting onUpdate to work in appwidgetprovider
I am trying to get the onUpdate to work and change the views on set
time, say at the start of every passing hour, at time zone change, at
time change etc. Anyone know how i can get started to make onUpdate
work for that purpose?

My code is below. Thanks guys. hope to learn from all of you.
http://pastebin.com/d2f7c4200

Cheers
Zee

-- 
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 configuring APN for Android dev phone1

2009-10-18 Thread Vinicius Carvalho

Hello there! I live in Brazil and got a new android dev phone 1. My
carrier (claro) says that in my state (Minas Gerais) they use 2100Mhz
for 3G band. I have a data services packet from them (used to work on
my N95), but I can't get it working on Devphone.

I've registered the APN using the same config I found at some forums
and my N95 settings. After signing in, an icon displaying a 3G and up/
down arrows displays besides the signal strength icon, and the up
arrow blinks a few times (never the down arrow) and then an error is
shown.

Is there anything else I need to do?

Regards
--~--~-~--~~~---~--~~
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 needed: Emulator does not show up

2009-10-06 Thread Maxood

Whenever i hit RUN in eclipse, the emulator does not show up and i am
getting the following message in the console window:

2009-10-06 14:31:59 - HelloWorld]Uploading HelloWorld.apk onto device
'emulator-5554'
[2009-10-06 14:31:59 - HelloWorld]Installing HelloWorld.apk...
[2009-10-06 14:32:01 - HelloWorld]Success!
[2009-10-06 14:32:02 - HelloWorld]Starting activity
com.myapps.helloworld.HelloWorld on device
[2009-10-06 14:32:04 - HelloWorld]ActivityManager: Starting: Intent
{ comp={com.myapps.helloworld/com.myapps.helloworld.HelloWorld}

Also the Build All and Build Project menu options are also disabled
whenever i open my src files and want to build them.

thank you,
Maqsood
--~--~-~--~~~---~--~~
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 error in Android code

2009-10-02 Thread sbruno74

Hello,

I am working on a simple application that, for now, just presents a
login page as the starting activity with username and password and a
login button. When you click on the login button, it starts a new
activity after verifying credentials. When I run the application in
the emulator, it stops unexpectedly without even showing the main
activity with this error message : The application ... has stopped
unexpectedly. Please try again later.

It seems that it is the code where I register a listener for the
button click that causes the crash because when I comment the code, at
leas the application starts normally. I can't find the error. Here's
my onCreate method where I register the listener:

public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);

Button loginButton = (Button) findViewById(R.id.login);

loginButton.setOnClickListener(new View.OnClickListener() {
public void onClick(View v) {
EditText usernameView = (EditText) findViewById
(R.id.username);
EditText passwordView = (EditText) findViewById
(R.id.password);
mUsername = usernameView.getText().toString();
mPassword = passwordView.getText().toString();
if (verifyLogin()) {
callHome();
}
}
});
}

For now, verifyLogin() does nothing and just returns true. The callHome
() method just builds an intent, registers username and password as
extras and starts the other activity with the intent.

When I comment the setOnClickListener() call, I do not get the error.

Please what did I do wrong?

I run eclipse 3.5 with the ADT plugin on Windows Vista 64-bit.

Stéphane
--~--~-~--~~~---~--~~
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! I get this error message concerning the AVD

2009-10-01 Thread PeterBrynte

When trying to run my first attempt to an android app I get this error
message concerning the AVD:
[2009-09-30 23:57:00 - Emulator]emulator: ERROR: no search paths found
in this AVD's configuration.
[2009-09-30 23:57:00 - Emulator]Weird, the AVD's config.ini file is
malformed. Try re-creating it.
[2009-09-30 23:57:00 - Emulator]

contents of the config.ini-file are:
skin.name=HVGA
skin.path=platforms\android-1.5\skins\HVGA
image.sysdir.2=platforms\android-1.5\images\
image.sysdir.1=add-ons\google_apis-3\images\
Please tell me, what is wrong ?

Kind regards

Peter Brynte

--~--~-~--~~~---~--~~
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

2009-10-01 Thread Ray da Costa
Someone knows how could do to generate a view with 01 TextView and a button
without using the xml (R.java).?
Which method of the view that receives the attributes (TextView and button)?

-- 
Ray da Costa
"The best way to predict the future is to invent it."
Alan Kay

--~--~-~--~~~---~--~~
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 UI XML

2009-09-28 Thread moazzamk

Hi,

I need to create a view in GridView which will have a checkbox over an
image (on the bottom right corner). so, when someone selects that
image, the checkbox is checked. I know I will have to create a custom
adapter but how do I write the XML for the cell?

Thanks in advance,

Moazzam
--~--~-~--~~~---~--~~
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

2009-09-24 Thread Rc3375

this is the problem:
there are 5 EDITTEXT "boxes".  the value that the user enters into
FIELD1 needs to be retrieved in to a variable called
FIELD1_RETRIEVED.  if the user enters 135.98, that number is used in
the calculation process.
once FIELD1 is entered, the CALCULATE button is pressed.  WHATEVER
those value might be the remaining fields(FIELD2, FIELD3, FIELD4 AND
FIELD5) need to take on those values.
all the "R.id.FIELDX" are an INTEGER.  so how to do this is getting
abit overwhelming,  i realize that it isn't all that hard to do, but
at this time, very frustrating.  anyone who could lend so code samples
of how to read what a value is, and put a result into a EDITTEXT field
would be appreciated.  thanks to all, rc3375
--~--~-~--~~~---~--~~
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

2009-09-16 Thread Rc3375

i have a file that was created in eclipse. the screen has been
designed with one field that the user would enter a value such as
123.45, and the rest of the fields are calculated from the 123.45.
all the EDITTEXT fields have their default values(public static final
int calculate_id=0x7f050006).(from the R.java file.  they are assigned
a value from the calculation(R.id.calculate_id =  xx;).  all the
values in the R.java file seem the default to  public static final int
calculate_id=xx.  the R.id.calculate_id = XX fails.  it does
not matter if XX is an integer,double or float.  is there a way to
convert the R.id.calculate_id(EditText) field  to either float or
double?  i have tried to parse it and cast it.  but everytime that is
done and you recompile the file, the R.java file will revert to the
orginal settings.  literally driving me nuts...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] Help Needed : MediaRecorder error: java.io.IOException: prepare failed

2009-09-08 Thread preetam_pict

Hi all

I am trying to write a sample program to record the video (say
camcorder application).
When i run my program using the emulator (I have android-sdk-
windows-1.5_r3) I see java.io.IOException: prepare failed. error in
logcat output.

Further I can see that I have came across this error when i call
MediaRecorder.prepare()
from CamcorderActivity.surfaceCreated()
But I am surprised to see that activity got launched and I am seeing
the camera preview!  Again the preview is seen only in half of the
screen! Its weird!!!

Further when i do recorder.start() to record the video I get
java.lang.IllegalStateException. Yes this is obvious since the prepare
() has failed.
But the question is why prepare() has failed ?

Can someone please help me to understand whats happening here!
Am i missing something ???

thanks in advance
~pp

Here is my code ...
package com.example;

import java.io.IOException;

import android.app.Activity;
import android.graphics.PixelFormat;
import android.media.MediaRecorder;
import android.os.Bundle;
import android.util.Log;
import android.view.KeyEvent;
import android.view.SurfaceHolder;
import android.view.SurfaceView;

public class CamcorderActivity extends Activity implements
   SurfaceHolder.Callback
{
   private MediaRecorder recorder;
   private SurfaceView   surfaceView;
   private SurfaceHolder surfaceHolder;

   private boolean   recording = false;

   /** Called when the activity is first created. */
   @Override
   public void onCreate(Bundle savedInstanceState)
   {
   super.onCreate(savedInstanceState);

   // configure the surface
   getWindow().setFormat(PixelFormat.TRANSLUCENT);
   setContentView(R.layout.main);
   surfaceView = (SurfaceView) findViewById
(R.id.camcordersurface);
   surfaceHolder = surfaceView.getHolder();
   surfaceHolder.addCallback(this);
   surfaceHolder.setType(SurfaceHolder.SURFACE_TYPE_PUSH_BUFFERS);
   configureRecorder();
   }

   private void configureRecorder()
   {
   // configure media recorder
   recorder = new MediaRecorder();
   recorder.setAudioSource(MediaRecorder.AudioSource.MIC);
   recorder.setVideoSource(MediaRecorder.VideoSource.DEFAULT);
   recorder.setOutputFormat(MediaRecorder.OutputFormat.MPEG_4);
   recorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB);
   recorder.setVideoEncoder(MediaRecorder.VideoEncoder.MPEG_4_SP);
   }

   private void stopRecorder()
   {
   try
   {
   if (recorder == null)
   {
   return;
   }
   recorder.stop();
   recorder.reset();
   recorder.release();
   recording = false;
   recorder = null;
   }
   finally
   {
   if (recorder != null)
   {
   recorder.release();
   }
   }
   }

   private void startRecorder()
   {
   recorder.start();
   recording = true;
   }

   @Override
   public boolean onKeyDown(int keyCode, KeyEvent event)
   {
   if (keyCode == KeyEvent.KEYCODE_DPAD_CENTER)
   {
   // if not recording then start
   if (!recording)
   {
   startRecorder();
   }
   else
   {
   // if already recording then stop
   stopRecorder();
   finish();
   }
   return true;
   }
   return super.onKeyDown(keyCode, event);
   }

   @Override
   public void surfaceChanged(SurfaceHolder holder, int format, int
width,
   int height)
   {
   // do nothing
   }

   @Override
   public void surfaceCreated(SurfaceHolder holder)
   {
   recorder.setOutputFile("/sdcard/test" + System.currentTimeMillis
()
   + ".mp4");
   recorder.setPreviewDisplay(holder.getSurface());
   try
   {
   recorder.prepare();
   }
   catch (IOException e)
   {
   Log.e("error -- ", e.toString(), e);
   // TODO:
   // show error message
   }
   }

   @Override
   public void surfaceDestroyed(SurfaceHolder holder)
   {
   stopRecorder();
   }
}

And the layout ...


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


--~--~-~--~~~---~--~~
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 Develop Widget

2009-09-07 Thread mist3r0

Hello guys, I'm an android beginner developer.

I'm developing an application for Android, and I asked ... a widget
and an application are programmed the sam way?

I'd like to develop a widget that puts an image on your desktop, when
I touch the image, the keyboard should be visible on the display, to
digit the text.

 I need 2 information:


1) What Object I call if I want to see the keyboard on display?


2) What Object I call to capture the events of the display?


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] Help with Activites

2009-08-18 Thread Neilz

Where do all the activities go?

What I mean is... My app contains a list. When I click on an item, I
fire up a new activity. Potentially I could do the same again, and
again. Are all these activities still running? If so, how can I switch
between them, or view a list of which activities are running?

If I go back to the main menu and start my app, it behaves as if it's
just started, so there's no evidence of any of the other activities
still running.

I'm working on the emulator here, naturally.
--~--~-~--~~~---~--~~
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 needed creating a AVD

2009-08-17 Thread automerc

I just got a new laptop with x64 vista and i'm following the
development on setting up my laptop for development but I keep getting
a error when I try to create my AVD.
When i tried to enter the android create avd --name  --
target 
command into the commandprompt it gives me a error
java is not recognized as an internal or external command, operable
program or batch file

I remember setting it up on a xp laptop (broken now) before and
everything worked but I can't remember if I went this step or not


--~--~-~--~~~---~--~~
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! adding an activity of my application to another application

2009-08-10 Thread moazzamk

Hi Guys,

After a picture is taken in Android, you get a menu to save it, etc.
Is it possible to add a menu item in it saying "Upload pic to xyz.com"
and then have it launch an activity of my app ?

Thanks,

Moazzam
--~--~-~--~~~---~--~~
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 me in Creating a AVD

2009-08-06 Thread AndroidDev

Hi there...

I am quiet new to the Android platform. I am unable to create an AVD
( Command not found error when i execute create AVD Command), I
followed the steps shown in Developer Guide. I work on Os X 10.5.7.

Please help me in this regard.


Thanks A Bunch.

--~--~-~--~~~---~--~~
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 Needed with Opening File

2009-08-06 Thread Steve Hall

Hi,

I am relatiely new to both java and Android.

I assume that files opened in "user.dir" are held in fast battery
backed ram" and that /sdcard/ is a slower rom device.

I am attempting to copy a file of about 450k from the sdcard to the
"user.dir" so that I can have much faster reading/wrting of the file.
CopyfiletoMemory(..) works fine but the subsequent call to open the
file as a
RandomAccessFile in Openfile fails with FileNotFoundException?? any
ideas

public void CopyfiletoMemory(String filename){
try{
FileInputStream in  = new FileInputStream("/sdcard/"+filename);
File temp = File.createTempFile("/"+filename, null );
FileOutputStream out = new FileOutputStream(temp);
// Transfer bytes from in to out
byte[] buf = new byte[1024];
int len;
while ((len = in.read(buf)) > 0) {
out.write(buf, 0, len);
}
out.flush();
in.close();
out.close();
System.out.println("File Copied");
}
catch (Exception e){
System.err.println("File input error");
}
}

public void Openfile(String filename){
try{
String destination = System.getProperty("user.dir")+
filename;
File fileCon = new File(destination);
fstream = new RandomAccessFile(fileCon.getPath
(),"rw");
ReadRoundData();
customer = new t_customer();
}
catch (FileNotFoundException e){
System.out.println( "File not found exception!:" + e.getMessage
());
}
catch (SecurityException e){
System.out.println( "File security problem!:" + e.getMessage
());
}
catch (Exception e){
System.out.println("File input error");
}
}

Any help gratefully received
Steve

--~--~-~--~~~---~--~~
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 Mac OSX

2009-08-05 Thread MidC Missile

Hello All,

I am trying to build the Hello, Android application from the tutorial
on the website on my Macbook pro with OSX Leopard in Eclipse 3.5. I
follow the instructions on the website (http://developer.android.com/
guide/tutorials/hello-world.html) and receive the following error:

[2009-08-04 21:52:12 - Emulator] 2009-08-04 21:52:12.349 emulator
[16577:10b] 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.

After this, the emulator launches but my app does not run. I have
tried to google this and get very little helpful information. Does
anyone have any insight as to how I can fix this?

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] Help with Mac OSX

2009-08-05 Thread MidC Missile

Hello All,

I am trying to build the Hello, Android application from the tutorial
on the website on my Macbook pro with OSX Leopard in Eclipse 3.5. I
follow the instructions on the website (http://developer.android.com/
guide/tutorials/hello-world.html) and receive the following error:

[2009-08-04 21:52:12 - Emulator] 2009-08-04 21:52:12.349 emulator
[16577:10b] 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.

After this, the emulator launches but my app does not run. I have
tried to google this and get very little helpful information. Does
anyone have any insight as to how I can fix this?

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] help around using accelerometer sensor

2009-07-31 Thread Abhi

hi,

i have been trying to create an app using the accelerometer sensor in
SDK 1.5.

i am using the Sensor class and tried using the getSupportedSensors()
method to get a list of supported sensors. But it gives an error
saying 'The method is undefined for the type Sensor'. Any idea how to
work around this?

here is the link to the android developers guide
http://lampwww.epfl.ch/~linuxsoft/android/android-m3-rc22a/docs/reference/android/hardware/Sensors.html#getSupportedSensors()

thanks,

Abhi

--~--~-~--~~~---~--~~
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 threading and UI changes

2009-07-23 Thread moazzamk

Hi guys,


I have a function in my activity that starts a new thread and that
threads send a message back to an event handler. I need to start an
activity after that thread finishes. How can I do that. I keep getting
an error when I try to do this :

class mainClass extends Activity {


Handler guiUpdateHandler = new Handler() {
@Override
public void handleMessage(Message msg) {
switch (msg.what) {
case LOGGED_IN:
try {
  // i get an error here.
 // it says i cant use
mainClass.this for the first param.
Intent inte = new 
Intent(mainClass.this, newIntent.class);
inte.
Bundle bun = new Bundle();
bun.putCharSequence("user", user);
bun.putCharSequence("pass", pass);
bun.putCharSequence("sid", sid);
gallery.putExtra("data", bun);
StartActivity(newIntent);
} catch (Exception e) {
Log.e("ASDASD", e.toString());
}

break;

public void login(String lUser, String lPass) {
Thread t = new Thread() {
public void run() {
loginThread(user,pass);
}
};
t.start();
}
public void loginThread(String lUser, String lPass) {
Message message = new Message();
message.what = iyobo.SOME_CONST;
iyobo.this.guiUpdateHandler.sendMessage(message);
 }
}

Please let me know if my question is unclear. Thanks in advance,
Moazzam Khan
--~--~-~--~~~---~--~~
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 me with dynamic element generation

2009-07-17 Thread arin

Hi,

I was looking for a solution for this concept but as I am new I
cant... please help

I have a child Relative Layout which is inside a linear Layout. This
child Relative layout contains some elements in it.
In my program I need to generate new Relative Layouts like this one 5
times and add it to the parent Layout (which is the Linear layout)...

My idea is to get a reference of the 1st Relative Layout (along with
all its child) and then create 5 more layouts like that.

how can I achieve this? Is there a smart way possible?  :?  can I
quickly grab a reference of the RelativeLayout along with the
child...?

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 me.....

2009-07-11 Thread Nerj

Hi!
I am begginer of Android Development.
I can create an activity with different views, and can run them
successfully.
The problem is that,
 >>   If  I have several activities in the android project, it
takes only one to launch.
Can u pls, tell me how to set an activity as Main one which is to be
launch at first time when the app is open?

Pls, suggest me..

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 needed in error!!

2009-07-02 Thread randheersingh

Hi, I am just trying to run the relative example given in the sample
code of Google documentation of android. Its just ran. But when I
added the background property of relative layout an error is coming. I
am giving the code of XML file here and the error. Please tell me what
this error wants to tell and how to solve it.

Code:

http://schemas.android.com/apk/res/
android"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:background="@drawable/blue"   // the error is here
android:padding="10px" >







Error--
  ERROR Error: No resource found that matches the given name (at
'background' with value '@drawable/ blue').

Please give the answer fast.

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: canvas.drawLine(p1.x, p1.y, p2.x, p2.y, paint);

2009-06-22 Thread mnish

Hello,
I have a problem with drawing lines between two points on google map.
I get nullpointerexception on this line of code:
canvas.drawLine(p1.x, p1.y, p2.x, p2.y, paint);

I know this is a very basic thing, but I don't know not much about it
and I really really need your help.

here is were i call this method:


@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);

linearLayout = (LinearLayout) findViewById
(R.id.zoomview);
mapView = (MapView) findViewById(R.id.mapview);
mapView.setBuiltInZoomControls(on);
mapOverlays = mapView.getOverlays();
drawable = this.getResources().getDrawable
(R.drawable.circle);
itemizedoverlay = new HelloItemizedOverlay(drawable);
Projection projection = mapView.getProjection();

Double lat1 = 30.342833*1E6, lon1 = -91.719033*1E6;
Double lat2 = -37.5262180*1E6, lon2 = 175.8060710*1E6;
point1 = new GeoPoint(lat1.intValue(), lon1.intValue
());
point2 = new GeoPoint(lat2.intValue(), lon2.intValue
());
p1 = new Point();
p2 = new Point();
projection.toPixels(point1, p1);
projection.toPixels(point2, p2);
canvas = new Canvas();
canvas.drawLine(p1.x, p1.y, p2.x, p2.y, paint);

}.


Please tell me what do i do wrong.
Any help is more than welcome

--~--~-~--~~~---~--~~
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 in maps

2009-05-31 Thread sahil4187

I m trying to draw the symbols on my map i.e. i cann draw lines
circles ovals etc..
but if i want to remove that symbols what i have to do ??
is there any methods for that ???

Thnx 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 Services

2009-05-28 Thread Sujay Krishna Suresh
Hi all,
  i'm starting an activity that inturn calls a service i
wanna get notified when the service competes...
can anyone temme how i can do this???

-- 
Regards,
Sujay
Bette Davis 
- "Brought up to respect the conventions, love had to end in marriage.
I'm
afraid it did."

--~--~-~--~~~---~--~~
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!, trouble starting AVD for the first time

2009-05-28 Thread treebolt

Ok, sorry if this is a double post buy my first post didn't appear to
have posted...

I'm new to andorid programming and trying to run through the
helloworld tutorial provided in the SDK

I'm having trouble and getting an error message when trying to start
the AVD. I did install java and followed everything else in the setup
document provided in the SDK including changing my environment path to
the tools directory of the SDK. When I start command prompt, navigate
to the tools directory of SDK, and type "android create avd -t 2 -n
my_avd" I get this message:

'java' is not recognized as an internal or external command, operable
program or batch file

Anyone have any ideas? ><
Thanks in advance.
 - treebolt

--~--~-~--~~~---~--~~
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 intent for uploader

2009-05-28 Thread Sujay Krishna Suresh
Hi everyone,
  i'm trying to build an application that captures an image & shares it...
 'm calling the inbuilt camera application with the following code

  Intent i = new Intent("android.media.action.IMAGE_CAPTURE");
  startActivityForResult(i, 0);
 
N my on activity result is

 @Override
 protected void onActivityResult(int requestCode, int resultCode, Intent
data) {
  super.onActivityResult(requestCode, resultCode, data);
  if (requestCode == 0 && resultCode == Activity.RESULT_OK) {

  Intent i = new Intent(Intent.ACTION_SEND);
  i.setType("image/jpeg");
  i.putExtras(data);
  startActivity(i);
  }
  finish();
}

whenever i select the upload button i get a toast sayin
 couldn't send photo data not available...
anyone can temme wats goin wrong??
i'm using SDK 1.0 r2
-- 
Regards,
Sujay


-- 
Regards,
Sujay
Frank Lloyd 
Wright
- "TV is chewing gum for the eyes."

--~--~-~--~~~---~--~~
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 - I NEED A KIND PERSON TO HELP CREATE A BASIC APP

2009-05-25 Thread chrisclay...@googlemail.com

Help,

Back in February I created a website called www.EmailALittleSecret.co.uk
for people to share their Secrets completely anonymously with the
world (It's currently down pending an update tomorrow afternoon; 23
May 2009). I did this so people had somewhere to release the pressure
that is built up by not being able to get things off their chest.
There is a group on Facebook slowly gathering pace.

I created it in MS Publisher so no real programming knowledge is
required but I am slowly learning. I'm needing someone to help make a
free app for the Android phones. I have the design but have no
understanding of how to put it together.

I know I am asking a lot but if anyone can spare some time to help me
with this project please contact me, I would be very grateful.

Many thanks,

Chris - chrisclay...@googlemail.com
http://www.EmailALittleSecret.co.uk

--~--~-~--~~~---~--~~
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 - I NEED A KIND PERSON TO HELP CREATE A BASIC APP

2009-05-25 Thread chrisclay...@googlemail.com

Help,

Back in February I created a website called www.EmailALittleSecret.co.uk
for people to share their Secrets completely anonymously with the
world (It's currently down pending an update tomorrow afternoon; 23
May 2009). I did this so people had somewhere to release the pressure
that is built up by not being able to get things off their chest.
There is a group on Facebook slowly gathering pace.

I created it in MS Publisher so no real programming knowledge is
required but I am slowly learning. I'm needing someone to help make a
free app for the Android phones. I have the design but have no
understanding of how to put it together.

I know I am asking a lot but if anyone can spare some time to help me
with this project please contact me, I would be very grateful.

Many thanks,

Chris - chrisclay...@googlemail.com
http://www.EmailALittleSecret.co.uk

--~--~-~--~~~---~--~~
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 changing content with tab contents

2009-05-25 Thread Johnny

Hi all

I am a bit of a beginner, so I apoligise if my coding looks rubbish :)

I have three tabs, and within the first tab's contents, I want to
provide instruction steps.

So for this, I have created two buttons within the first tab.

The trouble I am having is changing the step layout when I press the
next button.

Here is my code.

package com.example.helloandroid;

import android.app.TabActivity;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.TabHost;
import android.widget.TabHost.OnTabChangeListener;
import android.widget.TabHost.TabSpec;

public class AccidentScene extends TabActivity  {
public int stepNo = 0;
public TabHost mTabHost;

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.accidentscene);


mTabHost = getTabHost();


mTabHost.addTab(mTabHost.newTabSpec("tab_step").setIndicator
("Step by Step").setContent(R.id.steptest));
mTabHost.addTab(mTabHost.newTabSpec("tab_all_text").setIndicator
("All Text").setContent(R.id.scrolltest));
mTabHost.addTab(mTabHost.newTabSpec("tab_dialer").setIndicator
("Dialer").setContent(R.id.steptest2));
mTabHost.setCurrentTab(0);

//Tab Listener
mTabHost.setOnTabChangedListener(new OnTabChangeListener() {
public void onTabChanged(String tabId) {
// TODO Auto-generated method stub
if (tabId == "tab_all_text") {
//Assign Buttons
Button nextButton = 
(Button)findViewById(R.id.next_btn);

//Setup Button Event Listeners
nextButton.setOnClickListener(new 
OnClickListener() {
public void onClick(View v) {
// Perform action on clicks
stepNo++;
TabSpec ts = 
mTabHost.newTabSpec("tab_step");


ts.setContent(new 
TabHost.TabContentFactory() {
public View 
createTabContent(String tag) {
View 
content = findViewById(R.id.steptest2);
return content;

}
   });
}
});
}
}
});
}
}

As you can see, I am struggling to find out how to change the contents
of the tab using TabContentFactory (I think I am in the right area)

Any help would be cool.

Regards


Johnny

--~--~-~--~~~---~--~~
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] Help : H324m compilation flags ( play from file & recording into file )

2009-05-17 Thread srinu gorle

Hi All,
i would like to test 2wayEngine with 324 supprot in opencore with all
flags & combinations .

But i have failed to compile the 2Wayengine code with the follwing
flags PV_PLAY_FROM_FILE_SUPPORT, PV_RECORD_TO_FILE_SUPPORT.
i enabled these flags in the /engines/2way/test/build/local.mk
even i have tried enable the above flags in /engines/2way/Android.mk

its giving the follwing errors

pv_2way_engine.cpp:32:30: error: playfromfilenode.h: No such file or directory
pv_2way_engine.cpp:45:32: error: pvmf_splitter_node.h: No such file or directory
pv_2way_engine.cpp:72:39: error: pvvideoencmdfnode_factory.h: No such
file or directory
pv_2way_engine.cpp:76:34: error: pvdevsound_node_base.h: No such file
or directory

i couldnt find out the above required files in the opencore. i would
like to know why they have mentioned the file's under the conditional
compilation.

please let me know how can i resolve it.

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] Help with layout views and Canvas'

2009-05-16 Thread erykthege...@googlemail.com

Hi,

I'm pretty new to the whole app developing scene and i've never coded
in Java before, however it doesn't seem that different to c# so I
figured i'd give it a go.

I've been making reasonable process on the app I'm working on, I've
figured out using the main.xml to create a relative layout for my UI.
In the UI I've managed to create an imageview that i've been able to
update to scroll through a bunch of images by pressing a button.
Pretty simple stuff so far.

Now, here comes my problem.

I want to create an area seperate of this imageview that will also
display a background image, and then, multiple images atop that
background image at specific locations. I will eventually want these
images to be clickable.

>From reading many an article it seems that the way to display an image
at a specific location and do all sorts of fancy stuff with it is by
using a canvas. but this doesnt appear to be a valid viewtype in the
layout xml. I found a basic tutorial that created a drawview class,
which I managed to work in, but it only allows me to have either that
layout, or the one in my xml file. I've tried inserting this class
into my main.xml by following this tut
http://www.anddev.org/creating_custom_views_-_the_togglebutton-t310.html
but it doesnt seem to work.

I think i'm probably overcomplicating the issue, but if anyone could
point me at some resources that could show me how to acheive this, or
could offer any help on it, I would be most appreciative.

In Summary :-
I have a ui layout that I want to use.
I want to add in a canvas area in this layout (can't figure out how)
with the canvas I want to be able to place multiple images at specific
locations
I want these images to be clickable.

--~--~-~--~~~---~--~~
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 compiling Android sourcecode apps

2009-05-14 Thread darren

Hi everyone

I have a project where I need to modify one of the native apps on
android, the MMS client.  I have a working setup going, using 1.5 SDK.

Next, I've checked out the MMS app from the Android sourcecode
repository git.  Loading the MMS source code base into eclipse as an
Android project results in many compilation errors and I'm having
trouble moving on from here.

It appears that a lot of the import statements in the MMS Classes are
referencing files that don't exist.  for example there is no
android.provider.Calendar class in the SDK, but the MMS sourcecode
seems to think there is.

I was under the impression that Android native apps were no different
than any other developer apps, so shouldn't their sourcecode compile
like any other?  I thought it may also be an SDK version thing, but it
doesn't seem to compile under v1.1 or 1.5 of the SDK.

Any help would be much appreciated.  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] Help! Android Prob.

2009-05-12 Thread Android Developer

Hi everyone,

I am creating android application using eclipse ganemede. The creating
of application "hello android" was successful, however, when I
compiled and run it, I got stuck at loading the application into the
android emulator.

I can view the emulator screen with the word "ANDROID" on it but my
application is missing.
The console on eclipse was like
[2009-05-12 01:38:34 - HelloAndroid] --
[2009-05-12 01:38:34 - HelloAndroid] Android Launch!
[2009-05-12 01:38:34 - HelloAndroid] adb is running normally.
[2009-05-12 01:38:34 - HelloAndroid] Performing
com.example.helloandroid.HelloAndroid activity launch
[2009-05-12 01:38:34 - HelloAndroid] Automatic Target Mode: launching
new emulator with compatible AVD 'HelloAndroid'
[2009-05-12 01:38:34 - HelloAndroid] Launching a new emulator with
Virtual Device 'HelloAndroid'
[2009-05-12 01:38:45 - HelloAndroid] New emulator found: emulator-5554
[2009-05-12 01:38:45 - HelloAndroid] Waiting for HOME
('android.process.acore') to be launched...

I waited for 2 hrs but no surprises. Any useful thoughts ?

Thanks
Dev.

--~--~-~--~~~---~--~~
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 SimpleCursorAdaptor

2009-04-20 Thread avrono

Hi,

I am having some problems trying to extend the SimpleCursorAdapter,
the problem I am trying to solve is simple. I have the 'id' of an SMS
message and I want to associate this with the Name of the person who
sent it (if in the contact-book).

Basically I want to get the current cursor position , check if the
name exists and if so associate it with and @id tag in my layout.

The activity calls the extended cursor as follows:
===
String[] columns = new String[] { SMSConstants.ADDRESS,
SMSConstants.BODY};
int[] names = new int[] { R.id.subject, R.id.message  };
Cursor c = getSMSCursor();
startManagingCursor(c);
SMSCursorAdaptor myAdapter = new SMSCursorAdaptor(this,
R.layout.table, c, columns, names);

setListAdapter(myAdapter);


The extended Cursor Class is defined as:
===


public class SMSCursorAdaptor extends SimpleCursorAdapter {


private Cursor c;
private Context context;
private int layout;


public SMSCursorAdaptor(Context context, int layout, Cursor c, String
[] from, int[] to) {


super(context, layout, c, from, to);
this.c = c;
this.context = context;
this.layout = layout;

}

@Override
public View getView(int position, View convertView, ViewGroup parent)
{

/* Get the current Cursor */
Cursor cursor = getCursor();

/* Know the context */
ContentResolver cr = context.getContentResolver();

LayoutInflater inflate = LayoutInflater.from(context);
View v = inflate.inflate(layout, parent);

/* get the text view */
TextView textView = (TextView) v.findViewById(R.id.row_entry);

/* Now get the id number of the person */
int id = this.c.getColumnIndex("person");

/* Connection string to the DB */
Uri uri = ContentUris.withAppendedId(People.CONTENT_URI,
this.c.getLong(id));
/* Make the query */
Cursor person_cursor = cr.query(uri, null, null, null, null);

int idx = person_cursor.getColumnIndex(People.DISPLAY_NAME);
//String nameValue = person_cursor.getString(idx);
v.setId(idx);
return v;
}

}

Basically I am not sure how to set-up the textView so that it gets the
correct DISPLAY_NAME from the db and outputs it to the @id tag ...

No matter what I have tried I get an IndexOutOfBoundsException

04-18 13:06:19.675: ERROR/AndroidRuntime(252):
android.database.CursorIndexOutOfBoundsException: Index -1 requested,
with a size of 1
04-18 13:06:19.675: ERROR/AndroidRuntime(252): at
android.database.AbstractCursor.checkPosition(AbstractCursor.java:559)
04-18 13:06:19.675: ERROR/AndroidRuntime(252): at
android.database.AbstractWindowedCursor.checkPosition
(AbstractWindowedCursor.java:172)
04-18 13:06:19.675: ERROR/AndroidRuntime(252): at
android.database.AbstractWindowedCursor.getString
(AbstractWindowedCursor.java:41)
04-18 13:06:19.675: ERROR/AndroidRuntime(252): at
android.database.CursorWrapper.getString(CursorWrapper.java:135)
04-18 13:06:19.675: ERROR/AndroidRuntime(252): at
com.zoomsms.android.util.SMSCursorAdaptor.bindView
(SMSCursorAdaptor.java:51)
04-18 13:06:19.675: ERROR/AndroidRuntime(252): at
android.widget.CursorAdapter.getView(CursorAdapter.java:186)
04-18 13:06:19.675: ERROR/AndroidRuntime(252): at
android.widget.AbsListView.obtainView(AbsListView.java:1075)
04-18 13:06:19.675: ERROR/AndroidRuntime(252): at
android.widget.ListView.measureHeightOfChildren(ListView.java:1107)
04-18 13:06:19.675: ERROR/AndroidRuntime(252): at
android.widget.ListView.onMeasure(ListView.java:1051)
04-18 13:06:19.675: ERROR/AndroidRuntime(252): at
android.view.View.measure(View.java:6744)
04-18 13:06:19.675: ERROR/AndroidRuntime(252): at
android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:2791)
04-18 13:06:19.675: ERROR/AndroidRuntime(252): at
android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:
890)
04-18 13:06:19.675: ERROR/AndroidRuntime(252): at
android.widget.LinearLayout.measureVertical(LinearLayout.java:347)
04-18 13:06:19.675: ERROR/AndroidRuntime(252): at
android.widget.LinearLayout.onMeasure(LinearLayout.java:275)
04-18 13:06:19.675: ERROR/AndroidRuntime(252): at
android.view.View.measure(View.java:6744)
04-18 13:06:19.675: ERROR/AndroidRuntime(252): at
android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:2791)
04-18 13:06:19.675: ERROR/AndroidRuntime(252): at
android.widget.FrameLayout.onMeasure(FrameLayout.java:208)
04-18 13:06:19.675: ERROR/AndroidRuntime(252): at
android.view.View.measure(View.java:6744)
04-18 13:06:19.675: ERROR/AndroidRuntime

[android-beginners] Help in installing ADT for eclipse

2009-04-20 Thread sbalaram

Hi,


I have installed eclipse successfully. I am trying to install ADT on
top of eclipse using the procedure given.

The eclipse has WST. JDK 6 is also installed.


I choose Help > Software Updates, Add Site and type in
http://dl-ssl.google.com/android/eclipse/.

When I click Finish to install, I get this error :

An error occurred during provisioning.
  Failed to prepare partial IU: [R]com.android.ide.eclipse.ddms
0.8.0.v200809220836-110569.


Please help in getting this installation succeed.


Thanks much

Saravanan

--~--~-~--~~~---~--~~
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 me in using the emulator when connecting to modem

2009-04-03 Thread pushkar

Hai,

Could some body can tell me, how to use the mobile connected to the pc
is accessible in using the internet and google maps. But i am unable
to initiate a call using the emulator.
Please help me. Do i have any guidelines for using the emulator.

Regards
Pushkar Setty
--~--~-~--~~~---~--~~
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 maps

2009-03-16 Thread bobcat

Hello i have a problem with the visualization of map, i have follow
the tutorial of  MapView  but i don't see the map i have insert api
key but nothing where is the problem?

Please 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] Help to understand LunarLander: Canvas.save & Canvas.restore

2009-03-09 Thread FBear

Hi,

I can hardly understanding why LunarLander save the Canvas and restore
it after rotating the Canvas to simulate the rotation of the rocket.
I commented the 2 lines out and reinstall the apk, but I found nothing
changed.
Could anybody kindly help me understanding what 'matrix' and 'clip'
are saved to the stack here as the SDK document dipicts?

// canvas.save();
canvas.rotate((float) mHeading, (float) mX, mCanvasHeight
- (float) mY);
if (mMode == STATE_LOSE) {
mCrashedImage.setBounds(xLeft, yTop, xLeft +
mLanderWidth, yTop
+ mLanderHeight);
mCrashedImage.draw(canvas);
} else if (mEngineFiring) {
mFiringImage.setBounds(xLeft, yTop, xLeft +
mLanderWidth, yTop
+ mLanderHeight);
mFiringImage.draw(canvas);
} else {
mLanderImage.setBounds(xLeft, yTop, xLeft +
mLanderWidth, yTop
+ mLanderHeight);
mLanderImage.draw(canvas);
}
// canvas.restore();

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 ME GUYS

2009-03-05 Thread ANDROID_TECHIE

Hi all..
ANDROID , as they say, is a robot which behaves like a human. I don't
know why GOOGLE chose this name for it's mobile platform.. Anyways, i
am new to this platform.. 3 days old.. but havea fair amount of
knowledge in java basics.. i have read the fundamentals of ANDROID
basics as well and have almost understood almost 75% of the features
of android. Now i want to start developing some applications. i am
actually working on a project which deals with booking cabs thru ur
mobile.. Help me out guys how to begin the practical development after
going through the therotical concepts..
thx..
c ya..

--~--~-~--~~~---~--~~
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 my installation ADT and SDK in eclipse

2009-02-19 Thread susanner
Hi everyone
my eclipse version eclipse-java-ganymede-SR1-linux-gtk.tar.gz
my sdk version:android-sdk-linux_x86-1.0_r1.zip 
AND i think i have followed the steps in authority google website to install 
ADT.
and I think I have successfully set the SDK path in eclipse following the 
google website.
I have added environment variable in file ~/.bashrc as following:
PATH=$PATH:/opt/bin
export PATH
PATH=$PATH:/opt/android-sdk-linux_x86-1.0_r1/tools
export PATH
PATH=$PATH:/opt/eclipse
export PATH

but although I can successfully start eclipse , when I set a new android 
project, error occurs. it pops up a window to inform me that:
Failed to get the required ADT version number from the SDK.
And android Toolkit may not work properly.

and the console window in eclipse shows:
[2009-02-20 09:41:27 - Android Framework Parser] Menu declare-styleable Menu 
not found in file 
/opt/android-sdk-linux_x86-1.0_r1/tools/lib/res//default/values/attrs.xml
[2009-02-20 09:41:27 - Android Framework Parser] Menu declare-styleable 
MenuItem not found in file 
/opt/android-sdk-linux_x86-1.0_r1/tools/lib/res//default/values/attrs.xml
[2009-02-20 09:41:27 - Android Framework Parser] Menu declare-styleable 
MenuGroup not found in file 
/opt/android-sdk-linux_x86-1.0_r1/tools/lib/res//default/values/attrs.xml
[2009-02-20 09:41:27 - Android Framework Parser] Searchable declare-styleable 
Searchable not found in file 
/opt/android-sdk-linux_x86-1.0_r1/tools/lib/res//default/values/attrs.xml
[2009-02-20 09:41:27 - Android Framework Parser] Searchable declare-styleable 
SearchableActionKey not found in file 
/opt/android-sdk-linux_x86-1.0_r1/tools/lib/res//default/values/attrs.xml
[2009-02-20 09:41:27] Warning, ADT/SDK Mismatch! The following elements are 
declared by ADT but not by the SDK: manifest
[2009-02-20 09:41:27 - Framework Resource Parser] Failed to parse

I am using ubuntu 8.10, and using the terminal to start the eclipse, and also 
the terminal shows :Error Loading Preferences
Exception in thread "Ping!" org.eclipse.swt.SWTError: Not implemented [multiple 
displays]
at org.eclipse.swt.SWT.error(SWT.java:3803)
at org.eclipse.swt.widgets.Display.checkDisplay(Display.java:712)
at org.eclipse.swt.widgets.Display.create(Display.java:842)
at org.eclipse.swt.graphics.Device.(Device.java:154)
at org.eclipse.swt.widgets.Display.(Display.java:471)
at org.eclipse.swt.widgets.Display.(Display.java:462)
at com.android.ping.PingService.getUserPermission(PingService.java:278)
at com.android.ping.PingService.ping(PingService.java:126)
at com.android.ide.eclipse.common.PingHelper.pingUsageServer(Unknown Source)
at com.android.ide.eclipse.adt.AdtPlugin$10.run(Unknown Source)

has any one met the problem ?



--~--~-~--~~~---~--~~
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 onClickListener

2009-02-02 Thread Zi Yong Chua

Hi folks,

I am having problem with setting a button to start a new UI activity
after clicking. The purpose is for the user to click on the button on
the main page of the app and start the game UI. Every time i click on
the button in the emulator, my app is force closed and Eclipse is
thrown into debugger mode. Can some expert out there advise me on how
can I debug this issue? Thank you so much.

I have created 2 classes: main.java, game_ui.java

package com.ziyong.typershark;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class typer_shark extends Activity {

/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);

Button start = (Button) findViewById(R.id.btn_start);
start.setOnClickListener(goStart);
}

// Create an anonymous class to act as a button click listener.
private OnClickListener goStart = new OnClickListener()
{
@Override
public void onClick(View v)
{
// To send a result, simply call setResult() before your
// activity is finished, building an Intent with the data
// you wish to send.
 Intent i = new Intent(null, null, null, game_ui.class);
 startActivity(i);
}
};
}


--~--~-~--~~~---~--~~
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 for Java beginner (but not programming beginner)

2009-02-02 Thread SpaceCowboy850

Specifically - I want to use some of the APIDemos as a jumping off
point to making modifications.  In C, I'd just copy the files, include
the headers I want, and go to town.  In Java, I'm not clear on how to
do this.  Like, I want to copy the fingerpaint app out of the ApiDemos
to expand it, but I am not clear on how to do this, since Java cares
what directory files are in.

It would be great to know how to do this, but more importantly, is
there a good resource that will teach me some of these meta-
programming issues in Java, without me having to sift through the
"this is an if statement" stuff?  I know I know, google...but I'm not
even sure what to google on this.

--~--~-~--~~~---~--~~
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 path syntax for reading file off SD card

2009-01-19 Thread robotissues

I am trying to create a very simple mp3 player with one button that
plays one song.  I found misc code here and there as a start.  I am
running the application via Eclipse onto  my G1 which is attached via
USB.  The application runs fine on the phone, screen loads, button
click event gets fired, etc ... the problem is that when mp.prepare()
is called, it throws an error ... here is the code:

mp.setDataSource("/sdcard/music/lonelydays.mp3");
mp.prepare();

I copied a file to  /music/lonelydays.mp3 on the sd card.

Looking for feedback on what I am missing.

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] -Help- Something happened to my SDK - Resources wont load

2009-01-05 Thread novice

Hello,

I accidently "deleted" my R.java file attached to my "project" - but
it was re-attached auto-magically. But now when I try to assign
drawables it says its it cannot be resolved.

for example:

cheese_png = context.getResources().getDrawable
(R.drawable.cheese);
cheese_png.setBounds(0, 0, cell_x , cell_y);

R.drawable.cheese is now "unresolved".

First guess is that I think I ruined the ability to add outside PNG
files. It will not recognize any user - made PNG files I made placed
in the res/drawable folder.

Anyone have ideas on how I can get things back to normal?

PS - I made a completely new android app and now I still cant make any
user-made png files.. is this R.java file permanently damaged?

--~--~-~--~~~---~--~~
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 pls..

2009-01-03 Thread summatyme1...@gmail.com

I received the G1 android phone for christmas. There's already a gmail
account on the phone. How do I cancel that accoint and put my account
on it?? Cause it keeps asking me for there password and has there
gmail address already saved?? Please 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] Help reqd: Dalvikvm crashing while starting WiFi Service

2008-12-30 Thread >> Jith911

Hi all,

Could some one help me with the below error logs.. I am running
Android on a PXA platform with a custom wifi driver. when I try to
invoke Wifi Manager from settings, the GUI crashes. I am attaching the
logs below..

Thanks in Advance..
--

 I/ActivityManager(  713): Starting activity: Intent {

action=android.intent.action.MAIN comp=

{com.android.settings/com.android.settings.wifi.WifiSettings} }
V/WifiMonitor(  713): Event [CTRL-EVENT-STATE-CHANGE id=-1 state=2]
V/WifiStateTracker(  713): Changing supplicant state: INACTIVE ==>
SCANNING
D/SettingsWifiEnabler(  882): Received wifi state changed from
Enabling to

Enabled
I/ActivityManager(  713): Displayed activity

com.android.settings/.wifi.WifiSettings: 369 ms
V/WifiMonitor(  713): Event [CTRL-EVENT-SCAN-RESULTS  Ready]
D/LocationManagerService(  713): NetworkStateBroadcastReceiver: WiFi
debug

point 1
W/dalvikvm(  713): threadid=15: thread exiting with uncaught
exception

(group=0x40013e28)
E/AndroidRuntime(  713): Uncaught handler: thread
android.server.ServerThread

exiting due to uncaught exception
E/AndroidRuntime(  713): *** EXCEPTION IN SYSTEM PROCESS.  System will
crash.
E/AndroidRuntime(  713): java.lang.RuntimeException: Error receiving
broadcast

Intent { action=android.net.wifi.SCAN_RESULTS } in

com.android.server.LocationManagerService
$networkstatebroadcastrecei...@435c8a

90
E/AndroidRuntime(  713):at

android.app.ActivityThread$PackageInfo$ReceiverDispatcher$Args.run

(ActivityThread.java:667)
E/AndroidRuntime(  713):at android.os.Handler.handleCallback

(Handler.java:542)
E/AndroidRuntime(  713):at android.os.Handler.dispatchMessage

(Handler.java:86)
E/AndroidRuntime(  713):at android.os.Looper.loop(Looper.java:
123)
E/AndroidRuntime(  713):at com.android.server.ServerThread.run

(SystemServer.java:313)
E/AndroidRuntime(  713): Caused by:
java.lang.IllegalArgumentException:

key.length > 31
E/AndroidRuntime(  713):at android.os.SystemProperties.get

(SystemProperties.java:42)
E/AndroidRuntime(  713):at

com.android.internal.location.LocationCollector.isCollectionEnabled

(LocationCollector.java:360)
E/AndroidRuntime(  713):at

com.android.internal.location.LocationCollector.updateWifiScanResults

(LocationCollector.java:259)
E/AndroidRuntime(  713):at

com.android.server.LocationManagerService
$NetworkStateBroadcastReceiver.onRece

ive(LocationManagerService.java:1540)
E/AndroidRuntime(  713):at

android.app.ActivityThread$PackageInfo$ReceiverDispatcher$Args.run

(ActivityThread.java:656)
E/AndroidRuntime(  713):... 4 more
I/Process (  713): Sending signal. PID: 713 SIG: 9
I/ServiceManager(  652): service 'SurfaceFlinger' died
I/ActivityThread(  863): Removing dead content provider: settings
I/ActivityThread(  781): Removing dead content provider: settings
I/ActivityThread(  773): Removing dead content provider: settings
I/ServiceManager(  652): service 'power' died
I/ServiceManager(  652): service 'telephony.registry' died
I/ServiceManager(  652): service 'package' died
I/ServiceManager(  652): service 'activity' died
I/ServiceManager(  652): service 'batteryinfo' died
I/ServiceManager(  652): service 'meminfo' died
I/ServiceManager(  652): service 'content' died
I/ServiceManager(  652): service 'cpuinfo' died
I/ServiceManager(  652): service 'activity.broadcasts' died
I/ServiceManager(  652): service 'activity.services' died
I/ServiceManager(  652): service 'activity.senders' died
I/ServiceManager(  652): service 'activity.providers' died
I/ServiceManager(  652): service 'permission' died
I/ServiceManager(  652): service 'battery' died
I/ServiceManager(  652): service 'alarm' died
I/ServiceManager(  652): service 'sensor' died
I/ServiceManager(  652): service 'window' died
I/ServiceManager(  652): service 'bluetooth' died
I/ServiceManager(  652): service 'audio' died
I/ServiceManager(  652): service 'wifi' died
I/ServiceManager(  652): service 'connectivity' died
I/ServiceManager(  652): service 'notification' died
I/ServiceManager(  652): service 'mount' died
I/ServiceManager(  652): service 'devicememorymonitor' died
I/ServiceManager(  652): service 'statusbar' died
I/ServiceManager(  652): service 'hardware' died
I/ServiceManager(  652): service 'netstat' died
I/ServiceManager(  652): service 'location' died
I/ServiceManager(  652): service 'search' died
I/ServiceManager(  652): service 'clipboard' died
I/ServiceManager(  652): service 'checkin' died
I/ServiceManager(  652): service 'wallpaper' died
I/ActivityThread(  882): Removing dead content provider: settings
E/installd(  662): eof
E/installd(  662): failed to read size
I/installd(  662): closing connection
I/Zygote  (  657): Exit zygote because system server (713) has
terminated
I/ServiceManager(  652): service 'simphonebook' died
I/ServiceManager(  652): service 'isms' died
I/ServiceManager(  6

[android-beginners] [Help] I want to take a look at source of Dialer, Contacts, etc

2008-12-17 Thread Shawn_Chiu

Hi, all
I want to take a look at source of Dialer, Contacts, etc. But
unfortunately, I found nothing but source code of emulator and SDK.
Could anybody tell me where I can get source of Dialer, Contacts?
I would be appreciated of it.
Thanks.

Shawn

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[Fwd: Re: [android-beginners] help me]

2008-12-12 Thread A r c h i t e c t

YOU CANNOT CREATE OR CONNECT THE DB explicitly..

as there are no GUI tools for easy database connectivity, it is just 
through Database code inside java files.

create SQL db virtually through script.
refer the sample code NotePad.

You can use Sqlite GUI Browser for script generation..

With Regards
Devarajan.G Naidu
[P r o j e c t   A r c h i t e c t]
BlazeDream Technologies Pvt Ltd
Mobile: +91 98844 87089

Whatever you do, do well, and may success attend your efforts
-



Praveen Chandrasekaran wrote:
> hi all,
>
> how to create a database in latest version of android... plz help
> me
>
> regards,
> Praveen Chandrasekaran.
>
> >
>
>   



--~--~-~--~~~---~--~~
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 me

2008-12-11 Thread Praveen Chandrasekaran

hi all,

how to create a database in latest version of android... plz help
me

regards,
Praveen Chandrasekaran.

--~--~-~--~~~---~--~~
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 eclipse

2008-12-01 Thread John2o01

when i try to run eclipse i get this error " A Java Runtime Enviroment
(JRE) or Java Development Kit (JDK)
must be available in order to run Eclipse. No Java virtual machine was
found after searching the following locations:
 C:\Documents and Settings\TEMP\Desktop\myg1\eclipse-jee-ganymede-SR1-
win32\eclipse\jre\bin\javaw.exe
javaw.exe in your current PATH"

can any one please help me?
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] help getting started

2008-11-30 Thread John2o01

ok everything i run just to test anything after i downloaded and
unzipped the sdk gives me compilation errors and when i try to run the
andriod.jar it wont work either it gives me" Failed to load Main-Class
manifest attribute from C:\Documents and Settings\TEMP\Desktop
\myg1\android-sdk-windows-1.0_r1\android.jar" how can i fix this??

--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] help getting started

2008-11-30 Thread John2o01

i dont know what i am doing wrong but i keep getting compilation
errors anytime i try to run any sample programs and when i try to run
android.jar just to see if it works i get "Failed to load Main-Class
manifest attribute from C:\Documents and Settings\TEMP\Desktop
\myg1\android-sdk-windows1.0_r1\android.jar" can anyone help me?

--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] help with error on tabhosts & intent

2008-11-30 Thread Lawrence Samantha
Hi all, I've been trying to debug this problem all day long and can't seem
to find the breakthrough. I'm using tabhosts to create tabs on the main
screen, then I try to put list inside the other tab.To achieve that, I'm
using setContent(Intent e ) methods.. hoping that the list will be contained
on the tab.
Here's my errorr I'm getting: Did you forget to call 'public void
setup(LocalActivityManager activityGroup)'?
But as you see on the codes below, I already call tabs.setup();

So here's the structure of my program:

public class myHome extends  TabActivity {
@Override
public void onCreate(Bundle home) {
super.onCreate(home);
// call the home screen
try {
setContentView(R.layout.home);
} catch (Exception e) {
Log.e("ERROR0001", e.getMessage());
// TODO: handle exception
}

// do the actual work here...

// manage tab
try {
final TabHost tabs = (TabHost) findViewById(R.id.tabhost);
tabs.setup();

TabSpec tab = tabs.newTabSpec("TabOne");
tab.setContent(R.id.home_scroll);
tab.setIndicator("TabOne");
tabs.addTab(tab);

//tabs.setup();
tab = tabs.newTabSpec("TabTwo");
//tab.setContent(R.id.home_scroll_events);
tab.setContent(new Intent(this, myList.class));
tab.setIndicator("TabTwo");
tabs.addTab(tab);

  tabs.setCurrentTab(1);

} catch (Exception e) {
// TODO: handle exception
Log.e("ERROR0002", e.getMessage());
}

}

It triggers the second exception (ERROR0002) when it reach
tabs.setCurrentTab(1)
Commenting out the setContent(Intent) method and use R.id, everything works
fine... minus the list I wanted...
Here is the error:

java.lang.IllegalStateException: Did you forget to call 'public void
setup(LocalActivityManager activityGroup)'?

I already add



on the android manifest file

Here's the content of myList.java

public class myList extends ListActivity {

@Override
public void onCreate(Bundle home_list) {
super.onCreate(home_list);
  setContentView(R.layout.two);

String[] items={"lorem", "ipsum", "dolor", "sit", "amet",
"consectetuer", "adipiscing", "elit", "morbi", "vel",
"ligula", "vitae", "arcu", "aliquet", "mollis",
"etiam", "vel", "erat", "placerat", "ante",
"porttitor", "sodales", "pellentesque", "augue"};
 this.setListAdapter(new ArrayAdapter(this,
R.layout.row, R.id.label,
items));
 }
}

where two.xml is simply like this:


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



and here is row.xml


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




I must have missing something here...can anyone please help?

Thanks.
-- 
Lawrence Samantha

--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Help with animating Text

2008-11-29 Thread Dejecting

Hi All,

I'm trying to animate some text and have it scroll across the
screen but I can't seem to figure out how to do it and would like some
help if anyone is able to assist.  Basically I just want to have text
that the user entered at another place in the app scroll across the
screen and when done scrolling it repeats and scrolls again.  I'll
also need to be able to change the font and background colors as well
as size and if possible scroll speed.

Thanks ahead of time for the help.

- Matt

--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Help with animating Text

2008-11-29 Thread Dejecting

Hi All,

I'm trying to animate some text and have it scroll across the
screen but I can't seem to figure out how to do it and would like some
help if anyone is able to assist.  Basically I just want to have text
that the user entered at another place in the app scroll across the
screen and when done scrolling it repeats and scrolls again.  I'll
also need to be able to change the font and background colors as well
as size and if possible scroll speed.

Thanks ahead of time for the help.

- Matt

--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Help on building android source code for omap3430

2008-11-21 Thread Phani

Hi Guys,

Iam trying to build android source for omap3430 platform.
After doing all necessary preparations as listed in
source.android.com
and proceeding to build, i have encountered some java related
exception.
I tried googling for some solution, but ended with none.

Here is the error:

target Jar: core (out/target/common/obj/JAVA_LIBRARIES/
core_intermediates/javalib.jar)

TARGET_PRODUCT=ldp1
TARGET_SIMULATOR=
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm
TARGET_OS=linux
HOST_ARCH=x86
HOST_OS=linux
HOST_BUILD_TYPE=release
BUILD_ID=TC3

host SharedLib: libSR_Session (out/host/linux-x86/obj/lib/
libSR_Session.so)
Install: out/host/linux-x86/lib/libSR_AcousticModels.so
Install: out/host/linux-x86/lib/libSR_AcousticState.so
Install: out/host/linux-x86/lib/libSR_Grammar.so
Install: out/host/linux-x86/lib/libSR_Nametag.so
host Executable: make_g2g (out/host/linux-x86/obj/EXECUTABLES/
make_g2g_intermediates/make_g2g)
Install: out/host/linux-x86/lib/libSR_Recognizer.so
true
host Executable: emulator (out/host/linux-x86/obj/EXECUTABLES/
emulator_intermediates/emulator)
host Executable: dictTest (out/host/linux-x86/obj/EXECUTABLES/
dictTest_intermediates/dictTest)
true
host Executable: make_cfst (out/host/linux-x86/obj/EXECUTABLES/
make_cfst_intermediates/make_cfst)
true
host Executable: make_ve_grammar (out/host/linux-x86/obj/EXECUTABLES/
make_ve_grammar_intermediates/make_ve_grammar)
true
host Executable: parseStringTest (out/host/linux-x86/obj/EXECUTABLES/
parseStringTest_intermediates/parseStringTest)
true
host Executable: test_g2g (out/host/linux-x86/obj/EXECUTABLES/
test_g2g_intermediates/test_g2g)
true
host Executable: test_swiarb (out/host/linux-x86/obj/EXECUTABLES/
test_swiarb_intermediates/test_swiarb)
true
target Java: core-tests (out/target/common/obj/JAVA_LIBRARIES/core-
tests_intermediates/classes)
true
target Package: framework-res (out/target/product/ldp1/obj/APPS/
framework-res_intermediates/package.apk)
Exception in thread "main" java.lang.NoClassDefFoundError:
com.android.signapk.SignApk
   at java.lang.Class.initializeClass(libgcj.so.81)
Caused by: java.lang.ClassNotFoundException:
sun.security.x509.AlgorithmId not found in
gnu.gcj.runtime.SystemClassLoader{urls=[file:out/host/linux-x86/
framework/signapk.jar], parent=gnu.gcj.runtime.ExtensionClassLoader
{urls=[], parent=null}}
   at java.net.URLClassLoader.findClass(libgcj.so.81)
   at gnu.gcj.runtime.SystemClassLoader.findClass(libgcj.so.81)
   at java.lang.ClassLoader.loadClass(libgcj.so.81)
   at java.lang.ClassLoader.loadClass(libgcj.so.81)
   at java.lang.Class.initializeClass(libgcj.so.81)
make: *** [out/target/product/ldp1/obj/APPS/framework-
res_intermediates/package.apk] Error 1
make: *** Waiting for unfinished jobs
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.

How to fix this?
I'll really appreciate any help...

Thanks in Advance,
Phani.

--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



  1   2   >