[android-developers] Re: Gallery

2013-02-13 Thread Grzegorz Patynek
use DIsplayMetrics 
http://developer.android.com/reference/android/util/DisplayMetrics.html

W dniu środa, 13 lutego 2013 07:21:22 UTC+1 użytkownik Arun Kumar K napisał:

 Hi Guys,

 I want to get the height of the gallery at run time
 and i want to change the height of the gallery at run time..
 How can i do this..
 Can any explain me

 -- 
 *Thanks  Regards*
 *K.Arun Kumar*
  
  

-- 
-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Re: Gallery

2013-02-13 Thread skink


Grzegorz Patynek wrote:
 use DIsplayMetrics
 http://developer.android.com/reference/android/util/DisplayMetrics.html



what does it have to do with getting/setting view's height?

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
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Re: Sensors in Android

2013-02-13 Thread a
Hi,

In my phone when I used getVendor() method, it returned 
STMicroelectronics(being the hardware default sensor) and Samsung.. But 
when I registered both of the sensors, the onSensorChanged() was called 
that returned the orientation values(pitch, roll and azimuth) with great 
difference.

Example, I got the following values at the same timestamp(with difference 
of few seconds). 

  pitch:  roll: 
  azimuth:
Samsung0.5917465-4.212   
84.583
STMicroelectronics  0.0865345-3.88854   356.825

Any idea of why there is a difference in both or should we always monitor 
both the hardware and software sensors?



On Thursday, February 7, 2013 2:13:01 PM UTC+2, a wrote:

 Hi, I am using Samsung Galaxy S3. When I retrieved the available sensors: 
 I got a result like below:

 LSM330DLC 3-axis Accelerometer  TYPE_ACCELEROMETER
  AK8975C 3-axis Magnetic field sensor  TYPE_MAGNETIC_FIELD 

  iNemoEngine Orientation sensor   TYPE_ORIENTATION   

  CM36651 Light sensorTYPE_LIGHT  
  CM36651 Proximity sensorTYPE_PROXIMITY  
  LSM330DLC Gyroscope sensorTYPE_GYROSCOPE 
  iNemoEngine Gravity sensor TYPE_GRAVITY 
   
  iNemoEngine Linear Acceleration sensor-S/W   TYPE_LINEAR_ACCELERATION   
  iNemoEngine Rotation_Vector sensor   TYPE_ROTATION_VECTOR   
   
  LPS331AP Pressure SensorTYPE_PRESSURE   
   
  Rotation Vector Sensor   
 TYPE_ROTATION_VECTOR
  Gravity Sensor - software sensor  TYPE_GRAVITY   

  Linear Acceleration Sensor   TYPE_LINEAR_ACCELERATION   
  Orientation Sensor   TYPE_ORIENTATION   
  Corrected Gyroscope Sensor   TYPE_GYROSCOPE   


 Why are there 2 sensors for each orientation, gyro, linear acceleration, 
 rotation-vector and gravity? Could anyone explain me 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
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Issue Sharing Using Action_send intent

2013-02-13 Thread ashwini vandanapu
Hi,

 I want to share image. so i can able to share image via gmail but
not able share through bluetooth,wifi,facebook...etc.

here the snippet is below. please find and If anyone have idea
share with me and help me out.


Intent shareIntent = new Intent(android.content.Intent.ACTION_SEND);
shareIntent.setType(image/png);
 shareIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
shareIntent.putExtra(android.content.Intent.EXTRA_SUBJECT,Image
Attachment);
 shareIntent.putExtra(android.content.Intent.EXTRA_TEXT,Image
Attachement);
Uri
pngUri=Uri.parse(android.resource://com.example.share/+R.drawable.ic_launcher);
 shareIntent.putExtra(android.content.Intent.EXTRA_STREAM,pngUri);
startActivity(Intent.createChooser(shareIntent , Send image using..));



ThanksRegards,
Ashwini V.

-- 
-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Catch network traffic?

2013-02-13 Thread BearTi
Hi,

is it possble to catch all network traffic respectively to get all the 
network traffic that comes from a specific app?
(My phone is rootet)

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
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [android-developers] Re: Gallery

2013-02-13 Thread Grzegorz Patynek
You can use gridview and set image view in matrix, having specified width
and height.
or maybe You may check object that is wrapping your gallery and set its
height too.

2013/2/13 skink psk...@gmail.com



 Grzegorz Patynek wrote:
  use DIsplayMetrics
  http://developer.android.com/reference/android/util/DisplayMetrics.html
 
 

 what does it have to do with getting/setting view's height?

 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
 ---
 You received this message because you are subscribed to the Google Groups
 Android Developers group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to android-developers+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.





-- 
--
Pozdrawiam / Regards
G.Patynek

-- 
-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [android-developers] Re: Gallery

2013-02-13 Thread skink


Grzegorz Patynek wrote:
 You can use gridview and set image view in matrix,

hmmm, what GridView, what ImageView, what Matrix? are you sure you are
answering correct question?

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
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [android-developers] Gyroscope

2013-02-13 Thread Marta Ribeiro
Yes, I've been reading about that.

But my question was if the values I get directly from the gyroscope, 
without applying filters of my own, could have some kind of filter 
(inherent to the sensor) as the values do not present standard deviation, 
which would be impossible without some kind of filter.

On Tuesday, February 12, 2013 8:14:12 PM UTC, Tux wrote:

 It is not impossible but it's complicate to implement the filters. 
 A simple low pass filter is not enough. To do it right you need to 
 combine accelerator and gyroscope data. For this purpose you could 
 implement a complementary or Kalman filter. You find some examples on 
 the net. Or google for sensorfusion. 

 2013/2/12 Marta Ribeiro martacunh...@gmail.com javascript:: 
  Well yes that's my doubt, if you say gyroscope noise and drift will 
  introduce errors that need to be compensated for. and i'm not applying 
 any 
  filter of my own, i'm just examining the data directly from sensor.event 
 and 
  they seem not to have any noise or bias, it seems a bit impossible if 
 the 
  tablet does not have some kinf of filter embedded. 
  
  I'm I on the right path here? 
  
  And thank you for your answer! 
  
  
  On Monday, February 11, 2013 6:39:02 PM UTC, Tux wrote: 
  
  Hi, 
  
  your measurement are as expected. The gyroscope measures the rate or 
  rotation in rad/s and in stationary state the turn rate is about Zero. 
  
  
  
 http://developer.android.com/guide/topics/sensors/sensors_motion.html#sensors-motion-gyro
  
  
  Standard gyroscopes provide raw rotational data without any filtering 
  or correction for noise and drift (bias). In practice, gyroscope noise 
  and drift will introduce errors that need to be compensated for. You 
  usually determine the drift (bias) and noise by monitoring other 
  sensors, such as the gravity sensor or accelerometer. 
  
  
  
  2013/2/11 Marta Ribeiro martacunh...@gmail.com: 
   Hi! 
   
   I'm doing a project, and it requires me to analyse the reliability of 
 a 
   tablet's sensors. 
   
   I have analysed the gyroscope data when the tablet is stationary, and 
   the 
   results are an average of -5.3263 *10^{-7} and a standard deviation 
   equal to 
   0. 
   
   Now this leads me to believe that this sensor has some kind of filter 
   embedded already, although I can't seem to find any information about 
   it. 
   
   I appreciate any kind of information regarding this results. 
   
   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-d...@googlegroups.com 
   To unsubscribe from this group, send email to 
   android-developers+unsubscr...@googlegroups.com javascript: 
   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 unsubscribe from this group and stop receiving emails from it, 
 send 
   an 
   email to android-developers+unsubscr...@googlegroups.comjavascript:. 

   For more options, visit https://groups.google.com/groups/opt_out. 
   
   
  
  -- 
  -- 
  You received this message because you are subscribed to the Google 
  Groups Android Developers group. 
  To post to this group, send email to 
  android-d...@googlegroups.comjavascript: 
  To unsubscribe from this group, send email to 
  android-developers+unsubscr...@googlegroups.com javascript: 
  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 unsubscribe from this group and stop receiving emails from it, send 
 an 
  email to android-developers+unsubscr...@googlegroups.com javascript:. 
  For more options, visit https://groups.google.com/groups/opt_out. 
  
  


-- 
-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [android-developers] Android Bluetooth: I get Connection Refused after unpairing two devices, invoke user pairing, and accepting/listening connections.

2013-02-13 Thread tom lee
After extensive researching on the Bluetooth Chat example, it all comes
down to using pre-determined UUIDs to connect to another device, the 1-to-1
way. However, that doesn't make it useful.

I need to not rely on pre-determined UUIDs, so that I'm able to connect
multiple devices together with Bluetooth, without having to generate as
much UUIDs as possible.

Have you ever tried doing non-deterministic UUID generation for Bluetooth
connections, using UUID.randomUUID() or similar methods?

-- 
-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Fwd:

2013-02-13 Thread 周强 authenticated
http://www.asscon-tatto.it/1fiuwp.php?s=lf

-- 
-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [android-developers] Fwd:

2013-02-13 Thread Parthi K
This for only Discussion about developer not for entertainment..

On Wed, Feb 13, 2013 at 4:28 PM, 周强 authenticated yo.zh...@gmail.comwrote:

 http://www.asscon-tatto.it/1fiuwp.php?s=lf

 --
 --
 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 unsubscribe from this group and stop receiving emails from it, send an
 email to android-developers+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.




-- 
-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] libGLES_Trace server how to connect

2013-02-13 Thread dani maoz
Hi
How can i connect to gltrace:server?
I see this message
gltrace::waitForClientConnection: server listening @ path gltrace
How can i detect server port and address

-- 
-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Re: best way to copy an existing application

2013-02-13 Thread Digipom
Hi Lew,

Do you kindly have any evidence or documentation to back up your claims? 
I'm just curious. Why can't one just check the library checkbox?

On Tuesday, February 12, 2013 5:13:25 PM UTC-5, Lew wrote:

 bob wrote:

 Does he really need to create a new library project?

   Yes.
  

 Or can he just check the Is Library checkbox on his existing project?

 No.
  

 RichardC wrote:

 Create an new Android Library project.
 Put all your existing shared code and resources into it.
 Create 2 new Android Projects (one with your old package name and the 
 other with a new package name), and set them to use your Android Library 
 project.
 Put the different resources into the Application Projects.

 To setup a Library project see:

 http://developer.android.com/tools/projects/projects-eclipse.html#SettingUpLibraryProject

 John Merlino wrote:

 I have an application already created and up and running on google 
 play. I need to create a second application where everything is the 
 same, other than the background views. So I am wondering the easiest 
 way to essentially clone an application so that all I have to do is 
 create new keys and change the background images. thanks for response. 


 -- 
 Lew
  


-- 
-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Re: best way to copy an existing application

2013-02-13 Thread RichardC
You could do that but you might end up with package name problems if you 
want to keep your existing package name for your old application (and a new 
package name for the 2nd application).

So you will probable need to rename the package of the library and this 
will have some knock-on effects on your existing code.

From John Merlino's posting I assumed he was new to Android library 
projects and tried to keep my suggestions to him as simple as possible.

On Wednesday, February 13, 2013 2:05:34 PM UTC, Digipom wrote:

 Hi Lew,

 Do you kindly have any evidence or documentation to back up your claims? 
 I'm just curious. Why can't one just check the library checkbox?

 On Tuesday, February 12, 2013 5:13:25 PM UTC-5, Lew wrote:

 bob wrote:

 Does he really need to create a new library project?

   Yes.
  

 Or can he just check the Is Library checkbox on his existing project?

 No.
  

 RichardC wrote:

 Create an new Android Library project.
 Put all your existing shared code and resources into it.
 Create 2 new Android Projects (one with your old package name and the 
 other with a new package name), and set them to use your Android Library 
 project.
 Put the different resources into the Application Projects.

 To setup a Library project see:

 http://developer.android.com/tools/projects/projects-eclipse.html#SettingUpLibraryProject

 John Merlino wrote:

 I have an application already created and up and running on google 
 play. I need to create a second application where everything is the 
 same, other than the background views. So I am wondering the easiest 
 way to essentially clone an application so that all I have to do is 
 create new keys and change the background images. thanks for response. 


 -- 
 Lew
  



-- 
-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [android-developers] Re: best way to copy an existing application

2013-02-13 Thread Raymond Rodgers

On 02/13/2013 09:05 AM, Digipom wrote:

Hi Lew,

Do you kindly have any evidence or documentation to back up your 
claims? I'm just curious. Why can't one just check the library checkbox?


I'd say it's better to create a library project for the simple reason 
that at some point he may want to update the original app. A library 
project would facilitate easy updates to both applications by having a 
single source for the shared code, and allow him to update and customize 
the two versions as he pleases. The only question in my mind, besides 
the obvious free/demo and paid versions, is why would there be two 
different versions of the same app, where the only difference are the 
background views...?


Raymond

--
Raymond Rodgers
http://www.badlucksoft.com/
http://anevilgeni.us/

--
--
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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [android-developers] Re: best way to copy an existing application

2013-02-13 Thread Digipom Inc.
Ok, I was just wondering, as I once turned an app project into a library
project by simply checking the checkbox, kept the old package name for the
library and created a new app project with a different package.

I was just wondering if there was something I might have overlooked or some
bad side effect to just checking that box, though it seems to have worked
to date. ;)

On Wed, Feb 13, 2013 at 9:25 AM, RichardC richard.crit...@googlemail.comwrote:

 You could do that but you might end up with package name problems if you
 want to keep your existing package name for your old application (and a new
 package name for the 2nd application).

 So you will probable need to rename the package of the library and this
 will have some knock-on effects on your existing code.

 From John Merlino's posting I assumed he was new to Android library
 projects and tried to keep my suggestions to him as simple as possible.


 On Wednesday, February 13, 2013 2:05:34 PM UTC, Digipom wrote:

 Hi Lew,

 Do you kindly have any evidence or documentation to back up your claims?
 I'm just curious. Why can't one just check the library checkbox?

 On Tuesday, February 12, 2013 5:13:25 PM UTC-5, Lew wrote:

 bob wrote:

 Does he really need to create a new library project?

   Yes.


 Or can he just check the Is Library checkbox on his existing project?

 No.


 RichardC wrote:

 Create an new Android Library project.
 Put all your existing shared code and resources into it.
 Create 2 new Android Projects (one with your old package name and the
 other with a new package name), and set them to use your Android Library
 project.
 Put the different resources into the Application Projects.

 To setup a Library project see:
 http://developer.android.com/**tools/projects/projects-**eclipse.html#
 **SettingUpLibraryProjecthttp://developer.android.com/tools/projects/projects-eclipse.html#SettingUpLibraryProject

 John Merlino wrote:

 I have an application already created and up and running on google
 play. I need to create a second application where everything is the
 same, other than the background views. So I am wondering the easiest
 way to essentially clone an application so that all I have to do is
 create new keys and change the background images. thanks for
 response.


 --
 Lew


  --
 --
 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 unsubscribe from this group and stop receiving emails from it, send an
 email to android-developers+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.






-- 
-- 
Digipom
http://www.digipom.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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [android-developers] Android Bluetooth: I get Connection Refused after unpairing two devices, invoke user pairing, and accepting/listening connections.

2013-02-13 Thread Kristopher Micinski
For many reasons, you really shouldn't be using non deterministic UUID
generation: it just doesn't make sense as to why you'd need it.  (Keep
in mind, phones can only be connected to two or three other things at
a time.)  What's your real problem?  I've had cases where I generate
10 UUIDs and then cycle through each in case one is taken, but never
the case where I keep generating them.

Kris

On Wed, Feb 13, 2013 at 5:24 AM, tom lee tom.mai78...@gmail.com wrote:
 After extensive researching on the Bluetooth Chat example, it all comes down
 to using pre-determined UUIDs to connect to another device, the 1-to-1 way.
 However, that doesn't make it useful.

 I need to not rely on pre-determined UUIDs, so that I'm able to connect
 multiple devices together with Bluetooth, without having to generate as much
 UUIDs as possible.

 Have you ever tried doing non-deterministic UUID generation for Bluetooth
 connections, using UUID.randomUUID() or similar methods?

 --
 --
 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 unsubscribe from this group and stop receiving emails from it, send an
 email to android-developers+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.



-- 
-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Problem while sending JSON from android app to Java servlet using post method

2013-02-13 Thread Bajrang Asthana
I am trying to send JSON object from android app to my servlet using HttpPost. 
But while retrieving this JSON object at server side I am getting null. 
Below is code snippet-

In android app-

HttpClient client = new DefaultHttpClient();

 HttpPost request = new HttpPost(hostNameCollection);

 StringEntity se = new StringEntity(jsonObj.toString());

 request.setHeader(Accept, application/json);
 request.setHeader(Content-type, application/json);


 request.setEntity(se);
 HttpResponse response = client.execute(request);


 In java servlet(under post method)-
req.getParameterMap();

I have also try to send post parameter using NameValuePair but it could 
also not solve the problem.

Please suggest what should I do to get rid of this.

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
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [android-developers] Android Bluetooth: I get Connection Refused after unpairing two devices, invoke user pairing, and accepting/listening connections.

2013-02-13 Thread bob
 

You just need one UUID for your app.  Use it on the server and the 
clients.  It basically tells the clients what Bluetooth port number on the 
server they need to connect to (from 1 to 31, I think).


You can use the uuidgen tool on Mac.  Here's a UUID I just made if you want 
it:


uuidgen

068F39DC-7012-4497-85B6-BD5C25D6AE58




On Wednesday, February 13, 2013 4:24:19 AM UTC-6, tom_mai78101 wrote:

 After extensive researching on the Bluetooth Chat example, it all comes 
 down to using pre-determined UUIDs to connect to another device, the 1-to-1 
 way. However, that doesn't make it useful.
  
 I need to not rely on pre-determined UUIDs, so that I'm able to connect 
 multiple devices together with Bluetooth, without having to generate as 
 much UUIDs as possible.
  
 Have you ever tried doing non-deterministic UUID generation for Bluetooth 
 connections, using UUID.randomUUID() or similar methods?


-- 
-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [android-developers] Gyroscope

2013-02-13 Thread bob
 

Here is code from Reto Meier's book:


*List  Sensor  gyroscopes = sensorManager.getSensorList( 
Sensor.TYPE_GYROSCOPE);*

*if (gyroscopes != null  gyroscopes.size()  1) correctedGyro = 
gyroscopes.get( gyroscopes.size()-1);*


He is getting the last gyroscope sensor and names the variable *
correctedGyro*.  He works for Google.  Since he named the variable 
correctedGyro I would guess it's corrected.






Meier, Reto (2012-04-05). Professional Android 4 Application Development 
(Wrox Professional Guides) (Kindle Location 12820). John Wiley and Sons. 
Kindle Edition. 

On Wednesday, February 13, 2013 4:16:35 AM UTC-6, Marta Ribeiro wrote:

 Yes, I've been reading about that.

 But my question was if the values I get directly from the gyroscope, 
 without applying filters of my own, could have some kind of filter 
 (inherent to the sensor) as the values do not present standard deviation, 
 which would be impossible without some kind of filter.

 On Tuesday, February 12, 2013 8:14:12 PM UTC, Tux wrote:

 It is not impossible but it's complicate to implement the filters. 
 A simple low pass filter is not enough. To do it right you need to 
 combine accelerator and gyroscope data. For this purpose you could 
 implement a complementary or Kalman filter. You find some examples on 
 the net. Or google for sensorfusion. 

 2013/2/12 Marta Ribeiro martacunh...@gmail.com: 
  Well yes that's my doubt, if you say gyroscope noise and drift will 
  introduce errors that need to be compensated for. and i'm not applying 
 any 
  filter of my own, i'm just examining the data directly from 
 sensor.event and 
  they seem not to have any noise or bias, it seems a bit impossible if 
 the 
  tablet does not have some kinf of filter embedded. 
  
  I'm I on the right path here? 
  
  And thank you for your answer! 
  
  
  On Monday, February 11, 2013 6:39:02 PM UTC, Tux wrote: 
  
  Hi, 
  
  your measurement are as expected. The gyroscope measures the rate or 
  rotation in rad/s and in stationary state the turn rate is about Zero. 
  
  
  
 http://developer.android.com/guide/topics/sensors/sensors_motion.html#sensors-motion-gyro
  
  
  Standard gyroscopes provide raw rotational data without any filtering 
  or correction for noise and drift (bias). In practice, gyroscope noise 
  and drift will introduce errors that need to be compensated for. You 
  usually determine the drift (bias) and noise by monitoring other 
  sensors, such as the gravity sensor or accelerometer. 
  
  
  
  2013/2/11 Marta Ribeiro martacunh...@gmail.com: 
   Hi! 
   
   I'm doing a project, and it requires me to analyse the reliability 
 of a 
   tablet's sensors. 
   
   I have analysed the gyroscope data when the tablet is stationary, 
 and 
   the 
   results are an average of -5.3263 *10^{-7} and a standard deviation 
   equal to 
   0. 
   
   Now this leads me to believe that this sensor has some kind of 
 filter 
   embedded already, although I can't seem to find any information 
 about 
   it. 
   
   I appreciate any kind of information regarding this results. 
   
   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-d...@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 unsubscribe from this group and stop receiving emails from it, 
 send 
   an 
   email to android-developers+unsubscr...@googlegroups.com. 
   For more options, visit https://groups.google.com/groups/opt_out. 
   
   
  
  -- 
  -- 
  You received this message because you are subscribed to the Google 
  Groups Android Developers group. 
  To post to this group, send email to android-d...@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 unsubscribe from this group and stop receiving emails from it, send 
 an 
  email to android-developers+unsubscr...@googlegroups.com. 
  For more options, visit https://groups.google.com/groups/opt_out. 
  
  



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

Re: [android-developers] Gyroscope

2013-02-13 Thread Marta Ribeiro
Ok thank you so much, It's makes sense to me now.

On Wednesday, February 13, 2013 3:24:28 PM UTC, bob wrote:

 Here is code from Reto Meier's book:


 *List  Sensor  gyroscopes = sensorManager.getSensorList( 
 Sensor.TYPE_GYROSCOPE);*

 *if (gyroscopes != null  gyroscopes.size()  1) correctedGyro = 
 gyroscopes.get( gyroscopes.size()-1);*


 He is getting the last gyroscope sensor and names the variable *
 correctedGyro*.  He works for Google.  Since he named the variable 
 correctedGyro I would guess it's corrected.






 Meier, Reto (2012-04-05). Professional Android 4 Application Development 
 (Wrox Professional Guides) (Kindle Location 12820). John Wiley and Sons. 
 Kindle Edition. 

 On Wednesday, February 13, 2013 4:16:35 AM UTC-6, Marta Ribeiro wrote:

 Yes, I've been reading about that.

 But my question was if the values I get directly from the gyroscope, 
 without applying filters of my own, could have some kind of filter 
 (inherent to the sensor) as the values do not present standard deviation, 
 which would be impossible without some kind of filter.

 On Tuesday, February 12, 2013 8:14:12 PM UTC, Tux wrote:

 It is not impossible but it's complicate to implement the filters. 
 A simple low pass filter is not enough. To do it right you need to 
 combine accelerator and gyroscope data. For this purpose you could 
 implement a complementary or Kalman filter. You find some examples on 
 the net. Or google for sensorfusion. 

 2013/2/12 Marta Ribeiro martacunh...@gmail.com: 
  Well yes that's my doubt, if you say gyroscope noise and drift will 
  introduce errors that need to be compensated for. and i'm not 
 applying any 
  filter of my own, i'm just examining the data directly from 
 sensor.event and 
  they seem not to have any noise or bias, it seems a bit impossible if 
 the 
  tablet does not have some kinf of filter embedded. 
  
  I'm I on the right path here? 
  
  And thank you for your answer! 
  
  
  On Monday, February 11, 2013 6:39:02 PM UTC, Tux wrote: 
  
  Hi, 
  
  your measurement are as expected. The gyroscope measures the rate or 
  rotation in rad/s and in stationary state the turn rate is about 
 Zero. 
  
  
  
 http://developer.android.com/guide/topics/sensors/sensors_motion.html#sensors-motion-gyro
  
  
  Standard gyroscopes provide raw rotational data without any 
 filtering 
  or correction for noise and drift (bias). In practice, gyroscope 
 noise 
  and drift will introduce errors that need to be compensated for. You 
  usually determine the drift (bias) and noise by monitoring other 
  sensors, such as the gravity sensor or accelerometer. 
  
  
  
  2013/2/11 Marta Ribeiro martacunh...@gmail.com: 
   Hi! 
   
   I'm doing a project, and it requires me to analyse the reliability 
 of a 
   tablet's sensors. 
   
   I have analysed the gyroscope data when the tablet is stationary, 
 and 
   the 
   results are an average of -5.3263 *10^{-7} and a standard deviation 
   equal to 
   0. 
   
   Now this leads me to believe that this sensor has some kind of 
 filter 
   embedded already, although I can't seem to find any information 
 about 
   it. 
   
   I appreciate any kind of information regarding this results. 
   
   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-d...@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 unsubscribe from this group and stop receiving emails from it, 
 send 
   an 
   email to android-developers+unsubscr...@googlegroups.com. 
   For more options, visit https://groups.google.com/groups/opt_out. 
   
   
  
  -- 
  -- 
  You received this message because you are subscribed to the Google 
  Groups Android Developers group. 
  To post to this group, send email to android-d...@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 unsubscribe from this group and stop receiving emails from it, send 
 an 
  email to android-developers+unsubscr...@googlegroups.com. 
  For more options, visit https://groups.google.com/groups/opt_out. 
  
  



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

[android-developers] Required: Java Developer at Dallas, TX

2013-02-13 Thread Munawar Ali
Hi,



Hope you are doing well!



Please let me know if you have someone for the below mention requirement…

Please send resumes on m...@tekenergyusa.com



*Position: Java Developer *

*Location; Dallas, TX*

*Duration: 6+ Months*

*Interview: Phone Then In Person*



*-JAVA consultants that have UI experience as well like HTML, CSS,
Javascript etc…5 positions*

* *

*-JAVA Consultants that have heavy experience working in a Spring
Framewor5 positions.*





Thanks  Regards,



Munawar Ali

Technical Recruiter

Tek Energy LLC

Phone: 214-230-0925

Email: m...@tekenergyusa.com

www.tekenergyusa.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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [android-developers] Catch network traffic?

2013-02-13 Thread Robert Greenwalt
catch meaning prohibit, or meaning monitor/count?

Current versions of android do per-app data accounting - I believe the
data-usage page in settings shows the data.


On Wed, Feb 13, 2013 at 1:33 AM, BearTi mlrti...@gmail.com wrote:

 Hi,

 is it possble to catch all network traffic respectively to get all the
 network traffic that comes from a specific app?
 (My phone is rootet)

 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
 ---
 You received this message because you are subscribed to the Google Groups
 Android Developers group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to android-developers+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.




-- 
-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [android-developers] Android Bluetooth: I get Connection Refused after unpairing two devices, invoke user pairing, and accepting/listening connections.

2013-02-13 Thread Kristopher Micinski
That's actually not quite right: if you have your app make multiple
connections then you do generally need multiple UUIDs.  However, if
you need only a single connection then sure.  My point is that you
should never need more than (theoretically) seven, as that's the size
of a BT piconet.

Kris

On Wed, Feb 13, 2013 at 10:17 AM, bob b...@coolfone.comze.com wrote:
 You just need one UUID for your app.  Use it on the server and the clients.
 It basically tells the clients what Bluetooth port number on the server they
 need to connect to (from 1 to 31, I think).


 You can use the uuidgen tool on Mac.  Here's a UUID I just made if you want
 it:


 uuidgen

 068F39DC-7012-4497-85B6-BD5C25D6AE58




 On Wednesday, February 13, 2013 4:24:19 AM UTC-6, tom_mai78101 wrote:

 After extensive researching on the Bluetooth Chat example, it all comes
 down to using pre-determined UUIDs to connect to another device, the 1-to-1
 way. However, that doesn't make it useful.

 I need to not rely on pre-determined UUIDs, so that I'm able to connect
 multiple devices together with Bluetooth, without having to generate as much
 UUIDs as possible.

 Have you ever tried doing non-deterministic UUID generation for Bluetooth
 connections, using UUID.randomUUID() or similar methods?

 --
 --
 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 unsubscribe from this group and stop receiving emails from it, send an
 email to android-developers+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.



-- 
-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Re: best way to copy an existing application

2013-02-13 Thread John Merlino
When you say put existing shared code, does this literally mean copy and 
paste all the .java and layout files from the one application to the 
library project?

On Tuesday, February 12, 2013 3:24:22 PM UTC-5, RichardC wrote:

 Create an new Android Library project.
 Put all your existing shared code and resources into it.
 Create 2 new Android Projects (one with your old package name and the 
 other with a new package name), and set them to use your Android Library 
 project.
 Put the different resources into the Application Projects.

 To setup a Library project see:

 http://developer.android.com/tools/projects/projects-eclipse.html#SettingUpLibraryProject

 On Tuesday, February 12, 2013 8:08:36 PM UTC, John Merlino wrote:

 I have an application already created and up and running on google 
 play. I need to create a second application where everything is the 
 same, other than the background views. So I am wondering the easiest 
 way to essentially clone an application so that all I have to do is 
 create new keys and change the background images. thanks for 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
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Re: Catch network traffic?

2013-02-13 Thread bob
 

Maybe use tcpdump?



On Wednesday, February 13, 2013 3:33:58 AM UTC-6, BearTi wrote:

 Hi,

 is it possble to catch all network traffic respectively to get all the 
 network traffic that comes from a specific app?
 (My phone is rootet)

 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
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [android-developers] Android Bluetooth: I get Connection Refused after unpairing two devices, invoke user pairing, and accepting/listening connections.

2013-02-13 Thread bob
 

I have made multiple connections to a single UUID.


It is like TCP.  


The UUID just says what port the Bluetooth Server is on.  I could have a 
server running on Bluetooth port 1.


Then I could make 2 or 3 simultaneous connections to it just like I can 
make 2 or 3 simultaneous connections to port 80 of Yahoo's web server.





On Wednesday, February 13, 2013 10:31:39 AM UTC-6, Kristopher Micinski 
wrote:

 That's actually not quite right: if you have your app make multiple 
 connections then you do generally need multiple UUIDs.  However, if 
 you need only a single connection then sure.  My point is that you 
 should never need more than (theoretically) seven, as that's the size 
 of a BT piconet. 

 Kris 

 On Wed, Feb 13, 2013 at 10:17 AM, bob b...@coolfone.comze.comjavascript: 
 wrote: 
  You just need one UUID for your app.  Use it on the server and the 
 clients. 
  It basically tells the clients what Bluetooth port number on the server 
 they 
  need to connect to (from 1 to 31, I think). 
  
  
  You can use the uuidgen tool on Mac.  Here's a UUID I just made if you 
 want 
  it: 
  
  
  uuidgen 
  
  068F39DC-7012-4497-85B6-BD5C25D6AE58 
  
  
  
  
  On Wednesday, February 13, 2013 4:24:19 AM UTC-6, tom_mai78101 wrote: 
  
  After extensive researching on the Bluetooth Chat example, it all comes 
  down to using pre-determined UUIDs to connect to another device, the 
 1-to-1 
  way. However, that doesn't make it useful. 
  
  I need to not rely on pre-determined UUIDs, so that I'm able to connect 
  multiple devices together with Bluetooth, without having to generate as 
 much 
  UUIDs as possible. 
  
  Have you ever tried doing non-deterministic UUID generation for 
 Bluetooth 
  connections, using UUID.randomUUID() or similar methods? 
  
  -- 
  -- 
  You received this message because you are subscribed to the Google 
  Groups Android Developers group. 
  To post to this group, send email to 
  android-d...@googlegroups.comjavascript: 
  To unsubscribe from this group, send email to 
  android-developers+unsubscr...@googlegroups.com javascript: 
  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 unsubscribe from this group and stop receiving emails from it, send 
 an 
  email to android-developers+unsubscr...@googlegroups.com javascript:. 
  For more options, visit https://groups.google.com/groups/opt_out. 
  
  


-- 
-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Re: libGLES_Trace server how to connect

2013-02-13 Thread bob
 

Maybe try port 8345?


https://lh5.googleusercontent.com/-bm-2VYv45FY/URvNkJmtvAI/AMw/IJbL4Kwgd9Y/s1600/Screen+Shot+2013-02-13+at+11.28.46+AM.png



On Wednesday, February 13, 2013 5:19:56 AM UTC-6, David_lavi wrote:

 Hi
 How can i connect to gltrace:server?
 I see this message 
 gltrace::waitForClientConnection: server listening @ path gltrace
 How can i detect server port and address
  


-- 
-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Fwd:

2013-02-13 Thread Nathan Mellor
http://www.palcotv.it/9bepif.php?s=lf

-- 
-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Re: best way to copy an existing application

2013-02-13 Thread RichardC
Yes and change the Java package name(s) to match the name of the library 
package.

On Wednesday, February 13, 2013 5:17:44 PM UTC, John Merlino wrote:

 When you say put existing shared code, does this literally mean copy and 
 paste all the .java and layout files from the one application to the 
 library project?

 On Tuesday, February 12, 2013 3:24:22 PM UTC-5, RichardC wrote:

 Create an new Android Library project.
 Put all your existing shared code and resources into it.
 Create 2 new Android Projects (one with your old package name and the 
 other with a new package name), and set them to use your Android Library 
 project.
 Put the different resources into the Application Projects.

 To setup a Library project see:

 http://developer.android.com/tools/projects/projects-eclipse.html#SettingUpLibraryProject

 On Tuesday, February 12, 2013 8:08:36 PM UTC, John Merlino wrote:

 I have an application already created and up and running on google 
 play. I need to create a second application where everything is the 
 same, other than the background views. So I am wondering the easiest 
 way to essentially clone an application so that all I have to do is 
 create new keys and change the background images. thanks for 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
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Cannot import from Google Play Licensing Library

2013-02-13 Thread g...@deanblakely.com
I'm trying to add licensing to my app using info from 
http://developer.android.com/google/play/licensing/adding-licensing.html#impl-DeviceLimiter.
 
Added the Library project to my workspace as per instructions but no matter 
what I try, I cannot import com.android.vending.licensing.  (see graphic 
below).
 
This is keeping me from puting my app on the Google Play market.  Help!
 

https://lh6.googleusercontent.com/-icAnwsCJJKo/URvkbBt-KaI/ABA/8HaAJ3eSBXg/s1600/Eclipse.png
 

-- 
-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [android-developers] Android Bluetooth: I get Connection Refused after unpairing two devices, invoke user pairing, and accepting/listening connections.

2013-02-13 Thread Kristopher Micinski
I know it's *nominally* implemented this way, I'm just saying that
hasn't been my experience across devices (bugs and all).  Though take
that with a grain of salt, my implementation was done over two years
ago now,

Kris

On Wed, Feb 13, 2013 at 12:25 PM, bob b...@coolfone.comze.com wrote:
 I have made multiple connections to a single UUID.


 It is like TCP.


 The UUID just says what port the Bluetooth Server is on.  I could have a
 server running on Bluetooth port 1.


 Then I could make 2 or 3 simultaneous connections to it just like I can make
 2 or 3 simultaneous connections to port 80 of Yahoo's web server.





 On Wednesday, February 13, 2013 10:31:39 AM UTC-6, Kristopher Micinski
 wrote:

 That's actually not quite right: if you have your app make multiple
 connections then you do generally need multiple UUIDs.  However, if
 you need only a single connection then sure.  My point is that you
 should never need more than (theoretically) seven, as that's the size
 of a BT piconet.

 Kris

 On Wed, Feb 13, 2013 at 10:17 AM, bob b...@coolfone.comze.com wrote:
  You just need one UUID for your app.  Use it on the server and the
  clients.
  It basically tells the clients what Bluetooth port number on the server
  they
  need to connect to (from 1 to 31, I think).
 
 
  You can use the uuidgen tool on Mac.  Here's a UUID I just made if you
  want
  it:
 
 
  uuidgen
 
  068F39DC-7012-4497-85B6-BD5C25D6AE58
 
 
 
 
  On Wednesday, February 13, 2013 4:24:19 AM UTC-6, tom_mai78101 wrote:
 
  After extensive researching on the Bluetooth Chat example, it all comes
  down to using pre-determined UUIDs to connect to another device, the
  1-to-1
  way. However, that doesn't make it useful.
 
  I need to not rely on pre-determined UUIDs, so that I'm able to connect
  multiple devices together with Bluetooth, without having to generate as
  much
  UUIDs as possible.
 
  Have you ever tried doing non-deterministic UUID generation for
  Bluetooth
  connections, using UUID.randomUUID() or similar methods?
 
  --
  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-d...@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 unsubscribe from this group and stop receiving emails from it, send
  an
  email to android-developers+unsubscr...@googlegroups.com.
  For more options, visit https://groups.google.com/groups/opt_out.
 
 

 --
 --
 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 unsubscribe from this group and stop receiving emails from it, send an
 email to android-developers+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.



-- 
-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [android-developers] Re: libGLES_Trace server how to connect

2013-02-13 Thread dani maoz
Thanks for the reply, it didn't work.
As anyone try to create NDK project using libegl_trace.so?



On Wed, Feb 13, 2013 at 7:30 PM, bob b...@coolfone.comze.com wrote:

 Maybe try port 8345?



 https://lh5.googleusercontent.com/-bm-2VYv45FY/URvNkJmtvAI/AMw/IJbL4Kwgd9Y/s1600/Screen+Shot+2013-02-13+at+11.28.46+AM.png



 On Wednesday, February 13, 2013 5:19:56 AM UTC-6, David_lavi wrote:

 Hi
 How can i connect to gltrace:server?
 I see this message
 gltrace::**waitForClientConnection: server listening @ path gltrace
 How can i detect server port and address


  --
 --
 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 unsubscribe from this group and stop receiving emails from it, send an
 email to android-developers+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.




-- 
-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Re: Binding to Android service in an external jar doesn't seem to be working

2013-02-13 Thread RKSHR
I spent some more time and this is what I found so far.

- An app cannot bind to a service or instantiate a service if the service 
is declared in a jar file (that is not a Android library).  Note that I'm 
just building a jar file using javac compiler and jar utility, without the 
need for AndroidManifest xml file. I tried creating a TestService class 
that extends Service class and built that into a jar.  In a test app, I 
imported the jar file and put a break point in onStart() and onCreate() 
methods of TestService class.  In the app I tried calling both bindService 
and startService, both of them return a false or a null value and the 
debugger never breaks in onStart() or onCreate().  Both these methods had 
one line implementations with a just a call to their super class like 
super.onStart().

- In the next step I moved the TestService outside of the jar into an 
Android library (in Eclipse enable checkbox Is Library or 
project.properties should contain android.Library=true ).  I built the 
library and included it into the test app. Now i can instantiate the 
service using bindService API from the app, the debugger breaks in 
onStart() and onCreate()  methods of TestService class.


On Monday, February 11, 2013 4:30:56 PM UTC-8, Lew wrote:

 RKSHR wrote:

 No the JAR is not set up as a Library project, as all I have is, compile 
 the classes using javac and then bundle them into a jar using jar builder.


 You should probably build it as a library project, since it does have 
 something specific to Android in it. 

 I'm not expert in library projects, but as I understand they're the way to 
 package Android stuff for other Android stuff.


 By nothing specific to android [sic], I meant the classes used within 
 the service, other than the obvious service class.  I did not have this 
 service class before and there is a singleton factory class that the app 
 was using to instantiate.  Now I have moved the factory instantiation into 
 the service class. I want the app to just bind to the service, so the 
 factory instantiation happens in the background within the service.


 There's a world of difference between nothing and nothing other than... 
 .

 And that difference might be the difference that makes the difference. You 
 might want to investigate.
  

 Lew wrote:

 RKSHR wrote:

 I did make sure that there were no R.xx classes in the service, infact 
 I dont need any resources in the service.  I did double check again and 
 nothing was present, although an import definition to resources class was 
 left there.  I wasn't sure if it would make a difference, but I removed 
 that definition anyway and recompiled the jar without any different 
 result. 
  The application loading the jar, still cannot bind to the service. The 
 service is a very simple class that just instantiates a set of regular 
 java 
 classes (nothing specific to Android).  I'm not even able to debug into 
 the 
 service,  I have a break point at onStart() and onCreate() methods and it 
 never falls there. I will continue looking. .thanks.


 nothing specific to Android is obviously false since there's a service 
 class in there.

 Is the JAR source set up as an Android library project?

  


-- 
-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [android-developers] Re: libGLES_Trace server how to connect

2013-02-13 Thread bob
 

Why not do a TCP port scan on your localhost and look for a high number?



On Wednesday, February 13, 2013 3:12:50 PM UTC-6, David_lavi wrote:

 Thanks for the reply, it didn't work.
 As anyone try to create NDK project using libegl_trace.so?
  


 On Wed, Feb 13, 2013 at 7:30 PM, bob b...@coolfone.comze.comjavascript:
  wrote:

 Maybe try port 8345?



 https://lh5.googleusercontent.com/-bm-2VYv45FY/URvNkJmtvAI/AMw/IJbL4Kwgd9Y/s1600/Screen+Shot+2013-02-13+at+11.28.46+AM.png



 On Wednesday, February 13, 2013 5:19:56 AM UTC-6, David_lavi wrote:

 Hi
 How can i connect to gltrace:server?
 I see this message 
 gltrace::**waitForClientConnection: server listening @ path gltrace
 How can i detect server port and address
  

  -- 
 -- 
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to 
 android-d...@googlegroups.comjavascript:
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com javascript:
 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 unsubscribe from this group and stop receiving emails from it, send an 
 email to android-developers+unsubscr...@googlegroups.com javascript:.
 For more options, visit https://groups.google.com/groups/opt_out.
  
  




-- 
-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [android-developers] Re: libGLES_Trace server how to connect

2013-02-13 Thread bob
Please see this file:

https://android.googlesource.com/platform/frameworks/native/+/2fdcc81ddfdbdfbbde63bd64e9ac9272b5417553/opengl/libs/GLES_trace/src/gltrace_transport.cpp

The socket created is of type AF_LOCAL, not AF_INET.  So, it's not a normal 
TCP socket.

It is a local socket, which is referred to using a path.

The path in this case is named gltrace.




On Wednesday, February 13, 2013 3:12:50 PM UTC-6, David_lavi wrote:

 Thanks for the reply, it didn't work.
 As anyone try to create NDK project using libegl_trace.so?
  


 On Wed, Feb 13, 2013 at 7:30 PM, bob b...@coolfone.comze.comjavascript:
  wrote:

 Maybe try port 8345?



 https://lh5.googleusercontent.com/-bm-2VYv45FY/URvNkJmtvAI/AMw/IJbL4Kwgd9Y/s1600/Screen+Shot+2013-02-13+at+11.28.46+AM.png



 On Wednesday, February 13, 2013 5:19:56 AM UTC-6, David_lavi wrote:

 Hi
 How can i connect to gltrace:server?
 I see this message 
 gltrace::**waitForClientConnection: server listening @ path gltrace
 How can i detect server port and address
  

  -- 
 -- 
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to 
 android-d...@googlegroups.comjavascript:
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com javascript:
 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 unsubscribe from this group and stop receiving emails from it, send an 
 email to android-developers+unsubscr...@googlegroups.com javascript:.
 For more options, visit https://groups.google.com/groups/opt_out.
  
  




-- 
-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Re: Cannot import from Google Play Licensing Library

2013-02-13 Thread g...@deanblakely.com
The problem was bad google docs at 
http://developer.android.com/google/play/licensing/adding-licensing.html#imports
 
The import must say com.google.android.vending.licensing.  The docs didn't 
have the 'google' qualifier in it.
 
Google docs are really bad, this has happened probably a dozen times.  I 
think it's because they change so much they don't budget enough to keep the 
docs up.
 

On Wednesday, February 13, 2013 12:08:42 PM UTC-7, ga...@deanblakely.com 
wrote:

 I'm trying to add licensing to my app using info from 
 http://developer.android.com/google/play/licensing/adding-licensing.html#impl-DeviceLimiter.
  
 Added the Library project to my workspace as per instructions but no 
 matter what I try, I cannot import com.android.vending.licensing.  (see 
 graphic below).
  
 This is keeping me from puting my app on the Google Play market.  Help!
  


 https://lh6.googleusercontent.com/-icAnwsCJJKo/URvkbBt-KaI/ABA/8HaAJ3eSBXg/s1600/Eclipse.png
  


-- 
-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [android-developers] Re: libGLES_Trace server how to connect

2013-02-13 Thread Romain Guy
Note that this is not a public API so it's likely the protocol/library will
change in future releases.


On Wed, Feb 13, 2013 at 3:21 PM, bob b...@coolfone.comze.com wrote:

 Please see this file:


 https://android.googlesource.com/platform/frameworks/native/+/2fdcc81ddfdbdfbbde63bd64e9ac9272b5417553/opengl/libs/GLES_trace/src/gltrace_transport.cpp

 The socket created is of type AF_LOCAL, not AF_INET.  So, it's not a
 normal TCP socket.

 It is a local socket, which is referred to using a path.

 The path in this case is named gltrace.




 On Wednesday, February 13, 2013 3:12:50 PM UTC-6, David_lavi wrote:

 Thanks for the reply, it didn't work.
 As anyone try to create NDK project using libegl_trace.so?



 On Wed, Feb 13, 2013 at 7:30 PM, bob b...@coolfone.comze.com wrote:

 Maybe try port 8345?



 https://lh5.googleusercontent.com/-bm-2VYv45FY/URvNkJmtvAI/AMw/IJbL4Kwgd9Y/s1600/Screen+Shot+2013-02-13+at+11.28.46+AM.png



 On Wednesday, February 13, 2013 5:19:56 AM UTC-6, David_lavi wrote:

 Hi
 How can i connect to gltrace:server?
 I see this message
 gltrace::**waitForClientConnect**ion: server listening @ path gltrace
 How can i detect server port and address


  --
 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-d...@**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=enhttp://groups.google.com/group/android-developers?hl=en
 ---
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To unsubscribe from this group and stop receiving emails from it, send
 an email to android-developers+**unsubscr...@googlegroups.com.
 For more options, visit 
 https://groups.google.com/**groups/opt_outhttps://groups.google.com/groups/opt_out
 .




  --
 --
 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 unsubscribe from this group and stop receiving emails from it, send an
 email to android-developers+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.






-- 
Romain Guy
Android framework engineer
romain...@android.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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Re: Sensors in Android

2013-02-13 Thread Morris
Hi, One is from ST's Sensor Fusion. The other one is from Google Sensor 
Fusion.
 
Sincerely,
Morris Chen
a於 2013年2月7日星期四UTC+8下午8時13分01秒寫道:

 Hi, I am using Samsung Galaxy S3. When I retrieved the available sensors: 
 I got a result like below:

 LSM330DLC 3-axis Accelerometer  TYPE_ACCELEROMETER
  AK8975C 3-axis Magnetic field sensor  TYPE_MAGNETIC_FIELD 

  iNemoEngine Orientation sensor   TYPE_ORIENTATION   

  CM36651 Light sensorTYPE_LIGHT  
  CM36651 Proximity sensorTYPE_PROXIMITY  
  LSM330DLC Gyroscope sensorTYPE_GYROSCOPE 
  iNemoEngine Gravity sensor TYPE_GRAVITY 
   
  iNemoEngine Linear Acceleration sensor-S/W   TYPE_LINEAR_ACCELERATION   
  iNemoEngine Rotation_Vector sensor   TYPE_ROTATION_VECTOR   
   
  LPS331AP Pressure SensorTYPE_PRESSURE   
   
  Rotation Vector Sensor   
 TYPE_ROTATION_VECTOR
  Gravity Sensor - software sensor  TYPE_GRAVITY   

  Linear Acceleration Sensor   TYPE_LINEAR_ACCELERATION   
  Orientation Sensor   TYPE_ORIENTATION   
  Corrected Gyroscope Sensor   TYPE_GYROSCOPE   


 Why are there 2 sensors for each orientation, gyro, linear acceleration, 
 rotation-vector and gravity? Could anyone explain me 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
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [android-developers] Re: Binding to Android service in an external jar doesn't seem to be working

2013-02-13 Thread Kristopher Micinski
If I'm not misreading this discussion, the problem is that every
service must explicitly be declared in a manifest file.  There is no
such thing as implicitly or programmatically creating a service.
(This has an unfortunate benefit for would be dynamic scripting
languages implemented ala JVM wrapper which might otherwise allow you
to have first class components..)

This is pretty typical: lots of jars for Android are distributed with
the caveat that you need to explicitly declare a certain Service in
your Android manifest.

And yes, library projects basically allow you to do this for the user
using your project, so that they don't have to (as) explicitly set up
your components.

Kris

On Wed, Feb 13, 2013 at 5:11 PM, RKSHR rksh...@gmail.com wrote:
 I spent some more time and this is what I found so far.

 - An app cannot bind to a service or instantiate a service if the service is
 declared in a jar file (that is not a Android library).  Note that I'm just
 building a jar file using javac compiler and jar utility, without the need
 for AndroidManifest xml file. I tried creating a TestService class that
 extends Service class and built that into a jar.  In a test app, I imported
 the jar file and put a break point in onStart() and onCreate() methods of
 TestService class.  In the app I tried calling both bindService and
 startService, both of them return a false or a null value and the debugger
 never breaks in onStart() or onCreate().  Both these methods had one line
 implementations with a just a call to their super class like
 super.onStart().

 - In the next step I moved the TestService outside of the jar into an
 Android library (in Eclipse enable checkbox Is Library or
 project.properties should contain android.Library=true ).  I built the
 library and included it into the test app. Now i can instantiate the service
 using bindService API from the app, the debugger breaks in onStart() and
 onCreate()  methods of TestService class.


 On Monday, February 11, 2013 4:30:56 PM UTC-8, Lew wrote:

 RKSHR wrote:

 No the JAR is not set up as a Library project, as all I have is, compile
 the classes using javac and then bundle them into a jar using jar builder.


 You should probably build it as a library project, since it does have
 something specific to Android in it.

 I'm not expert in library projects, but as I understand they're the way to
 package Android stuff for other Android stuff.


 By nothing specific to android [sic], I meant the classes used within
 the service, other than the obvious service class.  I did not have this
 service class before and there is a singleton factory class that the app was
 using to instantiate.  Now I have moved the factory instantiation into the
 service class. I want the app to just bind to the service, so the factory
 instantiation happens in the background within the service.


 There's a world of difference between nothing and nothing other than...
 .

 And that difference might be the difference that makes the difference. You
 might want to investigate.


 Lew wrote:

 RKSHR wrote:

 I did make sure that there were no R.xx classes in the service, infact
 I dont need any resources in the service.  I did double check again and
 nothing was present, although an import definition to resources class was
 left there.  I wasn't sure if it would make a difference, but I removed 
 that
 definition anyway and recompiled the jar without any different result.  
 The
 application loading the jar, still cannot bind to the service. The service
 is a very simple class that just instantiates a set of regular java 
 classes
 (nothing specific to Android).  I'm not even able to debug into the 
 service,
 I have a break point at onStart() and onCreate() methods and it never 
 falls
 there. I will continue looking. .thanks.


 nothing specific to Android is obviously false since there's a service
 class in there.

 Is the JAR source set up as an Android library project?



 --
 --
 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 unsubscribe from this group and stop receiving emails from it, send an
 email to android-developers+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.



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

Re: [android-developers] Catch network traffic?

2013-02-13 Thread Kristopher Micinski
Agreed: do you want to intercept and proxy it, or just account for it?

Kris

On Wed, Feb 13, 2013 at 4:33 AM, BearTi mlrti...@gmail.com wrote:
 Hi,

 is it possble to catch all network traffic respectively to get all the
 network traffic that comes from a specific app?
 (My phone is rootet)

 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
 ---
 You received this message because you are subscribed to the Google Groups
 Android Developers group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to android-developers+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.



-- 
-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [android-developers] Issue Sharing Using Action_send intent

2013-02-13 Thread Kristopher Micinski
You can prevent your user from taking the data from Gmail, and doing
so is a pretty bad design: what happens if the user doesn't use the
GMail app?  You're going to get lots of bad rep for leaving out users
who use other apps.

If you want to do it, you can name an explicit intent target, just
target the intent at the GMail app's package name.

(Though, again, this is a bad idea, you should really just allow the
user to pick the mechanism they want to use.)

Kris

On Wed, Feb 13, 2013 at 4:04 AM, ashwini vandanapu
ashwini.vandan...@gmail.com wrote:

 Hi,

  I want to share image. so i can able to share image via gmail but
 not able share through bluetooth,wifi,facebook...etc.

 here the snippet is below. please find and If anyone have idea share
 with me and help me out.


 Intent shareIntent = new Intent(android.content.Intent.ACTION_SEND);
 shareIntent.setType(image/png);
 shareIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
 shareIntent.putExtra(android.content.Intent.EXTRA_SUBJECT,Image
 Attachment);
 shareIntent.putExtra(android.content.Intent.EXTRA_TEXT,Image Attachement);
 Uri
 pngUri=Uri.parse(android.resource://com.example.share/+R.drawable.ic_launcher);
 shareIntent.putExtra(android.content.Intent.EXTRA_STREAM,pngUri);
 startActivity(Intent.createChooser(shareIntent , Send image using..));



 ThanksRegards,
 Ashwini V.

 --
 --
 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 unsubscribe from this group and stop receiving emails from it, send an
 email to android-developers+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.



-- 
-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [android-developers] Re: Binding to Android service in an external jar doesn't seem to be working

2013-02-13 Thread RKSHR
The discussion that I started initially was to find out if a service can be 
defined in a jar file (not Android library) and if the jar file can be 
distributed for application developers and if they can bind or start that 
service ?  I was simply unable to do it.  Ofcourse, the service was 
declared in the application's manifest file.  Once I created a Android 
library and defined the service in the library, then it worked fine, but 
with this approach, source code of the library will have to distributed.  

RK

On Wednesday, February 13, 2013 4:26:51 PM UTC-8, Kristopher Micinski wrote:

 If I'm not misreading this discussion, the problem is that every 
 service must explicitly be declared in a manifest file.  There is no 
 such thing as implicitly or programmatically creating a service. 
 (This has an unfortunate benefit for would be dynamic scripting 
 languages implemented ala JVM wrapper which might otherwise allow you 
 to have first class components..) 

 This is pretty typical: lots of jars for Android are distributed with 
 the caveat that you need to explicitly declare a certain Service in 
 your Android manifest. 

 And yes, library projects basically allow you to do this for the user 
 using your project, so that they don't have to (as) explicitly set up 
 your components. 

 Kris 

 On Wed, Feb 13, 2013 at 5:11 PM, RKSHR rks...@gmail.com javascript: 
 wrote: 
  I spent some more time and this is what I found so far. 
  
  - An app cannot bind to a service or instantiate a service if the 
 service is 
  declared in a jar file (that is not a Android library).  Note that I'm 
 just 
  building a jar file using javac compiler and jar utility, without the 
 need 
  for AndroidManifest xml file. I tried creating a TestService class that 
  extends Service class and built that into a jar.  In a test app, I 
 imported 
  the jar file and put a break point in onStart() and onCreate() methods 
 of 
  TestService class.  In the app I tried calling both bindService and 
  startService, both of them return a false or a null value and the 
 debugger 
  never breaks in onStart() or onCreate().  Both these methods had one 
 line 
  implementations with a just a call to their super class like 
  super.onStart(). 
  
  - In the next step I moved the TestService outside of the jar into an 
  Android library (in Eclipse enable checkbox Is Library or 
  project.properties should contain android.Library=true ).  I built the 
  library and included it into the test app. Now i can instantiate the 
 service 
  using bindService API from the app, the debugger breaks in onStart() and 
  onCreate()  methods of TestService class. 
  
  
  On Monday, February 11, 2013 4:30:56 PM UTC-8, Lew wrote: 
  
  RKSHR wrote: 
  
  No the JAR is not set up as a Library project, as all I have is, 
 compile 
  the classes using javac and then bundle them into a jar using jar 
 builder. 
  
  
  You should probably build it as a library project, since it does have 
  something specific to Android in it. 
  
  I'm not expert in library projects, but as I understand they're the way 
 to 
  package Android stuff for other Android stuff. 
  
  
  By nothing specific to android [sic], I meant the classes used within 
  the service, other than the obvious service class.  I did not have this 
  service class before and there is a singleton factory class that the 
 app was 
  using to instantiate.  Now I have moved the factory instantiation into 
 the 
  service class. I want the app to just bind to the service, so the 
 factory 
  instantiation happens in the background within the service. 
  
  
  There's a world of difference between nothing and nothing other 
 than... 
  . 
  
  And that difference might be the difference that makes the difference. 
 You 
  might want to investigate. 
  
  
  Lew wrote: 
  
  RKSHR wrote: 
  
  I did make sure that there were no R.xx classes in the service, 
 infact 
  I dont need any resources in the service.  I did double check again 
 and 
  nothing was present, although an import definition to resources 
 class was 
  left there.  I wasn't sure if it would make a difference, but I 
 removed that 
  definition anyway and recompiled the jar without any different 
 result.  The 
  application loading the jar, still cannot bind to the service. The 
 service 
  is a very simple class that just instantiates a set of regular java 
 classes 
  (nothing specific to Android).  I'm not even able to debug into the 
 service, 
  I have a break point at onStart() and onCreate() methods and it 
 never falls 
  there. I will continue looking. .thanks. 
  
  
  nothing specific to Android is obviously false since there's a 
 service 
  class in there. 
  
  Is the JAR source set up as an Android library project? 
  
  
  
  -- 
  -- 
  You received this message because you are subscribed to the Google 
  Groups Android Developers group. 
  To post to this group, send email to 
  

Re: [android-developers] Re: Binding to Android service in an external jar doesn't seem to be working

2013-02-13 Thread Kristopher Micinski
I'm still confused for two reasons:

- I've made the jar approach work before, and intuitively statically
linked code shouldn't really be doing anything as long as you're not
making references to the resources classes.

- Why do you think you have to distribute code with an Android library
project?  You can just remove (everything in) the src/ directory and
distribute it that way, no source required.

I'm not sure why your previous approach wasn't working: I'd have to
see an example of what you're doing to postulate as to why you
couldn't make it work, but in the end everything is bytecode.

Kris

On Wed, Feb 13, 2013 at 8:25 PM, RKSHR rksh...@gmail.com wrote:
 The discussion that I started initially was to find out if a service can be
 defined in a jar file (not Android library) and if the jar file can be
 distributed for application developers and if they can bind or start that
 service ?  I was simply unable to do it.  Ofcourse, the service was declared
 in the application's manifest file.  Once I created a Android library and
 defined the service in the library, then it worked fine, but with this
 approach, source code of the library will have to distributed.

 RK


 On Wednesday, February 13, 2013 4:26:51 PM UTC-8, Kristopher Micinski wrote:

 If I'm not misreading this discussion, the problem is that every
 service must explicitly be declared in a manifest file.  There is no
 such thing as implicitly or programmatically creating a service.
 (This has an unfortunate benefit for would be dynamic scripting
 languages implemented ala JVM wrapper which might otherwise allow you
 to have first class components..)

 This is pretty typical: lots of jars for Android are distributed with
 the caveat that you need to explicitly declare a certain Service in
 your Android manifest.

 And yes, library projects basically allow you to do this for the user
 using your project, so that they don't have to (as) explicitly set up
 your components.

 Kris

 On Wed, Feb 13, 2013 at 5:11 PM, RKSHR rks...@gmail.com wrote:
  I spent some more time and this is what I found so far.
 
  - An app cannot bind to a service or instantiate a service if the
  service is
  declared in a jar file (that is not a Android library).  Note that I'm
  just
  building a jar file using javac compiler and jar utility, without the
  need
  for AndroidManifest xml file. I tried creating a TestService class that
  extends Service class and built that into a jar.  In a test app, I
  imported
  the jar file and put a break point in onStart() and onCreate() methods
  of
  TestService class.  In the app I tried calling both bindService and
  startService, both of them return a false or a null value and the
  debugger
  never breaks in onStart() or onCreate().  Both these methods had one
  line
  implementations with a just a call to their super class like
  super.onStart().
 
  - In the next step I moved the TestService outside of the jar into an
  Android library (in Eclipse enable checkbox Is Library or
  project.properties should contain android.Library=true ).  I built the
  library and included it into the test app. Now i can instantiate the
  service
  using bindService API from the app, the debugger breaks in onStart() and
  onCreate()  methods of TestService class.
 
 
  On Monday, February 11, 2013 4:30:56 PM UTC-8, Lew wrote:
 
  RKSHR wrote:
 
  No the JAR is not set up as a Library project, as all I have is,
  compile
  the classes using javac and then bundle them into a jar using jar
  builder.
 
 
  You should probably build it as a library project, since it does have
  something specific to Android in it.
 
  I'm not expert in library projects, but as I understand they're the way
  to
  package Android stuff for other Android stuff.
 
 
  By nothing specific to android [sic], I meant the classes used within
  the service, other than the obvious service class.  I did not have this
  service class before and there is a singleton factory class that the
  app was
  using to instantiate.  Now I have moved the factory instantiation into
  the
  service class. I want the app to just bind to the service, so the
  factory
  instantiation happens in the background within the service.
 
 
  There's a world of difference between nothing and nothing other
  than...
  .
 
  And that difference might be the difference that makes the difference.
  You
  might want to investigate.
 
 
  Lew wrote:
 
  RKSHR wrote:
 
  I did make sure that there were no R.xx classes in the service,
  infact
  I dont need any resources in the service.  I did double check again
  and
  nothing was present, although an import definition to resources
  class was
  left there.  I wasn't sure if it would make a difference, but I
  removed that
  definition anyway and recompiled the jar without any different
  result.  The
  application loading the jar, still cannot bind to the service. The
  service
  is a very simple class that just instantiates a set of regular java
  

Re: [android-developers] Re: Binding to Android service in an external jar doesn't seem to be working

2013-02-13 Thread Kristopher Micinski
I should have said, statically linked code isn't really doing
anything *differently*

Kris

On Wed, Feb 13, 2013 at 8:33 PM, Kristopher Micinski
krismicin...@gmail.com wrote:
 I'm still confused for two reasons:

 - I've made the jar approach work before, and intuitively statically
 linked code shouldn't really be doing anything as long as you're not
 making references to the resources classes.

 - Why do you think you have to distribute code with an Android library
 project?  You can just remove (everything in) the src/ directory and
 distribute it that way, no source required.

 I'm not sure why your previous approach wasn't working: I'd have to
 see an example of what you're doing to postulate as to why you
 couldn't make it work, but in the end everything is bytecode.

 Kris

 On Wed, Feb 13, 2013 at 8:25 PM, RKSHR rksh...@gmail.com wrote:
 The discussion that I started initially was to find out if a service can be
 defined in a jar file (not Android library) and if the jar file can be
 distributed for application developers and if they can bind or start that
 service ?  I was simply unable to do it.  Ofcourse, the service was declared
 in the application's manifest file.  Once I created a Android library and
 defined the service in the library, then it worked fine, but with this
 approach, source code of the library will have to distributed.

 RK


 On Wednesday, February 13, 2013 4:26:51 PM UTC-8, Kristopher Micinski wrote:

 If I'm not misreading this discussion, the problem is that every
 service must explicitly be declared in a manifest file.  There is no
 such thing as implicitly or programmatically creating a service.
 (This has an unfortunate benefit for would be dynamic scripting
 languages implemented ala JVM wrapper which might otherwise allow you
 to have first class components..)

 This is pretty typical: lots of jars for Android are distributed with
 the caveat that you need to explicitly declare a certain Service in
 your Android manifest.

 And yes, library projects basically allow you to do this for the user
 using your project, so that they don't have to (as) explicitly set up
 your components.

 Kris

 On Wed, Feb 13, 2013 at 5:11 PM, RKSHR rks...@gmail.com wrote:
  I spent some more time and this is what I found so far.
 
  - An app cannot bind to a service or instantiate a service if the
  service is
  declared in a jar file (that is not a Android library).  Note that I'm
  just
  building a jar file using javac compiler and jar utility, without the
  need
  for AndroidManifest xml file. I tried creating a TestService class that
  extends Service class and built that into a jar.  In a test app, I
  imported
  the jar file and put a break point in onStart() and onCreate() methods
  of
  TestService class.  In the app I tried calling both bindService and
  startService, both of them return a false or a null value and the
  debugger
  never breaks in onStart() or onCreate().  Both these methods had one
  line
  implementations with a just a call to their super class like
  super.onStart().
 
  - In the next step I moved the TestService outside of the jar into an
  Android library (in Eclipse enable checkbox Is Library or
  project.properties should contain android.Library=true ).  I built the
  library and included it into the test app. Now i can instantiate the
  service
  using bindService API from the app, the debugger breaks in onStart() and
  onCreate()  methods of TestService class.
 
 
  On Monday, February 11, 2013 4:30:56 PM UTC-8, Lew wrote:
 
  RKSHR wrote:
 
  No the JAR is not set up as a Library project, as all I have is,
  compile
  the classes using javac and then bundle them into a jar using jar
  builder.
 
 
  You should probably build it as a library project, since it does have
  something specific to Android in it.
 
  I'm not expert in library projects, but as I understand they're the way
  to
  package Android stuff for other Android stuff.
 
 
  By nothing specific to android [sic], I meant the classes used within
  the service, other than the obvious service class.  I did not have this
  service class before and there is a singleton factory class that the
  app was
  using to instantiate.  Now I have moved the factory instantiation into
  the
  service class. I want the app to just bind to the service, so the
  factory
  instantiation happens in the background within the service.
 
 
  There's a world of difference between nothing and nothing other
  than...
  .
 
  And that difference might be the difference that makes the difference.
  You
  might want to investigate.
 
 
  Lew wrote:
 
  RKSHR wrote:
 
  I did make sure that there were no R.xx classes in the service,
  infact
  I dont need any resources in the service.  I did double check again
  and
  nothing was present, although an import definition to resources
  class was
  left there.  I wasn't sure if it would make a difference, but I
  removed that
  definition anyway and recompiled the jar without 

Re: [android-developers] Fwd:

2013-02-13 Thread Jim Graham
On Wed, Feb 13, 2013 at 11:39:04AM -0800, Red Cricket wrote:
 Oh great a malicious spam post gets posted while my questions are ignored.

Was that a spam I followed up to?  I should have known by the lack of any
actual content.  Oh well.

Later,
   --jim

-- 
THE SCORE:  ME:  2  CANCER:  0
73 DE N5IAL (/4)MiSTie #49997   Running Mac OS X Lion 
spooky1...@gmail.com ICBM/Hurricane: 30.44406N 86.59909W

   In light of DHS's recommendation to defend yourself
  against armed intruders with scissors, I'm giving my
 Remington .270 rifle a new nickname: Scissors.

-- 
-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [android-developers] Parser

2013-02-13 Thread Kevin Duffey
As long as you agree..that's all that matters.. ;). No I hear you.. for
simple things I agree too.. although I always tend to try to eek every last
bit of speed/memory save I can and would probably these days just use
jackson for everything. Jackson has a nice json to pojo and pojo to json
feature as well, which is nice to use your own model objects with json.


On Tue, Feb 12, 2013 at 12:09 PM, Kristopher Micinski 
krismicin...@gmail.com wrote:

 I don't disagree, It's just that I'm typically processing a very minor
 amount of data (responses from web APIs, a small amount of the time).

 But like I said, it's a trade off, for any real use of JSON I'd also
 recommend something stream based, : )

 Kris

 On Tue, Feb 12, 2013 at 2:54 PM, Kevin Duffey andjar...@gmail.com wrote:
  The problem with the built in o e is it is similar to a DOM parser for
 xml
  in that it will load the entire json document into memory first. Jackson
 is
  a json stream processor so it uses a lot less memory and is typically
 much
  faster. I lean towards Jackson myself.
 
  On Feb 12, 2013 7:27 AM, Kristopher Micinski krismicin...@gmail.com
  wrote:
 
  JSON is so easy to use, I've never really had a problem with org.json.
   If you can get by using it I would do that, as it's already in the
  API (you won't have statically linked code sitting around clouding
  your app).
 
  kris
 
  On Tue, Feb 12, 2013 at 7:16 AM, Arun Kumar K 
 arunkuma...@npcompete.net
  wrote:
   Hi,
   I want to know which parser is best for android application..
   What is the different between json and jackson parser.
   which parser is best json or JACKSON
  
   --
   Thanks  Regards
   K.Arun Kumar
  
  
   --
   --
   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 unsubscribe from this group and stop receiving emails from it, send
   an
   email to android-developers+unsubscr...@googlegroups.com.
   For more options, visit https://groups.google.com/groups/opt_out.
  
  
 
  --
  --
  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 unsubscribe from this group and stop receiving emails from it, send
 an
  email to android-developers+unsubscr...@googlegroups.com.
  For more options, visit https://groups.google.com/groups/opt_out.
 
 
  --
  --
  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 unsubscribe from this group and stop receiving emails from it, send an
  email to android-developers+unsubscr...@googlegroups.com.
  For more options, visit https://groups.google.com/groups/opt_out.
 
 

 --
 --
 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 unsubscribe from this group and stop receiving emails from it, send an
 email to android-developers+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.




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

[android-developers] splash with animation

2013-02-13 Thread sree android
Hi Good Moorning,
i need more help from these blog,How can i create splash screen with
animation.these splash screen look like STC app in play store.
Here activity will loaded from bottom to top,splash image move top when
activity loaded.
these i tried with small piece of code but it is not execute as my
requirement or give me any code blogs.

Thank you 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
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Hi..

2013-02-13 Thread Ibrahim Sada
Hi Guys I cannot run jar file..
 its java question
Please help me how can i do that..if you guys have any idea..

-- 
-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] View

2013-02-13 Thread Arun Kumar K
Hi guys,

I have doubt about layout..
RelativeLayout
  xmlns:android=http://schemas.android.com/apk/res/android;
  android:id=@+id/layercontainer
  android:orientation=horizontal
  android:layout_width=fill_parent
  android:layout_height=wrap_content
  android:background=#ff
  TextView
android:id=@+id/existingbillers_header
android:layout_width=match_parent
android:layout_height=wrap_content
android:background=@drawable/background_with_out_logo
android:gravity=center
android:text=Select Existing Billers
android:textAppearance=?android:attr/textAppearanceLarge
android:textColor=#ff
android:textSize=20sp
android:textStyle=bold /

  RelativeLayout
  android:id=@+id/*existing_list*
  android:layout_width=wrap_content
  android:layout_height=wrap_content
  android:layout_below=@+id/existingbillers_header

   ListView
   android:id=@android:id/list
   android:layout_width=fill_parent
   android:layout_height=wrap_content
   android:layout_below=@+id/text1 /

   TextView
android:id=@+id/text1
android:layout_width=wrap_content
android:layout_height=wrap_content
android:layout_alignParentLeft=true
android:padding=10dp
android:textSize=16sp
android:textColor=#00
android:typeface=sans/
   ImageView
android:id=@+id/image1
android:layout_width=wrap_content
android:layout_height=wrap_content
android:layout_alignParentRight=true/
   /RelativeLayout
/RelativeLayout

i want to get the *existing_list idhow can i get it pls help me*
-- 
*Thanks  Regards*
*K.Arun Kumar*

-- 
-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Re: Canvas Android

2013-02-13 Thread janvi
Image its clarity gets reduced when we use on devices of different sizes

So...



On Tuesday, February 12, 2013 11:24:36 PM UTC+5:30, bob wrote:

 Why not just use an image?



 On Tuesday, February 12, 2013 11:03:57 AM UTC-6, janvi wrote:

 Thanks 

 But those shaders are not suting my requirement

 I have drawn vertical rectangle and want to fill lines in that so plz 
 suggest me or give me some sample sample example

 Thanks in advance

 On Friday, February 8, 2013 12:42:52 PM UTC+5:30, skink wrote:



 janvi wrote: 
  Hello all 
  
  I need small info,I have drawn a rectangle using canvas in android now 
 i 
  want to fill this rectangle with lines instead of solid color 
  
  Plz help me out to solve this 
  
  Which gradient is useful in this case?? 

 see all the Shaders available on the platform: 

 http://developer.android.com/reference/android/graphics/Shader.html 

 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
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Re: Canvas Android

2013-02-13 Thread janvi
Bitmap shader is nothing but use an image which i dont want to do

any alternate plz!!

On Tuesday, February 12, 2013 10:38:05 PM UTC+5:30, skink wrote:



 janvi wrote: 
  Thanks 
  
  But those shaders are not suting my requirement 
  
  I have drawn vertical rectangle and want to fill lines in that so plz 
  suggest me or give me some sample sample example 
  
  Thanks in advance 
  
  On Friday, February 8, 2013 12:42:52 PM UTC+5:30, skink wrote: 
   
   
   
   janvi wrote: 
Hello all 

I need small info,I have drawn a rectangle using canvas in android 
 now i 
want to fill this rectangle with lines instead of solid color 

Plz help me out to solve this 

Which gradient is useful in this case?? 
   
   see all the Shaders available on the platform: 
   
   http://developer.android.com/reference/android/graphics/Shader.html 
   
   pskink 
   

 did you try all of them? 

 what about BitmapShader? 

 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
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [android-developers] Re: libGLES_Trace server how to connect

2013-02-13 Thread dani maoz
I thought about this idea, i used TCPDUMP, while connecting using Android
Open GL trace, but didn't see any message transfered.
As anyone tried to use this DLL?




On Thu, Feb 14, 2013 at 12:13 AM, bob b...@coolfone.comze.com wrote:

 Why not do a TCP port scan on your localhost and look for a high number?



 On Wednesday, February 13, 2013 3:12:50 PM UTC-6, David_lavi wrote:

 Thanks for the reply, it didn't work.
 As anyone try to create NDK project using libegl_trace.so?



 On Wed, Feb 13, 2013 at 7:30 PM, bob b...@coolfone.comze.com wrote:

 Maybe try port 8345?



 https://lh5.googleusercontent.com/-bm-2VYv45FY/URvNkJmtvAI/AMw/IJbL4Kwgd9Y/s1600/Screen+Shot+2013-02-13+at+11.28.46+AM.png



 On Wednesday, February 13, 2013 5:19:56 AM UTC-6, David_lavi wrote:

 Hi
 How can i connect to gltrace:server?
 I see this message
 gltrace::**waitForClientConnect**ion: server listening @ path gltrace
 How can i detect server port and address


  --
 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-d...@**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=enhttp://groups.google.com/group/android-developers?hl=en
 ---
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To unsubscribe from this group and stop receiving emails from it, send
 an email to android-developers+**unsubscr...@googlegroups.com.
 For more options, visit 
 https://groups.google.com/**groups/opt_outhttps://groups.google.com/groups/opt_out
 .




  --
 --
 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 unsubscribe from this group and stop receiving emails from it, send an
 email to android-developers+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.




-- 
-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Re: Canvas Android

2013-02-13 Thread skink


janvi wrote:
 Bitmap shader is nothing but use an image which i dont want to

why?



 any alternate plz!!

with shaders? no

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
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Re: View

2013-02-13 Thread skink


Arun Kumar K wrote:
 Hi guys,


 i want to get the *existing_list idhow can i get it pls help me*


how to get what? what is existing_ list id?

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
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Re: Hi..

2013-02-13 Thread skink


Ibrahim Sada wrote:
 Hi Guys I cannot run jar file..

yes, you cannot run jar file

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
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.