[android-developers] Android c++ service at boot time

2013-02-14 Thread Mr cool
I need to start a service at boot time in android i don't use broadcast 
receiver  , i wrote a service in c++ because i need access driver libusb 
layer to communicate with my extrernal device ,the service is working 
properly if i started manualy,if i want to start the service at boot time 
means i need to edit inir.rc file in android if i do that it also working 
good .but the problem is i cant edit the init.rc in all devices. i put my 
service in Sytem/bin location and edit the init.rc file as follow

service sampleservice/system/bin/sampleservice
  oneshot
  disable

for manualy i started the service from terminal like this

#./system/bin/sampleservice
but i cant start the service at each and every time when system restarts do 
have any idea to start the service at boot time with out edit init.rc

-- 
-- 
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: Problems with Text To Speech

2013-02-14 Thread saex
Your solution didn't works... the same problem 

El martes, 12 de febrero de 2013 17:55:31 UTC+1, skink escribió:



 saex wrote: 
 Please, try to make a better explained answer or to test 
  your answer before writting it. 
  
  

 btw i hate giving a fish i prefer giving a fish rod, i believe it's 
 better way of learning for the other side 

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

2013-02-14 Thread Kristopher Micinski
Ah, that makes sense, I've seen a similar thing in ORM-y things for
Java.  My arguments against static code bloat are also somewhat
invalidated by the fact that most JSON libraries will be small
footprint by design.

Kris

On Thu, Feb 14, 2013 at 12:09 AM, Kevin Duffey andjar...@gmail.com wrote:
 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] Re: Problems with Text To Speech

2013-02-14 Thread skink


saex wrote:
 Your solution didn't works... the same problem


what have you.changed?

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: How to draw or write a text like MS-Paint in android using onTouch Event?

2013-02-14 Thread Meena Rengarajan
http://www.agressar.in/?p=145#  I have done based on this link only in
MotionEvent.ACTION_MOVE. But i am not getting continuity when im moving my
finger on a screen. I am getting like the dots after once i release my
finger then lines or what i drew appears.

Could anyone tell me kindly , what does mx1, mx2 and my1, my2 does here?
And why they have initialized here ?



On Tue, Feb 12, 2013 at 9:45 AM, skink psk...@gmail.com wrote:



 Meena Rengarajan wrote:
  no, i have not done anything in MotionEvent.ACTION_MOVE. But i wrote code
  only in ACTION_DOWN and ACTION_UP
 

 so why did you say:

 cite
 But, MotionEvent.ACTION_
 MOVE is not working
 properly.
 /cite

 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.




-- 
-- 
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-14 Thread tom lee

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


Does this imply there's a way to specify different Bluetooth ports, if the
port(s) exists? I have never heard of Bluetooth using ports like TCP. If
you're just making an example, then please disregard this and above.

-- 
-- 
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: How to draw or write a text like MS-Paint in android using onTouch Event?

2013-02-14 Thread skink


Meena Rengarajan wrote:
 http://www.agressar.in/?p=145#  I have done based on this link only in
 MotionEvent.ACTION_MOVE. But i am not getting continuity when im moving my
 finger on a screen. I am getting like the dots after once i release my
 finger then lines or what i drew appears.

 Could anyone tell me kindly , what does mx1, mx2 and my1, my2 does here?
 And why they have initialized here ?




so what exactly is your code doing in response to ACTION_MOVE event?

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: How to draw or write a text like MS-Paint in android using onTouch Event?

2013-02-14 Thread Meena Rengarajan
 ACTION_MOVE in my app - I could be able to draw but not visible when im
drawing and while moving my finger on a screen . Once after i release my
finger , i can be able to see what i drew on the screen completely. When
i'm trying to draw with my mouse, continuity is not good . Appearing as
dots when iam moving my finger on the screen. Once i released my finger
what i drew it appears fine !

On Thu, Feb 14, 2013 at 2:11 AM, skink psk...@gmail.com wrote:



 Meena Rengarajan wrote:
  http://www.agressar.in/?p=145#  I have done based on this link only in
  MotionEvent.ACTION_MOVE. But i am not getting continuity when im moving
 my
  finger on a screen. I am getting like the dots after once i release my
  finger then lines or what i drew appears.
 
  Could anyone tell me kindly , what does mx1, mx2 and my1, my2 does here?
  And why they have initialized here ?
 
 
 

 so what exactly is your code doing in response to ACTION_MOVE event?

 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.




-- 
-- 
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: How to draw or write a text like MS-Paint in android using onTouch Event?

2013-02-14 Thread Meena Rengarajan
please anyone help me. I am trying from last week. Not yet i found a
solution. Have tried many possible ways.



On Thu, Feb 14, 2013 at 2:26 AM, Meena Rengarajan meenasoft...@gmail.comwrote:

  ACTION_MOVE in my app - I could be able to draw but not visible when im
 drawing and while moving my finger on a screen . Once after i release my
 finger , i can be able to see what i drew on the screen completely. When
 i'm trying to draw with my mouse, continuity is not good . Appearing as
 dots when iam moving my finger on the screen. Once i released my finger
 what i drew it appears fine !


 On Thu, Feb 14, 2013 at 2:11 AM, skink psk...@gmail.com wrote:



 Meena Rengarajan wrote:
  http://www.agressar.in/?p=145#  I have done based on this link only in
  MotionEvent.ACTION_MOVE. But i am not getting continuity when im moving
 my
  finger on a screen. I am getting like the dots after once i release my
  finger then lines or what i drew appears.
 
  Could anyone tell me kindly , what does mx1, mx2 and my1, my2 does here?
  And why they have initialized here ?
 
 
 

 so what exactly is your code doing in response to ACTION_MOVE event?

 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.





-- 
-- 
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-14 Thread BearTi
I want to intercept the packeges/I want to see what data goes out of the 
mobilephone or what sites are called from a specific app.
I don´t want to just count the traffic... thanks


Am Donnerstag, 14. Februar 2013 01:27:57 UTC+1 schrieb 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 mlrt...@gmail.com javascript: 
 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-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: How to draw or write a text like MS-Paint in android using onTouch Event?

2013-02-14 Thread skink


Meena Rengarajan wrote:
 ACTION_MOVE in my app - I could be able to draw but not visible when im
 drawing and while moving my finger on a screen . Once after i release my
 finger , i can be able to see what i drew on the screen completely. When
 i'm trying to draw with my mouse, continuity is not good . Appearing as
 dots when iam moving my finger on the screen. Once i released my finger
 what i drew it appears fine !


did you try 
http://developer.android.com/reference/android/view/MotionEvent.html#getHistoricalX(int,
int) and 
http://developer.android.com/reference/android/view/MotionEvent.html#getHistoricalY(int,
int)

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] Multi-Page Form with Fragments and Tabs

2013-02-14 Thread Evan Ruff
Hey guys,

I was hoping someone could give me a little insight as to how I can make my 
multi-page form work a little better. Currently, each page (two pages) on 
my form is a separate fragment. I use the ActionBar Tabs to display the 
pages and then a Next button in each page that switches the tabs to the 
next page. All validation is done on the Save button on the last page. 

Everything is working well, but I'm having a little issue with the back 
functionality. I'd like to be able to create/pop back stack activities when 
the user switched. As it is now, he just gets tossed completely out of the 
wizard, not returned to the previous page (tab).

How should I handle that? Any input would be appreciated! 

Oh, I'm targeting API 14.

Thanks!

Evan

-- 
-- 
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] Switching IME/Keyboard once only

2013-02-14 Thread brandall
My application has an inbuilt IME which the user has set to their default. 
In certain situations within my app (I won't bore you with which), I need 
to automatically switch to an alternative keyboard, but just for that one 
view - as soon as the user clicks on another view (or exits the 
application), it will return to my default IME.

I've tried so many options to accomplish this, but enabling another IME in 
any way is making it the users default IME from then on.

I have the imeToken, so switching to another IME is not a problem, but 
making this temporary is proving impossible Displaying the input method 
picker is a cumbersome method.

Is this by design and am I therefore drawing a blank?


-- 
-- 
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-14 Thread Kristopher Micinski
That's not how it works: Bluetooth is built on top of RFCOMM, so it's
more like a serial channel.  It's merely presented with a socket like
interface to wrap the behavior.

Kris

On Thu, Feb 14, 2013 at 4:56 AM, tom lee tom.mai78...@gmail.com wrote:
 The UUID just says what port the Bluetooth Server is on.  I could have a
 server running on Bluetooth port 1.


 Does this imply there's a way to specify different Bluetooth ports, if the
 port(s) exists? I have never heard of Bluetooth using ports like TCP. If
 you're just making an example, then please disregard this and above.

 --
 --
 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-14 Thread bob
Yes, you can specify ports, but I think you may have to use Reflection on 
Android.


This will give you a connection to port 17:


*BluetoothAdapter adapter = BluetoothAdapter.getDefaultAdapter();*
*
*
*BluetoothDevice device = adapter.getRemoteDevice(address);*
*
*
*M**ethod m = device.getClass().getMethod(createInsecureRfcommSocket, new 
Class[] { int.class }); *
*
*
*socket = (BluetoothSocket) m.invoke(device,Integer.valueOf(17));*
*
*
*socket.connect();*

On a Windows server, you would change BT_PORT_ANY to a number between 1 and 
30.  

There is more info here:

http://msdn.microsoft.com/en-us/library/windows/desktop/aa362899(v=vs.85).aspx

The valid range for requesting a specific RFCOMM port is 1 through 30.




On Thursday, February 14, 2013 3:56:41 AM UTC-6, tom_mai78101 wrote:

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


 Does this imply there's a way to specify different Bluetooth ports, if the 
 port(s) exists? I have never heard of Bluetooth using ports like TCP. If 
 you're just making an example, then please disregard this and above.


-- 
-- 
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] Infrared support on Android

2013-02-14 Thread flsobral
Hello,

I have a customer interested in infrared communication (IrDA) between 
android and other devices, more specifically with the Motorola tablet MZ608.
I noticed the tablets MZ608 and MZ616 are both equipped with IR Blaster, 
but the specification of the model MZ608 does not mention infrared support, 
while the specification of the model MZ616 explicitly mentions infrared 
support.

I contacted Motorola support and they said this isn't supported by neither 
of them, only the remote control function is supported.
That was unexpected, to say the least. I can understand if the MZ608 
doesn't support IrDA, after all the specification only mentions the IR 
Blaster, but what about the MZ616?
It would be nice to be able to use a Motorola tablet, after all, it was my 
customer's first pick, but unless the Motorola support got it wrong, we'll 
have to use another device - which (finally) leads to my question:

Has anyone here ever developed an application that uses infrared 
communication on any Android device? Which one?
How did you get access to the manufacturer's API for infrared communication?


Thanks in advance,

Fabio.

-- 
-- 
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-14 Thread Kristopher Micinski
So there is port emulation you can use if you use reflection, but it's
kind of wacky and doesn't really work like vanilla TCP: so it's
helpful not to think of it that way.  You can read about it here:

http://www.palowireless.com/infotooth/tutorial/rfcomm.asp#Port%20Emulation%20Entity%20:%20Serial%20Flow%20Control

But still, in this example, I'm not sure why you'd want it?

kris

On Thu, Feb 14, 2013 at 10:10 AM, bob b...@coolfone.comze.com wrote:
 Yes, you can specify ports, but I think you may have to use Reflection on
 Android.


 This will give you a connection to port 17:


 BluetoothAdapter adapter = BluetoothAdapter.getDefaultAdapter();

 BluetoothDevice device = adapter.getRemoteDevice(address);

 Method m = device.getClass().getMethod(createInsecureRfcommSocket, new
 Class[] { int.class });

 socket = (BluetoothSocket) m.invoke(device,Integer.valueOf(17));

 socket.connect();

 On a Windows server, you would change BT_PORT_ANY to a number between 1 and
 30.

 There is more info here:

 http://msdn.microsoft.com/en-us/library/windows/desktop/aa362899(v=vs.85).aspx

 The valid range for requesting a specific RFCOMM port is 1 through 30.




 On Thursday, February 14, 2013 3:56:41 AM UTC-6, tom_mai78101 wrote:

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


 Does this imply there's a way to specify different Bluetooth ports, if the
 port(s) exists? I have never heard of Bluetooth using ports like TCP. If
 you're just making an example, then please disregard this and above.

 --
 --
 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] Catch network traffic?

2013-02-14 Thread Robert Greenwalt
well, tcpdump can record all traffic off a rooted device, but it won't tell
you which app sent it.  You could run just the app though.  Weeding out the
system traffic shouldn't be too difficult.


On Thu, Feb 14, 2013 at 2:36 AM, BearTi mlrti...@gmail.com wrote:

 I want to intercept the packeges/I want to see what data goes out of the
 mobilephone or what sites are called from a specific app.
 I don´t want to just count the traffic... thanks


 Am Donnerstag, 14. Februar 2013 01:27:57 UTC+1 schrieb 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 mlrt...@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-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] reverse DNS lookup on Android

2013-02-14 Thread bob
 

Does anyone know how to do a reverse DNS lookup on Android and get the host 
name from the IP address?


For instance, I might want the hostname that corresponds to 192.168.0.202


-- 
-- 
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] Fake GC ?

2013-02-14 Thread Fábio Balancin
Hello,

I'm working on android project with XML layout and I have a little (but
despicable) problem.

When I set one activity with xml layout using a layoutInflater (i'm in
fragment) I close this activity and load it again, then Android heap not
release all objects of memory, and I have a little bytes more on each
reload. Doesn't GC working correctly ? How I fix that ?

My Android Device is a 2.3 version.

Thanks !!

-- 
Fabio Balancin
System / Game Engineer

Phone: +55 11 9891 3045

E-mails:
balan...@gmail.com  balan...@umpulo.com.br

-- 
-- 
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] reverse DNS lookup on Android

2013-02-14 Thread Robert Greenwalt
From java use InetAddress.getByName(8.8.8.8).getHostAddress().  You could
also do getByAddress, but then you have to get the address into a byte
array.

From native, getnameinfo


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

 Does anyone know how to do a reverse DNS lookup on Android and get the
 host name from the IP address?


 For instance, I might want the hostname that corresponds to 192.168.0.202


  --
 --
 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] Catch network traffic?

2013-02-14 Thread Kristopher Micinski
I've also done this by instrumenting apps: but that obviously adds a
whole bunch of overhead!

Kris


On Thu, Feb 14, 2013 at 10:34 AM, Robert Greenwalt
rgreenw...@google.com wrote:
 well, tcpdump can record all traffic off a rooted device, but it won't tell
 you which app sent it.  You could run just the app though.  Weeding out the
 system traffic shouldn't be too difficult.


 On Thu, Feb 14, 2013 at 2:36 AM, BearTi mlrti...@gmail.com wrote:

 I want to intercept the packeges/I want to see what data goes out of the
 mobilephone or what sites are called from a specific app.
 I don´t want to just count the traffic... thanks


 Am Donnerstag, 14. Februar 2013 01:27:57 UTC+1 schrieb 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 mlrt...@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-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.



-- 
-- 
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] How to compare a user input and then call a webView?

2013-02-14 Thread Dan Uff
Hi all:

This may sound like a basic question, but here goes

I am accepting input from a user from an EditText field.  When he/she types 
in a route number (example: 101) I need to call a webView based on that 
number - showing a schedule for that route number.  I don't have any 
example code yet, because I have no idea how to set this up in Android (I 
am coming from iOS experience).

I am using Eclipse as the programming environment.

Thanks,
Dan Uff

-- 
-- 
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] Fake GC ?

2013-02-14 Thread Kristopher Micinski
In Android you never really close a screen.

The system will --- when it feels necessary --- destroy the activity:
this sets its master view to null and at that point the view will be
garbage collected (eventually).

This is a core concept in Android: your application doesn't close
the same way it does on a desktop.  There are always things that you
have to watch out for: in this case the salient detail is not to keep
`Views` in static objects.  (This will cause your app to leak views
when they *are* destroyed and recreated, say by a reconfiguration when
the user rotates the screen.)

Kris

On Thu, Feb 14, 2013 at 11:00 AM, Fábio Balancin balan...@gmail.com wrote:
 Hello,

 I'm working on android project with XML layout and I have a little (but
 despicable) problem.

 When I set one activity with xml layout using a layoutInflater (i'm in
 fragment) I close this activity and load it again, then Android heap not
 release all objects of memory, and I have a little bytes more on each
 reload. Doesn't GC working correctly ? How I fix that ?

 My Android Device is a 2.3 version.

 Thanks !!

 --
 Fabio Balancin
 System / Game Engineer

 Phone: +55 11 9891 3045

 E-mails:
 balan...@gmail.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.



-- 
-- 
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: Fake GC ?

2013-02-14 Thread Nobu Games
I notice that you say game engineer in your signature and mention Android 
2.3. Does your activity create Bitmap objects by any chance? If so you also 
need to recycle them when your activity stops.

On Thursday, February 14, 2013 10:00:53 AM UTC-6, Fábio Balancin wrote:

 Hello, 

 I'm working on android project with XML layout and I have a little (but 
 despicable) problem.

 When I set one activity with xml layout using a layoutInflater (i'm in 
 fragment) I close this activity and load it again, then Android heap not 
 release all objects of memory, and I have a little bytes more on each 
 reload. Doesn't GC working correctly ? How I fix that ?

 My Android Device is a 2.3 version.

 Thanks !!

 -- 
 Fabio Balancin
 System / Game Engineer

 Phone: +55 11 9891 3045

 E-mails:
 bala...@gmail.com javascript:  javascript: 


-- 
-- 
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] Animating markers on Google Maps V2

2013-02-14 Thread Maksim Golivkin


I am working on a map centered game where I track locations of people and 
display them on the map for each other to see. As people move, I want to 
animate a marker from his current to his latest position. Every person has 
a direction, so I need to rotate marker appropriately.

What is the best way to do it using the new Google Maps API v2?

More expanded version:

New API has solutions for a) moving the camera using CameraUpdate and such 
b) moving a marker to a different position, by simply using 
Market.setPosition .  However, changing an icon of the marker (I would show 
rotated image along the direction of the movement) doesn't work. It seems, 
one needs to clear all the markers from the map to make the icon change. Is 
there any better way to do it?

-- 
-- 
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: How to compare a user input and then call a webView?

2013-02-14 Thread Nobu Games
Set a 
TextWatcherhttp://developer.android.com/reference/android/widget/TextView.html#addTextChangedListener%28android.text.TextWatcher%29on
 your EditText. When your watcher gets notified about changed text you 
can immediately pass that input on to your WebView. In order to avoid 
repeated calls to your WebView with incomplete user input you could rewrite 
your TextWatcher to start a timer when text has changed. The timer waits 
for one or two seconds until it updates the WebView. It gets cancelled / 
reset by your TextWatcher as soon as the text changed again.

On Thursday, February 14, 2013 10:14:45 AM UTC-6, Dan Uff wrote:

 Hi all:

 This may sound like a basic question, but here goes

 I am accepting input from a user from an EditText field.  When he/she 
 types in a route number (example: 101) I need to call a webView based on 
 that number - showing a schedule for that route number.  I don't have any 
 example code yet, because I have no idea how to set this up in Android (I 
 am coming from iOS experience).

 I am using Eclipse as the programming environment.

 Thanks,
 Dan Uff


-- 
-- 
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-14 Thread tom_mai78101
I don't think ports matter in this case. In fact, I don't need ports. 
Thanks anyway.
 
*BEWARE: Wall of text*
 
I have now narrowed down my problem, hopefully reaching a conclusion soon. 
I'm having trouble with fetching one single UUID for two devices to use. 
Here's a picture of what I have logged by using android.util.Log.
 
http://i.imgur.com/t1QhdSk.png
 
Here I have two devices, namely HTC #1 and HTC #2, both of them running 
Android 2.3.5. Each device has my app installed and debugged at the moment. 
The app fetches a UUID from the other remote device using reflection 
method, invoking Bluetooth.getUuids(). (i.e.: Device #1 fetches a UUID from 
Device #2, while Device #2 fetches a UUID from Device #1.)
 
The UUID for both devices are shown in the red box. According to this 
answer here http://stackoverflow.com/a/14757884/1016891, it said I need 
to use the same UUID for use with
BluetoothAdapter.listenUsingRfcommWithServiceRecord() and 
BluetoothDevice.createRfcommSocketToServiceRecord().
 
However, I realized that using the same UUID that was pre-fetched using 
BluetoothDevice.getUuids() 
w/ reflection for both BluetoothServerSocket.accept() and 
BluetoothSocket.connect() is wrong. Either I have to use UUID.randomUUID() 
or BluetoothDevice.getUuids() w/ reflection in order to obtain a UUID. It 
doesn't matter if it's randomly-generated, or fetched from a remote device, 
I have to obtain a UUID from some place, don't I?
 
Below is the sectors of my application. The Accept and Connect sectors 
implement the Runnable interface.
 

http://i.imgur.com/SsWMUwR.png
It probably doesn't relate to the main problem at hand, but it shows how I 
was doing with the obtained UUID. The UUID is used in the Accept and 
Connect sectors, where it handles BluetoothServerSocket.accept() and 
BluetoothSocket.connect(), respectively.
 
*Now, summarizing the narrowed problem: What can I do in order to obtain 
the same UUID for two devices? *The code below doesn't work:
 

http://i.imgur.com/M5k0u5r.png
The variable, localData, is null after executing. What am I after? I'm 
trying to obtain the same UUID from one device (i.e.: Device #1), in which 
all other devices (i.e.: Device #2, Device #3, etc.) can also fetch after, 
and use it to connect to the first device (i.e.: Device #1).
 
 
 
 
 
 
 
 
 

-- 
-- 
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-14 Thread BearTi
Allright, thanks! Hmm but where can I get tcpdump? 
It´s in the store right?

-- 
-- 
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: Creating new intent with data android:scheme...

2013-02-14 Thread ntt broken
can someone share more info on this one? thank you!


On Mon, Jan 28, 2013 at 9:56 AM, ntt broken nttbro...@gmail.com wrote:

 Hi,

 How can i create an intent (Java code) that will be compatible with intent
 filter declared?

 for example, if this is the intent filter declared in the
 AndroidManifest.xml:

 activity android:name=.MyUriActivity intent-filter action
 android:name=android.intent.action.VIEW / category android:name=
 android.intent.category.DEFAULT / category android:name=
 android.intent.category.BROWSABLE / data android:scheme=myapp
 android:host=path / /intent-filter /activity


 How can i create a new intent that can be used to work with that intent
 filter?

 Intent myIntent = new Intent( ... ) ...

 the main gap is how to declare intent in java code with the 'data
 android:scheme=myapp android:host=path /' part.
 i mean, how to set the data of the scheme,host etc to a new intent.

 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: Binding to Android service in an external jar doesn't seem to be working

2013-02-14 Thread RKSHR

*- 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. 
*
I was hoping someone would say this.  Thankyou.  I will try to paste the 
code I was trying in a while and then hopefully you could identify any 
changes. And yes I'm certainly not using resources.

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

- Now given that you have got the jar approach to work, I will hold on to 
the Android Library approach for the moment. 



On Wednesday, February 13, 2013 5:33:30 PM UTC-8, Kristopher Micinski 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 rks...@gmail.com javascript: 
 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 

[android-developers] MediaPlayer suddenly stopped working in Android 4.2

2013-02-14 Thread Brill Pappin
I've been working on an app that plays MP3 files and have started with out 
with the lowest supported android version and working upward toward JB.

For some reason the MediaPlayer starts generating an error in Android 4.2 
when it has been working just fine until now.
Nobody seems to know what has changed or how to work around it. The only 
suggestions I've found so far are to do with permissions, but unless they 
have changed radically for external storage, the MediaPlayer should have 
permission to read the files.

Here is some relevant information. Notice there is no stack trace, just a 
message printed out.
(I've included some of my debugging output for reference).

02-14 12:24:05.210: I/MessageListFragment(29567): *** FILE [exists:true]: 
file:///storage/emulated/0/Android/data/com.primaltech.vvm/files/audio/V2013011508.mp3
02-14 12:24:06.001: D/MessageListFragment(29567): Local data file: id=1, 
rid=V2013011508, 
uri=file:///storage/emulated/0/Android/data/com.primaltech.vvm/files/audio/V2013011508.mp3
02-14 12:24:06.001: D/MessageListFragment(29567): Preparing to play: 
file:///storage/emulated/0/Android/data/com.primaltech.vvm/files/audio/V2013011508.mp3
02-14 12:24:06.011: E/MediaPlayer(29567): error (1, -2147483648)
02-14 12:24:06.051: E/MediaPlayer(29567): Error (1,-2147483648)
02-14 12:24:06.051: E/MessageListFragment(29567): what: 
MediaPlayer.MEDIA_ERROR_UNKNOWN

So far I have seen this on both a Nexus 7 and a Nexus 4 running JB 4.2.1, 
it seems to work fine for the prior versions that I've been able to test 
(4.0.4, 4.1.1).




-- 
-- 
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: Switching IME/Keyboard once only

2013-02-14 Thread Brill Pappin
Unless things have changed recently, you can't programatically change the 
input method because its too great a security risk.

e.g. I could replace your keyboard with one that looked exactly the same 
but captured everything you typed and sent it to my mob friends. In a day I 
could have all your passwords, credit card numbers, security codes, love 
letters, etc.

By forcing you to ask the user to change it, it gives the user the 
opportunity to decide if they trust the alternate input method.
Of course, I'm not as up to speed on the most recent android versions, so 
if things have changed, someone will point it out I'm sure.



On Thursday, 14 February 2013 08:44:54 UTC-5, brandall wrote:

 My application has an inbuilt IME which the user has set to their default. 
 In certain situations within my app (I won't bore you with which), I need 
 to automatically switch to an alternative keyboard, but just for that one 
 view - as soon as the user clicks on another view (or exits the 
 application), it will return to my default IME.

 I've tried so many options to accomplish this, but enabling another IME in 
 any way is making it the users default IME from then on.

 I have the imeToken, so switching to another IME is not a problem, but 
 making this temporary is proving impossible Displaying the input method 
 picker is a cumbersome method.

 Is this by design and am I therefore drawing a blank?




-- 
-- 
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-14 Thread Brill Pappin
Really it depends on what he's got in the original app. Even just a 
provider is going to be trouble if he simply turns the whole thing into a 
library.

On Wednesday, 13 February 2013 09:05:34 UTC-5, 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.




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

2013-02-14 Thread Brill Pappin
This isn't really an Android specific problem.
However, your content type is wrong if you are sending the JSON as a POST 
parameter. You should be using form encoding or even multipart.
If you a dumping the JSON into the POST data then you should likely be 
using a PUT instead of a POST.



On Wednesday, 13 February 2013 10:09:46 UTC-5, Bajrang Asthana wrote:

 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] ExpandableListView Expand icon overlays the text titles of the items

2013-02-14 Thread Aleksey Grichenko
Thanks, it's a good hint. But setting margin does not work for some reason 
(padding is OK).

-- 
-- 
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] ExpandableListView Expand icon overlays the text titles of the items

2013-02-14 Thread Kostya Vasilyev
Are you trying to set the margin on the outermost level of your item
layout? I don't think that's supported. Setting a margin on a view nested
inside your item layout should work though.

-- K

2013/2/14 Aleksey Grichenko griche...@gmail.com

 Thanks, it's a good hint. But setting margin does not work for some reason
 (padding is OK).

  --
 --
 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-14 Thread Kristopher Micinski
Sure,

Although at the same time, if you are doing this, you really *should*
be using an Android library project: it just makes it simpler for the
users of the library.

kris

On Thu, Feb 14, 2013 at 12:32 PM, RKSHR rksh...@gmail.com wrote:

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

 I was hoping someone would say this.  Thankyou.  I will try to paste the
 code I was trying in a while and then hopefully you could identify any
 changes. And yes I'm certainly not using resources.

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

 - Now given that you have got the jar approach to work, I will hold on to
 the Android Library approach for the moment.



 On Wednesday, February 13, 2013 5:33:30 PM UTC-8, Kristopher Micinski 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 rks...@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 

Re: [android-developers] Re: Catch network traffic?

2013-02-14 Thread Robert Greenwalt
I believe the source for the developer tool ships with AOSP in the external
directory.


On Thu, Feb 14, 2013 at 9:07 AM, BearTi mlrti...@gmail.com wrote:

 Allright, thanks! Hmm but where can I get tcpdump?
 It´s in the store right?

  --
 --
 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] some help with an stack trace

2013-02-14 Thread Jokin Cuadrado
I rolled and update of an app, and acra now it's reporting some crashes. I 
tried to search what's happening but i find nothing relevant. It seems that 
sometimes it doesn't find the analytics library and it's AnalyticsReceiver, 
but there's also a reference to com.google.android.maps which I don't 
understand why is there.  May be it's because the maps library it's not 
installed and the AnalyticsReceiver it's deceiving me?

Thanks in advance. 


java.lang.RuntimeException: Unable to instantiate receiver 
com.google.analytics.tracking.android.AnalyticsReceiver: 
java.lang.ClassNotFoundException: 
com.google.analytics.tracking.android.AnalyticsReceiver in loader 
dalvik.system.PathClassLoader[/system/framework/com.google.android.maps.jar:/data/app/com.my.app-2.apk]
at android.app.ActivityThread.handleReceiver(ActivityThread.java:2789)
at android.app.ActivityThread.access$3200(ActivityThread.java:125)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2083)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:123)
at android.app.ActivityThread.main(ActivityThread.java:4627)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:521)
at 
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:876)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:634)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.ClassNotFoundException: 
com.google.analytics.tracking.android.AnalyticsReceiver in loader 
dalvik.system.PathClassLoader[/system/framework/com.google.android.maps.jar:/data/app/com.vocento.pisos-2.apk]
at dalvik.system.PathClassLoader.findClass(PathClassLoader.java:243)
at java.lang.ClassLoader.loadClass(ClassLoader.java:573)
at java.lang.ClassLoader.loadClass(ClassLoader.java:532)
at android.app.ActivityThread.handleReceiver(ActivityThread.java:2780)
... 10 more
java.lang.ClassNotFoundException: 
com.google.analytics.tracking.android.AnalyticsReceiver in loader 
dalvik.system.PathClassLoader[/system/framework/com.google.android.maps.jar:/data/app/com.my.app-2.apk]
at dalvik.system.PathClassLoader.findClass(PathClassLoader.java:243)
at java.lang.ClassLoader.loadClass(ClassLoader.java:573)
at java.lang.ClassLoader.loadClass(ClassLoader.java:532)
at android.app.ActivityThread.handleReceiver(ActivityThread.java:2780)
at android.app.ActivityThread.access$3200(ActivityThread.java:125)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2083)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:123)
at android.app.ActivityThread.main(ActivityThread.java:4627)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:521)
at 
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:876)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:634)
at dalvik.system.NativeStart.main(Native Method)

-- 
-- 
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: Switching IME/Keyboard once only

2013-02-14 Thread brandall
Thanks for your reply - You are able to switch the 
keyboard programmatically if you are the current IME token holder. My 
struggle is to request this change temporarily. 

On Thursday, February 14, 2013 5:45:35 PM UTC, Brill Pappin wrote:

 Unless things have changed recently, you can't programatically change the 
 input method because its too great a security risk.

 e.g. I could replace your keyboard with one that looked exactly the same 
 but captured everything you typed and sent it to my mob friends. In a day I 
 could have all your passwords, credit card numbers, security codes, love 
 letters, etc.

 By forcing you to ask the user to change it, it gives the user the 
 opportunity to decide if they trust the alternate input method.
 Of course, I'm not as up to speed on the most recent android versions, so 
 if things have changed, someone will point it out I'm sure.



 On Thursday, 14 February 2013 08:44:54 UTC-5, brandall wrote:

 My application has an inbuilt IME which the user has set to their 
 default. In certain situations within my app (I won't bore you with which), 
 I need to automatically switch to an alternative keyboard, but just for 
 that one view - as soon as the user clicks on another view (or exits the 
 application), it will return to my default IME.

 I've tried so many options to accomplish this, but enabling another IME 
 in any way is making it the users default IME from then on.

 I have the imeToken, so switching to another IME is not a problem, but 
 making this temporary is proving impossible Displaying the input method 
 picker is a cumbersome method.

 Is this by design and am I therefore drawing a blank?




-- 
-- 
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-14 Thread bob
 

Put it in the drawable-nodpi folder, and the clarity will not be reduced.



On Thursday, February 14, 2013 12:04:31 AM UTC-6, janvi wrote:

 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: How to compare a user input and then call a webView?

2013-02-14 Thread Dan Uff
Thanks for the reply.

Can you post a code example on how this would be done?

Thanks,
Dan

On Thursday, February 14, 2013 11:38:56 AM UTC-5, Nobu Games wrote:

 Set a 
 TextWatcherhttp://developer.android.com/reference/android/widget/TextView.html#addTextChangedListener%28android.text.TextWatcher%29on
  your EditText. When your watcher gets notified about changed text you 
 can immediately pass that input on to your WebView. In order to avoid 
 repeated calls to your WebView with incomplete user input you could rewrite 
 your TextWatcher to start a timer when text has changed. The timer waits 
 for one or two seconds until it updates the WebView. It gets cancelled / 
 reset by your TextWatcher as soon as the text changed again.

 On Thursday, February 14, 2013 10:14:45 AM UTC-6, Dan Uff wrote:

 Hi all:

 This may sound like a basic question, but here goes

 I am accepting input from a user from an EditText field.  When he/she 
 types in a route number (example: 101) I need to call a webView based on 
 that number - showing a schedule for that route number.  I don't have any 
 example code yet, because I have no idea how to set this up in Android (I 
 am coming from iOS experience).

 I am using Eclipse as the programming environment.

 Thanks,
 Dan Uff



-- 
-- 
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: MediaPlayer suddenly stopped working in Android 4.2

2013-02-14 Thread bob
 

Have you tried it on a real device or just the emulator?



On Thursday, February 14, 2013 11:38:22 AM UTC-6, Brill Pappin wrote:

 I've been working on an app that plays MP3 files and have started with out 
 with the lowest supported android version and working upward toward JB.

 For some reason the MediaPlayer starts generating an error in Android 4.2 
 when it has been working just fine until now.
 Nobody seems to know what has changed or how to work around it. The only 
 suggestions I've found so far are to do with permissions, but unless they 
 have changed radically for external storage, the MediaPlayer should have 
 permission to read the files.

 Here is some relevant information. Notice there is no stack trace, just a 
 message printed out.
 (I've included some of my debugging output for reference).

 02-14 12:24:05.210: I/MessageListFragment(29567): *** FILE [exists:true]: 
 file:///storage/emulated/0/Android/data/com.primaltech.vvm/files/audio/V2013011508.mp3
 02-14 12:24:06.001: D/MessageListFragment(29567): Local data file: id=1, 
 rid=V2013011508, 
 uri=file:///storage/emulated/0/Android/data/com.primaltech.vvm/files/audio/V2013011508.mp3
 02-14 12:24:06.001: D/MessageListFragment(29567): Preparing to play: 
 file:///storage/emulated/0/Android/data/com.primaltech.vvm/files/audio/V2013011508.mp3
 02-14 12:24:06.011: E/MediaPlayer(29567): error (1, -2147483648)
 02-14 12:24:06.051: E/MediaPlayer(29567): Error (1,-2147483648)
 02-14 12:24:06.051: E/MessageListFragment(29567): what: 
 MediaPlayer.MEDIA_ERROR_UNKNOWN

 So far I have seen this on both a Nexus 7 and a Nexus 4 running JB 4.2.1, 
 it seems to work fine for the prior versions that I've been able to test 
 (4.0.4, 4.1.1).






-- 
-- 
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] Ratings Reviews SDK???

2013-02-14 Thread pawpaw17
I want to implement ratings  reviews in my app, and I'm about to write 
some server side code to do it. Does anyone know of a decent 
ratings/reviews SDK that is restful and appropriate for use in a native 
app? Just wondered if anyone else is in this boat?

Would love to hear from anyone on this topic.

Best!

pawpaw17

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

2013-02-14 Thread bob
 

Does anyone know of any good code to do LLMNR on Android?


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: How to compare a user input and then call a webView?

2013-02-14 Thread Kristopher Micinski
If you google textwatcher android example

http://stackoverflow.com/questions/8543449/how-to-use-textwatcher-in-android



On Thu, Feb 14, 2013 at 3:38 PM, Dan Uff danny@gmail.com wrote:
 Thanks for the reply.

 Can you post a code example on how this would be done?

 Thanks,
 Dan


 On Thursday, February 14, 2013 11:38:56 AM UTC-5, Nobu Games wrote:

 Set a TextWatcher on your EditText. When your watcher gets notified about
 changed text you can immediately pass that input on to your WebView. In
 order to avoid repeated calls to your WebView with incomplete user input you
 could rewrite your TextWatcher to start a timer when text has changed. The
 timer waits for one or two seconds until it updates the WebView. It gets
 cancelled / reset by your TextWatcher as soon as the text changed again.

 On Thursday, February 14, 2013 10:14:45 AM UTC-6, Dan Uff wrote:

 Hi all:

 This may sound like a basic question, but here goes

 I am accepting input from a user from an EditText field.  When he/she
 types in a route number (example: 101) I need to call a webView based on
 that number - showing a schedule for that route number.  I don't have any
 example code yet, because I have no idea how to set this up in Android (I am
 coming from iOS experience).

 I am using Eclipse as the programming environment.

 Thanks,
 Dan Uff

 --
 --
 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] bmgr not working?

2013-02-14 Thread Daniel
Hi,

I need help too !!

Thanks
www.neoage.com.br

On Monday, May 24, 2010 4:05:40 PM UTC-3, James Chou wrote:

 I'm trying to test out the new BackupManager class so I've been trying 
 to play around with the sample. For some reason I cannot get the bmgr 
 tool to work with the BackupRestoreActivity sample application 
 included in Android 2.2. What I tried was I started 
 BackupRestoreActivity, changed the inputs and typed in adb -e shell 
 bmgr backup com.example.android.backuprestore: 


 05-24 18:57:47.100: VERBOSE/BRActivity(1107): Checkbox toggled: 
 android.widget.CheckBox@43dce740 
 05-24 18:57:47.149: VERBOSE/BRActivity(1107): NEW STATE: mayo=true 
 tomato=false filling=2130968579 
 05-24 18:57:47.570: VERBOSE/BRActivity(1107): Checkbox toggled: 
 android.widget.CheckBox@43dcf3c0 
 05-24 18:57:47.570: VERBOSE/BRActivity(1107): NEW STATE: mayo=true 
 tomato=true filling=2130968579 
 05-24 18:57:48.451: VERBOSE/BRActivity(1107): New radio item selected: 
 2130968577 
 05-24 18:57:48.460: VERBOSE/BRActivity(1107): NEW STATE: mayo=true 
 tomato=true filling=2130968577 
 05-24 18:57:57.590: DEBUG/AndroidRuntime(1328):  
 AndroidRuntime START  
 05-24 18:57:57.860: DEBUG/AndroidRuntime(1328): --- registering native 
 functions --- 
 05-24 18:57:58.849: DEBUG/AndroidRuntime(1328): Shutting down VM 
 05-24 18:57:58.879: DEBUG/jdwp(1328): adbd disconnected 


 Followed by adb -d shell bmgr run: 

 05-24 18:57:58.889: INFO/AndroidRuntime(1328): NOTE: attach of thread 
 'Binder Thread #3' failed 
 05-24 18:58:04.400: DEBUG/AndroidRuntime(1340):  
 AndroidRuntime START  
 05-24 18:58:04.400: DEBUG/AndroidRuntime(1340): CheckJNI is ON 
 05-24 18:58:04.669: DEBUG/AndroidRuntime(1340): --- registering native 
 functions --- 
 05-24 18:58:05.549: WARN/BackupManagerService(60): Backup pass but 
 e=true p=false 
 05-24 18:58:05.569: DEBUG/AndroidRuntime(1340): Shutting down VM 
 05-24 18:58:05.569: DEBUG/jdwp(1340): adbd disconnected 
 05-24 18:58:05.611: INFO/AndroidRuntime(1340): NOTE: attach of thread 
 'Binder Thread #3' failed 
 05-24 18:58:19.215: DEBUG/SntpClient(60): request time failed: 
 java.net.SocketException: Address family not supported by protocol 


 Then I changed the fillings in the activity again and typed in adb -d 
 shell bmgr restore com.example.android.backuprestore. In the console 
 I see the output: 

 Unable to restore package com.example.android.backuprestore 
 done 

 and in the android logs: 


 05-24 18:58:49.660: VERBOSE/BRActivity(1107): New radio item selected: 
 2130968579 
 05-24 18:58:49.700: VERBOSE/BRActivity(1107): NEW STATE: mayo=true 
 tomato=true filling=2130968579 
 05-24 18:58:53.489: DEBUG/AndroidRuntime(1366):  
 AndroidRuntime START  
 05-24 18:58:53.489: DEBUG/AndroidRuntime(1366): CheckJNI is ON 
 05-24 18:58:53.750: DEBUG/AndroidRuntime(1366): --- registering native 
 functions --- 
 05-24 18:58:54.630: VERBOSE/LocalTransport(60): finishRestore() 
 05-24 18:58:54.671: DEBUG/AndroidRuntime(1366): Shutting down VM 
 05-24 18:58:54.690: DEBUG/jdwp(1366): adbd disconnected 
 05-24 18:58:54.724: INFO/AndroidRuntime(1366): NOTE: attach of thread 
 'Binder Thread #3' failed 

 Is anybody else having the same problem? 


 -- 
 You received this message because you are subscribed to the Google 
 Groups Android Developers group. 
 To post to this group, send email to 
 android-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 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-14 Thread Lew
Arun Kumar K wrote:

 I have doubt about layout..


You have a lot of dots, too.
 

 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 [sic] want to get the *existing_list idhow can i *[sic]* get it pls 
 *[sic]* help me*

 
What do you mean get the id?

If you mean refer to it in code, it's just R.id.existing_list.

-- 
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] Ratings Reviews SDK???

2013-02-14 Thread Παύλος-Πέτρος Τουρνάρης
I have already done this in my app but keeping it hidden from users cause
the server side is not yet ready! Looking forward to your server side code
if you are gonna open source it!



On Thu, Feb 14, 2013 at 11:08 PM, pawpaw17 georgefraz...@yahoo.com wrote:

 I want to implement ratings  reviews in my app, and I'm about to write
 some server side code to do it. Does anyone know of a decent
 ratings/reviews SDK that is restful and appropriate for use in a native
 app? Just wondered if anyone else is in this boat?

 Would love to hear from anyone on this topic.

 Best!

 pawpaw17

 --
 --
 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: MediaPlayer suddenly stopped working in Android 4.2

2013-02-14 Thread Alex Lockwood
The emulated directory you see in the pathname doesn't mean he is using 
the emulator. This directory structure was modified in API 17 due to the 
addition of multiuser support.

I'm having the same problem... trying to figure it out now.

On Thursday, February 14, 2013 3:46:37 PM UTC-5, bob wrote:

 Have you tried it on a real device or just the emulator?



 On Thursday, February 14, 2013 11:38:22 AM UTC-6, Brill Pappin wrote:

 I've been working on an app that plays MP3 files and have started with 
 out with the lowest supported android version and working upward toward JB.

 For some reason the MediaPlayer starts generating an error in Android 4.2 
 when it has been working just fine until now.
 Nobody seems to know what has changed or how to work around it. The only 
 suggestions I've found so far are to do with permissions, but unless they 
 have changed radically for external storage, the MediaPlayer should have 
 permission to read the files.

 Here is some relevant information. Notice there is no stack trace, just a 
 message printed out.
 (I've included some of my debugging output for reference).

 02-14 12:24:05.210: I/MessageListFragment(29567): *** FILE [exists:true]: 
 file:///storage/emulated/0/Android/data/com.primaltech.vvm/files/audio/V2013011508.mp3
 02-14 12:24:06.001: D/MessageListFragment(29567): Local data file: id=1, 
 rid=V2013011508, 
 uri=file:///storage/emulated/0/Android/data/com.primaltech.vvm/files/audio/V2013011508.mp3
 02-14 12:24:06.001: D/MessageListFragment(29567): Preparing to play: 
 file:///storage/emulated/0/Android/data/com.primaltech.vvm/files/audio/V2013011508.mp3
 02-14 12:24:06.011: E/MediaPlayer(29567): error (1, -2147483648)
 02-14 12:24:06.051: E/MediaPlayer(29567): Error (1,-2147483648)
 02-14 12:24:06.051: E/MessageListFragment(29567): what: 
 MediaPlayer.MEDIA_ERROR_UNKNOWN

 So far I have seen this on both a Nexus 7 and a Nexus 4 running JB 4.2.1, 
 it seems to work fine for the prior versions that I've been able to test 
 (4.0.4, 4.1.1).






-- 
-- 
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] Edittext - can't type

2013-02-14 Thread Ocean
I am a newbie in android developement. i am not able to entered or type in 
edittext using keyboard and whiledouble click , able to entered using 
Android emulator keyboard.

-- 
-- 
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] Pass Object

2013-02-14 Thread sree android
Hi friends,

I have a dout on Fragments.How can i pass object from fragment to fragment.
Here My Code,

CityData tname = lcd.get(position);
CityFragment f2=new CityFragment();
Bundle b=new Bundle();
b.putSerializable(TNAME,tname);
Log.i(,Passed Data:+b.size());
f2.setArguments(b);

-- 
-- 
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] Pass Object between Fragments

2013-02-14 Thread sree android
Hi friends,

I have a dout on Fragments.How can i pass object from fragment to fragment.
Here My Code,

  /*/Sending Object.*
CityData tname = lcd.get(position);//Here lcd is ArrayList
Object and CityData is POJO class.

CityFragment f2=new CityFragment();//Fragment Class
Bundle b=new Bundle();
b.putSerializable(TNAME,tname);
Log.i(,Passed Data:+b.size());//Here Bundle length is 1.
f2.setArguments(b);//this length is Zero.


* //Retriveing Object*

 Bundle bun =getArguments();
CityData cd=(CityData) bun.getSerializable(TNAME);//Here Value
Null.
cityid=cd.getID();
tv.setText(cd.getNameEnglish())

Please any Body solve my problum.How i pass Data between Fragments.

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] Re: Pass Object between Fragments

2013-02-14 Thread Seshu
Hi Sree,
  U need interface for sending data between two fragments.
http://manishkpr.webheavens.com/android-passing-data-between-fragments/
see this example.. it ll helps u...

On Feb 15, 10:11 am, sree android android.sreeni...@gmail.com wrote:
 Hi friends,

 I have a dout on Fragments.How can i pass object from fragment to fragment.
 Here My Code,

               /*/Sending Object.*
                 CityData tname = lcd.get(position);//Here lcd is ArrayList
 Object and CityData is POJO class.

                 CityFragment f2=new CityFragment();//Fragment Class
                 Bundle b=new Bundle();
                 b.putSerializable(TNAME,tname);
                 Log.i(,Passed Data:+b.size());//Here Bundle length is 1.
                 f2.setArguments(b);//this length is Zero.

             * //Retriveing Object*

          Bundle bun =getArguments();
         CityData cd=(CityData) bun.getSerializable(TNAME);//Here Value
 Null.
         cityid=cd.getID();
         tv.setText(cd.getNameEnglish())

 Please any Body solve my problum.How i pass Data between Fragments.

 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] Debugger to run Android Applications

2013-02-14 Thread Sagar Rout
while i run my program in android emulator there is a flash of warning of 
1-2 second that debugger is watch the Application.
and i am not able to type in edittext and there is nothing happens using my 
laptop keyboard i have not use emulator keyboard.
what is the cause and the reason behind in this  warning like condition.

-- 
-- 
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] Progarm unexpectdly error

2013-02-14 Thread Sagar Rout
when i ranmy program there s  a error and my program stopped unexpectdly 
please help me this problem so that i can configure it.

-- 
-- 
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] Testing In-App billing: Is a factory reset necessary?

2013-02-14 Thread Jungle Jim
I am developing an app that will include in-app billing. I understand that 
in order to test the billing functions, I need to set up a test google 
account.

Here's what google's developer site says about the test account:

http://developer.android.com/google/play/billing/billing_testing.html#billing-testing-setup

To perform end-to-end testing of In-app Billing, the primary account on 
 your device must be one of the test 
 accountshttp://developer.android.com/google/play/billing/billing_admin.html#billing-testing-setup
  that 
 you registered on the Google Play site. If the primary account on your 
 device is not a test account, you must do a factory reset of the device and 
 then sign in with one of your test accounts. 


 I have two Android devices I can test with, but I don't want to do a 
factory reset on either one. Is there some way to do the proper testing 
without a factory reset? 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.




[android-developers] Re: Progarm unexpectdly error

2013-02-14 Thread Lew
Sagar Rout wrote:

 when i ranmy program there s  a error and my program stopped unexpectdly 
 please help me this problem so that i can configure it.


You need to give details. It's best if you can provide an example of code 
that creates the behavior.

http://sscce.org/

and explain exactly what you did and copy and paste any error messages into 
your post and describe 
precisely how the results you got differed from what you expected.

http://www.catb.org/esr/faqs/smart-questions.html

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