[android-developers] Re: Reading the headers in server after HTTP Post

2012-10-24 Thread Archana
Hi, when I use that, 
StringWriter writer = new 
StringWriter();
IOUtils.copy(socket.getInputStream(),writer,HTTP.UTF_8);
String string = writer.toString();
Log.d(Writer value is : ,writer.toString());
Nothing is getting printed in console. Can you provide an example link?

On Wednesday, October 24, 2012 3:48:24 AM UTC+3, skink wrote:



 Archana wrote: 
  Hi, I did a HTTP Post from client. In server, I am able to see like, 
  POST /HTTP/ 1.1 
  Content Length: 41 
  Content-type: application/json 
  Host:10.0.2.15:5001 
  Connection: Keep Alive 
  
  How do I retrieve the content of JSON using socket.getInputStream()? 
  
  Any example/help is appreciated. Thanks in advance! 

 http://www.google.com/search?q=inputstream+to+string 

 pskink 


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

[android-developers] Re: How to get the connection state of the Bluetooth Low Energy Profile?

2012-10-24 Thread Abhishek Kumar Gupta
Hi Bob, thanks for the reply. 
But public int *getProfileConnectionState* (int profile) is for Bluetooth 
Classic Devices only, not for Bluetooth Low Energy Devices.

On Tuesday, 23 October 2012 18:18:08 UTC+5:30, Abhishek Kumar Gupta wrote:

 I want to know the connection state of the Bluetooth Low Energy Profile. 
 Is there any method to get it? Please help me.


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

[android-developers] Re: Reading the headers in server after HTTP Post

2012-10-24 Thread skink


Archana wrote:
 Hi, when I use that,
 StringWriter writer = new
 StringWriter();
 IOUtils.copy(socket.getInputStream(),writer,HTTP.UTF_8);
 String string = writer.toString();
 Log.d(Writer value is : ,writer.toString());
 Nothing is getting printed in console. Can you provide an example link?



so it probably hangs somewhere, try to debug your code

pskink

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


[android-developers] Re: Reading the headers in server after HTTP Post

2012-10-24 Thread Archana
Actually when I print using
InputStreamReader isr =  new 
InputStreamReader(socket.getInputStream(),utf-8);
BufferedReader br = new BufferedReader(isr);
int b;
StringBuilder buf = new StringBuilder();
Log.d(Before while,whil);
 while ((b = br.read()) != -1) {
buf.append((char) b);
System.out.println(+(char)b);
}
I see a blank line between the headers and the message. Please let me know 
how to get contents after this?

On Wednesday, October 24, 2012 9:09:23 AM UTC+3, Archana wrote:

 Hi, when I use that, 
 StringWriter writer = new 
 StringWriter();
 IOUtils.copy(socket.getInputStream(),writer,HTTP.UTF_8);
 String string = writer.toString();
 Log.d(Writer value is : ,writer.toString());
 Nothing is getting printed in console. Can you provide an example link?

 On Wednesday, October 24, 2012 3:48:24 AM UTC+3, skink wrote:



 Archana wrote: 
  Hi, I did a HTTP Post from client. In server, I am able to see like, 
  POST /HTTP/ 1.1 
  Content Length: 41 
  Content-type: application/json 
  Host:10.0.2.15:5001 
  Connection: Keep Alive 
  
  How do I retrieve the content of JSON using socket.getInputStream()? 
  
  Any example/help is appreciated. Thanks in advance! 

 http://www.google.com/search?q=inputstream+to+string 

 pskink 



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

[android-developers] Re: Reading the headers in server after HTTP Post

2012-10-24 Thread skink


Archana wrote:
 Actually when I print using
 InputStreamReader isr =  new
 InputStreamReader(socket.getInputStream(),utf-8);
 BufferedReader br = new BufferedReader(isr);
 int b;
 StringBuilder buf = new StringBuilder();
 Log.d(Before while,whil);
  while ((b = br.read()) != -1) {
 buf.append((char) b);
 System.out.println(+(char)b);
 }
 I see a blank line between the headers and the message. Please let me know
 how to get contents after this?



see http://www.w3.org/Protocols/rfc2616/rfc2616.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


[android-developers] Re: PBAP CLIENT

2012-10-24 Thread yulongfei
htc g11 also  return   OBEX_HTTP_UNAVAILABLE 。

htc modify a lot about  pbap server

did you resolve this problem?

在 2011年5月20日星期五UTC+8下午6时27分18秒,Anirudh Kashyap写道:

 Hi, 

 I have implemented a PBAP client. I am able to establish a OBEX 
 Connection and connect to the PBAP server on the other android device. 

 I am able to retrieve the vcards from certain devices. 

 But I am not able to retrieve contacts from HTC Wildfire and DESIRE 
 HD. When i send the GET request to PBAP Server it returns me 
 OBEX_HTTP_UNAVAILABLE which is weired. 

 Please can someone let me know where I am going wrong?. 

 I am setting the following headers in the PBAP request 

 NAME : telecom/pb.vcf 
 TYPE : x-bt/phonebook 
 APPLICATION PARAMETERS : 

 FILTERS : 0x 
 START_OFFSET : 0 
 MAX_LIST_COUNT : 65535 
 FORMAT : VCARD2.1 
 The above parameters work fine with Nexus S and one more phone. 

 Regards, 
 anirudh

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

[android-developers] Google Checkout Account

2012-10-24 Thread katarina
Dear friends,

We are developers from Serbia and Canada. We want to sell our
application on the Google Market. We want to connect our Google
Checkout accont with a bank account in Canada.

But when we try to open up a Google Checkout account from Canada it
will not let us do, because only options for addresses are US and UK.
As well as the tax information.

What are we doing wrong? What do we have to open first, is there some
developer account that we can open and then connect it to the Google
Checkout with information from Canada?

Something is wrong here and we don't know what.

Many thanks to everybody on the forum,
Katarina

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


[android-developers] start service from service

2012-10-24 Thread Live Happy
I have a service in my application but this service stop working after time
and i want to keep the service keep working without stopping and for that i
try to start the same service from onDestroy method when it dieing but its
not work even the written log not appear ,so  it is possible to call the
service from itself and if it  not may i create another service who do the
same work and they call each other when one of them stopped, so when in
onDestory i cant call it so how to call it?, wish that someone can help me
with this situation thx on advance

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

[android-developers] Re: Google Checkout Account

2012-10-24 Thread katarina
To even describe better, when we go directly to Google Checkout, but
not through Google Play Developers Console,
then, it only gives US and UK addresses options.
Will it be different through Google Play Developers Console, will it
let us insert address and account from Canada?

All the best,
Katarina

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


[android-developers] Slide Example

2012-10-24 Thread Sadhna Upadhyay
Hi Everyone,
 i want to make app in which i want to use slide
functionality but i dont know how to do this,can some one tell me pls help
me.

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

[android-developers] Swipe Example

2012-10-24 Thread Sadhna Upadhyay
Hi everybody,
   my swipe activity is not working smoothly on tablet.can
some tell me how to do this?

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

Re: [android-developers] Google Checkout Account

2012-10-24 Thread Ralph Bergmann | the4thFloor.eu

Am 24.10.12 09:27, schrieb katarina:

But when we try to open up a Google Checkout account from Canada it
will not let us do, because only options for addresses are US and UK.
As well as the tax information.


read this:
https://groups.google.com/d/msg/android-developers/CDUCZVQ_PEA/Q-3ohhhD33AJ


Ralph

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


Re: [android-developers] WifiDirect with WifiDirect NSD

2012-10-24 Thread Zach
Hi,
Thanks for you response.
yes I am making a call to requestConnectioInfo inside 
the WIFI_P2P_CONNECTION_CHANGED_ACTION notification.here is the code 
snippet for that

NetworkInfo networkInfo = (NetworkInfo) intent
 .getParcelableExtra(WifiP2pManager.
 EXTRA_NETWORK_INFO);
 if (networkInfo.isConnected()) 
 {
 // we are connected with the other device, request 
 connection
 // info to find group owner IP
 mManager.requestConnectionInfo(mChannel, mService);
 //mService.requestGroupInfo(mService);
 }


but the fact is I am not getting any WIFI_P2P_CONNECTION_CHANGED_ACTION 
notification. On connect call back I am getting a success what does that 
means.  dont think that means a connection is established .But everything 
works fine if i dont run Network service discovery on wifidirect.

I have noted one more interesting fact that I I do a debug with putting 
break points in all wifidirect call backs mainly a breakpoint inside 
onPeersAvailable() it works fine. No idea what that implies?

Thanks

On Tuesday, October 23, 2012 5:59:02 PM UTC+1, Irfan Sheriff wrote:



 On Tue, Oct 23, 2012 at 9:38 AM, Zach zachar...@gmail.com 
 javascript:wrote:

 Hi,

 I am working on wifi direct with network service discovery. Heres what I 
 do for that

 For a Server(Device which first starts)

1. Initialize and Start Wifi Direct
2. Start a WifiDirect Group
3. Register a Local Service and Start service discovery


 For a client(All devices which starts after the first one)

1. Initialize and Start wifi direct
2. Check for Group owners, store details of group owner found
3. If found Register local service and start service discovery
4. When new device info is available via NSD, checks whether its the 
type of device expecting;add it to data structure
5. For all devices in data structure identify wifi direct group owner 
and establish a connection with it


 Things go wrong from here, after establishing a connection I am expecting 
 a call back to onConnectionInfo available; but it never happens on client 
 device.

 If I am not starting NSD everything works fine. I am getting a callback 
 to onConnectionInfo available immediately after connecting with remote 
 device(GO).


 wait, the callback to onConnectionInfo() comes only if you 
 requestConnectionInfo(). Do you mean you dont get a connection changed 
 broadcast ? Do you get peers changed broadcast which says what is going on 
 with various peers ?
  

 I was following this tutorial 
 http://developer.android.com/training/connect-devices-wirelessly/nsd-wifi-direct.html

 Whats going wrong here?
 Many 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 post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Google Checkout Account

2012-10-24 Thread katarina
Thanks Ralph!

On 24 окт, 12:03, Ralph Bergmann | the4thFloor.eu
ra...@the4thfloor.eu wrote:
 Am 24.10.12 09:27, schrieb katarina:

  But when we try to open up a Google Checkout account from Canada it
  will not let us do, because only options for addresses are US and UK.
  As well as the tax information.

 read 
 this:https://groups.google.com/d/msg/android-developers/CDUCZVQ_PEA/Q-3ohh...

 Ralph

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


[android-developers] Re: Reading the headers in server after HTTP Post

2012-10-24 Thread Archana
Hi, my problem is similar 
to 
stackoverflow.com/questions/13046872/receiving-data-from-http-post-using-sockets

Can someone help me?

On Wednesday, October 24, 2012 9:57:33 AM UTC+3, skink wrote:



 Archana wrote: 
  Actually when I print using 
  InputStreamReader isr =  new 
  InputStreamReader(socket.getInputStream(),utf-8); 
  BufferedReader br = new BufferedReader(isr); 
  int b; 
  StringBuilder buf = new StringBuilder(); 
  Log.d(Before while,whil); 
   while ((b = br.read()) != -1) { 
  buf.append((char) b); 
  System.out.println(+(char)b); 
  } 
  I see a blank line between the headers and the message. Please let me 
 know 
  how to get contents after this? 
  
  

 see http://www.w3.org/Protocols/rfc2616/rfc2616.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

[android-developers] ffmpeg not working on device

2012-10-24 Thread Narendra Singh Rathore
Hello all,

I am actually running the following command using ffmpeg on terminal for
making a video from a no. of images.


ffmpeg -f image2 -r 08 -i %05d.jpg -vcodec mpeg4 test12.mp4


This is working fine, if I save the images inside ffmpeg and try to make a
video at the same location, using terminal. But in case I use this command
in my application, and try to execute that on device, that isn't working at
all.

By the way, I have stored images inside sdcard and trying to make video on
the same location (i.e, sdcard).
In my application, I used the command as follows:


void convertImg_to_vid()
{

try {

 String ffmpeg_cmd= ffmpeg -f image2 -r 08 -i /sdcard/%05d.jpg -vcodec
mpeg4 /sdcard/test4.mp4;

 Runtime.getRuntime().exec(ffmpeg_cmd);


} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}

}


One more thing, for ffmpeg assistance, I have included ffmpeg library in my
project.

Please, direct me, where I am wrong.


Thanks and Regards
NSR.

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

[android-developers] how to send and receive the voice message from one android device to another

2012-10-24 Thread Tom
Hi,

I am recording and play the audio. But i don't know how to send this voice 
message from one android device to another.

If any body know this concept. please help me...


Thanks,

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

[android-developers] Audio Over Bluetooth Mono Headset working in Gingerbread and not ICS

2012-10-24 Thread Ahmed Abdelfattah


I have written a simple app that records and plays audio through a 
Bluetooth Mono headset usingstartBluetoothSco(). The app works fine on 
Gingerbread but fails to work on ICS. The output of logcat is strange

D/BluetoothSocket.cpp( 1554): ...connect(76, SCO) = 0 (errno 115)
D/BluetoothSocket( 1554): called connectNative
D/Bluetooth HS/HF( 1554): mOutgoingSco.connect() success!
D/Bluetooth HS/HF( 1554): connectSco()
D/Bluetooth HS/HF( 1554): Routing audio for outgoing SCO conection
D/BluetoothHeadset( 1554): setAudioState
D/BluetoothHeadset( 1554): setAudioState
D/Bluetooth HSHFP( 1554): AudioStateIntent: 00:23:7F:EB:4F:10 State: 12 
PrevState: 11 
D/BluetoothSocket.cpp( 1554): readNative
D/BluetoothSocket.cpp( 1554): readNative
D/BluetoothSocket.cpp( 1554): readNative
D/BluetoothSocket.cpp( 1554): readNative
D/BluetoothSocket.cpp( 1554): readNative
D/BluetoothSocket.cpp( 1554): readNative
D/BluetoothSocket.cpp( 1554): readNative
D/BluetoothSocket.cpp( 1554): readNative
D/BluetoothSocket.cpp( 1554): readNative

It keeps calling the Native read from socket function till the app (sco 
connection) is terminated . It's worth mentioning that  tried tha app on 
Samsung Galaxy Mini(Gingerbread) , HTC (Gingerbread) , pandaboard(ICS) and 
ODROID-X(ICS). 

Any suggestions for why the app stucks and readNative is being repeatably 
called ?

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

[android-developers] Re: Reading the headers in server after HTTP Post

2012-10-24 Thread skink


Archana wrote:
 Hi, my problem is similar
 to 
 stackoverflow.com/questions/13046872/receiving-data-from-http-post-using-sockets

 Can someone help me?


if you learned how to efficiently use google instead  of asking people
each time you have  any problem you would find this:

http://stackoverflow.com/questions/8246662/handling-post-requests-in-android

pskink

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


[android-developers] payment gateway for android India

2012-10-24 Thread vani reddy
Hi friends,

I am implementing payment gateway for android ,
I found this
http://developer.authorize.net/integration/fifteenminutes/android/,
but this is in USD  but I need in Indian Rupees.

-- 
Regards,
Vani Reddy

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

[android-developers] Re: Reading the headers in server after HTTP Post

2012-10-24 Thread Archana
Thank you for your support! As I am still a learner(with just 3 months 
working in Android), I have some problems. 

On Wednesday, October 24, 2012 3:29:16 PM UTC+3, skink wrote:



 Archana wrote: 
  Hi, my problem is similar 
  to 
 stackoverflow.com/questions/13046872/receiving-data-from-http-post-using-sockets
  
  
  Can someone help me? 
  

 if you learned how to efficiently use google instead  of asking people 
 each time you have  any problem you would find this: 


 http://stackoverflow.com/questions/8246662/handling-post-requests-in-android 

 pskink 


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

Re: [android-developers] Re: Android camera orientation problem

2012-10-24 Thread Jim Graham
On Tue, Oct 23, 2012 at 09:50:31PM -0700, Adam Ratana wrote:

 I've just spent quite a bit of my spare time working on implementing a 
 portrait mode activity option for the camera preview - to answer Spooky's 
 question, the main reason one might do this is because it goes well with 
 the UI/UX of the application (specifically the other activities which share 
 a common UI), and the application for the camera activity is augmented 
 reality,

Ahhh, yes.  Good point.  I hadn't thought about that.

Later,
   --jim

-- 
THE SCORE:  ME:  2  CANCER:  0
73 DE N5IAL (/4) //  North American Hunting Club Member #70781171
ICBM/Hurr.: 30.44406N 86.59909 // Running Mac OS X Lion W

Seen in alt.sysadmin.recovery:  Priceless; that's better than telling
him to use the Read Manual command with the Real Fast option.

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


[android-developers] Chances of TELEPHONY_SERVICE return null

2012-10-24 Thread thejaswi s
Is there any chances of getting TELEPHONY_SERVICE as null ?

TelephonyManager teleman = (TelephonyManager) getBaseContext()
.getSystemService(Context.TELEPHONY_SERVICE);

I mean is there any chances of getting teleman as null in the above line ?

Thanks in advance for reply.

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

[android-developers] What is the norm these days to save the state of a custom view

2012-10-24 Thread Satya Komatineni
The literature seem to indicate a number of alterantives

1. Just have the activity or fragment call a dedicated save and
restore methods especially if the base class of your SpecialView is
View.
2. Use the View's capabilities of onSaveInstanceState() and ignore the
null from the VIew implementation
3. Or use the BaseSaveState pattern that is used by things like TextView etc.

Appreciate your thoughts and comments.

Thanks
Satya

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


Re: [android-developers] start service from service

2012-10-24 Thread TreKing
On Wed, Oct 24, 2012 at 2:46 AM, Live Happy livehap...@gmail.com wrote:

 i want to keep the service keep working without stopping


You can't do this.

What are you trying to achieve?

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

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

[android-developers] PC Remote Control

2012-10-24 Thread tamer hatoum
Dear All;
I want to build an application on my android device that have a mouse pad 
which will control the mouse on my PC same as this link :
http://www.remotedroid.net/

so kindly give me some tips how to start building that app, and do I have 
to use TCP/IP client server ? or what methods do I have to use ?

any help or sample code will be appreciated

regards 

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

[android-developers] Re: Google Checkout Account

2012-10-24 Thread MathieuB
Its really badly documented. Google should do something about it as it is 
not normal.

On Wednesday, October 24, 2012 6:13:27 AM UTC-4, katarina wrote:

 Thanks Ralph! 

 On 24 окт, 12:03, Ralph Bergmann | the4thFloor.eu 
 ra...@the4thfloor.eu wrote: 
  Am 24.10.12 09:27, schrieb katarina: 
  
   But when we try to open up a Google Checkout account from Canada it 
   will not let us do, because only options for addresses are US and UK. 
   As well as the tax information. 
  
  read this:
 https://groups.google.com/d/msg/android-developers/CDUCZVQ_PEA/Q-3ohh... 
  
  Ralph 


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

[android-developers] Re: WifiDirect with WifiDirect NSD

2012-10-24 Thread Zach
Hi,
I made it work! Just swapped steps 2 and 3 on server
So on server new order is

   1. Initialize and Start WiFi Direct
   2. Register a Local Service and Start Service Discovery
   3. Start a Wifi Direct Group

With old oder one thing I found was that the client was not getting any 
notification regarding a successful connection once a connection is 
established. But at the same time server receives notification that network 
is formed. So I assume that once connection was made by server the server 
may be passing some acknowledgement back to the client. With previous oder 
server was blocked some how. I am not 100% sure about my inference. If you 
think differently let me know.

Thanks

On Tuesday, October 23, 2012 5:38:46 PM UTC+1, Zach wrote:

 Hi,

 I am working on wifi direct with network service discovery. Heres what I 
 do for that

 For a Server(Device which first starts)

1. Initialize and Start Wifi Direct
2. Start a WifiDirect Group
3. Register a Local Service and Start service discovery


 For a client(All devices which starts after the first one)

1. Initialize and Start wifi direct
2. Check for Group owners, store details of group owner found
3. If found Register local service and start service discovery
4. When new device info is available via NSD, checks whether its the 
type of device expecting;add it to data structure
5. For all devices in data structure identify wifi direct group owner 
and establish a connection with it


 Things go wrong from here, after establishing a connection I am expecting 
 a call back to onConnectionInfo available; but it never happens on client 
 device.

 If I am not starting NSD everything works fine. I am getting a callback to 
 onConnectionInfo available immediately after connecting with remote 
 device(GO).
 I was following this tutorial 
 http://developer.android.com/training/connect-devices-wirelessly/nsd-wifi-direct.html

 Whats going wrong here?
 Many Thanks


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

[android-developers] logcat app

2012-10-24 Thread bob
 

Is it possible to make an app that displays the contents of the logcat?


Or is there some new security stuff that disallows this?

Thanks.




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

[android-developers] Dialog options from a library project?

2012-10-24 Thread ColorTheorist
I've noticed that when developing an SDK library project, there is a desire 
to have a check as to whether the bluetooth functionality is turned on for 
the device before proceeding.
However, as a library project, I am restricted to the absence of my own 
activity.  I had hoped to call the following with the context of the 
application passed into the library:
  new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE);
This was with the hope that it would wait for a reply before finishing. 
 Since the library is an SDK meant to communicate with a device, it isn't 
its own activity to override an onActivityWithResult( ) call that I could 
use to trigger a continuation on the code.  How is typical situation such 
as these with a desire to have a blocking UI component handled for an 
Android Library?  I haven't found any decent conclusions thus far.

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

[android-developers] Re: logcat app

2012-10-24 Thread RichardC
See this thread READ_LOGS permission is not granted to 3rd party 
applications in Jelly Bean (api 16):
https://groups.google.com/forum/#!msg/android-developers/6U4A5irWang/_sYKDrvTITMJ

On Wednesday, October 24, 2012 4:09:19 PM UTC+1, bob wrote:

 Is it possible to make an app that displays the contents of the logcat?


 Or is there some new security stuff that disallows this?

 Thanks.






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

[android-developers] Re: Dialog options from a library project?

2012-10-24 Thread ColorTheorist
I suppose I could let the application itself that uses the SDK be 
responsible for doing the check and turning on/off the blue tooth when 
needed, but I figured it would be nice if the SDK itself could do the check 
for them.  I had been hoping that there would be a nice solution for 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

[android-developers] Re: Chances of TELEPHONY_SERVICE return null

2012-10-24 Thread RichardC
On devices that are not phones e.g TVs and most Tablets.

On Wednesday, October 24, 2012 2:33:37 PM UTC+1, thejaswi s wrote:

 Is there any chances of getting TELEPHONY_SERVICE as null ?
  
 TelephonyManager teleman = (TelephonyManager) getBaseContext()
 .getSystemService(Context.TELEPHONY_SERVICE);

 I mean is there any chances of getting teleman as null in the above line ? 

 Thanks in advance for reply.


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

[android-developers] Making the same API key work for both developing AND publishing

2012-10-24 Thread Jason Hsu
I recently published an app that uses Google Maps.  As you know, you need 
to provide your API key for Google Maps.

When I published the first version of my app, the map display in my Google 
Play app didn't work even though it did work when I ran my app from source 
code.  So I had to change the API key in the source code and republish my 
app, and Google Maps did work in my second version.  However, Google Maps 
didn't work when I ran my app from source code.

Given this conundrum, is there a way I can use the same API key for both 
developing AND publishing apps?

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

[android-developers] Does content provider run in its own process space?

2012-10-24 Thread Subodh Nijsure
Hello,

I will briefly describe application I am writing.

1. Application is used in environment where phone/tablet may not have
network connectivity, person is collecting some data using the app on
the device.
2. This collected data is stored using a content provider, that uses
sqlite database (SQLiteCursorLoader from CommonsWare book) and this
content provider is part of library.
3. There is background service that is gets started when upon boot
completed notification, and it waits for network connectivity
broadcast. Once the device has
network connection, it retrieves the data using the content
provider in step 2. This service  uploads the collected data to amazon
cloud service.
We don't want this upload process to happen in context of UI hence
the service.

I read the commons ware book (page 459 to be specific)  and the
database instance that content provider uses singleton database object
based off of getActivity().getApplicationContext().

Now the question is -- what happens if the service (3) is using the
content provider and user starts the UI (1)  that also attempts to use
the same content provider, is the UI going to experience issue opening
the database, is it going to encounter ANR?

Put other way,  does the content provider run in its own process? And
are requests  responses to content provider serialized?

If there is good description of multiple clients using a content
provider (simultaneously) and issues involved would appreciate pointer
to that.

-Subodh Nijsure

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


[android-developers] Re: PC Remote Control

2012-10-24 Thread bob
Why do you want to do this when there are apps that already do it?

I think I tried this one a few months back:

https://play.google.com/store/apps/details?id=com.Relmtech.Remote

It uses Wifi or Bluetooth.


On Wednesday, October 24, 2012 9:06:45 AM UTC-5, tamer hatoum wrote:

 Dear All;
 I want to build an application on my android device that have a mouse pad 
 which will control the mouse on my PC same as this link :
 http://www.remotedroid.net/

 so kindly give me some tips how to start building that app, and do I have 
 to use TCP/IP client server ? or what methods do I have to use ?

 any help or sample code will be appreciated

 regards 


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

Re: [android-developers] Does content provider run in its own process space?

2012-10-24 Thread Mark Murphy
On Wed, Oct 24, 2012 at 2:36 PM, Subodh Nijsure
subodh.nijs...@gmail.com wrote:
 We don't want this upload process to happen in context of UI hence
 the service.

Please use a single process, and simply have the upload work be done
in a background thread.

 I read the commons ware book (page 459 to be specific)  and the
 database instance that content provider uses singleton database object
 based off of getActivity().getApplicationContext().

Page 459 does not say this.

It says that you need to use a single SQLiteDatabase object if you
want SQLiteDatabase to help with thread safety. Page 459 does not
address ContentProvider at all.

 Now the question is -- what happens if the service (3) is using the
 content provider and user starts the UI (1)  that also attempts to use
 the same content provider, is the UI going to experience issue opening
 the database, is it going to encounter ANR?

Possibly. SQLite implements process-level locking -- you use it all
the time from, say, Ruby. I have not played with its effects on
Android, as I don't waste the user's RAM and CPU with extra processes.

 Put other way,  does the content provider run in its own process?

It runs in the process that the rest of your components run in, normally.

 And
 are requests  responses to content provider serialized?

I do not think so, but I have been confused on this particular point before.

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

_The Busy Coder's Guide to Android Development_ Version 4.2 Available!

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


Re: [android-developers] Making the same API key work for both developing AND publishing

2012-10-24 Thread TreKing
On Wed, Oct 24, 2012 at 12:19 PM, Jason Hsu jhsu802...@gmail.com wrote:

 When I published the first version of my app, the map display in my Google
 Play app didn't work even though it did work when I ran my app from source
 code.  So I had to change the API key in the source code and republish my
 app, and Google Maps did work in my second version.  However, Google Maps
 didn't work when I ran my app from source code.


You were probably first using your debug key then your release key.


 Given this conundrum, is there a way I can use the same API key for both
 developing AND publishing apps?


No. The key is derived from the signing key for the app, which is the
default debug key in debug / dev mode and your signing key when you publish.

What I do is determine the map key at run time based on the build type and
initialize the MapView with that.

Something like this:

String mapKey = isDebug() ? DEBUG_KEY : RELEASE_KEY;
MapView view = new MapView(mapKey);

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

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

Re: [android-developers] Does content provider run in its own process space?

2012-10-24 Thread Subodh Nijsure
On Wed, Oct 24, 2012 at 11:45 AM, Mark Murphy mmur...@commonsware.com wrote:
 On Wed, Oct 24, 2012 at 2:36 PM, Subodh Nijsure
 subodh.nijs...@gmail.com wrote:
 We don't want this upload process to happen in context of UI hence
 the service.

 Please use a single process, and simply have the upload work be done
 in a background thread.

I guess then I am confused on if  sync thread terminates if the UI
activity is destroyed or not.
What I want to happen is this background thread that syncs data to aws
should never terminate,and ideally it should get started when device
boot finishes i.e. data collected while there was no network
connectivity, should get uploaded to AWS without user having to do it
explicitly.
I do start my service such that it returns START_STICKY in its
onStartCommand(), is that sufficient for the service to keep running
even if activity is destroyed?


 I read the commons ware book (page 459 to be specific)  and the
 database instance that content provider uses singleton database object
 based off of getActivity().getApplicationContext().

 Page 459 does not say this.

 It says that you need to use a single SQLiteDatabase object if you
 want SQLiteDatabase to help with thread safety. Page 459 does not
 address ContentProvider at all.


Yes it does not mention CP, didn't mean to imply it did.

 Now the question is -- what happens if the service (3) is using the
 content provider and user starts the UI (1)  that also attempts to use
 the same content provider, is the UI going to experience issue opening
 the database, is it going to encounter ANR?

 Possibly. SQLite implements process-level locking -- you use it all
 the time from, say, Ruby. I have not played with its effects on
 Android, as I don't waste the user's RAM and CPU with extra processes.

 Put other way,  does the content provider run in its own process?

 It runs in the process that the rest of your components run in, normally.

 And
 are requests  responses to content provider serialized?

 I do not think so, but I have been confused on this particular point before.

 --
I am going to try and model this (best I can) but I just wanted to get
expert opinion to see if its worthwhile

-Subodh

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


Re: [android-developers] start service from service

2012-10-24 Thread Subodh Nijsure
On Wed, Oct 24, 2012 at 12:46 AM, Live Happy livehap...@gmail.com wrote:
 I have a service in my application but this service stop working after time
 and i want to keep the service keep working without stopping and for that i
 try to start the same service from onDestroy method when it dieing but its
 not work even the written log not appear ,so  it is possible to call the
 service from itself and if it  not may i create another service who do the
 same work and they call each other when one of them stopped, so when in
 onDestory i cant call it so how to call it?, wish that someone can help me
 with this situation thx on advance

Have you tried returning START_STICKY in onStartCommand() of the
service. It is supposed to keep the service running till user
explicitly stops the service.

Ref: 
http://developer.android.com/reference/android/app/Service.html#onStartCommand%28android.content.Intent,%20int,%20int%29
-Subodh


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


[android-developers] Re: How to detect tablet devices

2012-10-24 Thread Aaron
I know this is an old thread but in case someone stumbles across this in 
the future the best way (for me at least) to solve this was to get the 
metrics of the screen size (width and height in pixels) calculate the 
hypotenuse then divide by the dpi.  In theory this gives you the dimension 
in inches of the screen size.

With that you can make the decision about what tablet means to you and then 
you can make decisions appropriately, here is a code snippet:


DisplayMetrics metrics = new DisplayMetrics();

getWindowManager().getDefaultDisplay().getMetrics(metrics);

double inches = Math.sqrt((metrics.widthPixels * metrics.widthPixels) 
+ (metrics.heightPixels * metrics.heightPixels)) / metrics.densityDpi;

if (inches  TABLET_SIZE)

{

this.setRequestedOrientation(ActivityInfo.
SCREEN_ORIENTATION_LANDSCAPE);

}
And here are some of stats you get:
Samsung Nexus: 10-23 20:54:16.598: D/Enter(14861): Width: 1196 Height: 720 
DPI: 320 Density: 2.0
Droid: 10-24 07:12:42.436: D/Enter(1823):  Width: 854  Height: 480 DPI: 240 
Density: 1.5
Nexus 7: 10-23 20:55:06.405: D/Enter(15663): Width: 1280 Height: 736 DPI: 
213 Density: 1.33125
Samsung 10.1 10-23 21:10:49.180: D/Enter(3263):  Width: 1280 Height: 752 
DPI: 160 Density: 1.0


These equate to the following:
Galaxy Nexus = 4.3
Droid = 4.08
Nexus 7 = 6.9
Samsug 10.1 = 9.2

Based on this information I decided if a device was over 6 inches I would 
lock the rotation to landscape forcing a specific layout (of course you 
still have to make sure you are picking up the correct layout resources).

It is an imperfect solution but there is such a variance between devices 
and manufacturers there really isn't a perfect solution.

-Aaron

On Monday, March 28, 2011 11:38:34 AM UTC-5, ole! wrote:

 This thread has focused on the tablet screen as a distinguisher. 
 Another real problem is that tablets from a specific carrier (such as 
 the T-Mobile Galaxy), cannot make a phone call. 
 I have found no way to distinguish this characteristic of tablets. 

 What I have tried: 
 1. catching an exception from start_activity using the ACTION_CALL 
 intent ( no exception) 
 2. TelephonyManager.getPhoneType() returns a valid state (GSM) 
 3. TelephonyManager.getCallState() return a valid state (IDLE) 

 Any ideas? 

 Olaf Lubeck 

 On Feb 25, 7:36 am, Mark Murphy mmur...@commonsware.com wrote: 
  On Wed, Feb 23, 2011 at 12:47 PM, Carlo Codega sazi...@gmail.com 
 wrote: 
   Is there any numeric size about XLARGE screens? AFAIK there could be 
   smartphone devices with xlarge screens, or not? I don't see any 
   documentation which says that XLARGE screens are  6 inches 
  
   Does xlarge refer to the phisical size? or resolution? 
  
  Neither, though physical size is more relevant. 
  
  Screen size, in terms of small/normal/large/xlarge, will be determined 
  by device manufacturers based upon physical screen size and the 
  distance that screen will be from the user. A phone is held closer to 
  the user's eyes than is a tablet, and both are held closer to the 
  user's eyes than is an LCD TV. 
  
  At best, Google might come up with a size guideline per form factor -- 
  10 tablets are xlarge, for example. However, in the end, the device 
  manufacturer will choose the value for the device. How the device 
  manufacturer makes that choice, AFAIK, is up to the device 
  manufacturer. 
  
  -- 
  Mark Murphy (a Commons Guy)http://commonsware.com|
 http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
  
  
  _The Busy Coder's Guide to *Advanced* Android Development_ Version 1.9 
  Available!

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

Re: [android-developers] Does content provider run in its own process space?

2012-10-24 Thread Mark Murphy
On Wed, Oct 24, 2012 at 3:08 PM, Subodh Nijsure
subodh.nijs...@gmail.com wrote:
 What I want to happen is this background thread that syncs data to aws
 should never terminate,and ideally it should get started when device
 boot finishes i.e. data collected while there was no network
 connectivity, should get uploaded to AWS without user having to do it
 explicitly.

Please allow the user to make that choice. The user may prefer having
to do it explicitly versus you trying to keep code running
constantly.

 I do start my service such that it returns START_STICKY in its
 onStartCommand(), is that sufficient for the service to keep running
 even if activity is destroyed?

In principle, yes, though I find this to be bad form. A
continuously-running service is rarely the right solution from the
user's standpoint.

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

_The Busy Coder's Guide to Android Development_ Version 4.2 Available!

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


[android-developers] Re: PC Remote Control

2012-10-24 Thread tamer hatoum
I need to build it by my own to add special features on it  so I want some 
help or tips.regards...

On Wednesday, October 24, 2012 9:43:18 PM UTC+3, bob wrote:

 Why do you want to do this when there are apps that already do it?

 I think I tried this one a few months back:

 https://play.google.com/store/apps/details?id=com.Relmtech.Remote

 It uses Wifi or Bluetooth.


 On Wednesday, October 24, 2012 9:06:45 AM UTC-5, tamer hatoum wrote:

 Dear All;
 I want to build an application on my android device that have a mouse pad 
 which will control the mouse on my PC same as this link :
 http://www.remotedroid.net/

 so kindly give me some tips how to start building that app, and do I have 
 to use TCP/IP client server ? or what methods do I have to use ?

 any help or sample code will be appreciated

 regards 



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

[android-developers] serial number

2012-10-24 Thread bob
 

Is there a way to programmatically get the serial number of your Android 
device?


Like what you see here:

https://lh3.googleusercontent.com/-wHTFhAEkQVc/UIhTgLiKgQI/ADc/kySUGKqPZ2E/s1600/device_serial.png



I guess it's different than the UUID.


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

[android-developers] Documenation on content://com.google.android.music.MusicContent/playlists

2012-10-24 Thread huntsfromshadow
A question for the group.

I was recently trying to query a nexus 7 about it's songs and playlists.

I finally got the code to work when using the 
URI: content://com.google.android.music.MusicContent/playlists
I also saw in searching around the web their were other options for this 
uri such as /albusm, and /audio

Is their any documentation on this URI and all the options?

Thanks

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

[android-developers] Re: PC Remote Control

2012-10-24 Thread bob
Override this function:

boolean onTouchEvent(MotionEvent event)

in this class:

android.app.Activity

Serialize the MotionEvent object and send it over a TCP stream to a server.




On Wednesday, October 24, 2012 3:07:30 PM UTC-5, tamer hatoum wrote:

 I need to build it by my own to add special features on it  so I want 
 some help or tips.regards...

 On Wednesday, October 24, 2012 9:43:18 PM UTC+3, bob wrote:

 Why do you want to do this when there are apps that already do it?

 I think I tried this one a few months back:

 https://play.google.com/store/apps/details?id=com.Relmtech.Remote

 It uses Wifi or Bluetooth.


 On Wednesday, October 24, 2012 9:06:45 AM UTC-5, tamer hatoum wrote:

 Dear All;
 I want to build an application on my android device that have a mouse 
 pad which will control the mouse on my PC same as this link :
 http://www.remotedroid.net/

 so kindly give me some tips how to start building that app, and do I 
 have to use TCP/IP client server ? or what methods do I have to use ?

 any help or sample code will be appreciated

 regards 



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

[android-developers] Re: Swipe Example

2012-10-24 Thread bob
I believe you will want to use this class:

*android.support.v4.view.ViewPager*


On Wednesday, October 24, 2012 3:22:25 AM UTC-5, Sadhna Upadhyay wrote:

 Hi everybody,
my swipe activity is not working smoothly on tablet.can 
 some tell me how to do this?
 
 


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

[android-developers] Re: Documenation on content://com.google.android.music.MusicContent/playlists

2012-10-24 Thread RichardC
Have a look at the MediaStore docs including the nested classes:
http://developer.android.com/reference/android/provider/MediaStore.html

On Wednesday, October 24, 2012 9:53:41 PM UTC+1, huntsfromshadow wrote:

 A question for the group.

 I was recently trying to query a nexus 7 about it's songs and playlists.

 I finally got the code to work when using the 
 URI: content://com.google.android.music.MusicContent/playlists
 I also saw in searching around the web their were other options for this 
 uri such as /albusm, and /audio

 Is their any documentation on this URI and all the options?

 Thanks


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

[android-developers] Re: serial number

2012-10-24 Thread RichardC
Does this blog pots help:
http://android-developers.blogspot.co.uk/2011/03/identifying-app-installations.html

On Wednesday, October 24, 2012 9:46:20 PM UTC+1, bob wrote:

 Is there a way to programmatically get the serial number of your Android 
 device?


 Like what you see here:


 https://lh3.googleusercontent.com/-wHTFhAEkQVc/UIhTgLiKgQI/ADc/kySUGKqPZ2E/s1600/device_serial.png



 I guess it's different than the UUID.




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

[android-developers] My first app, live wallpaper open gl 2.0

2012-10-24 Thread cybice
You can preview at youtube
http://www.youtube.com/watch?v=hOXNxRm8dxohd=1
google play]
https://play.google.com/store/apps/details?id=com.icelaba.bestiary

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

Re: [android-developers] Re: WifiDirect with WifiDirect NSD

2012-10-24 Thread Irfan Sheriff
On Wed, Oct 24, 2012 at 7:11 AM, Zach zachariah...@gmail.com wrote:

 Hi,
 I made it work! Just swapped steps 2 and 3 on server
 So on server new order is

1. Initialize and Start WiFi Direct
2. Register a Local Service and Start Service Discovery
3. Start a Wifi Direct Group

 You are right about this. I need to document this better.

Thanks


 With old oder one thing I found was that the client was not getting any
 notification regarding a successful connection once a connection is
 established. But at the same time server receives notification that network
 is formed. So I assume that once connection was made by server the server
 may be passing some acknowledgement back to the client. With previous oder
 server was blocked some how. I am not 100% sure about my inference. If you
 think differently let me know.

 Thanks

 On Tuesday, October 23, 2012 5:38:46 PM UTC+1, Zach wrote:

 Hi,

 I am working on wifi direct with network service discovery. Heres what I
 do for that

 For a Server(Device which first starts)

1. Initialize and Start Wifi Direct
2. Start a WifiDirect Group
3. Register a Local Service and Start service discovery


 For a client(All devices which starts after the first one)

1. Initialize and Start wifi direct
2. Check for Group owners, store details of group owner found
3. If found Register local service and start service discovery
4. When new device info is available via NSD, checks whether its the
type of device expecting;add it to data structure
5. For all devices in data structure identify wifi direct group owner
and establish a connection with it


 Things go wrong from here, after establishing a connection I am expecting
 a call back to onConnectionInfo available; but it never happens on client
 device.

 If I am not starting NSD everything works fine. I am getting a callback
 to onConnectionInfo available immediately after connecting with remote
 device(GO).
 I was following this tutorial http://developer.**
 android.com/training/connect-**devices-wirelessly/nsd-wifi-**direct.htmlhttp://developer.android.com/training/connect-devices-wirelessly/nsd-wifi-direct.html

 Whats going wrong here?
 Many 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 post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: logcat app

2012-10-24 Thread Asheesh Arya
please refer this link
http://www.krvarma.com/2010/08/simple-android-logcat-viewer/

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