Re: [android-developers] Digest for android-developers@googlegroups.com - 8 Messages in 5 Topics

2012-01-08 Thread niraj manandhar
Thanks ..Niraj
On 8 Jan 2012 13:09,  wrote:

>   Today's Topic Summary
>
> Group: http://groups.google.com/group/android-developers/topics
>
>- HttpURLConnection + keep alive timeout? (the way forward starting
>with gingerbread) <#134bc341789c8d39_group_thread_0> [2 Updates]
>- onDraw canvas within a ScrollView? <#134bc341789c8d39_group_thread_1>[1 
> Update]
>- why standart android gallery working 
> well?<#134bc341789c8d39_group_thread_2>[3 Updates]
>- Fire an onClick <#134bc341789c8d39_group_thread_3> [1 Update]
>- SAXParser UnknownHostException for RSS 
> Feed<#134bc341789c8d39_group_thread_4>[1 Update]
>
>   HttpURLConnection + keep alive timeout? (the way forward starting with
> gingerbread)
>
>Jonathan S  Jan 07 02:37PM -0800
>
>There is setConnectTimeout(int)<
>
> https://developer.android.com/reference/java/net/URLConnection.html#setConnectTimeout%28int%29>-
>Sets
>the timeout value in milliseconds for establishing the connection to
>the
>resource pointed by this URLConnection instance.
>There is setReadTimeout(int) - Sets the timeout value in milliseconds
>for
>reading from the input stream of an established connection to the
>resource.
>
>
>
>
>Nikolay Elenkov  Jan 08 01:40PM +0900
>
>> instance.
>> There is setReadTimeout(int) - Sets the timeout value in
>milliseconds for
>> reading from the input stream of an established connection to the
>resource.
>
>I don't think those are related to the pooling implementation. Do you
>have any
>evidence that they are?
>
>
>
>   onDraw canvas within a 
> ScrollView?
>
>martypantsROK  Jan 07 07:21PM -0800
>
>How can I construct this scenario?
>
>I want to build a game where the game board is a canvas controlled by
>a custom View but within a ScrollView. The game board is potentially
>much bigger than the screen and I want to scale, scroll around the
>game. However, I want all the advantages of the UI outside the game
>board to include Buttons, TextViews, ImageViews, etc.
>
>Here's the outline code of what I imagine should work. Am I wrong in
>thinking I can use both
>my own onDraw and expect buttons and other widgets to be managed by
>Android? Must I implement
>all my own UI ?
>
>Just trying to deal with a Button (see below) fails me
>
>Here's the XML where I want my custom view surrounded by other UI
>elements
>--
>// game.xml 
>android:layout_width="240dp"
>android:layout_height="600dp"
>
>android:layout_width="match_parent"
>android:layout_height="match_parent"/>
>
>android:id="@+id/sometext
>android:layout_width="120dp"
>android:layout_height= "wrap_content"
>android:layout_weight="1"
>android:visibility="gone"/>
>android:id="@+id/editname"
>android:text="DoIt"
>android:layout_height="wrap_content"
>android:layout_width="wrap_content">
>
>
>
>My main activity
>--
>// Activity
>public class gameStartActivity extends Activity {
>@Override
>public void onCreate(Bundle savedInstanceState) {
>super.onCreate(savedInstanceState);
>
>setContentView(R.layout.game);
>}
>}
>
>
>
>// gameView.java
>public class gameView extends View {
>
>public gameView(Context context) {
>super(context);
>setFocusable(true); //necessary for getting the touch events
>InitBoardView();
>}
>
>private void InitBoardView(){
>Button myButton = (Button)findViewById(R.id.editname);
>
>-> fails at this point as myButton is null
>myButton.setOnClickListener(doSomething);
>}
>@Override
>protected void onDraw(Canvas canvas) {
>super.onDraw(canvas);
>canvas.drawBitmap(face, getPaddingLeft(), getPaddingTop(),paint);
>}
>
>@Override
>protected void onMeasure(int widthMeasureSpec,int heightMeasureSpec)
>{
>super.onMeasure(widthMeasureSpec, heightMeasureSpec);
>final int widthMode = MeasureSpec.getMode(widthMeasureSpec);
>final int heightMode = MeasureSpec.getMode(heightMeasureSpec);
>setMeasuredDimension(xSize, ySize);
>
>}
>}
>
>
>
>   why standart android gallery working 
> well?
>
>satahippy  Jan 07 03:14PM -0800
>
>slow work...
>how it's sound in english?
>
>
>
>
>satahippy  Jan 07 03:26PM -0800
>
>lags?
>
>
>
>
>Kristopher Micinski  Jan 07 05:58PM -0600
>
>Ah yes, that is more correct and helpful! Brakes would probably be
>misinterpreted by most people as 'breaks' :-)
>
>kris
>
>
>
>
>   Fire an 
> onClick
>
>Sean751  Jan 07 02:43PM -0800
>
>  

[android-developers] onPreviewFrame got Exception???

2012-01-08 Thread muhammad.ume...@hotmail.com
hi,
Please anyone tell me that when onPreviewFrame call it send first
frame of the preview to socket but when it callback it get exception
and does send any frame to socket, I want to send images from
onPreviewFrame continuously.  Please tell me what's the reason, and
sorry for my English. Here is my code.

 public void surfaceCreated(SurfaceHolder holder) {
// The Surface has been created, acquire the camera and tell it
where
// to draw.
//connection to server
  try {
socket = new Socket("192.168.1.220", );
obj = new ObjectOutputStream(socket.getOutputStream());
} catch (UnknownHostException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
} catch (IOException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
}


camera = Camera.open();
try {


  camera.setPreviewDisplay(holder);

  camera.setPreviewCallback(new PreviewCallback() {
// Called for each frame previewed
   // @SuppressWarnings("null")
public void onPreviewFrame(byte[] data, Camera camera) {


Camera.Parameters parameters = camera.getParameters();
int format = parameters.getPreviewFormat();

 //YUV formats require more conversion
if (format == ImageFormat.NV21 /*|| format ==
ImageFormat.YUY2 || format == ImageFormat.NV16*/)
{
int w = parameters.getPreviewSize().width;
int h = parameters.getPreviewSize().height;
// Get the YuV image
YuvImage yuv_image = new YuvImage(data, format, w, h,
null);
// Convert YuV to Jpeg
Rect rect = new Rect(0, 0, w, h);
ByteArrayOutputStream output_stream = new
ByteArrayOutputStream();
yuv_image.compressToJpeg(rect, 100, output_stream);
byte[] byt=output_stream.toByteArray();
   try
{
  obj.writeObject(byt);
  obj.flush();

  }
 catch (FileNotFoundException e) {
e.printStackTrace();
 } catch (IOException e) {
e.printStackTrace();
 } finally {
 }

 Preview.this.invalidate();
   }
 }
  });

   } catch (IOException e) {
  e.printStackTrace();
}
  }

Thanks and regards
umer

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


Re: [android-developers] onPreviewFrame got Exception???

2012-01-08 Thread Raghav Sood
What does the LogCat say?

On Sun, Jan 8, 2012 at 2:08 PM, muhammad.ume...@hotmail.com <
muhammad.ume...@hotmail.com> wrote:

> hi,
>Please anyone tell me that when onPreviewFrame call it send first
> frame of the preview to socket but when it callback it get exception
> and does send any frame to socket, I want to send images from
> onPreviewFrame continuously.  Please tell me what's the reason, and
> sorry for my English. Here is my code.
>
>  public void surfaceCreated(SurfaceHolder holder) {
>// The Surface has been created, acquire the camera and tell it
> where
>// to draw.
>//connection to server
>  try {
>socket = new Socket("192.168.1.220", );
>obj = new ObjectOutputStream(socket.getOutputStream());
>} catch (UnknownHostException e1) {
>// TODO Auto-generated catch block
>e1.printStackTrace();
>} catch (IOException e1) {
>// TODO Auto-generated catch block
>e1.printStackTrace();
>}
>
>
>camera = Camera.open();
>try {
>
>
>  camera.setPreviewDisplay(holder);
>
>  camera.setPreviewCallback(new PreviewCallback() {
>// Called for each frame previewed
>   // @SuppressWarnings("null")
>public void onPreviewFrame(byte[] data, Camera camera) {
>
>
>Camera.Parameters parameters = camera.getParameters();
>int format = parameters.getPreviewFormat();
>
> //YUV formats require more conversion
>if (format == ImageFormat.NV21 /*|| format ==
> ImageFormat.YUY2 || format == ImageFormat.NV16*/)
>{
>int w = parameters.getPreviewSize().width;
>int h = parameters.getPreviewSize().height;
>// Get the YuV image
>YuvImage yuv_image = new YuvImage(data, format, w, h,
> null);
>// Convert YuV to Jpeg
>Rect rect = new Rect(0, 0, w, h);
>ByteArrayOutputStream output_stream = new
> ByteArrayOutputStream();
>yuv_image.compressToJpeg(rect, 100, output_stream);
>byte[] byt=output_stream.toByteArray();
>   try
>{
>  obj.writeObject(byt);
>  obj.flush();
>
>  }
> catch (FileNotFoundException e) {
>e.printStackTrace();
> } catch (IOException e) {
>e.printStackTrace();
> } finally {
> }
>
> Preview.this.invalidate();
>   }
> }
>  });
>
>   } catch (IOException e) {
>  e.printStackTrace();
>}
>  }
>
> Thanks and regards
> umer
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
Raghav Sood
http://www.androidactivist.org/ - Author
http://www.appaholics.in/ - Founder

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

RE: [android-developers] onPreviewFrame got Exception???

2012-01-08 Thread Muhammad UMER


hi reghavsood,
  I am new on android. i don't know about logcat but i 
debug during capturing the frames it send frist frame but on next frame it go 
to exception.

Thanks
Date: Sun, 8 Jan 2012 14:11:55 +0530
Subject: Re: [android-developers] onPreviewFrame got Exception???
From: raghavs...@androidactivist.org
To: android-developers@googlegroups.com

What does the LogCat say?

On Sun, Jan 8, 2012 at 2:08 PM, muhammad.ume...@hotmail.com 
 wrote:

hi,

 á áPlease anyone tell me that when onPreviewFrame call it send first

frame of the preview to socket but when it callback it get exception

and does send any frame to socket, I want to send images from

onPreviewFrame continuously. áPlease tell me what's the reason, and

sorry for my English. Here is my code.



ápublic void surfaceCreated(SurfaceHolder holder) {

 á á// The Surface has been created, acquire the camera and tell it

where

 á á// to draw.

 á á á á//connection to server

 á á á á átry {

 á á á á á á á ásocket = new Socket("192.168.1.220", );

 á á á á á á á áobj = new ObjectOutputStream(socket.getOutputStream());

 á á á á} catch (UnknownHostException e1) {

 á á á á á á á á// TODO Auto-generated catch block

 á á á á á á á áe1.printStackTrace();

 á á á á} catch (IOException e1) {

 á á á á á á á á// TODO Auto-generated catch block

 á á á á á á á áe1.printStackTrace();

 á á á á}





 á ácamera = Camera.open();

 á átry {





 á á ácamera.setPreviewDisplay(holder);



 á á ácamera.setPreviewCallback(new PreviewCallback() {

 á á á á// Called for each frame previewed

 á á á // @SuppressWarnings("null")

 á á á á á á á ápublic void onPreviewFrame(byte[] data, Camera camera) {





 á á á á á á á áCamera.Parameters parameters = camera.getParameters();

 á á á á á á á áint format = parameters.getPreviewFormat();



 á á á á á á á á //YUV formats require more conversion

 á á á á á á á áif (format == ImageFormat.NV21 /*|| format ==

ImageFormat.YUY2 || format == ImageFormat.NV16*/)

 á á á á á á á á{

 á á á á á á á áint w = parameters.getPreviewSize().width;

 á á á á á á á áint h = parameters.getPreviewSize().height;

 á á á á á á á á// Get the YuV image

 á á á á á á á áYuvImage yuv_image = new YuvImage(data, format, w, h,

null);

 á á á á á á á á// Convert YuV to Jpeg

 á á á á á á á á á á á áRect rect = new Rect(0, 0, w, h);

 á á á á á á á á á á á áByteArrayOutputStream output_stream = new

ByteArrayOutputStream();

 á á á á á á á á á á á áyuv_image.compressToJpeg(rect, 100, output_stream);

 á á á á á á á á á á á ábyte[] byt=output_stream.toByteArray();

 á á á á á á á á á try

 á á á á á á á á á á{

 á á á á á á á á á á á á á á á á áobj.writeObject(byt);

 á á á á á á á á á á á á á á á á áobj.flush();



 á á á á á á á á á á á}

 á á á á á á á á á á catch (FileNotFoundException e) {

 á á á á á á á á á á á á á á á áe.printStackTrace();

 á á á á á á á á á á á á á á } catch (IOException e) {

 á á á á á á á á á á á á á á á áe.printStackTrace();

 á á á á á á á á á á á á á á } finally {

 á á á á á á á á á á á á á á }



 á á á á á á á á á á Preview.this.invalidate();

 á á á á á á á á á }

 á á á á á á á á }

 á á á á á á á});



 á á á } catch (IOException e) {

 á á áe.printStackTrace();

 á á}

 á}



Thanks and regards

umer



--

You received this message because you are subscribed to the Google

Groups "Android Developers" group.

To post to this group, send email to android-developers@googlegroups.com

To unsubscribe from this group, send email to

android-developers+unsubscr...@googlegroups.com

For more options, visit this group at

http://groups.google.com/group/android-developers?hl=en



-- 
Raghav Soodhttp://www.androidactivist.org/ - Authorhttp://www.appaholics.in/ - 
Founder





-- 

You received this message because you are subscribed to the Google

Groups "Android Developers" group.

To post to this group, send email to android-developers@googlegroups.com

To unsubscribe from this group, send email to

android-developers+unsubscr...@googlegroups.com

For more options, visit this group at

http://groups.google.com/group/android-developers?hl=en 
  

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

Re: [android-developers] onPreviewFrame got Exception???

2012-01-08 Thread Raghav Sood
See: http://www.appaholics.in/using-the-logcat/

Thanks

On Sun, Jan 8, 2012 at 2:37 PM, Muhammad UMER
wrote:

>
> hi reghavsood,
>   I am new on android. i don't know about logcat but i
> debug during capturing the frames it send frist frame but on next frame it
> go to exception.
>
> Thanks
> --
> Date: Sun, 8 Jan 2012 14:11:55 +0530
> Subject: Re: [android-developers] onPreviewFrame got Exception???
> From: raghavs...@androidactivist.org
> To: android-developers@googlegroups.com
>
>
> What does the LogCat say?
>
> On Sun, Jan 8, 2012 at 2:08 PM, muhammad.ume...@hotmail.com <
> muhammad.ume...@hotmail.com> wrote:
>
> hi,
> á áPlease anyone tell me that when onPreviewFrame call it send first
>
> frame of the preview to socket but when it callback it get exception
> and does send any frame to socket, I want to send images from
> onPreviewFrame continuously. áPlease tell me what's the reason, and
>
> sorry for my English. Here is my code.
>
> ápublic void surfaceCreated(SurfaceHolder holder) {
> á á// The Surface has been created, acquire the camera and tell it
> where
> á á// to draw.
> á á á á//connection to server
> á á á á átry {
> á á á á á á á ásocket = new Socket("192.168.1.220", );
> á á á á á á á áobj = new ObjectOutputStream(socket.getOutputStream());
> á á á á} catch (UnknownHostException e1) {
> á á á á á á á á// TODO Auto-generated catch block
> á á á á á á á áe1.printStackTrace();
> á á á á} catch (IOException e1) {
> á á á á á á á á// TODO Auto-generated catch block
> á á á á á á á áe1.printStackTrace();
> á á á á}
>
>
> á ácamera = Camera.open();
> á átry {
>
>
> á á ácamera.setPreviewDisplay(holder);
>
> á á ácamera.setPreviewCallback(new PreviewCallback() {
> á á á á// Called for each frame previewed
> á á á // @SuppressWarnings("null")
> á á á á á á á ápublic void onPreviewFrame(byte[] data, Camera camera) {
>
>
> á á á á á á á áCamera.Parameters parameters = camera.getParameters();
> á á á á á á á áint format = parameters.getPreviewFormat();
>
> á á á á á á á á //YUV formats require more conversion
> á á á á á á á áif (format == ImageFormat.NV21 /*|| format ==
> ImageFormat.YUY2 || format == ImageFormat.NV16*/)
> á á á á á á á á{
> á á á á á á á áint w = parameters.getPreviewSize().width;
> á á á á á á á áint h = parameters.getPreviewSize().height;
> á á á á á á á á// Get the YuV image
> á á á á á á á áYuvImage yuv_image = new YuvImage(data, format, w, h,
> null);
> á á á á á á á á// Convert YuV to Jpeg
> á á á á á á á á á á á áRect rect = new Rect(0, 0, w, h);
> á á á á á á á á á á á áByteArrayOutputStream output_stream = new
> ByteArrayOutputStream();
> á á á á á á á á á á á áyuv_image.compressToJpeg(rect, 100, output_stream);
> á á á á á á á á á á á ábyte[] byt=output_stream.toByteArray();
> á á á á á á á á á try
> á á á á á á á á á á{
> á á á á á á á á á á á á á á á á áobj.writeObject(byt);
> á á á á á á á á á á á á á á á á áobj.flush();
>
> á á á á á á á á á á á}
> á á á á á á á á á á catch (FileNotFoundException e) {
> á á á á á á á á á á á á á á á áe.printStackTrace();
> á á á á á á á á á á á á á á } catch (IOException e) {
> á á á á á á á á á á á á á á á áe.printStackTrace();
> á á á á á á á á á á á á á á } finally {
> á á á á á á á á á á á á á á }
>
> á á á á á á á á á á Preview.this.invalidate();
> á á á á á á á á á }
> á á á á á á á á }
> á á á á á á á});
>
> á á á } catch (IOException e) {
> á á áe.printStackTrace();
> á á}
> á}
>
>
> Thanks and regards
> umer
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>
>
>
>
> --
> Raghav Sood
> http://www.androidactivist.org/ - Author
> http://www.appaholics.in/ - Founder
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
Raghav Sood
http://www.androidactivist.org/ - Author
http://www.appaholics.in/ - Founder

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

[android-developers] Button not excepting typeface

2012-01-08 Thread Raghav Sood
Hi all,

I was updating the ui to one of my apps, and encountered a problem setting
the typeface of the button. According to the online docs, calling
setTypeface() on a button should work. However, I get the following error:

 java.lang.RuntimeException: Unable to start activity
ComponentInfo{com.raghavsood.gravity/com.raghavsood.gravity.Forceometer}:
java.lang.ClassCastException: android.widget.TextView cannot be cast to
android.widget.Button
01-08 14:55:41.757: E/ACRA(15317): at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1956)
01-08 14:55:41.757: E/ACRA(15317): at
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1981)
01-08 14:55:41.757: E/ACRA(15317): at
android.app.ActivityThread.access$600(ActivityThread.java:123)
01-08 14:55:41.757: E/ACRA(15317): at
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1147)
01-08 14:55:41.757: E/ACRA(15317): at
android.os.Handler.dispatchMessage(Handler.java:99)
01-08 14:55:41.757: E/ACRA(15317): at
android.os.Looper.loop(Looper.java:137)
01-08 14:55:41.757: E/ACRA(15317): at
android.app.ActivityThread.main(ActivityThread.java:4424)
01-08 14:55:41.757: E/ACRA(15317): at
java.lang.reflect.Method.invokeNative(Native Method)
01-08 14:55:41.757: E/ACRA(15317): at
java.lang.reflect.Method.invoke(Method.java:511)
01-08 14:55:41.757: E/ACRA(15317): at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
  at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.ClassCastException: android.widget.TextView
cannot be cast to android.widget.Button
  at com.raghavsood.gravity.Forceometer.onCreate(Forceometer.java:87)
  at android.app.Activity.performCreate(Activity.java:4465)
  at
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1049)
  at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1920)
... 11 more


-- 
Raghav Sood
http://www.androidactivist.org/ - Author
http://www.appaholics.in/ - Founder

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

[android-developers] Re: Button not excepting typeface

2012-01-08 Thread Raghav Sood
Sorry, that got sent incomplete. The logcat gives me:

01-08 14:55:41.757: E/ACRA(15317): java.lang.RuntimeException: Unable to
start activity
ComponentInfo{com.raghavsood.gravity/com.raghavsood.gravity.Forceometer}:
java.lang.ClassCastException: android.widget.TextView cannot be cast to
android.widget.Button
01-08 14:55:41.757: E/ACRA(15317): at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1956)
01-08 14:55:41.757: E/ACRA(15317): at
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1981)
01-08 14:55:41.757: E/ACRA(15317): at
android.app.ActivityThread.access$600(ActivityThread.java:123)
01-08 14:55:41.757: E/ACRA(15317): at
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1147)
01-08 14:55:41.757: E/ACRA(15317): at
android.os.Handler.dispatchMessage(Handler.java:99)
01-08 14:55:41.757: E/ACRA(15317): at
android.os.Looper.loop(Looper.java:137)
01-08 14:55:41.757: E/ACRA(15317): at
android.app.ActivityThread.main(ActivityThread.java:4424)
01-08 14:55:41.757: E/ACRA(15317): at
java.lang.reflect.Method.invokeNative(Native Method)
01-08 14:55:41.757: E/ACRA(15317): at
java.lang.reflect.Method.invoke(Method.java:511)
01-08 14:55:41.757: E/ACRA(15317): at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
01-08 14:55:41.757: E/ACRA(15317): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
01-08 14:55:41.757: E/ACRA(15317): at dalvik.system.NativeStart.main(Native
Method)
01-08 14:55:41.757: E/ACRA(15317): Caused by: java.lang.ClassCastException:
android.widget.TextView cannot be cast to android.widget.Button
01-08 14:55:41.757: E/ACRA(15317): at
com.raghavsood.gravity.Forceometer.onCreate(Forceometer.java:87)
01-08 14:55:41.757: E/ACRA(15317): at
android.app.Activity.performCreate(Activity.java:4465)
01-08 14:55:41.757: E/ACRA(15317): at
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1049)
01-08 14:55:41.757: E/ACRA(15317): at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1920)
01-08 14:55:41.757: E/ACRA(15317): ... 11 more

I know the font is fine as I use it in two other textviews and it works
brilliantly. I have tried this on a 2.3 device, and ICS on the Nexus S.
Doesn't work on either.

Thanks

On Sun, Jan 8, 2012 at 2:55 PM, Raghav Sood
wrote:

> Hi all,
>
> I was updating the ui to one of my apps, and encountered a problem setting
> the typeface of the button. According to the online docs, calling
> setTypeface() on a button should work. However, I get the following error:
>
>  java.lang.RuntimeException: Unable to start activity
> ComponentInfo{com.raghavsood.gravity/com.raghavsood.gravity.Forceometer}:
> java.lang.ClassCastException: android.widget.TextView cannot be cast to
> android.widget.Button
> 01-08 14:55:41.757: E/ACRA(15317): at
> android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1956)
> 01-08 14:55:41.757: E/ACRA(15317): at
> android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1981)
> 01-08 14:55:41.757: E/ACRA(15317): at
> android.app.ActivityThread.access$600(ActivityThread.java:123)
> 01-08 14:55:41.757: E/ACRA(15317): at
> android.app.ActivityThread$H.handleMessage(ActivityThread.java:1147)
> 01-08 14:55:41.757: E/ACRA(15317): at
> android.os.Handler.dispatchMessage(Handler.java:99)
> 01-08 14:55:41.757: E/ACRA(15317): at
> android.os.Looper.loop(Looper.java:137)
> 01-08 14:55:41.757: E/ACRA(15317): at
> android.app.ActivityThread.main(ActivityThread.java:4424)
> 01-08 14:55:41.757: E/ACRA(15317): at
> java.lang.reflect.Method.invokeNative(Native Method)
> 01-08 14:55:41.757: E/ACRA(15317): at
> java.lang.reflect.Method.invoke(Method.java:511)
> 01-08 14:55:41.757: E/ACRA(15317): at
> com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
>   at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
>   at dalvik.system.NativeStart.main(Native Method)
> Caused by: java.lang.ClassCastException: android.widget.TextView
> cannot be cast to android.widget.Button
>   at com.raghavsood.gravity.Forceometer.onCreate(Forceometer.java:87)
>   at android.app.Activity.performCreate(Activity.java:4465)
>   at
> android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1049)
>   at
> android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1920)
> ... 11 more
>
>
> --
> Raghav Sood
> http://www.androidactivist.org/ - Author
> http://www.appaholics.in/ - Founder
>
>


-- 
Raghav Sood
http://www.androidactivist.org/ - Author
http://www.appaholics.in/ - Founder

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

[android-developers] Re: gps to work om emulator

2012-01-08 Thread viktor
I guess that need change the default configuration for the DDMS.
Or make your own kml file and open it every time when  emulator have
started.

On 7 янв, 09:38, jaggu  wrote:
> Hi
>  how to work with emulator gps can any one guide how to do ?
> eclipse >window-->openprespective--->DDMs through
> iam sending gps :: lat,long for my current project but emulator each
> time will strating
>
> can any one tell me about this

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


[android-developers] Re: Button not excepting typeface

2012-01-08 Thread skink
what's unclear in that stack trace?

java.lang.ClassCastException:
android.widget.TextView cannot be
cast to
android.widget.Button

pskink

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


Re: [android-developers] Re: Button not excepting typeface

2012-01-08 Thread Raghav Sood
There's nothing unclear, but according to the docs, the Button inherits the
setTypeface() from the TextView and it should work. However, I get this
exception when using it.

Even the similar questions on StackOverflow on setting the font of the
Button say to use setTypeface(). It doesn't seem to be working though.

I set it like this:

typeFace1 = Typeface.createFromAsset(getAssets(), "fonta.ttf");

final Button button = (Button) findViewById(R.id.reset);

button.setTypeface(typeFace1);


Any idea on how I could set the typeface of the button?


Thanks

On Sun, Jan 8, 2012 at 3:35 PM, skink  wrote:

> what's unclear in that stack trace?
>
> java.lang.ClassCastException:
> android.widget.TextView cannot be
> cast to
> android.widget.Button
>
> pskink
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en




-- 
Raghav Sood
http://www.androidactivist.org/ - Author
http://www.appaholics.in/ - Founder

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

Re: [android-developers] Re: Button not excepting typeface

2012-01-08 Thread skink


Raghav Sood wrote:
> There's nothing unclear, but according to the docs, the Button inherits the
> setTypeface() from the TextView and it should work. However, I get this
> exception when using it.
>
> Even the similar questions on StackOverflow on setting the font of the
> Button say to use setTypeface(). It doesn't seem to be working though.
>
> I set it like this:
>
> typeFace1 = Typeface.createFromAsset(getAssets(), "fonta.ttf");
>
> final Button button = (Button) findViewById(R.id.reset);
>
> button.setTypeface(typeFace1);
>
>
> Any idea on how I could set the typeface of the button?
>
>
> Thanks
>
> On Sun, Jan 8, 2012 at 3:35 PM, skink  wrote:
>
> > what's unclear in that stack trace?
> >
> > java.lang.ClassCastException:
> > android.widget.TextView cannot be
> > cast to
> > android.widget.Button
> >
> > pskink
> >
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com
> > For more options, visit this group at
> > http://groups.google.com/group/android-developers?hl=en
>
>
>
>
> --
> Raghav Sood
> http://www.androidactivist.org/ - Author
> http://www.appaholics.in/ - Founder

what is R.ud.reset?  paste layout xml

pskink

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


[android-developers] Welcome to Android Developers Group in Facebook

2012-01-08 Thread Subanand Thiruppathirajan
Please join in Android Developers Community and discuss all technical
details on Android Platform.

http://www.facebook.com/groups/androidmasters/

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

Re: [android-developers] Re: Button not excepting typeface

2012-01-08 Thread Raghav Sood



It's a button.


Thanks

On Sun, Jan 8, 2012 at 3:45 PM, skink  wrote:

>
>
> Raghav Sood wrote:
> > There's nothing unclear, but according to the docs, the Button inherits
> the
> > setTypeface() from the TextView and it should work. However, I get this
> > exception when using it.
> >
> > Even the similar questions on StackOverflow on setting the font of the
> > Button say to use setTypeface(). It doesn't seem to be working though.
> >
> > I set it like this:
> >
> > typeFace1 = Typeface.createFromAsset(getAssets(), "fonta.ttf");
> >
> > final Button button = (Button) findViewById(R.id.reset);
> >
> > button.setTypeface(typeFace1);
> >
> >
> > Any idea on how I could set the typeface of the button?
> >
> >
> > Thanks
> >
> > On Sun, Jan 8, 2012 at 3:35 PM, skink  wrote:
> >
> > > what's unclear in that stack trace?
> > >
> > > java.lang.ClassCastException:
> > > android.widget.TextView cannot be
> > > cast to
> > > android.widget.Button
> > >
> > > pskink
> > >
> > > --
> > > You received this message because you are subscribed to the Google
> > > Groups "Android Developers" group.
> > > To post to this group, send email to
> android-developers@googlegroups.com
> > > To unsubscribe from this group, send email to
> > > android-developers+unsubscr...@googlegroups.com
> > > For more options, visit this group at
> > > http://groups.google.com/group/android-developers?hl=en
> >
> >
> >
> >
> > --
> > Raghav Sood
> > http://www.androidactivist.org/ - Author
> > http://www.appaholics.in/ - Founder
>
> what is R.ud.reset?  paste layout xml
>
> pskink
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
Raghav Sood
http://www.androidactivist.org/ - Author
http://www.appaholics.in/ - Founder

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

[android-developers] Android WebView Connecting to Remote URL

2012-01-08 Thread Robin Thapa
Dear All,

I have a remote site. The remote site consists of jsp pages with jstl
tags in it.
However when i try connecting to the remote site. Say (welcome.jsp),
with jstl tags embedded.
My webview is blank. When i remove the jstl tags from the remote
pages, my page is ok in the webview.
Why is this odd behavior?
Any help or insight you could provide me will chase my hefty hours?

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


Re: [android-developers] Android WebView Connecting to Remote URL

2012-01-08 Thread Michael Banzon
What do you see in a plain ol' browser??

On Sun, Jan 8, 2012 at 11:49 AM, Robin Thapa  wrote:
> Dear All,
>
> I have a remote site. The remote site consists of jsp pages with jstl
> tags in it.
> However when i try connecting to the remote site. Say (welcome.jsp),
> with jstl tags embedded.
> My webview is blank. When i remove the jstl tags from the remote
> pages, my page is ok in the webview.
> Why is this odd behavior?
> Any help or insight you could provide me will chase my hefty hours?
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en



-- 
Michael Banzon
http://michaelbanzon.com/

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


Re: [android-developers] Android WebView Connecting to Remote URL

2012-01-08 Thread Robinns
It's just an empty page.

On Sun, Jan 8, 2012 at 4:41 PM, Michael Banzon  wrote:

> What do you see in a plain ol' browser??
>
> On Sun, Jan 8, 2012 at 11:49 AM, Robin Thapa 
> wrote:
> > Dear All,
> >
> > I have a remote site. The remote site consists of jsp pages with jstl
> > tags in it.
> > However when i try connecting to the remote site. Say (welcome.jsp),
> > with jstl tags embedded.
> > My webview is blank. When i remove the jstl tags from the remote
> > pages, my page is ok in the webview.
> > Why is this odd behavior?
> > Any help or insight you could provide me will chase my hefty hours?
> >
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com
> > For more options, visit this group at
> > http://groups.google.com/group/android-developers?hl=en
>
>
>
> --
> Michael Banzon
> http://michaelbanzon.com/
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
Robin

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

[android-developers] Re: Android WebView Connecting to Remote URL

2012-01-08 Thread Robin Thapa
The webview is simply blank, no nothing in it .
When i remove the jstl tags the page is shown.

On Jan 8, 3:56 pm, Michael Banzon  wrote:
> What do you see in a plain ol' browser??
>
>
>
>
>
>
>
>
>
> On Sun, Jan 8, 2012 at 11:49 AM, Robin Thapa  wrote:
> > Dear All,
>
> > I have a remote site. The remote site consists of jsp pages with jstl
> > tags in it.
> > However when i try connecting to the remote site. Say (welcome.jsp),
> > with jstl tags embedded.
> > My webview is blank. When i remove the jstl tags from the remote
> > pages, my page is ok in the webview.
> > Why is this odd behavior?
> > Any help or insight you could provide me will chase my hefty hours?
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.> To post to this group, send email 
> > toandroid-develop...@googlegroups.com
> > To unsubscribe from this group, send email 
> > to>android-developers+unsubscr...@googlegroups.com
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en
>
> --
> Michael Banzonhttp://michaelbanzon.com/

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


[android-developers] Help.to find out button/key press on phone..

2012-01-08 Thread Dhaval Varia
dear
i am making one application.

where i required to fire an application without unlocking or selecting icon
of app.

i need to trigger  app by pressing any of the hardware key(which ever is
possible) of my phone 3 times.

plz provide me some code anippet.

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

Re: [android-developers] Help.to find out button/key press on phone..

2012-01-08 Thread Robinns
Wow, i dont think you can do that at an application level.
May be i am wrong? but as with my little knowledge  in Android its not
possible at application level.

On Sun, Jan 8, 2012 at 4:47 PM, Dhaval Varia  wrote:

> dear
> i am making one application.
>
> where i required to fire an application without unlocking or selecting
> icon of app.
>
> i need to trigger  app by pressing any of the hardware key(which ever is
> possible) of my phone 3 times.
>
> plz provide me some code anippet.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en




-- 
Robin

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

Re: [android-developers] Help.to find out button/key press on phone..

2012-01-08 Thread Dhaval Varia
i know dear.
i requied to create broadcaat receiver rinning in bkground.
bt i dnt knowhow to monitor key press..
that i wnt to know...
thanks for quick reply...
On Jan 8, 2012 4:36 PM, "Robinns"  wrote:

> Wow, i dont think you can do that at an application level.
> May be i am wrong? but as with my little knowledge  in Android its not
> possible at application level.
>
> On Sun, Jan 8, 2012 at 4:47 PM, Dhaval Varia wrote:
>
>> dear
>> i am making one application.
>>
>> where i required to fire an application without unlocking or selecting
>> icon of app.
>>
>> i need to trigger  app by pressing any of the hardware key(which ever is
>> possible) of my phone 3 times.
>>
>> plz provide me some code anippet.
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>
>
>
>
> --
> Robin
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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

Re: [android-developers] Re: Button not excepting typeface

2012-01-08 Thread skink


Raghav Sood wrote:
> 
> android:id="@+id/reset"
>
> android:layout_width="wrap_content"
>
> android:layout_height="wrap_content"
>
> android:layout_below="@+id/maxAcceleration"
>
> android:layout_centerHorizontal="true"
>
> android:layout_marginTop="80dp"
>
> android:gravity="center"
>
> android:text="@string/reset"
>
> android:textSize="32sp" />
>
>
> It's a button.
>
>

then try:

View v=findViewById(R.id. reset);
Log .d(TAG, "v=" + v);

pskink

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


[android-developers] Spinners - Saving and Retrieving selection information to DB

2012-01-08 Thread swebb99
Hi,

I've got an form activity where I save the information entered in to
it to the sqllite database. For the edittext fields this is simple to
handle, however I'm not sure of the best practice for handling the
storage of spinner selections.

If I have a spinner with say the following info in it

red
blue
green
yellow

then I could just save the position selected as an Integer and then
when I read it back from the db later just set the selected position.
But lets say I later update my app and now it has a few extra color
fields in the spinner and not all are added at the end

red
black
blue
gray
green
pink
yellow

If I had been saving the position of the selected item in the spinner
the spinner would be set incorrectly  when the user updates the app.

So what is the best practice for this situation? I had thought about
saving the actual text but again this may change, the locale may
change .

I notice in the preference screens that spinner related information
can have not just the data to display defined by an array but an
associated values array, is this to handle this situation??

Any tips would be gratefully received.

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


Re: [android-developers] Re: Button not excepting typeface

2012-01-08 Thread Raghav Sood
It shows button.

Anyways, doing a clean build appears to have solved it.

Thanks for the help.

On Sun, Jan 8, 2012 at 4:44 PM, skink  wrote:

>
>
> Raghav Sood wrote:
> >  >
> > android:id="@+id/reset"
> >
> > android:layout_width="wrap_content"
> >
> > android:layout_height="wrap_content"
> >
> > android:layout_below="@+id/maxAcceleration"
> >
> > android:layout_centerHorizontal="true"
> >
> > android:layout_marginTop="80dp"
> >
> > android:gravity="center"
> >
> > android:text="@string/reset"
> >
> > android:textSize="32sp" />
> >
> >
> > It's a button.
> >
> >
>
> then try:
>
> View v=findViewById(R.id. reset);
> Log .d(TAG, "v=" + v);
>
> pskink
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
Raghav Sood
http://www.androidactivist.org/ - Author
http://www.appaholics.in/ - Founder

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

[android-developers] animation while mutation hierarchy

2012-01-08 Thread satahippy
is it possible? just, only main thread can change hierarchy, but the 
animation also suggest mutation heirarchy

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

Re: [android-developers] Re: Button not excepting typeface

2012-01-08 Thread skink


Raghav Sood wrote:
> It shows button.
>
> Anyways, doing a clean build appears to have solved it.
>
> Thanks for the help.
>

Ok, but if you had class cast exception it must have been TextView
which you were trying to cast to a Button and this cast was makinkg
class cast ex

pakink

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


[android-developers] Re: Help.to find out button/key press on phone..

2012-01-08 Thread Robin Thapa
Try this in your Activity code:




@Override
public boolean onKeyDown( int keyCode, KeyEvent event )
{
// your key event
    if ( event.getKeyCode() == KeyEvent.KEYCODE_SEARCH )
    {
        // Catch the search
        // do something
        // return true to consume press or false to pass it on
    }
    return super.onKeyDown( keyCode, event );
}

On Jan 8, 4:10 pm, Dhaval Varia  wrote:
> i know dear.
> i requied to create broadcaat receiver rinning in bkground.
> bt i dnt knowhow to monitor key press..
> that i wnt to know...
> thanks for quick reply...
> On Jan 8, 2012 4:36 PM, "Robinns"  wrote:
>
>
>
>
>
>
>
> > Wow, i dont think you can do that at an application level.
> > May be i am wrong? but as with my little knowledge  in Android its not
> > possible at application level.
>
> > On Sun, Jan 8, 2012 at 4:47 PM, Dhaval Varia wrote:
>
> >> dear
> >> i am making one application.
>
> >> where i required to fire an application without unlocking or selecting
> >> icon of app.
>
> >> i need to trigger  app by pressing any of the hardware key(which ever is
> >> possible) of my phone 3 times.
>
> >> plz provide me some code anippet.
>
> >> --
> >> You received this message because you are subscribed to the Google
> >> Groups "Android Developers" group.>> To post to this group, send email 
> >> toandroid-develop...@googlegroups.com
> >> To unsubscribe from this group, send email 
> >> to>>android-developers+unsubscr...@googlegroups.com
> >> For more options, visit this group at
> >>http://groups.google.com/group/android-developers?hl=en
>
> > --
> > Robin
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.> To post to this group, send email 
> > toandroid-develop...@googlegroups.com
> > To unsubscribe from this group, send email 
> > to>android-developers+unsubscr...@googlegroups.com
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en

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


Re: [android-developers] Re: Button not excepting typeface

2012-01-08 Thread Raghav Sood
I was a button. I think the problem happened because I changed from a
LinearLayout to a RelativeLayout, and moved the widgets around a bit, as
well as adding a couple of new ones. R.java must not have regenerated
properly and the reset id may have been associated with a TextView
accidentally.

Thanks

On Sun, Jan 8, 2012 at 5:20 PM, skink  wrote:

>
>
> Raghav Sood wrote:
> > It shows button.
> >
> > Anyways, doing a clean build appears to have solved it.
> >
> > Thanks for the help.
> >
>
> Ok, but if you had class cast exception it must have been TextView
> which you were trying to cast to a Button and this cast was makinkg
> class cast ex
>
> pakink
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
Raghav Sood
http://www.androidactivist.org/ - Author
http://www.appaholics.in/ - Founder

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

Re: [android-developers] Help.to find out button/key press on phone..

2012-01-08 Thread Mark Murphy
On Sun, Jan 8, 2012 at 6:10 AM, Dhaval Varia  wrote:
> i know dear.
> i requied to create broadcaat receiver rinning in bkground.
> bt i dnt knowhow to monitor key press..

You don't. The only keys that are broadcast to all devices are
ACTION_CAMERA_BUTTON and ACTION_MEDIA_BUTTON, and the vast majority of
devices have neither of those.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android Training in NYC: http://marakana.com/training/android/

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


Re: [android-developers] Google App Engine and Users API and android

2012-01-08 Thread John Goche
Hello,

I am still trying to authenticate to app engine using  google accounts
and would like to figure out the details of how such authenticator works.
How do I detect in my servlet that the user has authenticated with
google accounts?

First of all there is the following link to the AccountManager API:

http://developer.android.com/reference/android/accounts/AccountManager.html

This code for picasa web seems to be one of the
few instances of sample code available:

http://code.google.com/p/google-api-java-client/wiki/AndroidAccountManager

So I need to figure out the ins and outs of the
google accounts authenticator and how to integrate it with android.

I found these links:

http://stackoverflow.com/questions/7587891/list-google-apps-accounts (this
is one of many links that shows how to access the account manager accounts,
the easy part)

http://code.google.com/apis/accounts/docs/OpenID.html (I think this is
something else)
http://stackoverflow.com/questions/7961686/which-authentication-method-is-better-for-dealing-with-google-api-and-google-acc(using
accounts manager seems to be the better choice)

http://stackoverflow.com/questions/3492775/is-there-an-official-way-to-authenticate-for-google-data-api-on-android-using-ac

I must admit I am having some trouble adapting the sample code to my case.
In particular I don't know what to pass as the
second argument for the string to getAuthToekn().

http://developer.android.com/reference/android/accounts/AccountManager.html#getAuthToken%28android.accounts.Account,%20java.lang.String,%20boolean,%20android.accounts.AccountManagerCallback%3Candroid.os.Bundle%3E,%20android.os.Handler%29

Apparently OAuth is used for authentication...

http://stackoverflow.com/questions/7699149/how-is-the-user-authentication-with-google-accounts-working-inside-the-gae-techn

http://stackoverflow.com/questions/3067780/google-auth-using-token

Here is an example that uses "ah" as the string parameter to getAuthToken.
Is this what I use?

http://stackoverflow.com/questions/6283096/android-getauthtoken-returning-null-dont-know-why

Any help sincerely appreciated, I'm really stuck on this one.

Regards,

John Goche

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

[android-developers] Re: Spinners - Saving and Retrieving selection information to DB

2012-01-08 Thread skink


swebb99 wrote:
>
> Any tips would be gratefully

when you are adding new items to your SpinnerAdapter just make sure
than new items have unique ids and store in the database ids not
positions

pskink

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


Re: [android-developers] Fire an onClick

2012-01-08 Thread Mário Lopes

performClick()


On 2012-01-07 22:43, Sean751 wrote:

Is there a way via code to fire an onClick event?



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


Re: [android-developers] Google App Engine and Users API and android

2012-01-08 Thread Nikolay Elenkov
On Sun, Jan 8, 2012 at 9:24 PM, John Goche  wrote:
>
> Hello,
>
> I am still trying to authenticate to app engine using  google accounts
> and would like to figure out the details of how such authenticator works.
> How do I detect in my servlet that the user has authenticated with
> google accounts?

Read the App Engine documentation first. Then start searching for
random examples.

> Here is an example that uses "ah" as the string parameter to getAuthToken.
> Is this what I use?
>

Yes, "ah" is for App Engine. If you are not sure, just try it out.
If it works, you know it works :)

> Any help sincerely appreciated, I'm really stuck on this one.

Here's a small library and an associated blog post by none other
than Google's Tim Bray. If you can't make that work, go back a
few steps and read the docs a couple of more times. If that doesn't
make sense, go a few steps back and read about HTTP and OAuth.

http://www.tbray.org/ongoing/When/201x/2011/09/29/AERC

http://code.google.com/p/aerc/

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


Re: [android-developers] Google App Engine and Users API and android

2012-01-08 Thread John Goche
On Sun, Jan 8, 2012 at 3:20 PM, Nikolay Elenkov
wrote:

> On Sun, Jan 8, 2012 at 9:24 PM, John Goche 
> wrote:
> >
> > Hello,
> >
> > I am still trying to authenticate to app engine using  google accounts
> > and would like to figure out the details of how such authenticator works.
> > How do I detect in my servlet that the user has authenticated with
> > google accounts?
>
> Read the App Engine documentation first. Then start searching for
> random examples.
>

Hi, the relevant App Engine documentation on the server side seems to be
this one
for the Users service (nothing specific to android on the client side here):

http://code.google.com/appengine/docs/java/gettingstarted/usingusers.html

As I mentioned there is this site also from google:

http://code.google.com/p/google-api-java-client/wiki/AndroidAccountManager

I tried running the code with some modifications as follows but I get the
following
error message when I try to run the code on a device (on the emulator it
works
but there are no accounts):

[2012-01-08 15:25:26 - ComNet] Starting activity
com.foobar.hello.StockActivity on device 80A358189040054719
[2012-01-08 15:25:27 - ComNet] ActivityManager: Starting: Intent {
act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER]
cmp=com.foobar.hello/.StockActivity }
[2012-01-08 15:25:27 - ComNet] ActivityManager:
java.lang.SecurityException: Permission Denial: starting Intent {
act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER]
flg=0x1000 cmp=com.foobar.hello/.StockActivity } from null (pid=9825,
uid=2000) requires null

Not sure what I need to do to get rid of it...

  
  

  @Override
  public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
//...
gotAccount(false);
  }

  static final int DIALOG_ACCOUNTS = 0;

  @Override
  protected Dialog onCreateDialog(int id) {
switch (id) {
  case DIALOG_ACCOUNTS:
AlertDialog.Builder builder = new AlertDialog.Builder(this);
builder.setTitle("Select a Google account");
final AccountManager manager = AccountManager.get(this);
final Account[] accounts = manager.getAccountsByType("com.google");
final int size = accounts.length;
String[] names = new String[size];
for (int i = 0; i < size; i++) {
  names[i] = accounts[i].name;
}
builder.setItems(names, new DialogInterface.OnClickListener() {
  public void onClick(DialogInterface dialog, int which) {
gotAccount(manager, accounts[which]);
  }
});
return builder.create();
}
return null;
  }

  static String PREF = "pref";

  private void gotAccount(boolean tokenExpired) {
SharedPreferences settings = getSharedPreferences(PREF, 0);
String accountName = settings.getString("accountName", null);
if (accountName != null) {
  AccountManager manager = AccountManager.get(this);
  Account[] accounts = manager.getAccountsByType("com.google");
  int size = accounts.length;
  for (int i = 0; i < size; i++) {
Account account = accounts[i];
if (accountName.equals(account.name)) {
  if (tokenExpired) {
manager.invalidateAuthToken("com.google", this.authToken);
  }
  gotAccount(manager, account);
  return;
}
  }
}
showDialog(DIALOG_ACCOUNTS);
  }

  private String AUTH_TOKEN_TYPE = "ah";

  private void gotAccount(final AccountManager manager, final Account
account) {
SharedPreferences settings = getSharedPreferences(PREF, 0);
SharedPreferences.Editor editor = settings.edit();
editor.putString("accountName", account.name);
editor.commit();
new Thread() {

  @Override
  public void run() {
try {
  final Bundle bundle =
  manager.getAuthToken(account, AUTH_TOKEN_TYPE, true, null,
null)
  .getResult();
  runOnUiThread(new Runnable() {

public void run() {
  try {
if (bundle.containsKey(AccountManager.KEY_INTENT)) {
  Intent intent =
  bundle.getParcelable(AccountManager.KEY_INTENT);
  int flags = intent.getFlags();
  flags &= ~Intent.FLAG_ACTIVITY_NEW_TASK;
  intent.setFlags(flags);
  startActivityForResult(intent, REQUEST_AUTHENTICATE);
} else if
(bundle.containsKey(AccountManager.KEY_AUTHTOKEN)) {
  authenticatedClientLogin(
  bundle.getString(AccountManager.KEY_AUTHTOKEN));
}
  } catch (Exception e) {
handleException(e);
  }
}
  });
} catch (Exception e) {
  handleException(e);
}
  }
}.start();
  }

  static final int REQUEST_AUTHENTICATE = 0;

  @Override
  protected void onActivityResult(
  int requestCode, int resultCode, Intent data

Re: [android-developers] Welcome to Android Developers Group in Facebook

2012-01-08 Thread Mark Phillips
Just curious why we need yet another Android discussion group?

Mark

On Sun, Jan 8, 2012 at 3:42 AM, Subanand Thiruppathirajan <
tsuban...@gmail.com> wrote:

> Please join in Android Developers Community and discuss all technical
> details on Android Platform.
>
> http://www.facebook.com/groups/androidmasters/
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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

Re: [android-developers] Help.to find out button/key press on phone..

2012-01-08 Thread Dhaval Varia
plz see emergency panic button sos
it providea dt feature...
On Jan 8, 2012 5:39 PM, "Mark Murphy"  wrote:

> On Sun, Jan 8, 2012 at 6:10 AM, Dhaval Varia 
> wrote:
> > i know dear.
> > i requied to create broadcaat receiver rinning in bkground.
> > bt i dnt knowhow to monitor key press..
>
> You don't. The only keys that are broadcast to all devices are
> ACTION_CAMERA_BUTTON and ACTION_MEDIA_BUTTON, and the vast majority of
> devices have neither of those.
>
> --
> Mark Murphy (a Commons Guy)
> http://commonsware.com | http://github.com/commonsguy
> http://commonsware.com/blog | http://twitter.com/commonsguy
>
> Android Training in NYC: http://marakana.com/training/android/
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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

[android-developers] How to show only approved adds?

2012-01-08 Thread MobileVisuals
I don't want to advertise McDonalds or any other products or companies
that I don’t like. Is there any advertising solution available, where
I can remove these types of adds, so I only show adds that I have
approved?

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


Re: [android-developers] Google App Engine and Users API and android

2012-01-08 Thread Kostya Vasilyev

John,

You may want to watch this:

http://www.youtube.com/watch?v=M7SxNNC429U

Google I/O 2011: Android + App Engine: A Developer's Dream Combination

The video covers this plugin for Eclipse:

http://code.google.com/eclipse/

... which makes it very easy to create Andorid apps that talk to a GAE 
backend, complete with device-to-GAE authentication and C2DM.


-- Kostya

08.01.2012 18:43, John Goche ?:


On Sun, Jan 8, 2012 at 3:20 PM, Nikolay Elenkov 
mailto:nikolay.elen...@gmail.com>> wrote:


On Sun, Jan 8, 2012 at 9:24 PM, John Goche
mailto:johngoch...@googlemail.com>>
wrote:
>
> Hello,
>
> I am still trying to authenticate to app engine using  google
accounts
> and would like to figure out the details of how such
authenticator works.
> How do I detect in my servlet that the user has authenticated with
> google accounts?

Read the App Engine documentation first. Then start searching for
random examples.


Hi, the relevant App Engine documentation on the server side seems to 
be this one
for the Users service (nothing specific to android on the client side 
here):


http://code.google.com/appengine/docs/java/gettingstarted/usingusers.html

As I mentioned there is this site also from google:

http://code.google.com/p/google-api-java-client/wiki/AndroidAccountManager

I tried running the code with some modifications as follows but I get 
the following
error message when I try to run the code on a device (on the emulator 
it works

but there are no accounts):

[2012-01-08 15:25:26 - ComNet] Starting activity 
com.foobar.hello.StockActivity on device 80A358189040054719
[2012-01-08 15:25:27 - ComNet] ActivityManager: Starting: Intent { 
act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] 
cmp=com.foobar.hello/.StockActivity }
[2012-01-08 15:25:27 - ComNet] ActivityManager: 
java.lang.SecurityException: Permission Denial: starting Intent { 
act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] 
flg=0x1000 cmp=com.foobar.hello/.StockActivity } from null 
(pid=9825, uid=2000) requires null


Not sure what I need to do to get rid of it...




  @Override
  public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
//...
gotAccount(false);
  }

  static final int DIALOG_ACCOUNTS = 0;

  @Override
  protected Dialog onCreateDialog(int id) {
switch (id) {
  case DIALOG_ACCOUNTS:
AlertDialog.Builder builder = new AlertDialog.Builder(this);
builder.setTitle("Select a Google account");
final AccountManager manager = AccountManager.get(this);
final Account[] accounts = 
manager.getAccountsByType("com.google");

final int size = accounts.length;
String[] names = new String[size];
for (int i = 0; i < size; i++) {
  names[i] = accounts[i].name;
}
builder.setItems(names, new DialogInterface.OnClickListener() {
  public void onClick(DialogInterface dialog, int which) {
gotAccount(manager, accounts[which]);
  }
});
return builder.create();
}
return null;
  }

  static String PREF = "pref";

  private void gotAccount(boolean tokenExpired) {
SharedPreferences settings = getSharedPreferences(PREF, 0);
String accountName = settings.getString("accountName", null);
if (accountName != null) {
  AccountManager manager = AccountManager.get(this);
  Account[] accounts = manager.getAccountsByType("com.google");
  int size = accounts.length;
  for (int i = 0; i < size; i++) {
Account account = accounts[i];
if (accountName.equals(account.name )) {
  if (tokenExpired) {
manager.invalidateAuthToken("com.google", this.authToken);
  }
  gotAccount(manager, account);
  return;
}
  }
}
showDialog(DIALOG_ACCOUNTS);
  }

  private String AUTH_TOKEN_TYPE = "ah";

  private void gotAccount(final AccountManager manager, final Account 
account) {

SharedPreferences settings = getSharedPreferences(PREF, 0);
SharedPreferences.Editor editor = settings.edit();
editor.putString("accountName", account.name );
editor.commit();
new Thread() {

  @Override
  public void run() {
try {
  final Bundle bundle =
  manager.getAuthToken(account, AUTH_TOKEN_TYPE, true, 
null, null)

  .getResult();
  runOnUiThread(new Runnable() {

public void run() {
  try {
if (bundle.containsKey(AccountManager.KEY_INTENT)) {
  Intent intent =
  bundle.getParcelable(AccountManager.KEY_INTENT);
  int flags = intent.getFlags();
  flags &= ~Intent.FLAG_ACTIVITY_NEW_TASK;
  intent.setFlags(flags);
  startActivityForResult(intent, REQUEST_AUTHENTICA

Re: [android-developers] Google App Engine and Users API and android

2012-01-08 Thread Nikolay Elenkov
On Mon, Jan 9, 2012 at 1:18 AM, Kostya Vasilyev  wrote:
>
> Google I/O 2011: Android + App Engine: A Developer's Dream Combination
>
> The video covers this plugin for Eclipse:
>
> http://code.google.com/eclipse/
>
> ... which makes it very easy to create Andorid apps that talk to a GAE
> backend, complete with device-to-GAE authentication and C2DM.
>

Completely forgot about this one. This is actually using a GWT endpoint
on GAE, so you can't have multiple versions of an API and it's not very
flexible, but should work for a quick start. If you don't want to use GWT
RPC, you can't use this.

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


RE: [android-developers] onPreviewFrame got Exception???

2012-01-08 Thread Muhammad UMER


hi,
 I am sending the onpreviewFrame byte array to socket it send the first 
image but on callback it does not send any image and go to Exception what's the 
reason. Here is my code &  logCat result


 public void surfaceCreated(SurfaceHolder holder) {
// The Surface has been created, acquire the camera and tell it where
// to draw.
//connection to server
  try {
socket = new Socket("192.168.1.220", );
obj = new ObjectOutputStream(socket.getOutputStream());
} catch (UnknownHostException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
} catch (IOException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
}
  
  
camera = Camera.open(); 
try {


  camera.setPreviewDisplay(holder);  

  camera.setPreviewCallback(new PreviewCallback() { 
// Called for each frame previewed
   // @SuppressWarnings("null")
public void onPreviewFrame(byte[] data, Camera camera) { 


Camera.Parameters parameters = camera.getParameters();
int format = parameters.getPreviewFormat();

 //YUV formats require more conversion
if (format == ImageFormat.NV21 /*|| format == ImageFormat.YUY2 || 
format == ImageFormat.NV16*/)
{
int w = parameters.getPreviewSize().width;
int h = parameters.getPreviewSize().height;
// Get the YuV image
YuvImage yuv_image = new YuvImage(data, format, w, h, null);
// Convert YuV to Jpeg
Rect rect = new Rect(0, 0, w, h);
ByteArrayOutputStream output_stream = new 
ByteArrayOutputStream();
yuv_image.compressToJpeg(rect, 100, output_stream);
byte[] byt=output_stream.toByteArray();

  try {
  
  obj.writeObject(byt);
  obj.flush();

  
  } catch (FileNotFoundException e) { // <10>
e.printStackTrace();
 } catch (IOException e) {
e.printStackTrace();
 } finally {
 }
Preview.this.invalidate();
}
   }
  });
   obj.close();
} catch (IOException e) { // <13>
  e.printStackTrace();
}
  }

/according to logCat

01-08 17:52:07.033: ERROR/mm-camera 7x-vfe(3726): Received VFE Stop ACK!!! 
ctrlCmd is NULL
01-08 17:52:07.533: ERROR/mm-camera(3726): +++ DELETING LEAKED MEMORY AT 
0x2c790 (2 REMAINING)
01-08 17:52:07.533: ERROR/mm-camera(3726):  6 0xa742e2fc
01-08 17:52:07.533: ERROR/mm-camera(3726):  5 0xa740cd0a
01-08 17:52:07.533: ERROR/mm-camera(3726):  4 0xa740e576
01-08 17:52:07.533: ERROR/mm-camera(3726):  3 0xa740e066
01-08 17:52:07.533: ERROR/mm-camera(3726):  2 0xafd110b0
01-08 17:52:07.533: ERROR/mm-camera(3726):  1 0xafd10b94
01-08 17:52:07.533: ERROR/mm-camera(3726): +++ DELETING LEAKED MEMORY AT 
0x2e648 (1 REMAINING)
01-08 17:52:07.533: ERROR/mm-camera(3726):  6 0xa742e2fc
01-08 17:52:07.543: ERROR/mm-camera(3726):  5 0xa740cd0a
01-08 17:52:07.543: ERROR/mm-camera(3726):  4 0xa740e576
01-08 17:52:07.543: ERROR/mm-camera(3726):  3 0xa740e066
01-08 17:52:07.543: ERROR/mm-camera(3726):  2 0xafd110b0
01-08 17:52:07.543: ERROR/mm-camera(3726):  1 0xafd10b94
01-08 17:52:18.223: ERROR/QualcommCameraHardware(3726): native_access_parm: 
error (No such file or directory): fd 12, type 1, length 32, status 0
01-08 17:52:18.523: ERROR/mm-camera 7x-vfe(3726): Received VFE start ACK!!! 
This is a user preview start.

Thanks
Date: Sun, 8 Jan 2012 14:11:55 +0530
Subject: Re: [android-developers] onPreviewFrame got Exception???
From: raghavs...@androidactivist.org
To: android-developers@googlegroups.com

What does the LogCat say?

On Sun, Jan 8, 2012 at 2:08 PM, muhammad.ume...@hotmail.com 
 wrote:

hi,

 á áPlease anyone tell me that when onPreviewFrame call it send first

frame of the preview to socket but when it callback it get exception

and does send any frame to socket, I want to send images from

onPreviewFrame continuously. áPlease tell me what's the reason, and

sorry for my English. Here is my code.



ápublic void surfaceCreated(SurfaceHolder holder) {

 á á// The Surface has been created, acquire the camera and tell it

where

 á á// to draw.

 á á á á//connection to server

 á á á á átry {

 á á á á á á á ásocket = new Socket("192.168.1.220", );

 á á á á á á á áobj = new ObjectOutputStream(socket.getOutputStream());

 á á á á} catch (UnknownHostException e1) {

 á á á á á á á á// TODO Auto-generated catch block

 á á á á á á á áe1.printStackTrace();

 á á á á} catch (IOException e1) {

 á á á á á á 

Re: [android-developers] Android WebView Connecting to Remote URL

2012-01-08 Thread Michael Banzon
On Sun, Jan 8, 2012 at 11:58 AM, Robinns  wrote:
> It's just an empty page.

So - in both the WebView and the browser you are seeing an empty page
unless you remove some tags??

If so - it's a server side problem.


> On Sun, Jan 8, 2012 at 4:41 PM, Michael Banzon  wrote:
>>
>> What do you see in a plain ol' browser??
>>
>> On Sun, Jan 8, 2012 at 11:49 AM, Robin Thapa 
>> wrote:
>> > Dear All,
>> >
>> > I have a remote site. The remote site consists of jsp pages with jstl
>> > tags in it.
>> > However when i try connecting to the remote site. Say (welcome.jsp),
>> > with jstl tags embedded.
>> > My webview is blank. When i remove the jstl tags from the remote
>> > pages, my page is ok in the webview.
>> > Why is this odd behavior?
>> > Any help or insight you could provide me will chase my hefty hours?
>> >
>> > --
>> > You received this message because you are subscribed to the Google
>> > Groups "Android Developers" group.
>> > To post to this group, send email to android-developers@googlegroups.com
>> > To unsubscribe from this group, send email to
>> > android-developers+unsubscr...@googlegroups.com
>> > For more options, visit this group at
>> > http://groups.google.com/group/android-developers?hl=en
>>
>>
>>
>> --
>> Michael Banzon
>> http://michaelbanzon.com/
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>
>
>
>
> --
> Robin
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en



-- 
Michael Banzon
http://michaelbanzon.com/

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


Re: [android-developers] Google App Engine and Users API and android

2012-01-08 Thread John Goche
Thanks for the link, I didn't realize that the eclipse plugin

http://dl.google.com/eclipse/plugin/3.7

which I am using has a feature whereby you can

File -> New -> Other -> Android -> App Engine Connected Android Project

The video discusses RPC (remote procedure calls) and C2DM (cloud 2 device
messaging).

C2DM seems interesting as it allows the server to notify a device when some
data needs to
be pushed to a device. I wonder what would happen if a device was ofline
when C2DM kicked in.

To be honest much of the video was over my head, but I'm going to try and
have a look at that too.
I got the following URLs out of the video (shown towards the end):

http://bigdaddy-io.appspot.com/
http://code.google.com/p/cloud-tasks-io
http://cloudtasks-io.appspot.com/ 

I'm going to have a look at these too,

Regards,

John Goche

On Sun, Jan 8, 2012 at 5:38 PM, Nikolay Elenkov
wrote:

> On Mon, Jan 9, 2012 at 1:18 AM, Kostya Vasilyev 
> wrote:
> >
> > Google I/O 2011: Android + App Engine: A Developer's Dream Combination
> >
> > The video covers this plugin for Eclipse:
> >
> > http://code.google.com/eclipse/
> >
> > ... which makes it very easy to create Andorid apps that talk to a GAE
> > backend, complete with device-to-GAE authentication and C2DM.
> >
>
> Completely forgot about this one. This is actually using a GWT endpoint
> on GAE, so you can't have multiple versions of an API and it's not very
> flexible, but should work for a quick start. If you don't want to use GWT
> RPC, you can't use this.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

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

[android-developers] Re: Android Library sources not found

2012-01-08 Thread DulcetTone
My hero, too!

This presumably will fix the issue for me, as well, but I can see it
has already done the impossible -- finally made Eclipse automagically
build the projects my own one depends on.  I swear I'd tried the same
trick many times before and it never worked.  Perhaps I cleaned up
some other stuff.

Thanks.

tone


On Jan 5, 1:19 pm, Kostya Vasilyev  wrote:
> 1:
>
> Add the library project as a dependency to the app project:
>
> Package Explorer / Right-click the app project / Properties / Java Build
> Path / Projects, under "Required projects on the build path".
>
> 2:
>
> Switch to the "Order and Export" tab and move the library project up, so
> it's above "Library Projects" (just that, no need to tick the checkbox on
> the left there).
>
> -- Kostya
>

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


Re: [android-developers] Re: Android unit testing with ContentProviders and databases

2012-01-08 Thread Barry Drinkwater
Hi,

I'm having strange problems with my RenamingDelegatingContext. It
successfully creates a test database when I run the tests in debug mode,
but only *sometimes* in 'run' mode (I'm using eclipse).

I can't figure this out. Any ideas?

Barry

On 2 January 2012 06:18, Diego Torres Milano  wrote:

> The best solution is probably a RenamingDelegatingContext, that will
> allow your tests to use a different database than your 'live' one.
> There are examples of RenamingDelegatingContext and other mock
> injections in Android Application Testing Guide [http://
> www.packtpub.com/android-application-testing-guide/book].
>
> On Dec 31 2011, 2:20 am, Stephan Wiesner 
> wrote:
> > I guess you gave the obvious answer yourself: Don't hardcode the name.
> > Use a variable, maybe a system setting or something from a config file
> > that can be accessed by all your apps and put an if/else block in your
> > provider
> >
> > Greetings from Berne,
> > Stephan
> >
> > On 31 Dez., 01:05, barry  wrote:
> >
> >
> >
> >
> >
> >
> >
> > > I have an app that uses a ContentProvider to serve data instead of
> > > directly accessing the database. The application is working as
> > > expected but I have a problem with unit tests: how can I force the
> > > ContentProvider to use a test database rather than a 'live' one? If I
> > > wasn't using a ContentProvider I could pass a different database name
> > > to the Constructor of my `SQLiteOpenHelper` sublass, but now the
> > > database is created with a call to onCreate() in my ContentProvider:
> >
> > > @Override
> > > public boolean onCreate()
> > > {
> > > UKMPGDataProvider.init(getContext(),
> Constants.DATABASE_NAME);
> > > return (UKMPGDataProvider.getWritableDatabase() ==
> null) ? false :
> > > true;
> > > }
> >
> > > As you can see, the database name is hardcoded.
> >
> > > Is there a way to pass a test name into the ContentProvider?
>
> --
> Have you read my blog ?
> http://dtmilano.blogspot.com
> android junit tests ui linux cult thin clients
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

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

[android-developers] Re: Android unit testing with ContentProviders and databases

2012-01-08 Thread barry
To expand on my last message, in run mode, the database created is a
'live' one. I.e. without a "test." prefix. This means it is not
deleted in my tear down and tests fail.

Thanks,
Bary

On Jan 8, 8:31 pm, Barry Drinkwater 
wrote:
> Hi,
>
> I'm having strange problems with my RenamingDelegatingContext. It
> successfully creates a test database when I run the tests in debug mode,
> but only *sometimes* in 'run' mode (I'm using eclipse).
>
> I can't figure this out. Any ideas?
>
> Barry
>
> On 2 January 2012 06:18, Diego Torres Milano  wrote:
>
>
>
>
>
>
>
> > The best solution is probably a RenamingDelegatingContext, that will
> > allow your tests to use a different database than your 'live' one.
> > There are examples of RenamingDelegatingContext and other mock
> > injections in Android Application Testing Guide [http://
> >www.packtpub.com/android-application-testing-guide/book].
>
> > On Dec 31 2011, 2:20 am, Stephan Wiesner 
> > wrote:
> > > I guess you gave the obvious answer yourself: Don't hardcode the name.
> > > Use a variable, maybe a system setting or something from a config file
> > > that can be accessed by all your apps and put an if/else block in your
> > > provider
>
> > > Greetings from Berne,
> > > Stephan
>
> > > On 31 Dez., 01:05, barry  wrote:
>
> > > > I have an app that uses a ContentProvider to serve data instead of
> > > > directly accessing the database. The application is working as
> > > > expected but I have a problem with unit tests: how can I force the
> > > > ContentProvider to use a test database rather than a 'live' one? If I
> > > > wasn't using a ContentProvider I could pass a different database name
> > > > to the Constructor of my `SQLiteOpenHelper` sublass, but now the
> > > > database is created with a call to onCreate() in my ContentProvider:
>
> > > >         @Override
> > > >         public boolean onCreate()
> > > >         {
> > > >                 UKMPGDataProvider.init(getContext(),
> > Constants.DATABASE_NAME);
> > > >                 return (UKMPGDataProvider.getWritableDatabase() ==
> > null) ? false :
> > > > true;
> > > >         }
>
> > > > As you can see, the database name is hardcoded.
>
> > > > Is there a way to pass a test name into the ContentProvider?
>
> > --
> > Have you read my blog ?
> >http://dtmilano.blogspot.com
> > android junit tests ui linux cult thin clients
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en

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


Re: [android-developers] Google App Engine and Users API and android

2012-01-08 Thread John Goche
I also found these links:

http://code.google.com/android/c2dm/

http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html

Not sure whether the latter link is relevant.

Also not sure what the difference between using C2DM and using the Channel
API is.

And not sure why the google accounts authentication method is not mentioned
on the
following page:
http://code.google.com/apis/accounts/docs/GettingStarted.html

Regards,

John Goche

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

[android-developers] Re: Spinners - Saving and Retrieving selection information to DB

2012-01-08 Thread swebb99

> when you are adding new items to your SpinnerAdapter just make sure
> than new items have unique ids and store in the database ids not
> positions


Mmmm when you say id's I'm a little unclear what you mean. I define in
an array.xml file the following


box
foil
tree
apple


and I also define (for the prefs values) vales associated with this.


0
1
2
3


Are you saying I save the values in the database.

If you mean id as in row id from the database then I should have made
it clear that the data that is used to populate the Spinner is not
from a database it is in an array as shown. What I am trying to do is
just store in the database the selection the user  made.

Thanks for the response.

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


[android-developers] AERC library: questions

2012-01-08 Thread John Goche
Hello,

I am trying to follow the code from

http://www.tbray.org/ongoing/When/201x/2011/09/29/AERC

I have obtained the library with:

$ git clone http://code.google.com/p/aerc/

but I cannot make out what the difference is between the following two
variables:

App.ROOT_URI
App.ROOT_URI and App.SECRET_URI

These are java.net.URL instances but I cannot figure out why they would
have to differ in value.

After adding the following   
   and
fixing the code
that uses the library I get the following error message:

Checkin failed: Authentication failed:
Authentication failed: No network connection

but my wi-fi is on and working. I did see the screen prompting me to use my
account credentials the first
time but not thereafter.

Any ideas why it is failing?


package com.foo.appenginetest;

import java.net.URL;

import android.accounts.Account;
import android.accounts.AccountManager;
import android.app.Activity;
import android.app.IntentService;
import android.content.Intent;
import android.os.AsyncTask;
import android.os.Bundle;
import android.widget.TextView;

class App {

  static URL ROOT_URI = null;
  static URL SECRET_URI = null;

}

public class AppEngineTestActivity extends Activity {

  private Activity activity;
  private Activity mActivity;

  public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);

try {
App.SECRET_URI = App.ROOT_URI = new URL("http://hellodata.appspot.com";);
} catch (Exception e) {}
setContentView(R.layout.main);
mActivity = activity = this;
(new Worker()).execute();
  }

  private class Worker extends AsyncTask {

AppEngineClient client;

protected Response doInBackground(Void... params) {
  AccountManager manager = AccountManager.get(activity);
  Account[] accounts = manager.getAccountsByType("com.google");
  client = new AppEngineClient(App.ROOT_URI, accounts[0], activity);
  return client.get(App.SECRET_URI, null);
}

protected void onPostExecute(Response response) {
  TextView text = (TextView) activity.findViewById(R.id.text);
  if (response == null)
text.setText("Checkin failed: " + client.errorMessage());
  else if ((response.status / 100) != 2)
text.setText("Checkin failed: " + new String(response.body));
  else
text.setText("The secret is: " + new String(response.body));
}

  }

  class PrepareUpload extends AsyncTask {

URL APP_URI = App.ROOT_URI;
String mErrorMessage = null;
// ...
@Override
protected String doInBackground(Void... params) {

  AccountManager manager = AccountManager.get(activity);
  Account[] accounts = manager.getAccountsByType("com.google");
  Account account = accounts[0];

  // ...
  Authenticator authent =
Authenticator.appEngineAuthenticator(mActivity, account, APP_URI);
  String authToken = authent.token();
  if (authToken == null)
mErrorMessage = authent.errorMessage();
  return authToken;

}

@Override
protected void onPostExecute(String authToken) {
  // ...
  if (authToken != null) {
Intent intent = new Intent(mActivity, UploadService.class);
intent.putExtra("authtoken", authToken); startService(intent);
  }
}
  }

  public class UploadService extends IntentService {

public UploadService() {

  super(null);

}

URL APP_URI = App.ROOT_URI;

// ...
@Override
protected void onHandleIntent(Intent intent) {
  String authToken = intent.getStringExtra("authtoken");
  AppEngineClient client = new AppEngineClient(APP_URI, authToken,
this);
  // ...
}
private void transmit(String body, AppEngineClient client, URL target) {
  //Response response = client.post(target, null, body.toByteArray());
  Response response = client.post(target, null, body.getBytes());
  if (response == null) error(client.errorMessage());
  if ((response.status / 100) != 2)
error(getString(R.string.upload_failed) + response.status);
}

private void error(String foo) { System.out.println(foo); }
  }

}

App.ROOT_URI

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

[android-developers] FYI - EXAMPLE - How To Retrofit Picasa Android Uploader to Use Google Docs

2012-01-08 Thread NickL
FYI. In case anyone would benefit, here is the code I used to get the
Picasa example app to point to Google Docs. I've been using this in an
app for a year now, and no problems whatsoever.  It will upload only -
download is another example (haven't had a need for it, so didnt write
it yet. But should be straightforward enough to do on your own).
Please spend some time digesting how Google setup the Picasa sample
before reading this code or emailing me. You'll have to wrap you head
around the concepts before moving on.

DISCLAIMER: Offered as a courtesy to teach - this should be just
enough code to get you going in the right direction.

 - Best regards, Nick
- part 1
--
public final class GoogleDocumentsListAtom {

  /**
   * XML namespace dictionary.
   *
   */
  public static final XmlNamespaceDictionary NAMESPACE_DICTIONARY =
new
  XmlNamespaceDictionary();
  static {
Map map =
NAMESPACE_DICTIONARY.namespaceAliasToUriMap;
map.put("", "http://www.w3.org/2005/Atom";);
map.put("app", "http://www.w3.org/2007/app";);
map.put("atom", "http://www.w3.org/2005/Atom";);
map.put("batch", "http://schemas.google.com/gdata/batch";);
map.put("docs", "http://schemas.google.com/docs/2007";);
map.put("gAcl", "http://schemas.google.com/acl/2007";);
map.put("gd", "http://schemas.google.com/g/2005";);
map.put("openSearch", "http://a9.com/-/spec/opensearch/1.1/";);
map.put("xml", "http://www.w3.org/XML/1998/namespace";);
  }

  private GoogleDocumentsListAtom() {
  }
}
- part 2
--
  @Override
  public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);

Intent intent = getIntent();

myCtx = this;
boolean doSend = false;
if (intent.getData() != null &&
intent.getData().toString().contains("gdocs-upload")) {
getWindow().requestFeature(Window.FEATURE_PROGRESS);
mProgDialog = ProgressDialog.show(this, "", "Uploading...",
true);
mProgDialog.show();
doSend = true;
new UploadFilesTask(this).execute(this);
}
else   {
getWindow().requestFeature(Window.FEATURE_PROGRESS);
setContentView(R.layout.webintent);
WebView wv = (WebView) findViewById(R.id.webview);
wv.setWebViewClient(new MyWebViewClient(this));
mProgDialog = ProgressDialog.show(this, "", "Loading Page...",
true);
mProgDialog.show();
}

transport.applicationName = "google-
docsmyapplicationnamegoeshere";
 
HttpTransport.setLowLevelHttpTransport(ApacheHttpTransport.INSTANCE);
SharedPreferences settings = getSharedPreferences(PREF, 0);
setLogging(settings.getBoolean("logging", false));

if (Intent.ACTION_SEND.equals(intent.getAction()))  {
Bundle extras = intent.getExtras();
if (extras != null &&
extras.containsKey(getResources().getString( R.string.bundle_filename )))
{
String fname = extras.getString("filename");
String key = 
getResources().getString(R.string.bundle_filename);
mFileName =
 
extras.getString(getResources().getString( R.string.bundle_filename ));
// mFileName = null;  force an error condition
key = getResources().getString(R.string.bundle_filelen);
mFileLength =
extras.getInt(getResources().getString( R.string.bundle_filelen ));
if (mFileName == null || mFileLength < 0) {
// not initialized in caller
String msg = "mFileLength not initialized in 
call to Upload.";
Exception e = new Exception(msg);
handleException(e);
}
}
try {
sendData = new SendData(intent, getContentResolver());
} catch (Exception e) {
  returnWithError("Upload error " + e.getMessage() );
}
}
else
if (Intent.ACTION_MAIN.equals(getIntent().getAction())) {
sendData = null;
}
if (doSend == false) {
gotAccount(false);
}
  }

  private static OAuthHmacSigner createOAuthSigner() {
OAuthHmacSigner result = new OAuthHmacSigner();
if (credentials != null) {
  result.tokenSharedSecret = credentials.tokenSecret;
}
result.clientSharedSecret = "anonymous";
return result;
  }

  private static OAuthParameters createOAuthParameters() {
OAuthParameters authorizer = new OAuthParameters();
authorizer.consumerKey = "anonymous";
authorizer.signer = createOAuthSigner();
authorizer.token = credentials.token;
return authorizer;
 

[android-developers] Re: Spinners - Saving and Retrieving selection information to DB

2012-01-08 Thread swebb99
Im now thinking the way to do this is to take the position of the item
selected from the spinner use this as an index in to an associated
values array as already mentioned in my last reply, this will then
give a value that can be stored. On the reverse route the value
fetched from the database will be used for an indexOf search on the
List of values, then that index can be used to index in to the
displayable array.

This way if the new entries are added anywhere in the string array
they can be assigned a new unique value at the associated index in the
values array and it should all be future proof.

I may write my own specialized array-adapter for this.

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


[android-developers] Re: Spinners - Saving and Retrieving selection information to DB

2012-01-08 Thread swebb99
Actually it's easier than I thought. ArrayAdapter takes an array of
objects so I can create a simple object that holds the displayable
string and the associated value, the tostring() on it will return the
displayable string, the getValue() returns the associated value. I
then code a simple method that takes an array of the displayable
strings, an array of the values and then returns an array of the
objects just described. I create the ArrayAdaptor with this array of
objects and jobs a good-un.

Job done :)

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


[android-developers] Re: screen densities: "normal" (SDK) vs webkit

2012-01-08 Thread Jim Graham
On Fri, Jan 06, 2012 at 01:26:09PM -0600, Jim Graham wrote:
> Looking through the developers guide, I'm seeing what might be a
> discrepancy regarding screen densities (or it might not be).

Ahh, ok, stupid question, right?  Ok, never mind, then.

Later,
   --jim

-- 
THE SCORE:  ME:  2  CANCER:  0
73 DE N5IAL (/4)| DMR: So fsck was originally called
spooky1...@gmail.com|  something else.
< Running FreeBSD 7.0 > | Q:   What was it called?
ICBM / Hurricane:   | DMR: Well, the second letter was different.
   30.44406N 86.59909W  |-- Dennis M. Ritchie, Usenix, June 1998.

Android Apps Listing at http://www.jstrack.org/barcodes.html

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


[android-developers] SSL Client Authentication Broken in Android 4.0

2012-01-08 Thread Carl Minden
I have an Android app which uses an SSLSocketFactory to load a pkcs12
certificate and use that certificate to perform SSL Client
authentication with my server. This process worked perfectly on
Android 2.1, 2.2, and 2.3, but when I attempt to run this code on a
phone or emulator running 4.0 my server does not receive a public key
from the request made by my application.  There is no exception thrown
and the request makes it to my server fine, it just does not contain
the client certificate as it should and did before.

Here is the code I am using to get the HttpClient I use to perform my
request

private HttpClient getHttpClient(Context context) {

if(httpClient == null) {
KeyStore mycert = KeyStore.getInstance("pkcs12");
byte[] pkcs12 =
persistentStorage.getPKCS12Certificate(context);

ByteArrayInputStream pkcs12BAIS = new
ByteArrayInputStream(pkcs12);
mycert.load(pkcs12BAIS, config.getPassword().toCharArray());

SSLSocketFactory sockfact = new SSLSocketFactory(mycert, null,
null);

sockfact.setHostnameVerifier(new StrictHostnameVerifier());

SchemeRegistry registry = new SchemeRegistry();
registry.register(new Scheme("https",sockfact ,
config.getPort()));

BasicHttpParams httpParameters = new BasicHttpParams();
HttpProtocolParams.setUseExpectContinue(httpParameters,
false);
HttpProtocolParams.setVersion(httpParameters,
HttpVersion.HTTP_1_1);

HttpConnectionParams.setConnectionTimeout(httpParameters,
3000);
HttpConnectionParams.setSoTimeout(httpParameters, 3000);

ThreadSafeClientConnManager cm = new
ThreadSafeClientConnManager(httpParameters, registry);
cm.closeExpiredConnections();
cm.closeIdleConnections(3000, TimeUnit.MILLISECONDS);

httpClient = new DefaultHttpClient(cm, httpParameters);

}

return httpClient;
}

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


[android-developers] Re: Android SDK Source - how do you install this and get it to work properly?

2012-01-08 Thread OpaSmurf
Carl,
Try:
http://developer.android.com/sdk/installing.html
Opa

On Jan 7, 10:19 am, Carl Moser  wrote:
> I'm having one heck of a time trying to install the source code for the
> Android SDK because I get "Source not found" errors when I try to step
> from my code into the SDK's code.  I have Googled this and tried several
> suggestions but I still get this error.
>
> I am using Eclipse Indigo and developing for Android 2.2.
> I have showing that the Source in installed at Help -> About ->
> Installation Details.  There it shows Android Sources are installed.
>
> Any help is appreciated.
>
> Carl

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


[android-developers] BluetoothAdapter in service issue

2012-01-08 Thread Zarey C.H.
Hi everyone, I wrote a service for disabling the bluetooth dynamically. 




when I try to call:




BluetoothAdapter bluetooth = BluetoothAdapter.getDefaultAdapter(); 




its throwing me the error:

java.lang.RuntimeException: Can't create handler inside thread that has not 
called Looper.prepare()

Please let me know how can I resolve this issue.

some sample code may be better.




Regards!




Android funs

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

[android-developers] com.android.camera outofmemory exception

2012-01-08 Thread mimamo
hello , in ICS Camera Ap , I switch CameraMode to VideoMode , then
swtich VideoMode to CameraMode . After I do this action about 15
times , Camera Ap crashed , and print OutOfMemory exception  in log. I
ran Camera Ap again and use command 'top'. I found process
com.android.camera 's RSS increased after do a swich action , when the
using memory reached about 75M+ , Camera Ap crashed. Who knows what
cause the problem?

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


[android-developers] identify device type version

2012-01-08 Thread ANKUR GOEL
Hi all,

i want to identify device type while the user downloads the application
from market and according o that i want to perform some action

please help me how to identify the device version .according to that .

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

Re: [android-developers] identify device type version

2012-01-08 Thread Michael Banzon
On Mon, Jan 9, 2012 at 6:00 AM, ANKUR GOEL  wrote:
> Hi all,
>
> i want to identify device type while the user downloads the application from
> market and according o that i want to perform some action

"while the user downloads" is not possible. When your app launches you
can get all the information available.

-- 
Michael Banzon
http://michaelbanzon.com/

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


Re: [android-developers] SSL Client Authentication Broken in Android 4.0

2012-01-08 Thread Nikolay Elenkov
On Mon, Jan 9, 2012 at 8:34 AM, Carl Minden  wrote:
> I have an Android app which uses an SSLSocketFactory to load a pkcs12
> certificate and use that certificate to perform SSL Client
> authentication with my server. This process worked perfectly on
> Android 2.1, 2.2, and 2.3, but when I attempt to run this code on a
> phone or emulator running 4.0 my server does not receive a public key
> from the request made by my application.

Are you using a self-signed certificate for the server? If you are, you
need to either add it to the system trust store, or pass your custom
trust store to  SSLSocketFactory.

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


Re: [android-developers] identify device type version

2012-01-08 Thread ANKUR GOEL
i am making one application that supports 2.2 and have nfc which is support
from 2.3 ..

so can u suggest related to this ..



On Mon, Jan 9, 2012 at 10:34 AM, Michael Banzon  wrote:

> On Mon, Jan 9, 2012 at 6:00 AM, ANKUR GOEL  wrote:
> > Hi all,
> >
> > i want to identify device type while the user downloads the application
> from
> > market and according o that i want to perform some action
>
> "while the user downloads" is not possible. When your app launches you
> can get all the information available.
>
> --
> Michael Banzon
> http://michaelbanzon.com/
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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

Re: [android-developers] identify device type version

2012-01-08 Thread Michael Banzon
As Mark has pointed out previously NFC is not supported on 2.2.

On Mon, Jan 9, 2012 at 6:10 AM, ANKUR GOEL  wrote:
> i am making one application that supports 2.2 and have nfc which is support
> from 2.3 ..
>
> so can u suggest related to this ..
>
>
>
> On Mon, Jan 9, 2012 at 10:34 AM, Michael Banzon  wrote:
>>
>> On Mon, Jan 9, 2012 at 6:00 AM, ANKUR GOEL  wrote:
>> > Hi all,
>> >
>> > i want to identify device type while the user downloads the application
>> > from
>> > market and according o that i want to perform some action
>>
>> "while the user downloads" is not possible. When your app launches you
>> can get all the information available.
>>
>> --
>> Michael Banzon
>> http://michaelbanzon.com/
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en



-- 
Michael Banzon
http://michaelbanzon.com/

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


Re: [android-developers] Android WebView Connecting to Remote URL

2012-01-08 Thread Robinns
No, its not a server side problem, in my desktop browser with the jstl i
see the content as desired. But on the emulator with jstl tags i see a
blank page.

On Mon, Jan 9, 2012 at 1:12 AM, Michael Banzon  wrote:

> On Sun, Jan 8, 2012 at 11:58 AM, Robinns  wrote:
> > It's just an empty page.
>
> So - in both the WebView and the browser you are seeing an empty page
> unless you remove some tags??
>
> If so - it's a server side problem.
>
>
> > On Sun, Jan 8, 2012 at 4:41 PM, Michael Banzon 
> wrote:
> >>
> >> What do you see in a plain ol' browser??
> >>
> >> On Sun, Jan 8, 2012 at 11:49 AM, Robin Thapa 
> >> wrote:
> >> > Dear All,
> >> >
> >> > I have a remote site. The remote site consists of jsp pages with jstl
> >> > tags in it.
> >> > However when i try connecting to the remote site. Say (welcome.jsp),
> >> > with jstl tags embedded.
> >> > My webview is blank. When i remove the jstl tags from the remote
> >> > pages, my page is ok in the webview.
> >> > Why is this odd behavior?
> >> > Any help or insight you could provide me will chase my hefty hours?
> >> >
> >> > --
> >> > You received this message because you are subscribed to the Google
> >> > Groups "Android Developers" group.
> >> > To post to this group, send email to
> android-developers@googlegroups.com
> >> > To unsubscribe from this group, send email to
> >> > android-developers+unsubscr...@googlegroups.com
> >> > For more options, visit this group at
> >> > http://groups.google.com/group/android-developers?hl=en
> >>
> >>
> >>
> >> --
> >> Michael Banzon
> >> http://michaelbanzon.com/
> >>
> >> --
> >> You received this message because you are subscribed to the Google
> >> Groups "Android Developers" group.
> >> To post to this group, send email to
> android-developers@googlegroups.com
> >> To unsubscribe from this group, send email to
> >> android-developers+unsubscr...@googlegroups.com
> >> For more options, visit this group at
> >> http://groups.google.com/group/android-developers?hl=en
> >
> >
> >
> >
> > --
> > Robin
> >
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com
> > For more options, visit this group at
> > http://groups.google.com/group/android-developers?hl=en
>
>
>
> --
> Michael Banzon
> http://michaelbanzon.com/
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
Robin

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

Re: [android-developers] Android WebView Connecting to Remote URL

2012-01-08 Thread Michael Banzon
On Mon, Jan 9, 2012 at 6:23 AM, Robinns  wrote:
> No, its not a server side problem, in my desktop browser with the jstl i see
> the content as desired. But on the emulator with jstl tags i see a blank
> page.

How does the page look in the browser on the emulator?

-- 
Michael Banzon
http://michaelbanzon.com/

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


Re: [android-developers] Android WebView Connecting to Remote URL

2012-01-08 Thread Robinns
White blank page

On Mon, Jan 9, 2012 at 11:12 AM, Michael Banzon  wrote:

> On Mon, Jan 9, 2012 at 6:23 AM, Robinns  wrote:
> > No, its not a server side problem, in my desktop browser with the jstl i
> see
> > the content as desired. But on the emulator with jstl tags i see a blank
> > page.
>
> How does the page look in the browser on the emulator?
>
> --
> Michael Banzon
> http://michaelbanzon.com/
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
Robin

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

[android-developers] Re: Android WebView Connecting to Remote URL

2012-01-08 Thread Robin Thapa
It's simply a white blank page no nothing in it.

On Jan 9, 10:27 am, Michael Banzon  wrote:
> On Mon, Jan 9, 2012 at 6:23 AM, Robinns  wrote:
> > No, its not a server side problem, in my desktop browser with the jstl i see
> > the content as desired. But on the emulator with jstl tags i see a blank
> > page.
>
> How does the page look in the browser on the emulator?
>
> --
> Michael Banzonhttp://michaelbanzon.com/

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


Fwd: [android-developers] Need help in twitter integration

2012-01-08 Thread chowdary nani
-- Forwarded message --
From: chowdary nani 
Date: Sat, Jan 7, 2012 at 6:16 PM
Subject: Re: [android-developers] Need help in twitter integration
To: android-developers@googlegroups.com


*Hi,
Mukesh Kumar*,

Thanks for replay , Thanks for checking mail,thanks for replay.
but i am still getting the same error as
OAuthRequestTokenTask(1695): Error during OAUth retrieve request token



please help me in solving this error in twitter integration.



Thanks
Swathi.





On Fri, Jan 6, 2012 at 12:32 PM, Mukesh Srivastav wrote:

> Naveen,
> The solution is very simple, you create a Twitterutil class and use it for
> sending Tweets and also getting the Tweets.  Below is my example to do it.
>
>
> public class TwitterUtils {
>
> public static boolean isAuthenticated(SharedPreferences prefs) {
>
> String token = prefs.getString(OAuth.OAUTH_TOKEN, "");
>  String secret = prefs.getString(OAuth.OAUTH_TOKEN_SECRET, "");
>
> AccessToken a = new AccessToken(token, secret);
>  Twitter twitter = new TwitterFactory().getInstance();
> twitter.setOAuthConsumer(AppConstants.CONSUMER_KEY,
>  AppConstants.CONSUMER_SECRET);
> twitter.setOAuthAccessToken(a);
>
>  try {
> twitter.getAccountSettings();
> return true;
>  } catch (TwitterException e) {
> return false;
> }
>  }
>
> public static void sendTweet(SharedPreferences prefs, String msg)
>  throws Exception {
> String token = prefs.getString(OAuth.OAUTH_TOKEN, "");
>  String secret = prefs.getString(OAuth.OAUTH_TOKEN_SECRET, "");
>
> AccessToken a = new AccessToken(token, secret);
>  Twitter twitter = new TwitterFactory().getInstance();
> twitter.setOAuthConsumer(AppConstants.CONSUMER_KEY,
>  AppConstants.CONSUMER_SECRET);
> twitter.setOAuthAccessToken(a);
> twitter.updateStatus(msg);
>  }
>
> public static String getTweets(SharedPreferences prefs) {
>  String token = prefs.getString(OAuth.OAUTH_TOKEN, "");
> String secret = prefs.getString(OAuth.OAUTH_TOKEN_SECRET, "");
>  StringBuffer stb = new StringBuffer();
>
> AccessToken a = new AccessToken(token, secret);
>  Twitter twitter = new TwitterFactory().getInstance();
> twitter.setOAuthConsumer(AppConstants.CONSUMER_KEY,
>  AppConstants.CONSUMER_SECRET);
> twitter.setOAuthAccessToken(a);
>
>  try {
> ResponseList liststatus = twitter.getFriendsTimeline();
>  for (Status status : liststatus) {
> stb.append(status.getText());
> // System.out.println("I am reading other Twitter Status " +
>  // status.getText());
> }
>
> } catch (TwitterException e) {
>  // TODO Auto-generated catch block
> e.printStackTrace();
> }
>  return stb.toString();
> }
>
>
> To use it..
>
>
> if (TwitterUtils.isAuthenticated(prefs)) { //if user logged in , send the
> twit
>
> sendTweet(); //
>
> }
>
> public void sendTweet() {
>  Thread t = new Thread() {
> public void run() {
>
>  try {
>  TwitterUtils.sendTweet(prefs,getTweetMsg());
>  mTwitterHandler.post(mUpdateTwitterNotification);
> } catch (Exception ex) {
>  ex.printStackTrace();
> }
> }
>
> };
> t.start();
> }
>
>
>
> --
> Warm Regards,
> *Mukesh Kumar*,
> Android Consultant/Freelancer,
> India,Hyderabad.
>
> On Fri, Jan 6, 2012 at 11:57 AM, chowdary nani 
> wrote:
>
>> Hi All,
>> I am working on twittwer in tegration in android
>> I am trying to post tweet on my twitter but i am getting error
>> as " Error during OAUth retrieve request token"
>> here is the followin code:
>>
>>
>> tweet.setOnClickListener(new View.OnClickListener() {
>> public void onClick(View v) {
>>  if (TwitterUtils.isAuthenticated(prefs)) {
>>  sendTweet();
>>  } else {
>>
>> Intent i = new Intent(getApplicationContext(),
>>  PrepareRequestTokenActivity.class);
>> i.putExtra("tweet_msg", getTweetMsg());
>>  startActivity(i);
>> }
>> }
>>  });
>>
>>
>> public void sendTweet() {
>> Thread t = new Thread() {
>>  public void run() {
>>
>> try {
>>  TwitterUtils.sendTweet(prefs, getTweetMsg());
>> mTwitterHandler.post(mUpdateTwitterNotification);
>>  } catch (Exception ex) {
>> ex.printStackTrace();
>> }
>>  }
>>
>> };
>> t.start();
>>  }
>> public class PrepareRequestTokenActivity extends Activity {
>>
>> final String TAG = getClass().getName();
>>
>> private OAuthConsumer consumer;
>> private OAuthProvider provider;
>>
>> @Override
>> public void onCreate(Bundle savedInstanceState) {
>>  super.onCreate(savedInstanceState);
>> try {
>> this.consumer = new CommonsHttpOAuthConsumer(
>>  Constants.CONSUMER_KEY, Constants.CONSUMER_SECRET);
>> this.provider = new CommonsHttpOAuthProvider(Constants.REQUEST_URL,
>>  Constants.ACCESS_URL, Constants.AUTHORIZE_URL);
>> } catch (Exception e) {
>>  Log.e(TAG, "Error creating consumer / provider", e);
>> }
>>
>>  Log.i(TAG, "Starting task to retrieve request token.");
>> new OAuthRequestTokenTask(this, consumer, provider).execute();
>>  }
>>
>>  @Override
>>  public void onNewIntent(Intent intent) {
>> super.onNewIntent(intent);
>> SharedPreferences prefs = PreferenceManager
>>  .getDefaultSharedPreferences(this);
>> final U

Re: [android-developers] identify device type version

2012-01-08 Thread Kristopher Micinski
I think what the OP is asking is this:

I have an app, it uses nfc, but because it isn't the whole point of
the app, I'd like to offer a different version of the app for <2.2,
which doesn't use the nfc stuff, how do I have a version for <=2.2
which forgoes nfc, and a 2.3+ version which uses nfc.

To the OP:  you can have multiple apks and app versions for different
versions of Android.  I haven't looked into this extensively, I only
know of it, and I believe it is to solve this goal above.

Refer to:

http://developer.android.com/guide/market/publishing/multiple-apks.html

There is a filter for device version, which seems appropriate to use
in this instance.

kris

On Sun, Jan 8, 2012 at 11:22 PM, Michael Banzon  wrote:
> As Mark has pointed out previously NFC is not supported on 2.2.
>
> On Mon, Jan 9, 2012 at 6:10 AM, ANKUR GOEL  wrote:
>> i am making one application that supports 2.2 and have nfc which is support
>> from 2.3 ..
>>
>> so can u suggest related to this ..
>>
>>
>>
>> On Mon, Jan 9, 2012 at 10:34 AM, Michael Banzon  wrote:
>>>
>>> On Mon, Jan 9, 2012 at 6:00 AM, ANKUR GOEL  wrote:
>>> > Hi all,
>>> >
>>> > i want to identify device type while the user downloads the application
>>> > from
>>> > market and according o that i want to perform some action
>>>
>>> "while the user downloads" is not possible. When your app launches you
>>> can get all the information available.
>>>
>>> --
>>> Michael Banzon
>>> http://michaelbanzon.com/
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Android Developers" group.
>>> To post to this group, send email to android-developers@googlegroups.com
>>> To unsubscribe from this group, send email to
>>> android-developers+unsubscr...@googlegroups.com
>>> For more options, visit this group at
>>> http://groups.google.com/group/android-developers?hl=en
>>
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>
>
>
> --
> Michael Banzon
> http://michaelbanzon.com/
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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


[android-developers] I wanted to develop Android Apps with PDF viewer and PDF editor

2012-01-08 Thread Rocky
Hi Guys,

Please help me how to proceed, how can i develop apps with pdf reader and
Annotation feature like mark, underline.


-- 
Thanks & Regards

Rakesh

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

[android-developers] Re: Android WebView Connecting to Remote URL

2012-01-08 Thread Robin Thapa
Has anyone encountered such problems.

On Jan 9, 10:31 am, Robin Thapa  wrote:
> It's simply a white blank page no nothing in it.
>
> On Jan 9, 10:27 am, Michael Banzon  wrote:
>
>
>
>
>
>
>
> > On Mon, Jan 9, 2012 at 6:23 AM, Robinns  wrote:
> > > No, its not a server side problem, in my desktop browser with the jstl i 
> > > see
> > > the content as desired. But on the emulator with jstl tags i see a blank
> > > page.
>
> > How does the page look in the browser on the emulator?
>
> > --
> > Michael Banzonhttp://michaelbanzon.com/

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


Re: [android-developers] I wanted to develop Android Apps with PDF viewer and PDF editor

2012-01-08 Thread Kristopher Micinski
On Sun, Jan 8, 2012 at 11:56 PM, Rocky  wrote:
> Hi Guys,
>
> Please help me how to proceed, how can i develop apps with pdf reader and
> Annotation feature like mark, underline.

Don't.

Alternatively:  find hundreds of thousands of dollars and shell out
for a good pdf library for your app.

Alternative alternatively:  spend a year+ developing a good pdf
library for Android or java that doesn't kill it on memory, and then
sell it for less than the one that's currently being used.

If you don't need a lot of features in your app: fire an intent at a
pdf viewer that's installed on the user's phone.  If they don't have
the app, request the user to download the pdf reader (you can check if
they have the pdf reader app installed easily enough, ask again if you
dont' know how...)

Kris

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


Re: [android-developers] How to implement a finger slide selection of multiple cells in a gridview

2012-01-08 Thread Deepti Krishna
Hi,

Thanks for replying, I m sorry for replying late to you because the mail
was redirected to spam somehow...
I did not have an idea that i had to queue the events and hence  i was
missing out the events .. so i was unable to implement it...
But now i have my own grid view implemented...

Thanks for your help :)

On Mon, Dec 19, 2011 at 7:47 AM, TreKing  wrote:

>  On Sat, Dec 17, 2011 at 3:26 AM, DK  wrote:
>
>> I am unable to implement this using a ontouchlistener and even
>> a onClicklistener as wel...
>>
>
> Why not? What have you tried? What work have you done? Where specifically
> are you stuck?
>
>
> -
> TreKing  - Chicago
> transit tracking app for Android-powered devices
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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

[android-developers] Re: Configuring global proxy from code

2012-01-08 Thread kris
You can set APN proxy using something similar to this.

 public int InsertAPN(String name, String apn_addr)
{
int id = -1;
ContentResolver resolver = this.getContentResolver();
ContentValues values = new ContentValues();
values.put("name", name);
values.put("apn", apn_addr);
 final Uri APN_TABLE_URI =
Uri.parse("content://telephony/carriers");
/*
 * The following three field values are for testing in Android
emulator only
 * The APN setting page UI will ONLY display APNs whose
'numeric' filed is
 * TelephonyProperties.PROPERTY_SIM_OPERATOR_NUMERIC.
 * On Android emulator, this value is 310260, where 310 is
mcc, and 260 mnc.
 * With these field values, the newly added apn will appear in
system UI.*/

values.put("mcc", "310");
values.put("mnc", "260");
values.put("numeric", "310260");
values.put("proxy","10.102.24.60");
Uri newRow = resolver.insert(APN_TABLE_URI, values);
Cursor c = null;
try
{

   if(newRow != null)
{
c = resolver.query(newRow, null, null, null, null);
Log.d("Krishna", "Newly added APN:");
  //  printAllData(c); //Print the entire result set

// Obtain the apn id
int idindex = c.getColumnIndex("_id");
c.moveToFirst();
id = c.getShort(idindex);
Log.d("Krishna", "New ID: " + id + ": Inserting new
APN succeeded!");
}
}
catch(SQLException e)
{
Log.d("Krishna", e.getMessage());
}

if(c !=null )
c.close();
return id;
}

On Dec 30 2011, 11:30 am, Arka Sharma 
wrote:
> On Dec 29, 9:38 am, kris  wrote:
>
> > You cannot set a globalproxyas you noticed that it is denied with
> > permission. Only apps that are signed with the same certificate of the
> > firmware can set theproxy(permission level 3).
>
> > One thing that you can do is to set a per connection basedproxy. You
> > can setproxyseparately forWIFIand APN also. Under advanced setting
> > inWIFIyou setWIFIproxyand for APN you already know as you did in
> > emulator.
>
> > Hope this helps.
>
> > Thanks
> > Krishna
>
> Thanks Krishna for your help.Now can I set the httpproxyfrom code ?
> I mean what I do from APN settings is it possible to do from a piece
> of code ? I tried inserting http_proxy row in system table,I tried
> with System.puutString and Secure.putString all failed.
>
> Let me explain the requirement thoroughly.One service will be there
> which will be periodically monitoring the MCCMNC.When user is in local
> network the first 5 digit of IMSI will be same as the MCCMNC.When
> first 5 digit of IMSI is different from MCCMNC theproxyconfiguration
> for APN will be done.
>
> Thanks & Regards,
> Arka

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


Re: [android-developers] I wanted to develop Android Apps with PDF viewer and PDF editor

2012-01-08 Thread Rocky
thanks to reply, is any free or paid lib is available in market to develop
application.

I wanted to develop and i'm ready to spend hundred of $, i wanted pdf
viewer some thing like RepliGo
Reader(
https://market.android.com/details?id=com.cerience.reader.app&feature=search_result#?t=W251bGwsMSwxLDEsImNvbS5jZXJpZW5jZS5yZWFkZXIuYXBwIl0.),
not all features only Annotation part of RepliGo.

Please help me


On Mon, Jan 9, 2012 at 11:32 AM, Kristopher Micinski  wrote:

> On Sun, Jan 8, 2012 at 11:56 PM, Rocky  wrote:
> > Hi Guys,
> >
> > Please help me how to proceed, how can i develop apps with pdf reader and
> > Annotation feature like mark, underline.
>
> Don't.
>
> Alternatively:  find hundreds of thousands of dollars and shell out
> for a good pdf library for your app.
>
> Alternative alternatively:  spend a year+ developing a good pdf
> library for Android or java that doesn't kill it on memory, and then
> sell it for less than the one that's currently being used.
>
> If you don't need a lot of features in your app: fire an intent at a
> pdf viewer that's installed on the user's phone.  If they don't have
> the app, request the user to download the pdf reader (you can check if
> they have the pdf reader app installed easily enough, ask again if you
> dont' know how...)
>
> Kris
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en




-- 
Thanks & Regards

Rakesh Kumar Jha
Android Developer, Trainer and Mentor
Bangalore
(O) +918030274295
(R) +919886336619

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

Re: [android-developers] SSL Client Authentication Broken in Android 4.0

2012-01-08 Thread Mukesh Srivastav
Hi Carl,

This issue is Redirecting with the server. you need to redirect it again.
below is the code snippet try this and u will surely get the response.

DefaultHttpClient dc = new DefaultHttpClient(ccm, params);
dc.setRedirectHandler(new RedirectHandler() {

@Override
public URI getLocationURI(HttpResponse response, HttpContext context)
throws ProtocolException {
// TODO Auto-generated method stub
return null;
}


@Override
public boolean isRedirectRequested(HttpResponse response, HttpContext
context) {
// TODO Auto-generated method stub
return false;
}

});



Warm Regards,
*Mukesh Kumar*,
Android Consultant/Freelancer,
India,Hyderabad.



On Mon, Jan 9, 2012 at 10:34 AM, Nikolay Elenkov
wrote:

> On Mon, Jan 9, 2012 at 8:34 AM, Carl Minden  wrote:
> > I have an Android app which uses an SSLSocketFactory to load a pkcs12
> > certificate and use that certificate to perform SSL Client
> > authentication with my server. This process worked perfectly on
> > Android 2.1, 2.2, and 2.3, but when I attempt to run this code on a
> > phone or emulator running 4.0 my server does not receive a public key
> > from the request made by my application.
>
> Are you using a self-signed certificate for the server? If you are, you
> need to either add it to the system trust store, or pass your custom
> trust store to  SSLSocketFactory.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



--

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

Re: [android-developers] login password

2012-01-08 Thread Indraneel Kulkarni
yes i want to read the Username and password from the web services.. please
help

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

Re: [android-developers] Object Serialization

2012-01-08 Thread Narendra Bagade
How?..pls let us know.

On Sat, Jan 7, 2012 at 4:34 PM, sourabh sahu  wrote:

> issue resolved.Thank you all.
>
>
> On Fri, Jan 6, 2012 at 9:27 PM, TreKing  wrote:
>
>>  On Fri, Jan 6, 2012 at 5:06 AM, sourabh sahu wrote:
>>
>>> I dont know number of elements in an arraylist.
>>
>>
>> Yes you do.
>> http://developer.android.com/reference/java/util/ArrayList.html#size()
>>
>>
>>> I want to store the arraylist itself as on object.
>>
>>
>> Honestly, have you tried Google?
>>
>>
>> -
>> TreKing  - Chicago
>> transit tracking app for Android-powered devices
>>
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>>
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
Regards,
Narendra
.

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

Re: [android-developers] call duration...?

2012-01-08 Thread Abhilash baddam
Hi,

I am calling a phone number through intent..like

Intent intent = new Intent(Intent.ACTION_CALL);
intent.setData(Uri.parse("tel:123456"));
startActivityForResult(intent, 1);

how can i find the call duration means whenever the person has been
answered the call and whenever he dropped the call... for that i tried
like this...but i can be able to find out the when the person ended
the call but i cannot be able to find out the time whenever the call
has been answered.

   @Override
public void onCallStateChanged(int state, String incomingNumber) {
super.onCallStateChanged(state, incomingNumber);

// Don't fire before the call was made
if (state == TelephonyManager.CALL_STATE_OFFHOOK)
{
called = true;
dialled = true;
long startTime = System.currentTimeMillis();
Date date = new Date(startTime);
Toast.makeText(UITestActivity.this,"Call Connected: "+
date.toString(), Toast.LENGTH_SHORT).show();
}   

  if(state == TelephonyManager.CALL_STATE_RINGING){

Toast.makeText(UITestActivity.this," RINGING ", Toast.LENGTH_SHORT).show();
}

// Call has ended -- now bring the activity back to front
if (called && state == TelephonyManager.CALL_STATE_IDLE) {
called = false;
System.out.println("DROPPED THE CALL");
mTelMgr.listen(this, PhoneStateListener.LISTEN_NONE);
long endtime = System.currentTimeMillis();
Date date = new Date(endtime);
   Toast.makeText(UITestActivity.this,"Call Disconnected:
"+ date.toString(), Toast.LENGTH_SHORT).show();
startActivity(new Intent(UITestActivity.this, UITestActivity.class));
}
}



On 1/4/12, Abhilash baddam  wrote:
> Hi narendra,
>
> I tried as per your suggestion thanks. But i was strucked  to find out
> whether the outgoing call has been answered.
>
>
> On 1/4/12, Narendra Bagade  wrote:
>> refer related content provider like call log.
>>
>> On Wed, Jan 4, 2012 at 12:26 PM, Abhilash baddam <
>> abhilash.androiddevelo...@gmail.com> wrote:
>>
>>> Hi,
>>>
>>> I want to know the call duration, when I called to other number and
>>> when that call-ends. How can i get the call duration...?
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Android Developers" group.
>>> To post to this group, send email to android-developers@googlegroups.com
>>> To unsubscribe from this group, send email to
>>> android-developers+unsubscr...@googlegroups.com
>>> For more options, visit this group at
>>> http://groups.google.com/group/android-developers?hl=en
>>
>>
>>
>>
>> --
>> Regards,
>> Narendra
>> .
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>

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


[android-developers] Android Usb Hub enumeration

2012-01-08 Thread Baba Shanker
How can i see enumeration of Usb Hub in my activity?

I am able to do with all Usb devices and also when device is connected
to Hub.

Any Help?

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


[android-developers] Re: Android WebView Connecting to Remote URL

2012-01-08 Thread Robin Thapa
Sorry, to misinterpert on ServerSide problem.
I guess you are right.
What i did was i create a new page a redirected my servlet to
welcome.jsp.

.
Well this page was displayed with Hello World.

Since my server side pages has following code:

  




From:${ms.from}
Subject:${ms.subject}
Sent Date:${ms.sentDate}







The forEach Part has a problem. do you see anything wrong with it. Coz
on the desktop browser the result is show as desired. But on emulator
not working


On Jan 9, 10:56 am, Robin Thapa  wrote:
> Has anyone encountered such problems.
>
> On Jan 9, 10:31 am, Robin Thapa  wrote:
>
>
>
>
>
>
>
> > It's simply a white blank page no nothing in it.
>
> > On Jan 9, 10:27 am, Michael Banzon  wrote:
>
> > > On Mon, Jan 9, 2012 at 6:23 AM, Robinns  wrote:
> > > > No, its not a server side problem, in my desktop browser with the jstl 
> > > > i see
> > > > the content as desired. But on the emulator with jstl tags i see a blank
> > > > page.
>
> > > How does the page look in the browser on the emulator?
>
> > > --
> > > Michael Banzonhttp://michaelbanzon.com/

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


[android-developers] Re: Android packet sniffer

2012-01-08 Thread blunden
Since you are going the root approach (don't know of any other way)
you could probably just compile tcpdump for the device, which has been
done successfully before, and then use the pcap files it produces.
That way the user can also easily examine the dumps in Wireshark or
similar programs. You need to use a separate process anyway since
Superuser.apk grants you permission to spawn a process as root, it
doesn't give your app root permissions.

On 3 Jan, 13:16, faraz ali  wrote:
> Hi All
> i am new to android development. how i can make an app which can sniff
> the packets on the network and how i can provide root permission to
> this app to run on android tablet.

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


[android-developers] Re: Android Contact

2012-01-08 Thread blunden
You can check how this was done in CyanogenMod (the gingerbread
branch). Other than that, the documentation should hopefully be able
to provide som insight.

On 5 Jan, 14:30, TreKing  wrote:
> On Wed, Jan 4, 2012 at 11:47 PM, Krishnamoorthy Paavadai <
>
> krishnamoor...@inoesis.com> wrote:
> > I m a beginner to android ..
> > i would like to add birthday column in android contact...kindly
> > suggest to me...
>
> I suggest you read the documentation, try something, then come back with a
> better question.
>
> -
> TreKing  - Chicago
> transit tracking app for Android-powered devices

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


[android-developers] Re: Giving away my book: "Genius Android Marketing"

2012-01-08 Thread blunden
Judging by the description is sounds like a good book. Anything that
increases interest in the platform is a win from the way I see it.

On 5 Jan, 18:23, Oli Wright  wrote:
> Looks interesting.  For those that don't have a lot of time to put into
> this research themselves it's always good to be able to learn from someone
> else who has done the legwork!

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


[android-developers] Re: Gallery Intent to pick image --- Picasa-based images are invalid (Android 4.0+)

2012-01-08 Thread John
I can confirm having this same bug only with picasa images on
Honeycomb and ICS.

Code:

file = new File(getPath(intent.getData()));

java.lang.RuntimeException: Failure delivering result
ResultInfo{who=null, request=1, result=-1, data=Intent { dat=content://
com.google.android.gallery3d.provider/picasa/item/
5685218575016337410 }} to activity {MyActivity}:
java.lang.NullPointerException
at android.app.ActivityThread.deliverResults(ActivityThread.java:
2976)
at android.app.ActivityThread.handleSendResult(ActivityThread.java:
3019)
at android.app.ActivityThread.access$1100(ActivityThread.java:122)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:
1176)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:4340)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:784)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.NullPointerException
at java.io.File.fixSlashes(File.java:185)
at java.io.File.(File.java:134)
at MyActivity.onActivityResult(MyActivity.java:184)
at android.app.Activity.dispatchActivityResult(Activity.java:4649)
at android.app.ActivityThread.deliverResults(ActivityThread.java:
2972)
... 11 more
java.lang.NullPointerException
at java.io.File.fixSlashes(File.java:185)
at java.io.File.(File.java:134)
at MyActivity.onActivityResult(MyActivity.java:184)
at android.app.Activity.dispatchActivityResult(Activity.java:4649)
at android.app.ActivityThread.deliverResults(ActivityThread.java:
2972)
at android.app.ActivityThread.handleSendResult(ActivityThread.java:
3019)
at android.app.ActivityThread.access$1100(ActivityThread.java:122)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:
1176)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:4340)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:784)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
at dalvik.system.NativeStart.main(Native Method)

Andrew wrote:
> Hello,
>
> I'm trying to launch a Gallery Intent to allow the user to select an
> image. The issue is that the code works on 2.x but fails occasionally
> on 4.x (I haven't tested 3.x). I've narrowed it down to issues
> specific to Picasa-sourced images. For example, from my google+ posts
> (still in the Gallery app).
>
> The problematic URI is "content://
> com.google.android.gallery3d.provider/picasa/item/".
> Attempting to retrieve the image local path gives me the error : "W/
> GalleryProvider( 8091): unsupported column: _data"
>
> My code is below:
>
> Intent photoPickerIntent = new Intent(Intent.ACTION_PICK);
> photoPickerIntent.setType("image/*");
> startActivityForResult(photoPickerIntent, PROFILE_PIC_RESULT);
>
> and then in onActivityResult(int requestcode, int resultcode, Intent
> data) :
>
> if(requestCode == PROFILE_PIC_RESULT && resultCode == RESULT_OK){
>Uri selectedImage = data.getData();
>  String[] filePathColumn = {MediaStore.Images.Media.DATA};
>Cursor cursor = getContentResolver().query(selectedImage,
> filePathColumn, null, null, null);
>cursor.moveToFirst();
>
>  int columnIndex =
> cursor.getColumnIndexOrThrow(filePathColumn[0]);
>String filePath = cursor.getString(columnIndex);
> }
>
> In 2.x, filePath will contain a useful string. In 4.x, filePath is
> null on some images because of the issue noted above.
>
> I found a similar bug report that seems to be suffering from the above
> problem: http://code.google.com/p/android/issues/detail?id=21234
>
> Can anyone confirm? I might need to submit another bug report on this
> issue.. because it's frustrating that some images a user might pick
> will be invalid while others will be okay.

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


[android-developers] calling order of activities

2012-01-08 Thread Bill

0
down vote
favorite
share [fb]
share [tw]
i am writing a simple application which can press a previous/next
button to switch from one page to another.

I have a main activity and listen to a button. if it is press, then
trigger activity 2 to show page 2. when page 2 finish, it return to
main activity again, which will trigger activity 3 to show page 3.
when page 3 finish, it return to main activity again.

however, i found that it always show page 3 first and then page 2.
why? any hints are highly appreciated. Please also suggest if you have
other ways to do it. Thanks a lot.

=== simplified version ===

main.java

public class main extends Activity {
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.mainscr);

Button submitButton = (Button) findViewById(R.id.submit);

submitButton.setOnClickListener(new View.OnClickListener() {

public void onClick(View view) {
  start_act2();
  start_act3();
}
});
}

private void start_act2() {
Intent i = new Intent(this, act2.class);
startActivity(i);
}

private void start_act3() {
Intent i = new Intent(this, act3.class);
startActivity(i);
}

}


act2.java (page 2)
===
public class act2 extends Activity {
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.act2scr);

previousButton_act2.setOnClickListener(new View.OnClickListener()
{
public void onClick(View view) {
setResult(RESULT_OK);
finish();
}
});
nextButton_act2.setOnClickListener(new View.OnClickListener() {
public void onClick(View view) {
setResult(RESULT_OK);
finish();
}
});
}
}


act3.java (page3)
===

public class act3 extends Activity {
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.act3scr);

previousButton_act3.setOnClickListener(new View.OnClickListener()
{
public void onClick(View view) {
setResult(RESULT_OK);
finish();
}
});
nextButton_act3.setOnClickListener(new View.OnClickListener() {
public void onClick(View view) {
setResult(RESULT_OK);
finish();
}
});
}
}

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


[android-developers] How to set my application available to searchable items on device.

2012-01-08 Thread dinesh
Hi,


How to make my application available to Goolge Quick Search
Application.

Ex. Similar to Android Market ,Contants , Google Web.

For doing this,  my application will be available to Settings >
searchable items.


How to implement this one.





Regards,

dinesh

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


[android-developers] How do I add dictionaries to LatinIME in ICS (different from GB)?

2012-01-08 Thread blunden
Hi,

Since Eclair I've been using a custom dictionary for LatinIME as it
never included a Swedish dictionary. Getting it installed simply meant
building the binary .dict with makedict, put it in res/raw-sv and then
removing "sv" from the blacklist of unsupported languages in java/src/
com/android/inputmethod/latin/InputLanguageSelection.java. In 2.3.5
the blacklist was changed to a whitelist but other than that it was
the same.

Browsing through the source tree for ICS I noticed that the dictionary
format changed so I built the new makedict, rebuilt the main.dict file
without issues and put it in res/raw-sv as I can see from the stock
rom that it still uses that naming and location. The resulting
LatinIME.apk includes the dictionary file just fine but it doesn't
seem to actually load the new dictionary when I select Swedish in the
list of languages. I haven't found a similar blacklist/whitelist yet.
How can I enable the dictionary properly?



Slightly unrelated but I also decompiled LatinImeDictionaryPack.apk to
see how it handled installation of the dictionaries. It's the apk
providing the Add-on dictionaries option in the stock rom for the
Galaxy Nexus. In there I found that it downloaded a file called
metadata.json from gstatic.com contained links to the dictionaries.
Using a simple hosts entry I pointed pointed it to a modified
metadata.json and got it to show my dictionary in Settings. I had
trouble installing it though as it conflicted with the included old GB-
style included in the LatinIME.apk from the CM ICS tree. I didn't
pursue this further as it felt like the wrong approach considering
that apk isn't open source as far as I can see. (It would be nice to
see an open source implementation though but perhaps without the link
to the presumably licensed dictionaries. That way people interesting
in it could make their own repo for community made dictionaries.)

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


[android-developers] ACTION_POWER_CONNECTED broadcast receiver not recognize by ICS

2012-01-08 Thread cl
I wanted to detect when the phone is pluged into the charger.

I created a BroadcastReceiver as below

public class PowerReceiver extends BroadcastReceiver {
public void onReceive(Context context, Intent intent) {
if (intent.getAction().equals(Intent.ACTION_POWER_CONNECTED))
{
Log.d("DEBUG", "Power connected...");
}
}
}

with following in the manifest







Everything work as expected on 2.2 (emulator and phone), but on ICS
(emulator 4.0.3 and phone 4.0.1),
the LogCat show

01-08 21:02:02.090: W/PowerUI(143): unknown intent: Intent
{ act=android.intent.action.ACTION_POWER_CONNECTED flg=0x1010 }

Anybody know reason, and a solution. Thanks.

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


[android-developers] Installing SDK problems with eclipse

2012-01-08 Thread Corbin
I am trying to get the android SDK installed on my Windows 7 64-bit
machine. I have downloaded the SDK manager , JDK, and eclipse. I get
the folder with the eclipse in it on my machine I can open eclipse but
I cannot get the program to install on my machine.  I have the newest
SDK package on my machine but I can't get eclipse to install and work
with the SDK. I am experienced with c++ in MS Visual 2010. So this is
a new area for me to enter any help with this issue will be of great
help.

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


[android-developers] Re: Including libraries as JAR instead of Targeting Platform

2012-01-08 Thread blunden
Are you talking about jars in /system/framework on those devices? I
don't think those can be included on a per-app basis and I doubt you
are allowed to redistribute them in your app as they should be
considered proprietary.

If I misunderstood, please be more specific as to what files you try
to include and the path you are trying to put them in.

On 6 Jan, 06:16, Kevin Kowalewski  wrote:
> Hello,
>
> Many device manufacturers have separate libraries to help with the
> unique features of their phones. For example, HTC has their HTC Sense
> Target, where you can include HTC specific functionality within your
> Android application. Sharp for example makes a Sharp 3D target
> available which includes a library for enabling the 3D display on the
> handset. LG Does the same for their 3D handsets.
>
> For me, I can only get the Sharp and LG handsets to work when I build
> against its Android Target. When I try to include the stereo3dlcd.jar
> (on the Sharp for ex) file as a library, the application does not
> build and I get a "Class resolved by unexpected DEX" exception.
>
> I am not really sure on why... The folder that contains the libraries
> in Android's add-ons folder is fairly bare. There is some
> documentation, a hardware.ini and a manifest.ini.
>
> Including all of the libraries found in the lib folder does not help.
> So does anyone know how I can include these libraries in the APK
> without targeting this platform?
>
> sharp_addon_3_for_API8 kevin$ ls -al
> total 16
> drwxr-xr-x@  8 kevin  staff   272  5 Jan 23:50 .
> drwxr-x---@ 17 kevin  staff   578  5 Jan 23:54 ..
> drwxr-xr-x@  3 kevin  staff   102 20 Jan  2011 docs_en
> drwxr-xr-x@  3 kevin  staff   102 20 Jan  2011 docs_ja
> -rwxr-xr-x@  1 kevin  staff   197 18 Jan  2011 hardware.ini
> drwxr-xr-x@  6 kevin  staff   204 20 Jan  2011 images
> drwxr-xr-x@  6 kevin  staff   204 20 Jan  2011 libs
> -rwxr-xr-x   1 kevin  staff  1050 18 Jan  2011 manifest.ini

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


[android-developers] Firewall kind of application (Restrict app download and website surfing)

2012-01-08 Thread Ankit
Hi All,

I am currently working on firewall kind of application for
organization where i need to implement 2 major things:

-Restrict few categories apps like games & etc from Android Market
-Restrict websites on browsers installed on device

For better understanding this application will be installed on devices
and those device will be given to employees from employer to restrict
the unnecessary usage.

I tried searching on above topics on internet but i haven't found any
single topic or i couldn't.

Please guide me from where i can start.

Thanks in advance.

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


[android-developers] Power harvesting in Accessory mode

2012-01-08 Thread Alex O.
Hi all,

We are interested in developing an USB dongle for Android devices. We
consider implementing the Open Accessory protocol for the dongle, so
it would work with both tablets and phones, without changes in the
kernel for the Android device.

However, if I understand this correctly, the dongle would need to have
its own power source and provide 500mA at 5V for charging power. Is
there any way to make this dongle without its own power source?

Thank you,
Alex

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


[android-developers] Re: emulator: WARNING: Unable to create sensors port: Unknown error

2012-01-08 Thread wasder
Take the comma out of the string so that
   tv.setText("Hello, Android");
becomes
   tv.setText("Hello Android");

On Jan 3, 6:00 pm, OpaSmurf  wrote:
> I got past the emulator warning by building from the command line but
> the page at:http://guide/developing/building/building-cmdline.html
> fails to load so finding the correct commands to issue is a
> challenge.
>
> I have twice built/installed the project but have beenunableto
> restart.
>
> Perhaps this will be helpful:
>
> opa@opa-desktop:~$ android -vcreateproject -n HelloAndroid2 -t 1 -k
> my.namespace4 -a  HelloAndroid2activity -p workspace2/HelloAndroid2
> #Edit created starup as per:http://developer.android.com/resources/
> tutorials/hello-world.html
> opa@opa-desktop:~/workspace2/HelloAndroid2$ ant debug
> opa@opa-desktop:~/workspace2/HelloAndroid2$ android avd &
> #Create, select, start, and launch avd (android virtual device)
> opa@opa-desktop:~/android-sdk-linux/platform-tools$ adb install ~/
> workspace2/HelloAndroid2/bin/HelloAndroid2-debug.apk
>
> On Jan 1, 10:25 am, Janish Aggarwal  wrote:
>
>
>
> > I am also getting the same response.Unableto run the code. Please
> > help anyone!- Hide quoted text -
>
> - Show quoted text -

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


[android-developers] cannot install ADT Plugin

2012-01-08 Thread Corbin
I have gotten eclipse running on my machine. I have downloaded the zip
folder with the ADT plugin and I have followed the developer
instructions for installing the plugin. Eclipse is saying the files
cannot be found because they cannot be found ? Do I need to place them
in a specific directory ? Is their another method to install the
plugin ?

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


[android-developers] Running Android SDK install issue

2012-01-08 Thread Freds
Hi,

I've been trying to install the (installer_r16-windows.exe) the last
two days, however it constantly refuses to run the install for some
odd reason.

Recieving this error message > "A referral was returned from the
server." - See pic (Language = Swedish)

http://oi40.tinypic.com/35jz9dy.jpg

Tried to run it as administrator etc, but the outcome is the same.

Any ideas on how I should get the install to run?

Thanks // Fredde.


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


[android-developers] Memory or native heap limit for apps

2012-01-08 Thread edlothiolon

Hi,

we are developing an OpenGl Android game in Java.
Currently we are facing OutOfMemoryErrors, while we are loading the data
and allocating direct ByteBuffers.
We have read alot on contradictory statements about the limitations of the
native heap,if there's a hard limit or not for the native heap and/or the
overallprocess heap.
Maybe some of you can help out with some clarification on these specifics.
Is there a difference concerning the memory limits for JNI native memory
usage in a Java-App and a pure NDK app?

Are there possibilities to circumvent these limitations, that are
performing faster than e.g. mmapped files? It is very
hard, if not impossible to handle all our data within a 24MB limit, e.g.
textures aren't present for most of our objects yet.

Some more details:
As for textures and geometry data we use direct buffers, they contain
the most data of the application. So our memory footprint roughly looks
like this:
5mb vm-heap used
5mb vm-heap fre
17mb native heap used

Thanks in advance,
Flo

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


[android-developers] Re: SDK 4.0 and physical device

2012-01-08 Thread blunden
I assume you are talking about ADB. You didn't mention what platform
you are running however. If it's Linux you probably either have to run
adb as root or add the appropriate udev rules for your devices. If
it's Windows you need to install ADB drivers. These can either be
gotten from the manufacturer or if they haven't been released you can
modify android_winusb.inf that is part of the driver you download from
the SDK Manager. You need to add the Hardware ID under the approriate
sections. They can be gotten through Device Manager. Below is an
example for the Galaxy Nexus that I made for my own use.

;Google GalaxyNexus
%SingleBootLoaderInterface% = USB_Install, USB\VID_18D1&PID_4E30
%SingleBootLoaderInterface% = USB_Install, USB
\VID_18D1&PID_4E30&MI_01
%SingleBootLoaderInterface% = USB_Install, USB
\VID_18D1&PID_D001&REV_0216
%CompositeAdbInterface% = USB_Install, USB\VID_04E8&PID_6860&MI_01
%CompositeAdbInterface% = USB_Install, USB
\VID_04E8&PID_6860&REV_0216&MI_01

On 2 Jan, 23:55, niksbin  wrote:
> Hi Everyone,
>
> I am getting started with the new SDK 4.0.  I have everything set up
> for development, but I cannot connect a device to the PC via USB.  I
> am trying to get it to work with HTC Rezound (v2.3.5), XYBoard 10.1
> tablet (v3.2), and Galaxy Nexus 16GB (v4.0.2) devices.  But I think I
> am missing something.
>
> Can someone please help me?
>
> Your support is greatly appreciated.
>
> Thanks.
>
> Sincerely,
> Nikhil

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


[android-developers] Re: Giving away my book: "Genius Android Marketing"

2012-01-08 Thread Doyle Young
Add me to the list!

On Jan 5, 12:50 pm, scp89  wrote:
> I've recently finished writing the first full-length, android-specific
> book on Android Marketing. It covers tips, tricks, strategies,
> competitive analysis, and so much more. Everything I've learned in 2
> years selling android apps, I've put into this book. It is available
> via e-book OR softcover:
>
> E-book:http://www.amazon.com/Genius-Android-Marketing-Outsmarting-ebook/dp/B...
>
> Softcover:http://www.amazon.com/Genius-Android-Marketing-Outsmarting-Market/dp/...
>
> GIVEAWAY: I am giving away 3 PDF copies of the book to readers! Simply
> reply to this thread, and 1 week from today I will randomly select 3
> members and PM you a link to your free download of the 130 page book.

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


[android-developers] logcat truncates long lines - increase max entry/max payload

2012-01-08 Thread Alex
Hi,
is there a way to increase the maximal line length? It seems like
logcat truncates very long log messages.
Is there a way to increase 'max entry' and 'max payload' size?

adb logcat -g
ring buffer is 64Kb (63Kb consumed), max entry is 20480b, max payload
is 20460b

Kind regards,
Alex

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


[android-developers] Problem with Eclips

2012-01-08 Thread Abu Wajeeh
Hi Every One I Want Your Help ,I'am new in android and i face problem
it seems to me when I create project using eclipse and want to open
the src dir and open the activity code the response of programme is
too slow and eventually it will close and beside to this when i want
to open the XMLFile inside the main projects files it gives me an
Exception Event loop
so any suggestion please

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


[android-developers] Map turns black on resume

2012-01-08 Thread googelybear
Hi all,

I created a Map Fragment using the approach from comment #29 in
http://code.google.com/p/android/issues/detail?id=15347#c29 - which
basically means putting the MapActivity in a TabHost.
Now I have the problem that initially the map is displayed correctly,
but when I navigate away from the map and come back the map is
entirely black.

Does anyone know what to do in such a case or had a similar problem
already?
I know I could wait for the official MapFragment but due to the
release schedule this is not possible.

thanks for all suggestions,

Mike

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


Re: [android-developers] Fwd: logo

2012-01-08 Thread Abu Bakar Sadeeq
combination of black and off white is enough i think.

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

  1   2   >