[android-beginners] RTSP Video packet loss ratio, jitter and delay

2010-06-15 Thread George
I am streaming an rtsp video to Android.
How could I calculate network metrics like packet loss ratio, jitter
or network delay?

-- 
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] play an audio file on a voice call

2010-04-20 Thread george
Hi all

i want to play an audio file on a voice call

as following

the application initiates a call from device X to device Y

when Y replies

application on device X should inject an audio file in the stream of
the call

so device Y hears this audio file

if any help i'm waiting

Thanks much
George

-- 
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] how to send message to a speceific port

2009-12-24 Thread george
Hi all

i want to send  a text message on a specific port

how to do it
can any one help

thanks much

-- 
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] email preferences

2009-11-19 Thread Don George
why is it that even tho' I've set my email preferences to receive only one
email a day I am still getting dozens of them?
-- 
nmharleyrider
Fax#  505-296-0194
Mobile# 505-615-2190
Albuquerque, NM 87110

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

[android-beginners] android bluetooth

2009-11-05 Thread george
hi all

can i enable the  bluetooth on sdk 2.0 emulator

thnks

-- 
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] Audio/Video User Interface

2009-07-31 Thread george

Hi,

I need to develope a user interface for streaming audio/video. I know
that video has its own user interface but I need to start from
scratch. Does anyone know of a way utilizing the progress bar with the
video/audio streaming?

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



[android-beginners] Re: connection via adb

2009-07-07 Thread George Francis
Sorry about this - I found the problem.
Regards,

On Mon, Jul 6, 2009 at 3:34 PM, blackfrancis gfranc...@gmail.com wrote:

 Hello,
 I see posts about this scattered everywhere, so I apologise that this
 is somewhat travelled ground, but I haven't been able to find
 categorical answers to my questions.
 I bought a G1 recently and downloaded the Android SDK.  I have a Mac
 and a PC, and I installed the SDK for each.
 When I connect and try to see my device using 'sudo adb devices' on my
 Mac, I get List of devices attached with no entries.
 On my PC, when I plugged the  phone in I saw a popup in the System
 Tray that said 'Android phone' but I didnt get the chance to install
 the drivers that came with the SDK for XP, and again when I run 'adb
 devices' I get List of devices attached with no entries.
 Do I need to change the firmware that my phone is running?  My
 firmware is 1.1, baseband 62.33.20.08H, Kernel 2.6.25, build kila-user
 1.1 plat-rc33.
 Thanks in advance for any help getting my phone connected.
 Cheers,




-- 
George Francis
e-mail: gfranc...@gmail.com

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

2009-06-23 Thread George Oldone



_
Bing™  brings you maps, menus, and reviews organized in one place.   Try it now.
http://www.bing.com/search?q=restaurantsform=MLOGENpubl=WLHMTAGcrea=TEXT_MLOGEN_Core_tagline_local_1x1
--~--~-~--~~~---~--~~
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] AlertDialog spawning another AlertDialog

2009-06-16 Thread George

Hello,

I've written a camera application which presents the user with a set
of pre-defined tags to choose from. I've done this using an
alertdialog which fires an intent when the user presses one of the tag
options. I want to be able to get the user to add their own tag if
they feel the listed ones aren't appropriate. If the user selects the
'add new tag' option from the first alertdialog i want it to give them
a text box to type in some text, which if selected fires off an
alert.  Whats the best way to go about this? I've been playing around
with the alertdialog spawning another AlertDialog with an edittext box
and an ok button but can't get it working. Any pointers?

Thanks,

George

ArrayAdapterString array_adapter = new 
ArrayAdapterString(
CameraFinal.this, 
R.layout.simple_list_item_1, tagsf);

Builder alert4 = new 
AlertDialog.Builder(CameraFinal.this)
.setTitle(Select a tag)

.setAdapter(array_adapter,
new 
DialogInterface.OnClickListener() {
public void 
onClick(DialogInterface dialog,

int which) {

float 
orientation = mValues[1];
Intent 
sendIntent = new Intent(

Intent.ACTION_SEND);

sendIntent.setType(image/jpeg);

String[] recipients = { picsh...@fuzzmonkey.co.uk };

sendIntent.putExtra(Intent.EXTRA_STREAM,

uri);

sendIntent.putExtra(Intent.EXTRA_SUBJECT,

);

sendIntent.putExtra(Intent.EXTRA_EMAIL,

recipients);
String 
selected = tags.get(which);
String 
emailtxt = etext +   + orientation

+   + goalid +   + selected;

sendIntent.putExtra(Intent.EXTRA_TEXT,

emailtxt);

startActivity(Intent.createChooser(

sendIntent, Send to Server!));

}

}).setNeutralButton(Close,
new 
DialogInterface.OnClickListener() {
public void 
onClick(DialogInterface dialog,

int whichButton) {
// Put 
your code in here for a neutral
// 
response
}
});

alert4.show();
--~--~-~--~~~---~--~~
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] Subclassed ImageView does not draw in Gallery View

2009-04-09 Thread George

I am subclassing the ImageView class and adding to the Gallery View.
But, nothing seems to get drawn in the expected location; though I can
fling through the Gallery list. I added an image from a resource, and
it shows up correctly in the Gallery.

Any idea on why this may be happening?

Here is the code I am using:
public class CustomCanvas extends Activity {
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);

Gallery g = (Gallery) findViewById(R.id.gallery);
g.setAdapter(new ImageAdapter(this));
}

private class CustomImageView extends ImageView {

public CustomImageView(Context context) {
this(context, null);
}

public CustomImageView(Context context, AttributeSet attrs) {
this(context, attrs, 0);
}

public CustomImageView(Context context, AttributeSet attrs, int
defStyle) {
super(context, attrs, defStyle);
}

protected void onDraw(Canvas canvas)
{
canvas.drawColor(Color.BLUE);
}

}

private class ImageAdapter extends BaseAdapter{

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

public int getCount() {
return 2;
}

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

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

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

if (position == 1)
{
ImageView i = new ImageView(mContext);
i.setImageResource(R.drawable.icon);
return i;
}
else
{
CustomImageView w = new CustomImageView(mContext);
w.invalidate();
return w;
}
}

 private Context mContext;

}

}

--~--~-~--~~~---~--~~
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] OnDraw in subclass of ImageView not working with custom canvas drawing

2009-04-09 Thread George

I subclassed the ImageView class inorder to draw a Picture in an
ImageView. The ImageView is added to a Gallery
In my activity class:
Gallery g = (Gallery) findViewById(R.id.gallery);
g.setAdapter(new ImageAdapter(this));

My Adapter class:
private class ImageAdapter extends BaseAdapter{
..
public View getView(int position, View convertView, ViewGroup parent)
{

MyImageView m = new MyImageView(mContext); //where mContext my
main Activity
return m;
}
}

In my custom ImageView class: I have the following in my OnDraw
method

protected void onDraw(Canvas canvas)
{
super.OnDraw(canvas);
canvas.drawColor(Color.BLUE);
}

There is no change - the area is still black.

If I use setImageResource and then have the following in OnDraw
(canvas)

protected void onDraw(Canvas canvas)
{
super.OnDraw(canvas);
}

The image shows up correctly.

Any ideas on why my drawColor(Color.BLUE) is not taking effect in the
Gallery?



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



[android-beginners] Re: Proximity alerts and pending intents

2009-03-05 Thread George

Nevermind, sorted this now :)

On Mar 5, 3:10 am, George she...@gmail.com wrote:
 I've been looking through logcat and i've noticed

 I/LocationManagerService(   56): Entered alert

 Does this mean my alerts are firing, but my intents aren't being
 received by my intent receiver?

 Thanks,

 George

 On Mar 5, 2:17 am, George she...@gmail.com wrote:

  Hello,

  I'm writing an application that takes a list of gps co-ordinates and
  distances and triggers an alert (for now) when a user enters the
  proximity of one of the co-ordinates. I'm trying to use a proximity
  alert to do this, which will fire a intent to be received by an intent
  receiver. This is all being done in a service, so it can be run in the
  background. However, im struggling with the pending intent part
  of .addproximityalert.

                   String intentKey =
  android.intent.action.PROXIMITY_ALERT;
                   Intent proximityIntent = new Intent(intentKey);
                   mPendingIntent = PendingIntent.getBroadcast(getContext
  (), 0,
                          proximityIntent,
  PendingIntent.FLAG_CANCEL_CURRENT);
                   lm.addProximityAlert(latitude, longitude, radius, -1,
  mPendingIntent);

  The idea being that when a proximity alert is triggered,
  android.intent.action.PROXIMITY_ALERT is broadcast for a receiver to
  pickup. Eclipse is telling me that i need to chance getContext to
  getBaseContext, but proximity alerts aren't firing when i change this.

  Any pointers?

  Thanks for any help,

  George


--~--~-~--~~~---~--~~
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] Proximity alerts and pending intents

2009-03-04 Thread George

Hello,

I'm writing an application that takes a list of gps co-ordinates and
distances and triggers an alert (for now) when a user enters the
proximity of one of the co-ordinates. I'm trying to use a proximity
alert to do this, which will fire a intent to be received by an intent
receiver. This is all being done in a service, so it can be run in the
background. However, im struggling with the pending intent part
of .addproximityalert.

 String intentKey =
android.intent.action.PROXIMITY_ALERT;
 Intent proximityIntent = new Intent(intentKey);
 mPendingIntent = PendingIntent.getBroadcast(getContext
(), 0,
proximityIntent,
PendingIntent.FLAG_CANCEL_CURRENT);
 lm.addProximityAlert(latitude, longitude, radius, -1,
mPendingIntent);

The idea being that when a proximity alert is triggered,
android.intent.action.PROXIMITY_ALERT is broadcast for a receiver to
pickup. Eclipse is telling me that i need to chance getContext to
getBaseContext, but proximity alerts aren't firing when i change this.

Any pointers?

Thanks for any help,

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



[android-beginners] Re: Proximity alerts and pending intents

2009-03-04 Thread George

I've been looking through logcat and i've noticed

I/LocationManagerService(   56): Entered alert

Does this mean my alerts are firing, but my intents aren't being
received by my intent receiver?

Thanks,

George

On Mar 5, 2:17 am, George she...@gmail.com wrote:
 Hello,

 I'm writing an application that takes a list of gps co-ordinates and
 distances and triggers an alert (for now) when a user enters the
 proximity of one of the co-ordinates. I'm trying to use a proximity
 alert to do this, which will fire a intent to be received by an intent
 receiver. This is all being done in a service, so it can be run in the
 background. However, im struggling with the pending intent part
 of .addproximityalert.

                  String intentKey =
 android.intent.action.PROXIMITY_ALERT;
                  Intent proximityIntent = new Intent(intentKey);
                  mPendingIntent = PendingIntent.getBroadcast(getContext
 (), 0,
                         proximityIntent,
 PendingIntent.FLAG_CANCEL_CURRENT);
                  lm.addProximityAlert(latitude, longitude, radius, -1,
 mPendingIntent);

 The idea being that when a proximity alert is triggered,
 android.intent.action.PROXIMITY_ALERT is broadcast for a receiver to
 pickup. Eclipse is telling me that i need to chance getContext to
 getBaseContext, but proximity alerts aren't firing when i change this.

 Any pointers?

 Thanks for any help,

 George
--~--~-~--~~~---~--~~
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] Services and proximity alerts

2009-03-02 Thread George

Hello,

I'm trying to develop a service that will contain a list of gps
locations and distances which will be periodically checked to see if
the user is in one of those locations. Ideally, if a user is in the
location they will be given an option of taking a photo or ignoring
the request. This service will be independent of other applications, i
only want it for notification really.
I've been looking at the services documentation but i'm still lost
where to start. Can somebody give me some pointers? Do i need a remote
service?

Thanks,

George

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



[android-beginners] Re: Camera class doesn't save exif data?

2009-02-10 Thread George

I've tried reading the exif data with os x's 'more info' and EXIF
viewer for os x. They both show exif data for photos taken with the
native camera app, but don't show anything for any of the photos i
take with my own app.

I was poking around the source code last night and noticed..

ImageManager.instance().addImage(..) - the source code of which seems
to be doing stuff with exif information. Should i be using the
ImageManager to save the images? I still can't for the life of me see
where the rest of the EXIF information comes from either!

Any ideas?

Cheers,

George


On Feb 10, 7:46 am, Dave Sparks davidspa...@android.com wrote:
 That looks reasonable to me. What are you using to read back the EXIF
 data?

 I was just working on the EXIF code over the weekend fixing a few bugs
 for the G1. I know that this code is working (the bugs I fixed were
 conversion errors, not missing data). I use exiftool to dump the EXIF
 tags.

 On Feb 9, 9:57 am, George she...@gmail.com wrote:

  I've been playing with the parameter code for most of today, can't
  seem to get it to save any exif data. Even if i manually set lat /
  long, it doesn't save anything. The parameter code you posted accounts
  for the gps related exif information, but what of the rest? I can't
  see where it's setting the rest of the data.

  Here's the bit of code where i try to set the parameters. Should this
  be else where?

  Thanks,

  George

                  if (keyCode == KeyEvent.KEYCODE_SPACE) {

                          android.hardware.Camera.Parameters parameters =
  mCamera.getParameters();

                          parameters.set(jpeg-quality, 85);

                          parameters.remove(gps-latitude);
                          parameters.remove(gps-longitude);
                          parameters.remove(gps-altitude);
                          parameters.remove(gps-timestamp);

                          parameters.set(gps-latitude,51.49473309516907);
                          parameters.set(gps-longitude, -1.0);
                          parameters.set(gps-altitude, 71.0); // meters
                          parameters.set(gps-timestamp, 1233744883);

                          mCamera.setParameters(parameters);

                          mCamera.takePicture(null, null, mPictureCallback);

                          return true;
                  }

                  return false;
          }

  On Feb 6, 6:16 pm, Dave Sparks davidspa...@android.com wrote:

   Here's some code I grabbed from thecameraapp. In this case, the EXIF
   data is pre-encoded in the JPEG - no need to rewrite the file.

           private void capture(boolean captureOnly) {
               mPreviewing = false;
               mCaptureOnlyBitmap = null;

               final int latchedOrientation =
   ImageManager.roundOrientation(mLastOrientation + 90);

               Boolean recordLocation = mPreferences.getBoolean
   (pref_camera_recordlocation_key, false);
               Location loc = recordLocation ? getCurrentLocation() :
   null;
               android.hardware.Camera.Parameters parameters =
   mCameraDevice.getParameters();
               // Quality 75 has visible artifacts, and quality 90 looks
   great but the files begin to
               // get large. 85 is a good compromise between the two.
               parameters.set(jpeg-quality, 85);
               parameters.set(rotation, latchedOrientation);

               parameters.remove(gps-latitude);
               parameters.remove(gps-longitude);
               parameters.remove(gps-altitude);
               parameters.remove(gps-timestamp);

               if (DEBUG_FAKE_GPS_LOCATION) {
                   // Google London office, having trouble encoding
   longitude

                   if (false) {
                       // This fails:
                       parameters.set(gps-latitude,
   51.49473309516907);
                       parameters.set(gps-longitude,
   -0.14598190784454346);
                       parameters.set(gps-altitude, 71.0); // meters
                       parameters.set(gps-timestamp, 1233744883);
                   } else {
                       // This works OK:
                       parameters.set(gps-latitude,
   51.49473309516907);
                       parameters.set(gps-longitude, -1.0);
                       parameters.set(gps-altitude, 71.0); // meters
                       parameters.set(gps-timestamp, 1233744883);
                   }
               } else if (loc != null) {
                   double lat = loc.getLatitude();
                   double lon = loc.getLongitude();
                   boolean hasLatLon = (lat != 0.0d) || (lon != 0.0d);

                   if (hasLatLon) {
                       String latString = String.valueOf(lat);
                       String lonString = String.valueOf(lon);
                       parameters.set(gps-latitude,  latString);
                       parameters.set(gps-longitude, lonString

[android-beginners] Re: Camera class doesn't save exif data?

2009-02-10 Thread George

ExifTool Version Number : 7.67
File Name   : road_trip_1.jpg
Directory   : .
File Size   : 107 kB
File Modification Date/Time : 2009:02:10 13:43:31+00:00
File Type   : JPEG
MIME Type   : image/jpeg
JFIF Version: 1.01
Resolution Unit : None
X Resolution: 1
Y Resolution: 1
Image Width : 2048
Image Height: 1536
Encoding Process: Baseline DCT, Huffman coding
Bits Per Sample : 8
Color Components: 3
Y Cb Cr Sub Sampling: YCbCr4:2:0 (2 2)
Image Size  : 2048x1536

Thats all the info i can pull using exiftool from the command line.

George

On Feb 10, 7:46 am, Dave Sparks davidspa...@android.com wrote:
 That looks reasonable to me. What are you using to read back the EXIF
 data?

 I was just working on the EXIF code over the weekend fixing a few bugs
 for the G1. I know that this code is working (the bugs I fixed were
 conversion errors, not missing data). I use exiftool to dump the EXIF
 tags.

 On Feb 9, 9:57 am, George she...@gmail.com wrote:

  I've been playing with the parameter code for most of today, can't
  seem to get it to save any exif data. Even if i manually set lat /
  long, it doesn't save anything. The parameter code you posted accounts
  for the gps related exif information, but what of the rest? I can't
  see where it's setting the rest of the data.

  Here's the bit of code where i try to set the parameters. Should this
  be else where?

  Thanks,

  George

                  if (keyCode == KeyEvent.KEYCODE_SPACE) {

                          android.hardware.Camera.Parameters parameters =
  mCamera.getParameters();

                          parameters.set(jpeg-quality, 85);

                          parameters.remove(gps-latitude);
                          parameters.remove(gps-longitude);
                          parameters.remove(gps-altitude);
                          parameters.remove(gps-timestamp);

                          parameters.set(gps-latitude,51.49473309516907);
                          parameters.set(gps-longitude, -1.0);
                          parameters.set(gps-altitude, 71.0); // meters
                          parameters.set(gps-timestamp, 1233744883);

                          mCamera.setParameters(parameters);

                          mCamera.takePicture(null, null, mPictureCallback);

                          return true;
                  }

                  return false;
          }

  On Feb 6, 6:16 pm, Dave Sparks davidspa...@android.com wrote:

   Here's some code I grabbed from thecameraapp. In this case, the EXIF
   data is pre-encoded in the JPEG - no need to rewrite the file.

           private void capture(boolean captureOnly) {
               mPreviewing = false;
               mCaptureOnlyBitmap = null;

               final int latchedOrientation =
   ImageManager.roundOrientation(mLastOrientation + 90);

               Boolean recordLocation = mPreferences.getBoolean
   (pref_camera_recordlocation_key, false);
               Location loc = recordLocation ? getCurrentLocation() :
   null;
               android.hardware.Camera.Parameters parameters =
   mCameraDevice.getParameters();
               // Quality 75 has visible artifacts, and quality 90 looks
   great but the files begin to
               // get large. 85 is a good compromise between the two.
               parameters.set(jpeg-quality, 85);
               parameters.set(rotation, latchedOrientation);

               parameters.remove(gps-latitude);
               parameters.remove(gps-longitude);
               parameters.remove(gps-altitude);
               parameters.remove(gps-timestamp);

               if (DEBUG_FAKE_GPS_LOCATION) {
                   // Google London office, having trouble encoding
   longitude

                   if (false) {
                       // This fails:
                       parameters.set(gps-latitude,
   51.49473309516907);
                       parameters.set(gps-longitude,
   -0.14598190784454346);
                       parameters.set(gps-altitude, 71.0); // meters
                       parameters.set(gps-timestamp, 1233744883);
                   } else {
                       // This works OK:
                       parameters.set(gps-latitude,
   51.49473309516907);
                       parameters.set(gps-longitude, -1.0);
                       parameters.set(gps-altitude, 71.0); // meters
                       parameters.set(gps-timestamp, 1233744883);
                   }
               } else if (loc != null) {
                   double lat = loc.getLatitude();
                   double lon = loc.getLongitude();
                   boolean hasLatLon = (lat != 0.0d) || (lon != 0.0d);

                   if (hasLatLon

[android-beginners] Re: Camera class doesn't save exif data?

2009-02-10 Thread George

Ah ok. Surely i should be getting exif data written then, even without
the geo exif data? Could it be something to do with the way im saving
the image? I can't think of much else! Unless is the developer g1
phone im using to test this on?


Bitmap bm = BitmapFactory.decodeByteArray
(data, 0, data.length);
values.put
(MediaStore.Images.Media.DISPLAY_NAME, Picture);
values.put
(MediaStore.Images.Media.DESCRIPTION, taken with g1);
values.put(MediaStore.Images.Media.MIME_TYPE,
image/jpeg);

Uri uri = getContentResolver().insert
(MediaStore.Images.Media.EXTERNAL_CONTENT_URI, values);

try {

OutputStream outStream =
getContentResolver().openOutputStream(uri);
bm.compress
(Bitmap.CompressFormat.JPEG, 85, outStream);
outStream.close();

} catch (Exception e) {
Log.e(TAG, exception while writing
image, e);
}

Thanks,

George


On Feb 10, 5:49 pm, Dave Sparks davidspa...@android.com wrote:
 As far as I can tell, the only information we pass down through 
 theCamera.java layer to thecameradriver is geo-location. All the other
 EXIF data comes from the driver itself.

 ImageManager can be used to write additional EXIF data, but I believe
 that requires a full read/write sequence (whereas going through 
 thecameradriver, all the data is written along with the image).

 This is one of the areas I want to improve in the next release
 (Donuts).

 On Feb 10, 5:17 am, George she...@gmail.com wrote:

  I've tried reading the exif data with os x's 'more info' and EXIF
  viewer for os x. They both show exif data for photos taken with the
  nativecameraapp, but don't show anything for any of the photos i
  take with my own app.

  I was poking around the source code last night and noticed..

  ImageManager.instance().addImage(..) - the source code of which seems
  to be doing stuff with exif information. Should i be using the
  ImageManager to save the images? I still can't for the life of me see
  where the rest of the EXIF information comes from either!

  Any ideas?

  Cheers,

  George

  On Feb 10, 7:46 am, Dave Sparks davidspa...@android.com wrote:

   That looks reasonable to me. What are you using to read back the EXIF
   data?

   I was just working on the EXIF code over the weekend fixing a few bugs
   for the G1. I know that this code is working (the bugs I fixed were
   conversion errors, not missing data). I use exiftool to dump the EXIF
   tags.

   On Feb 9, 9:57 am, George she...@gmail.com wrote:

I've been playing with the parameter code for most of today, can't
seem to get it to save any exif data. Even if i manually set lat /
long, it doesn't save anything. The parameter code you posted accounts
for the gps related exif information, but what of the rest? I can't
see where it's setting the rest of the data.

Here's the bit of code where i try to set the parameters. Should this
be else where?

Thanks,

George

                if (keyCode == KeyEvent.KEYCODE_SPACE) {

                        android.hardware.Camera.Parameters parameters =
mCamera.getParameters();

                        parameters.set(jpeg-quality, 85);

                        parameters.remove(gps-latitude);
                        parameters.remove(gps-longitude);
                        parameters.remove(gps-altitude);
                        parameters.remove(gps-timestamp);

                        
parameters.set(gps-latitude,51.49473309516907);
                        parameters.set(gps-longitude, -1.0);
                        parameters.set(gps-altitude, 71.0); // 
meters
                        parameters.set(gps-timestamp, 1233744883);

                        mCamera.setParameters(parameters);

                        mCamera.takePicture(null, null, 
mPictureCallback);

                        return true;
                }

                return false;
        }

On Feb 6, 6:16 pm, Dave Sparks davidspa...@android.com wrote:

 Here's some code I grabbed from thecameraapp. In this case, the EXIF
 data is pre-encoded in the JPEG - no need to rewrite the file.

         private void capture(boolean captureOnly) {
             mPreviewing = false;
             mCaptureOnlyBitmap = null;

             final int latchedOrientation =
 ImageManager.roundOrientation(mLastOrientation + 90);

             Boolean recordLocation = mPreferences.getBoolean
 (pref_camera_recordlocation_key, false);
             Location loc = recordLocation ? getCurrentLocation() :
 null;
             android.hardware.Camera.Parameters parameters

[android-beginners] Re: Camera class doesn't save exif data?

2009-02-10 Thread George

Ah ok. Surely i should be getting exif data written then, even without
the geo exif data? Could it be something to do with the way im saving
the image? I can't think of much else! Unless is the developer g1
phone im using to test this on?


Bitmap bm = BitmapFactory.decodeByteArray
(data, 0, data.length);
values.put
(MediaStore.Images.Media.DISPLAY_NAME, Picture);
values.put
(MediaStore.Images.Media.DESCRIPTION, taken with g1);
values.put(MediaStore.Images.Media.MIME_TYPE,
image/jpeg);

Uri uri = getContentResolver().insert
(MediaStore.Images.Media.EXTERNAL_CONTENT_URI, values);

try {

OutputStream outStream =
getContentResolver().openOutputStream(uri);
bm.compress
(Bitmap.CompressFormat.JPEG, 85, outStream);
outStream.close();

} catch (Exception e) {
Log.e(TAG, exception while writing
image, e);
}

Thanks,

George


On Feb 10, 5:49 pm, Dave Sparks davidspa...@android.com wrote:
 As far as I can tell, the only information we pass down through 
 theCamera.java layer to thecameradriver is geo-location. All the other
 EXIF data comes from the driver itself.

 ImageManager can be used to write additional EXIF data, but I believe
 that requires a full read/write sequence (whereas going through 
 thecameradriver, all the data is written along with the image).

 This is one of the areas I want to improve in the next release
 (Donuts).

 On Feb 10, 5:17 am, George she...@gmail.com wrote:

  I've tried reading the exif data with os x's 'more info' and EXIF
  viewer for os x. They both show exif data for photos taken with the
  nativecameraapp, but don't show anything for any of the photos i
  take with my own app.

  I was poking around the source code last night and noticed..

  ImageManager.instance().addImage(..) - the source code of which seems
  to be doing stuff with exif information. Should i be using the
  ImageManager to save the images? I still can't for the life of me see
  where the rest of the EXIF information comes from either!

  Any ideas?

  Cheers,

  George

  On Feb 10, 7:46 am, Dave Sparks davidspa...@android.com wrote:

   That looks reasonable to me. What are you using to read back the EXIF
   data?

   I was just working on the EXIF code over the weekend fixing a few bugs
   for the G1. I know that this code is working (the bugs I fixed were
   conversion errors, not missing data). I use exiftool to dump the EXIF
   tags.

   On Feb 9, 9:57 am, George she...@gmail.com wrote:

I've been playing with the parameter code for most of today, can't
seem to get it to save any exif data. Even if i manually set lat /
long, it doesn't save anything. The parameter code you posted accounts
for the gps related exif information, but what of the rest? I can't
see where it's setting the rest of the data.

Here's the bit of code where i try to set the parameters. Should this
be else where?

Thanks,

George

                if (keyCode == KeyEvent.KEYCODE_SPACE) {

                        android.hardware.Camera.Parameters parameters =
mCamera.getParameters();

                        parameters.set(jpeg-quality, 85);

                        parameters.remove(gps-latitude);
                        parameters.remove(gps-longitude);
                        parameters.remove(gps-altitude);
                        parameters.remove(gps-timestamp);

                        
parameters.set(gps-latitude,51.49473309516907);
                        parameters.set(gps-longitude, -1.0);
                        parameters.set(gps-altitude, 71.0); // 
meters
                        parameters.set(gps-timestamp, 1233744883);

                        mCamera.setParameters(parameters);

                        mCamera.takePicture(null, null, 
mPictureCallback);

                        return true;
                }

                return false;
        }

On Feb 6, 6:16 pm, Dave Sparks davidspa...@android.com wrote:

 Here's some code I grabbed from thecameraapp. In this case, the EXIF
 data is pre-encoded in the JPEG - no need to rewrite the file.

         private void capture(boolean captureOnly) {
             mPreviewing = false;
             mCaptureOnlyBitmap = null;

             final int latchedOrientation =
 ImageManager.roundOrientation(mLastOrientation + 90);

             Boolean recordLocation = mPreferences.getBoolean
 (pref_camera_recordlocation_key, false);
             Location loc = recordLocation ? getCurrentLocation() :
 null;
             android.hardware.Camera.Parameters parameters

[android-beginners] Re: Camera class doesn't save exif data?

2009-02-10 Thread George

Ah ok. Surely i should be getting exif data written then, even without
the geo exif data? Could it be something to do with the way im saving
the image? I can't think of much else! Unless is the developer g1
phone im using to test this on?


Bitmap bm = BitmapFactory.decodeByteArray
(data, 0, data.length);
values.put
(MediaStore.Images.Media.DISPLAY_NAME, Picture);
values.put
(MediaStore.Images.Media.DESCRIPTION, taken with g1);
values.put(MediaStore.Images.Media.MIME_TYPE,
image/jpeg);

Uri uri = getContentResolver().insert
(MediaStore.Images.Media.EXTERNAL_CONTENT_URI, values);

try {

OutputStream outStream =
getContentResolver().openOutputStream(uri);
bm.compress
(Bitmap.CompressFormat.JPEG, 85, outStream);
outStream.close();

} catch (Exception e) {
Log.e(TAG, exception while writing
image, e);
}

Thanks,

George


On Feb 10, 5:49 pm, Dave Sparks davidspa...@android.com wrote:
 As far as I can tell, the only information we pass down through 
 theCamera.java layer to thecameradriver is geo-location. All the other
 EXIF data comes from the driver itself.

 ImageManager can be used to write additional EXIF data, but I believe
 that requires a full read/write sequence (whereas going through 
 thecameradriver, all the data is written along with the image).

 This is one of the areas I want to improve in the next release
 (Donuts).

 On Feb 10, 5:17 am, George she...@gmail.com wrote:

  I've tried reading the exif data with os x's 'more info' and EXIF
  viewer for os x. They both show exif data for photos taken with the
  nativecameraapp, but don't show anything for any of the photos i
  take with my own app.

  I was poking around the source code last night and noticed..

  ImageManager.instance().addImage(..) - the source code of which seems
  to be doing stuff with exif information. Should i be using the
  ImageManager to save the images? I still can't for the life of me see
  where the rest of the EXIF information comes from either!

  Any ideas?

  Cheers,

  George

  On Feb 10, 7:46 am, Dave Sparks davidspa...@android.com wrote:

   That looks reasonable to me. What are you using to read back the EXIF
   data?

   I was just working on the EXIF code over the weekend fixing a few bugs
   for the G1. I know that this code is working (the bugs I fixed were
   conversion errors, not missing data). I use exiftool to dump the EXIF
   tags.

   On Feb 9, 9:57 am, George she...@gmail.com wrote:

I've been playing with the parameter code for most of today, can't
seem to get it to save any exif data. Even if i manually set lat /
long, it doesn't save anything. The parameter code you posted accounts
for the gps related exif information, but what of the rest? I can't
see where it's setting the rest of the data.

Here's the bit of code where i try to set the parameters. Should this
be else where?

Thanks,

George

                if (keyCode == KeyEvent.KEYCODE_SPACE) {

                        android.hardware.Camera.Parameters parameters =
mCamera.getParameters();

                        parameters.set(jpeg-quality, 85);

                        parameters.remove(gps-latitude);
                        parameters.remove(gps-longitude);
                        parameters.remove(gps-altitude);
                        parameters.remove(gps-timestamp);

                        
parameters.set(gps-latitude,51.49473309516907);
                        parameters.set(gps-longitude, -1.0);
                        parameters.set(gps-altitude, 71.0); // 
meters
                        parameters.set(gps-timestamp, 1233744883);

                        mCamera.setParameters(parameters);

                        mCamera.takePicture(null, null, 
mPictureCallback);

                        return true;
                }

                return false;
        }

On Feb 6, 6:16 pm, Dave Sparks davidspa...@android.com wrote:

 Here's some code I grabbed from thecameraapp. In this case, the EXIF
 data is pre-encoded in the JPEG - no need to rewrite the file.

         private void capture(boolean captureOnly) {
             mPreviewing = false;
             mCaptureOnlyBitmap = null;

             final int latchedOrientation =
 ImageManager.roundOrientation(mLastOrientation + 90);

             Boolean recordLocation = mPreferences.getBoolean
 (pref_camera_recordlocation_key, false);
             Location loc = recordLocation ? getCurrentLocation() :
 null;
             android.hardware.Camera.Parameters parameters

[android-beginners] Getting a bearing from the sensor manager

2009-02-10 Thread George

Hello,

I'm trying to get a compass bearing from the sensor manager but im
unsure whether i should be using magnetic field or orientation?
Orientation seems to return the angle the phone is pointing, but not
the actual magnetic compass bearing?

Any pointers on what i should be doing here?

Thanks,

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



[android-beginners] Re: Camera class doesn't save exif data?

2009-02-09 Thread George

I've been playing with the parameter code for most of today, can't
seem to get it to save any exif data. Even if i manually set lat /
long, it doesn't save anything. The parameter code you posted accounts
for the gps related exif information, but what of the rest? I can't
see where it's setting the rest of the data.

Here's the bit of code where i try to set the parameters. Should this
be else where?

Thanks,

George

if (keyCode == KeyEvent.KEYCODE_SPACE) {

android.hardware.Camera.Parameters parameters =
mCamera.getParameters();

parameters.set(jpeg-quality, 85);

parameters.remove(gps-latitude);
parameters.remove(gps-longitude);
parameters.remove(gps-altitude);
parameters.remove(gps-timestamp);

parameters.set(gps-latitude,51.49473309516907);
parameters.set(gps-longitude, -1.0);
parameters.set(gps-altitude, 71.0); // meters
parameters.set(gps-timestamp, 1233744883);

mCamera.setParameters(parameters);

mCamera.takePicture(null, null, mPictureCallback);

return true;
}

return false;
}



On Feb 6, 6:16 pm, Dave Sparks davidspa...@android.com wrote:
 Here's some code I grabbed from thecameraapp. In this case, the EXIF
 data is pre-encoded in the JPEG - no need to rewrite the file.

         private void capture(boolean captureOnly) {
             mPreviewing = false;
             mCaptureOnlyBitmap = null;

             final int latchedOrientation =
 ImageManager.roundOrientation(mLastOrientation + 90);

             Boolean recordLocation = mPreferences.getBoolean
 (pref_camera_recordlocation_key, false);
             Location loc = recordLocation ? getCurrentLocation() :
 null;
             android.hardware.Camera.Parameters parameters =
 mCameraDevice.getParameters();
             // Quality 75 has visible artifacts, and quality 90 looks
 great but the files begin to
             // get large. 85 is a good compromise between the two.
             parameters.set(jpeg-quality, 85);
             parameters.set(rotation, latchedOrientation);

             parameters.remove(gps-latitude);
             parameters.remove(gps-longitude);
             parameters.remove(gps-altitude);
             parameters.remove(gps-timestamp);

             if (DEBUG_FAKE_GPS_LOCATION) {
                 // Google London office, having trouble encoding
 longitude

                 if (false) {
                     // This fails:
                     parameters.set(gps-latitude,
 51.49473309516907);
                     parameters.set(gps-longitude,
 -0.14598190784454346);
                     parameters.set(gps-altitude, 71.0); // meters
                     parameters.set(gps-timestamp, 1233744883);
                 } else {
                     // This works OK:
                     parameters.set(gps-latitude,
 51.49473309516907);
                     parameters.set(gps-longitude, -1.0);
                     parameters.set(gps-altitude, 71.0); // meters
                     parameters.set(gps-timestamp, 1233744883);
                 }
             } else if (loc != null) {
                 double lat = loc.getLatitude();
                 double lon = loc.getLongitude();
                 boolean hasLatLon = (lat != 0.0d) || (lon != 0.0d);

                 if (hasLatLon) {
                     String latString = String.valueOf(lat);
                     String lonString = String.valueOf(lon);
                     parameters.set(gps-latitude,  latString);
                     parameters.set(gps-longitude, lonString);
                     if (loc.hasAltitude())
                         parameters.set(gps-altitude,  String.valueOf
 (loc.getAltitude()));
                     if (loc.getTime() != 0) {
                         // Location.getTime() is UTC in milliseconds.
                         // gps-timestamp is UTC in seconds.
                         long utcTimeSeconds = loc.getTime() / 1000;
                         parameters.set(gps-timestamp, String.valueOf
 (utcTimeSeconds));
                     }
                 } else {
                     loc = null;
                 }
             }

             Size pictureSize = parameters.getPictureSize();

             // resize the SurfaceView to the aspect-ratio of the still
 image
             // and so that we can see the full image that was taken
             mSurfaceView.setAspectRatio(pictureSize.width,
 pictureSize.height);

             mCameraDevice.setParameters(parameters);

             mCameraDevice.takePicture(mShutterCallback,
 mRawPictureCallback, new JpegPictureCallback(loc));

             mBlackout.setVisibility(View.VISIBLE);
             // Comment this out for now until we can decode

[android-beginners] Re: Camera class doesn't save exif data?

2009-02-06 Thread George

Thanks for your reply. I've had a poke around the reference docs and
can't seem to find anything regarding an EXIF helper class, any
pointers?

Thanks,

George


On Feb 6, 3:28 am, Dave Sparks davidspa...@android.com wrote:
 If you wrote your own app, you need to use the location services to
 get position and use the EXIF helper class to set the coordinates.

 We may have found a bug in the G1 camera driver that affects altitude
 and certain geo-locations near the prime meridian.

 On Feb 5, 10:00 am, George she...@gmail.com wrote:

  On further inspection, should i be using
  MediaStore.Images.ImageColumns.orientation / lat / long etc to set
  exif data? Or this internal to android it's self?

  Thanks,

  George

  On Feb 5, 5:49 pm, George she...@gmail.com wrote:

   Hello,

   I've written an app that takes a photo using the Camera class, saves
   the image to the sd card and then emails the photo to a given email
   address. I've noticed that the resulting image doesn't contain any
   EXIF data? The photos taken with the native camera app contain
   appropriate exif, but the photos my app take do not contain any.

   Is there some code i'm missing to get the camera to do this, or is it
   not supported?

   Thanks,

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



[android-beginners] Re: Camera class doesn't save exif data?

2009-02-06 Thread George

I've found the ExifInterface class in the camera source code which
takes a file name as a string. I cant figure how to get the file name
of the image i've just taken? I dont really want to have to save the
image to reload it again, anyway of pointing to the 'bm' jpeg picture
object?

Thanks again,

George

public void onPictureTaken(byte[] data, Camera c) {

Bitmap bm = BitmapFactory.decodeByteArray(data, 0, 
data.length);

// Save the name and description in a map. Key is the 
content
// provider's
// column name, value is the value to save in that 
record field.
ContentValues values = new ContentValues(3);
// set name to date + time
// description - current goal?
values.put(MediaStore.Images.Media.DISPLAY_NAME, 
Picture);
values.put(MediaStore.Images.Media.DESCRIPTION, taken 
with g1);
values.put(MediaStore.Images.Media.MIME_TYPE, 
image/jpeg);

//values.put(MediaStore.Images.ImageColumns.DESCRIPTION, THIS IS
EXIF DATA );
//values.put(MediaStore.Images.ImageColumns., THIS IS 
EXIF
DATA );

//values.put(MediaStore.Images.ImageColumns.LATITUDE, 
value);
//values.put(MediaStore.Images.ImageColumns.LONGITUDE, 
value);
//values.put(MediaStore.Images.ImageColumns.ORIENTATION, 
value);

// Add a new record without the bitmap, but with the 
values.
// It returns the URI of the new record.
Uri uri = getContentResolver().insert(

MediaStore.Images.Media.EXTERNAL_CONTENT_URI, values);

try {
// Now get a handle to the file for that 
record, and save the
// data into it.
// sourceBitmap is a Bitmap object representing 
the file to save
// to the database.
OutputStream outStream = 
getContentResolver().openOutputStream
(uri);
bm.compress(Bitmap.CompressFormat.JPEG, 85, 
outStream);

ExifHelper exif = new 
ExifHelper(/sdcard/dcim/something.jpg);


outStream.close();
} catch (Exception e) {
Log.e(TAG, exception while writing image, e);
}

Intent sendIntent = new Intent(Intent.ACTION_SEND);
sendIntent.setType(image/jpeg);
String[] recipients = { geo...@fuzzmonkey.co.uk };
sendIntent.putExtra(Intent.EXTRA_STREAM, uri);
sendIntent.putExtra(Intent.EXTRA_SUBJECT, Subject);
sendIntent.putExtra(Intent.EXTRA_EMAIL, recipients);

// get orientation next

sendIntent.putExtra(Intent.EXTRA_TEXT,
Orientation + goal and poss gps goes 
here);
startActivity(Intent.createChooser(sendIntent, Send to 
Server!));

Log.e(TAG, PICTURE CALLBACK: data.length =  + 
data.length);
mCamera.startPreview();
}
};

On Feb 6, 12:13 pm, George she...@gmail.com wrote:
 Thanks for your reply. I've had a poke around the reference docs and
 can't seem to find anything regarding an EXIF helper class, any
 pointers?

 Thanks,

 George

 On Feb 6, 3:28 am, Dave Sparks davidspa...@android.com wrote:

  If you wrote your own app, you need to use the location services to
  get position and use the EXIF helper class to set the coordinates.

  We may have found a bug in the G1 camera driver that affects altitude
  and certain geo-locations near the prime meridian.

  On Feb 5, 10:00 am, George she...@gmail.com wrote:

   On further inspection, should i be using
   MediaStore.Images.ImageColumns.orientation / lat / long etc to set
   exif data? Or this internal to android it's self?

   Thanks,

   George

   On Feb 5, 5:49 pm, George she...@gmail.com wrote:

Hello,

I've written an app that takes a photo using the Camera class, saves
the image to the sd card and then emails the photo to a given email
address. I've noticed that the resulting image doesn't contain any
EXIF data? The photos taken with the native camera app contain
appropriate exif, but the photos my app take do not contain any.

Is there some code i'm missing to get the camera to do this, or is it
not supported?

Thanks,

George


--~--~-~--~~~---~--~~
You received this message because you

[android-beginners] Camera class doesn't save exif data?

2009-02-05 Thread George

Hello,

I've written an app that takes a photo using the Camera class, saves
the image to the sd card and then emails the photo to a given email
address. I've noticed that the resulting image doesn't contain any
EXIF data? The photos taken with the native camera app contain
appropriate exif, but the photos my app take do not contain any.

Is there some code i'm missing to get the camera to do this, or is it
not supported?

Thanks,

George

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



[android-beginners] Re: Camera class doesn't save exif data?

2009-02-05 Thread George

On further inspection, should i be using
MediaStore.Images.ImageColumns.orientation / lat / long etc to set
exif data? Or this internal to android it's self?

Thanks,

George

On Feb 5, 5:49 pm, George she...@gmail.com wrote:
 Hello,

 I've written an app that takes a photo using the Camera class, saves
 the image to the sd card and then emails the photo to a given email
 address. I've noticed that the resulting image doesn't contain any
 EXIF data? The photos taken with the native camera app contain
 appropriate exif, but the photos my app take do not contain any.

 Is there some code i'm missing to get the camera to do this, or is it
 not supported?

 Thanks,

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



RES: [android-beginners] Activating dev phone with ATT sim card?

2008-12-23 Thread George Lanes

Hi,

First you Will need to set the APN. Check this parameter (3G connection
like) with ATT.
After this, try to connect to Google.

Regards,

George



-Mensagem original-
De: android-beginners@googlegroups.com
[mailto:android-beginn...@googlegroups.com] Em nome de sherifffruitfly
Enviada em: terça-feira, 23 de dezembro de 2008 21:47
Para: Android Beginners
Assunto: [android-beginners] Activating dev phone with ATT sim card?


Hi all,

I can't seem to get the phone to talk to the google servers - error
when it attempts to login: There is a problem communicating with the
google servers.

I have a web + text plan on the simcard, so I didn't think there would
be an issue.

Any suggestions?


Thanks,

-sff


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



RES: [android-beginners] Re: Sqlite connection coding

2008-12-12 Thread George Lanes

Try this books.
Android, A Programmer's Guide from J.F. DiMarzio
http://book.pdfchm.com/android-a-programmers-guide-12791/
Android Essentials (Firstpress) from Chris Haseman
http://book.pdfchm.com/android-essentials-firstpress--11777/

George Lanes

-Mensagem original-
De: android-beginners@googlegroups.com
[mailto:android-beginn...@googlegroups.com] Em nome de Mark Murphy
Enviada em: sexta-feira, 12 de dezembro de 2008 10:17
Para: android-beginners@googlegroups.com
Assunto: [android-beginners] Re: Sqlite connection coding


shilpi jhilmil wrote:
  can u suggest me a book from which i can start my basics...

There are several Android books listed in my Android Programming Knol:

http://knol.google.com/k/mark-murphy/android-programming

Others may be available in beta form as well, notably Ed Burnette's 
_Hello, Android_.

I am partial to _The Busy Coder's Guide to Android Development_. :-)

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
_The Busy Coder's Guide to Android Development_ Version 1.9 Available!



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