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

2013-02-15 Thread tom_mai78101
Then I don't understand why it's failing to connect. Most of the error 
exception log messages point to either UUID is wrong or I'm not cancelling 
BluetoothAdapter discovery.
 
I had looked back at the BluetoothChat SDK Sample, compared it with my 
codes, and see no significant differences other than that BluetoothChat has 
a Handler and I/O streams implemented.
 
If BluetoothDevice is connected to the BluetoothServerSocket, 
BluetoothServerSocket has accepted the connection, I have to immediately 
close both the server socket and the socket, just like what BluetoothChat 
SDK Sample did?
 
 

-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] odd warning from eclipse I am worried about

2013-02-15 Thread Damien Cooke
Hi All,
I am getting an odd warning from eclipse. The ScrollView layout or its parent 
LinearLayout is useless

I need some type of layout at the top level and I need the scrollview as the 
content is bigger thatn the screen.  Is there a better way to do this or is 
Eclipse whining about nothing?

Regards
Damien


?xml version=1.0 encoding=utf-8?
LinearLayout xmlns:android=http://schemas.android.com/apk/res/android;
android:layout_width=match_parent
android:layout_height=match_parent
android:orientation=vertical 

ScrollView 
 android:layout_marginTop=10dip
 android:layout_height=wrap_content 
 android:layout_width=fill_parent
 
LinearLayout
android:layout_width=match_parent
android:layout_height=wrap_content
android:orientation=vertical 
...
/LinearLayout 
/ScrollView
/LinearLayout

-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Edittext - can't type

2013-02-15 Thread Tamilarasi Sivaraj
hi aru you told you only used to emulator keypad for typing not used for 
your system keyboard right?


On Friday, February 15, 2013 10:32:49 AM UTC+5:30, Sagar Rout wrote:

 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.




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

2013-02-15 Thread tom_mai78101
Re-reading Android Reference, it said the UUID needs to be the same for 
both the server-side and the client-side. UUID.randomUUID() and 
BluetoothDevice.getUuids() are sure to fail.
 
I hate it, but it looks like I need to set up to 7 constant (final) UUIDs 
without generating them at compile-time. Will report back once I have some 
results.

-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: BouncyCastle signature value does not match with dotNET signature value.

2013-02-15 Thread mbarbiero
Thanks Nikolay. The tests with .net confirm that BouncyCastle signature 
process is OK. I will try to sign SignedInfo

-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Sprite Batcher using OpenGL 2

2013-02-15 Thread reaktor24
Hi. I am reading the book by Mario Zechner and am on Chapter 8 which 
discusses Sprite Batching. It is relatively straight forward when dealing 
with OpenGL 1.1 but I am trying to write the code using shaders and OpenGL 
2. I am quite confused though as the matrix needs to be updated for the 
positions and sent to the shader but his code doesn't deal with shaders and 
I am not getting anything appearing on the screen. Something isn't right. I 
read on this page that you should send an array of matrices to the shader 
at each update:
 
http://antonholmquist.com/blog/sprite-batching-opengl-es-2-0/
 
But this means you can only send a maximum of 24 sprite positions with each 
update. That isn't good enough. Mario's code is sending 100 sprites every 
frame, not 24. Surely it should be easier under OpenGL 2 and not more 
complicated. Anyone got any advice?
 
Steve

-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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-15 Thread Elton Almeida
You just need to add your current setted up device account to the account test 
list on google play developer console profile section.

-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Android draw circle onTouch

2013-02-15 Thread Numair Qadir
Greetings,
I'm trying to draw a circle using onTouch event. What it should do is get 
the coordinates where screen is touched(ACTION_DOWN), and where touch is 
lift up(ACTION_UP). For drawing circles we have 
canvas.drawCircle(x,y,radius,paint); . Now radius should be equal to 
the area where user has lift the touch up(ACTION_UP)... It is not drawing 
like that.. Here is my code ..

*case MotionEvent.ACTION_DOWN:*
* downx = event.getX();*
* downy = event.getY();*
* Log.d(TAG, DOWN);*
* break;*
* case MotionEvent.ACTION_UP:*
* upx = event.getX();*
* upy = event.getY();*
* choosenImageView.invalidate();
*
* mode = NONE;*
* Log.d(TAG, mode=NONE);*
* break;*
*
*
* case MotionEvent.ACTION_MOVE:*
* double temp = Math.pow((upx - downx), 2)*
* + Math.pow((upy - downy), 2);*
* float radius = (float) Math.sqrt(temp) / 2;*
* canvas.drawCircle(downx, downy, radius, paint);*
* Log.d(TAG, DRAG);*
* break;*

Can any one help me??? Thanks in advance

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




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

2013-02-15 Thread Kristopher Micinski
Why is generating them and sticking them in your code bad?  Why do you
hate it?  This is standard practice in many situations, so much that
IDEs do it for you sometimes.

Kris

On Fri, Feb 15, 2013 at 5:28 AM, tom_mai78101 tom.mai78...@gmail.com wrote:
 Re-reading Android Reference, it said the UUID needs to be the same for both
 the server-side and the client-side. UUID.randomUUID() and
 BluetoothDevice.getUuids() are sure to fail.

 I hate it, but it looks like I need to set up to 7 constant (final) UUIDs
 without generating them at compile-time. Will report back once I have some
 results.

 --
 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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: Edittext - can't type

2013-02-15 Thread Sagar Rout
Yes i that is what i m trying to tell you and help me if you can

Thanks

On Friday, 15 February 2013 15:45:09 UTC+5:30, Tamilarasi Sivaraj wrote:

 hi aru you told you only used to emulator keypad for typing not used for 
 your system keyboard right?


 On Friday, February 15, 2013 10:32:49 AM UTC+5:30, Sagar Rout wrote:

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

2013-02-15 Thread Tamilarasi Sivaraj
Hi 


This is how I fixed it:

   1. Eclipse  Window menu  AVD Manager
   2. Select your virtual device and click Edit
   3. Under Hardware, Click New
   4. Select Keyboard Support then click OK
   5. Edit its value to yes
   6. Now you have to click off onto another item in the list, like 
   Abtract LCD Density or something. This seems to make the UI keep the 
   yes change.

thanks,


On Friday, February 15, 2013 10:32:49 AM UTC+5:30, Sagar Rout wrote:

 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] RPC:S-5:AEC-0 Error

2013-02-15 Thread Pwarp
Trying to implement IAP v3 Billing.  Based on the TrivialDrive example.

Got the error: RPC:S-5:AEC-0

Tried logging out of my google account, clearing google play cache/data, 
rebooting device, reinstalling APK, creating new IAP items, using 3 month 
existing IAP items.

Tried switching between accounts, tried deleting all accounts and trying an 
alternate testing account.

Tried removing credit cards on google wallet, and putting them back 1) 
online, and 2) via the android device.


All.. no luck.

However dummy item works just fine: android.test.purchased

Any ideas?




-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: RPC:S-5:AEC-0 Error

2013-02-15 Thread Pwarp
Oh, I just upgraded to Android v4.2.2  

I didn't notice this problem before with the Billing v2, but I never tested 
with Billing v3 Prior to the upgrade.

On Friday, February 15, 2013 10:58:15 PM UTC+9, Pwarp wrote:

 Trying to implement IAP v3 Billing.  Based on the TrivialDrive example.

 Got the error: RPC:S-5:AEC-0

 Tried logging out of my google account, clearing google play cache/data, 
 rebooting device, reinstalling APK, creating new IAP items, using 3 month 
 existing IAP items.

 Tried switching between accounts, tried deleting all accounts and trying 
 an alternate testing account.

 Tried removing credit cards on google wallet, and putting them back 1) 
 online, and 2) via the android device.


 All.. no luck.

 However dummy item works just fine: android.test.purchased

 Any ideas?






-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Eclipse error: Destination folder must be accessible.

2013-02-15 Thread Cayce
I have a project folder inside the Workspace folder my workspace path is 
set to, but when I try and drag that project folder into my Eclipse Project 
Explorer panel I get the error, Destination folder must be accessible. I 
don't know what to give Eclipse in this case. Any suggestions?

Thanks.

Cayce

-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Multiple HTTP requests

2013-02-15 Thread Diego Nunes


Dear, good day.


I have an application that makes several connections (5 for 5 seconds) to 
an Apache server with PHP. I'm using the POST method and HTTPClient in an 
AsyncTask.


The problem is that I'm getting more 
ConnectionTimeoutException/SocketTimeoutException. 
My timeout is configured as follows:


*HttpConnectionParams.setConnectionTimeout (httpParameters, 3);*

*HttpConnectionParams.setSoTimeout (httpParameters, 3);*


I did a test using apache jmetter sending multiple requests to this server 
and had no problems.


This can be a limitation of the network? SO?


Has anyone experienced this problem or know of a better strategy for making 
these requests?


Thank you.

-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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-15 Thread Brill Pappin
Hi Bob,

This is all being run on real hardware (I never use the emulator for 
anything).


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

2013-02-15 Thread Brill Pappin
I have now verified this same error pops up on a Nexus 10 as well... so now 
we've got it happening on all three (Nexus 4, 7, 10), which is a pretty 
good indication that it's a problem in the MediaPlayer in Android 4.2.x.
This really needs the attention of a google engineer.

Apparently I'm not the only one seeing this:
http://stackoverflow.com/questions/8236095/android-mediaplayer-mediaplayer658-error-1-2147483648

I'm about to do some tests to see if its relate to the encoding of the MP3 
file, however it it worked in android 4.1 it should also work in android 
4.2.

- Brill Pappin



On Thursday, February 14, 2013 12:38:22 PM UTC-5, 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] Re: Android draw circle onTouch

2013-02-15 Thread Nobu Games
You also need to update the variables upx and upy in your ACTION_MOVE case 
block:

case MotionEvent.ACTION_MOVE:
* **upx = event.getX();*
* upy = event.getY();*
 double temp = Math.pow((upx - downx), 2)
 + Math.pow((upy - downy), 2);
 float radius = (float) Math.sqrt(temp) / 2;
 canvas.drawCircle(downx, downy, radius, paint);
Log.d(TAG, DRAG);
break;


On Friday, February 15, 2013 7:25:26 AM UTC-6, Numair Qadir wrote:

 Greetings,
 I'm trying to draw a circle using onTouch event. What it should do is get 
 the coordinates where screen is touched(ACTION_DOWN), and where touch is 
 lift up(ACTION_UP). For drawing circles we have 
 canvas.drawCircle(x,y,radius,paint); . Now radius should be equal to 
 the area where user has lift the touch up(ACTION_UP)... It is not drawing 
 like that.. Here is my code ..

 *case MotionEvent.ACTION_DOWN:*
 * downx = event.getX();*
 * downy = event.getY();*
 * Log.d(TAG, DOWN);*
 * break;*
 * case MotionEvent.ACTION_UP:*
 * upx = event.getX();*
 * upy = event.getY();*
 * choosenImageView.invalidate();
 *
 * mode = NONE;*
 * Log.d(TAG, mode=NONE);*
 * break;*
 *
 *
 * case MotionEvent.ACTION_MOVE:*
 * double temp = Math.pow((upx - downx), 2)*
 * + Math.pow((upy - downy), 2);*
 * float radius = (float) Math.sqrt(temp) / 2;*
 * canvas.drawCircle(downx, downy, radius, paint);*
 * Log.d(TAG, DRAG);*
 * break;*

 Can any one help me??? 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.




[android-developers] Re: odd warning from eclipse I am worried about

2013-02-15 Thread Nobu Games
Trust Eclipse (actually it is ADT whining about it). What you're doing is 
redundant and unnecessary, that's why you are getting this warning message. 
ScrollView is also a kind of layout and derived from FrameLayout.


On Friday, February 15, 2013 3:29:11 AM UTC-6, Damien wrote:

 Hi All,
 I am getting an odd warning from eclipse. The ScrollView layout or its 
 parent LinearLayout is useless

 I need some type of layout at the top level and I need the scrollview as 
 the content is bigger thatn the screen.  Is there a better way to do this 
 or is Eclipse whining about nothing?

 Regards
 Damien


 ?xml version=1.0 encoding=utf-8?
 LinearLayout xmlns:android=http://schemas.android.com/apk/res/android;
 android:layout_width=match_parent
 android:layout_height=match_parent
 android:orientation=vertical 

 
 ScrollView 
android:layout_marginTop=10dip   
  android:layout_height=wrap_content 
  android:layout_width=fill_parent

  
 LinearLayout
 android:layout_width=match_parent
 android:layout_height=wrap_content
 android:orientation=vertical 
 ...
 /LinearLayout 
 /ScrollView
 /LinearLayout


-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Circular Menu

2013-02-15 Thread Satya Komatineni
Ravi,
what you need is a custom view and some 2D graphics API details.

Some of the material might be of some help

Essential Custom View Code snippets
http://satyakomatineni.com/item/4330

Also you will see here links for custom layouts research as well if
you were to arrange buttons or images in a circular layout.

On Fri, Feb 15, 2013 at 7:23 AM, ravi . ravikanth...@gmail.com wrote:
 Hi All
 I want to design a menu just like the attached screen. I had tried in many
 ways but couldn't get a solution.

 Thanks

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



http://satyakomatineni.com/android/training
http://satyakomatineni.com
http://androidbook.com
http://twitter.com/SatyaKomatineni

-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Sprite Batcher using OpenGL 2

2013-02-15 Thread Nobu Games
The article actually talks about a minimum of 24 (according to the 
specification). But your problem is still there, there is a limit and you 
cannot go crazy with hundreds of sprites. I think you should find a way to 
split that task under the hood. Let your SpriteBatcher draw multiple 
batches of 24-something sprites at a time.


On Friday, February 15, 2013 6:50:27 AM UTC-6, reaktor24 wrote:

 Hi. I am reading the book by Mario Zechner and am on Chapter 8 which 
 discusses Sprite Batching. It is relatively straight forward when dealing 
 with OpenGL 1.1 but I am trying to write the code using shaders and OpenGL 
 2. I am quite confused though as the matrix needs to be updated for the 
 positions and sent to the shader but his code doesn't deal with shaders and 
 I am not getting anything appearing on the screen. Something isn't right. I 
 read on this page that you should send an array of matrices to the shader 
 at each update:
  
 http://antonholmquist.com/blog/sprite-batching-opengl-es-2-0/
  
 But this means you can only send a maximum of 24 sprite positions with 
 each update. That isn't good enough. Mario's code is sending 100 sprites 
 every frame, not 24. Surely it should be easier under OpenGL 2 and not more 
 complicated. Anyone got any advice?
  
 Steve


-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: odd warning from eclipse I am worried about

2013-02-15 Thread Lew
Nobu Games wrote:

 ... redundant and unnecessary...


:-)

-- 
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: How do I sell apps from South Africa?

2013-02-15 Thread nyasha
Hi guys

Whats the status on being able to sell your android apps from south africa? 
Have google added south africa to the list as yet? Opening a shelve company 
in the UK plus bank accounts etc seems to be a long process.

regards



On Tuesday, 6 November 2012 20:27:34 UTC+2, Craig Newton wrote:

 Hi MeltdownZA,

 I have encountered that exact same issue. Unfortunately you would have to 
 setup a bank account in the UK or US and have a shell company. I have not 
 done that, but the company I work for has.

 The only way I got to sell my apps on Android was to use the Amazon App 
 Store instead. They send you cheques to your South African mailbox when it 
 reaches a threshold you set.

 I sell my apps on Apple iOS App Store as well with no problems at all. 
 Much better sales from iOS than from Android. 

 Most Android users want everything for free, you could give it away for 
 free on Google Play and just put in Ad support. Sell your app without ads 
 on the Amazon Android Market and the Apple Store (if you have ported to 
 iOS), please checkout cocos2d-x, it is truly cross platform and easy to 
 code using C++.

 Feel free to contact me if you have any more questions.

 Best Regards,
 Craig Newton

 On Sunday, July 8, 2012 9:48:32 PM UTC+2, MeltdownZA wrote:

 We have an upcoming title we'd like to sell via the Google Play store.
 From the research I've done, it seems that we can sell apps if we are in 
 South Africa.

 Yet when I registered a Google Play developer account, and paid the $25, 
 and I registered, South Africa is not in the list of countries I can 
 register for as a developer.
 What is the correct approach to take for 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
--- 
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: Eclipse error: Destination folder must be accessible.

2013-02-15 Thread Lew
Cayce wrote:

 I have a project folder inside the Workspace folder my workspace path is 
 set to, but when I try and drag that project folder into my Eclipse Project 
 Explorer panel I get the error, Destination folder must be accessible. I 
 don't know what to give Eclipse in this case. Any suggestions?


What is your goal?

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

2013-02-15 Thread Lew
Tamilarasi Sivaraj wrote:

 This is how I fixed it:

1. Eclipse  Window menu  AVD Manager


Or use android avd . 


1. Select your virtual device and click Edit
2. Under Hardware, Click New
3. Select Keyboard Support then click OK
4. Edit its value to yes
5. Now you have to click off onto another item in the list, like 
Abtract LCD Density or something. This seems to make the UI keep the 
yes change.

 No, you don't have to do that. You just edit the AVD and set the value to 
yes as a second action. 

No need for bogus hardware configuration.

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

2013-02-15 Thread Brill Pappin
More clues:

So it looks like the media player can't open the file. The file URL looks 
borked as well. I know the file exists and (I can see it in code and in 
DDMS).
Here is the trace for it. Note that I'm not *positive* that the path its 
outputting is borked internally or just logging it, but at this point I'm 
assuming that its printing what its seeing.


02-15 10:27:55.611: I/AwesomePlayer(127): setDataSource_l(URL suppressed)
02-15 10:27:55.621: E/(127): Failed to open file 
'/file:/storage/emulated/0/Android/data/com.primaltech.vvm/files/audio/V2013012505.mp3'.
 
(No such file or directory)
02-15 10:27:55.621: E/MediaPlayer(24202): error (1, -2147483648)
02-15 10:27:55.631: E/MediaPlayer(24202): Error (1,-2147483648)
02-15 10:27:55.631: E/MessageListFragment(24202): what: MEDIA_ERROR_UNKNOWN
02-15 10:28:05.006: I/MessageListFragment(24202): *** FILE [true]: 
file:///storage/emulated/0/Android/data/com.primaltech.vvm/files/audio/V2013012505.mp3

-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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-15 Thread Brill Pappin
More tests indicate that MediaPlayer can't open the file, even thought the 
file existence and location has been verified, both manually and in code.
The key is from a Nexus 10 running Android 4.2.1 which outputs:
02-15 11:00:40.101: E/(127): Failed to open file 
'/file:/storage/emulated/0/Android/data/com.primaltech.vvm/files/audio/V2013012802.mp3'.
 
(No such file or directory)
02-15 11:00:40.101: E/MediaPlayer(24202): error (1, -2147483648)


I'd say this is a bug in Android 3.2.1.

Task now is to find a way to work around 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: Testing In-App billing: Is a factory reset necessary?

2013-02-15 Thread Jungle Jim


On Friday, February 15, 2013 7:10:12 AM UTC-6, Elton Almeida wrote:

 You just need to add your current setted up device account to the account 
 test list on google play developer console profile section.


Exactly. But the problem is, Google won't allow a publisher to buy his own 
stuff. It has to be done from a different account. And that account must be 
the primary account on that device.

I might have to rent or borrow a device from someone else in order to do 
the testing. Unless someone knows of a way around this issue. 

-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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-15 Thread Nobu Games
The Stackoverflow thread mentions file permission problems. Is that file 
world readable?

On Friday, February 15, 2013 10:03:35 AM UTC-6, Brill Pappin wrote:

 More tests indicate that MediaPlayer can't open the file, even thought the 
 file existence and location has been verified, both manually and in code.
 The key is from a Nexus 10 running Android 4.2.1 which outputs:
 02-15 11:00:40.101: E/(127): Failed to open file 
 '/file:/storage/emulated/0/Android/data/com.primaltech.vvm/files/audio/V2013012802.mp3'.
  
 (No such file or directory)
 02-15 11:00:40.101: E/MediaPlayer(24202): error (1, -2147483648)


 I'd say this is a bug in Android 3.2.1.

 Task now is to find a way to work around 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: Debugger to run Android Applications

2013-02-15 Thread JackN
That warning probably says the app is waiting for the debugger to attach... 
it is normal.
 
I don't know about the rest of your issues.\

On Thursday, February 14, 2013 9:20:11 PM UTC-8, Sagar Rout wrote:

 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.




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

2013-02-15 Thread Mahabaleshwara Adiga
Hi,

Can you check your audio codec formats ? Some of the mp3 audio codecs will
be differed.. So by default Media palyer could not play the some mp3 audio
codecs. If you want to see different audio codecs,  go to 'Mediaplayer
codecs in android'. Use proper audio codecs and play smoothly..



On Fri, Feb 15, 2013 at 9:33 PM, Brill Pappin br...@pappin.ca wrote:

 More tests indicate that MediaPlayer can't open the file, even thought the
 file existence and location has been verified, both manually and in code.
 The key is from a Nexus 10 running Android 4.2.1 which outputs:
 02-15 11:00:40.101: E/(127): Failed to open file
 '/file:/storage/emulated/0/Android/data/com.primaltech.vvm/files/audio/V2013012802.mp3'.
 (No such file or directory)
 02-15 11:00:40.101: E/MediaPlayer(24202): error (1, -2147483648)


 I'd say this is a bug in Android 3.2.1.

 Task now is to find a way to work around 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.




-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Testing In-App billing: Is a factory reset necessary?

2013-02-15 Thread Nikolay Elenkov
On Fri, Feb 15, 2013 at 3:02 PM, Jungle Jim jjjungle...@gmail.com wrote:


  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.

Root one of the devices, take a full image backup, reset, test, restore.

-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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-15 Thread Brill Pappin
Yes its readable.

On Friday, February 15, 2013 11:14:34 AM UTC-5, Nobu Games wrote:

 The Stackoverflow thread mentions file permission problems. Is that file 
 world readable?

 On Friday, February 15, 2013 10:03:35 AM UTC-6, Brill Pappin wrote:

 More tests indicate that MediaPlayer can't open the file, even thought 
 the file existence and location has been verified, both manually and in 
 code.
 The key is from a Nexus 10 running Android 4.2.1 which outputs:
 02-15 11:00:40.101: E/(127): Failed to open file 
 '/file:/storage/emulated/0/Android/data/com.primaltech.vvm/files/audio/V2013012802.mp3'.
  
 (No such file or directory)
 02-15 11:00:40.101: E/MediaPlayer(24202): error (1, -2147483648)


 I'd say this is a bug in Android 3.2.1.

 Task now is to find a way to work around 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.




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

2013-02-15 Thread Brill Pappin
Its pretty basic. and works fine up until  4.2.1 (e.g. its working in 
4.1.1).



On Friday, February 15, 2013 11:17:39 AM UTC-5, Mahabaleshwara Adiga wrote:

 Hi,

 Can you check your audio codec formats ? Some of the mp3 audio codecs will 
 be differed.. So by default Media palyer could not play the some mp3 audio 
 codecs. If you want to see different audio codecs,  go to 'Mediaplayer 
 codecs in android'. Use proper audio codecs and play smoothly..



 On Fri, Feb 15, 2013 at 9:33 PM, Brill Pappin br...@pappin.cajavascript:
  wrote:

 More tests indicate that MediaPlayer can't open the file, even thought 
 the file existence and location has been verified, both manually and in 
 code.
 The key is from a Nexus 10 running Android 4.2.1 which outputs:
 02-15 11:00:40.101: E/(127): Failed to open file 
 '/file:/storage/emulated/0/Android/data/com.primaltech.vvm/files/audio/V2013012802.mp3'.
  
 (No such file or directory)
 02-15 11:00:40.101: E/MediaPlayer(24202): error (1, -2147483648)


 I'd say this is a bug in Android 3.2.1.

 Task now is to find a way to work around 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: MediaPlayer suddenly stopped working in Android 4.2

2013-02-15 Thread Brill Pappin
So I've now tested many different ways to try and figure this out and I 
need to reset the code (as I've introduced some silly errors).
That error is most definitely a path problem which I need to retest and 
make sure I didn't introduce with my own hacking :)

I *do* know that what was working in 4.1.1 does not work in 4.2.1.

FYI - I'm also now seeing error 19, which is Error due to general port 
processing whatever that means.

-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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-15 Thread tom_mai78101


 Why is generating them and sticking them in your code bad?  Why do you 
 hate it?  This is standard practice in many situations, so much that 
 IDEs do it for you sometimes. 

I disliked having to generate them and stick them into my code, for fear of 
security. And I never recalled my IDE having to auto-generate UUIDs for me. 
Now that you mentioned this being a standard practice, I don't know what to 
say about it. I probably didn't know about it in the first place.
 
As promised, the results are in. Yes, they work flawlessly. Yes, I hate to 
rewrite lots of code, including scrapping away a few files. And yes, I'm an 
idiot. :(
  

-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Sprite Batcher using OpenGL 2

2013-02-15 Thread bob
*Surely it should be easier under OpenGL 2 and not more complicated.*

I don't think everyone would agree with that, including me.

OpenGL 2 adds features, but it does not clearly simplify anything.





On Friday, February 15, 2013 6:50:27 AM UTC-6, reaktor24 wrote:

 Hi. I am reading the book by Mario Zechner and am on Chapter 8 which 
 discusses Sprite Batching. It is relatively straight forward when dealing 
 with OpenGL 1.1 but I am trying to write the code using shaders and OpenGL 
 2. I am quite confused though as the matrix needs to be updated for the 
 positions and sent to the shader but his code doesn't deal with shaders and 
 I am not getting anything appearing on the screen. Something isn't right. I 
 read on this page that you should send an array of matrices to the shader 
 at each update:
  
 http://antonholmquist.com/blog/sprite-batching-opengl-es-2-0/
  
 But this means you can only send a maximum of 24 sprite positions with 
 each update. That isn't good enough. Mario's code is sending 100 sprites 
 every frame, not 24. Surely it should be easier under OpenGL 2 and not more 
 complicated. Anyone got any advice?
  
 Steve


-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Sprite Batcher using OpenGL 2

2013-02-15 Thread Nobu Games
You make little sense here. reaktor says that OpenGL ES 2 is more 
complicated. You contradict him by saying it does not clearly simplify 
anything. So basically you both are on the same page.

OpenGL ES 2 does not just add features. It also takes them away. There is 
no transformation matrix stack anymore. And having the overhead of creating 
multiple scripts in an additional language just for rendering stuff that 
could be done in a pretty much straightforward manner in OpenGL 1 is... 
well... more complicated.


On Friday, February 15, 2013 10:54:53 AM UTC-6, bob wrote:

 *Surely it should be easier under OpenGL 2 and not more complicated.*

 I don't think everyone would agree with that, including me.

 OpenGL 2 adds features, but it does not clearly simplify anything.





 On Friday, February 15, 2013 6:50:27 AM UTC-6, reaktor24 wrote:

 Hi. I am reading the book by Mario Zechner and am on Chapter 8 which 
 discusses Sprite Batching. It is relatively straight forward when dealing 
 with OpenGL 1.1 but I am trying to write the code using shaders and OpenGL 
 2. I am quite confused though as the matrix needs to be updated for the 
 positions and sent to the shader but his code doesn't deal with shaders and 
 I am not getting anything appearing on the screen. Something isn't right. I 
 read on this page that you should send an array of matrices to the shader 
 at each update:
  
 http://antonholmquist.com/blog/sprite-batching-opengl-es-2-0/
  
 But this means you can only send a maximum of 24 sprite positions with 
 each update. That isn't good enough. Mario's code is sending 100 sprites 
 every frame, not 24. Surely it should be easier under OpenGL 2 and not more 
 complicated. Anyone got any advice?
  
 Steve



-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Circular Menu

2013-02-15 Thread bob
 

Create something like this:

https://lh3.googleusercontent.com/-mXs8lyorMps/UR52EDoAf3I/ANI/RJtZxRQxvfo/s1600/four5.png



Then send it into polar coordinates like this:

https://lh3.googleusercontent.com/-Do2t7iJLbAE/UR52I2D5YVI/ANQ/NvKrBns_NV8/s1600/fourpolar.png




On Friday, February 15, 2013 6:23:40 AM UTC-6, ravi . wrote:

 Hi All
 I want to design a menu just like the attached screen. I had tried in many 
 ways but couldn't get a solution.

 Thanks


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

It is probably a null pointer exception because you are using an 
uninitialized widget.


Make sure you call findViewById to initialize all widgets before use.



On Thursday, February 14, 2013 11:58:55 PM UTC-6, 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 received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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-15 Thread bob
 

Yes.  Or you can view it in the file R.java in the gen folder.


That is an auto-genned file by some Android component.




On Thursday, February 14, 2013 6:28:20 PM UTC-6, Lew wrote:

 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.




[android-developers] Here's how to use ADB Shell command to run HTC Sense on HTC devices.

2013-02-15 Thread tom_mai78101
ADB command below:
 

 adb shell am start -a android.intent.ACTION_MAIN -n 
 com.htc.launcher/.Launcher

-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Debugging beta apps

2013-02-15 Thread njman
How do people test their beta apps - i.e. released to a few
testers - getting back app crashed doesn't help.

Can users send back a log file and/or stack trace.

Also, I was planning to use asserts. is java assert recommended
or the Assert class. I noticed that latter does not display a
message on the screen.

Help appreciated.


-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Debugging beta apps

2013-02-15 Thread dashman
How do users debug their beta apps - once it's released 
to users. I'd like to get a better feedback than 'app crashed.

Can users send back log files etc.

I was thinking about using ASSERT.

Is the java assert feature recommended or the Assert class.

I noticed that the latter does not display a message on the screen.


Help appreciated.

-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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-15 Thread Kristopher Micinski
Bluetooth isn't really all that secure of a protocol... You have to
instead implement that at the application layer.  (Although you can
read about Bluetooth encryption..)

Generating UUIDs is standard practice used all over the place in more
than Bluetooth: it's also used in many IDLs to identify interfaces
uniquely.

Your UUID is basically your app's signature (wrt Bluetooth), if it
doesn't match you won't be able to connect.

Kris


On Fri, Feb 15, 2013 at 11:50 AM, tom_mai78101 tom.mai78...@gmail.com wrote:
 Why is generating them and sticking them in your code bad?  Why do you
 hate it?  This is standard practice in many situations, so much that
 IDEs do it for you sometimes.

 I disliked having to generate them and stick them into my code, for fear of
 security. And I never recalled my IDE having to auto-generate UUIDs for me.
 Now that you mentioned this being a standard practice, I don't know what to
 say about it. I probably didn't know about it in the first place.

 As promised, the results are in. Yes, they work flawlessly. Yes, I hate to
 rewrite lots of code, including scrapping away a few files. And yes, I'm an
 idiot. :(


 --
 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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: View

2013-02-15 Thread Kristopher Micinski
You should never actually use this number, only the constant...

kris

On Fri, Feb 15, 2013 at 1:01 PM, bob b...@coolfone.comze.com wrote:
 Yes.  Or you can view it in the file R.java in the gen folder.


 That is an auto-genned file by some Android component.




 On Thursday, February 14, 2013 6:28:20 PM UTC-6, Lew wrote:

 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.



-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Android draw circle onTouch

2013-02-15 Thread Numair Qadir
Can you please help me how to do that?? I've also checked Finger Paint.java
from Api Demos, but it didn't help me regarding circle drawing..
Thanks


On Fri, Feb 15, 2013 at 7:52 PM, Nobu Games dev.nobu.ga...@gmail.comwrote:

 You also need to update the variables upx and upy in your ACTION_MOVE case
 block:

 case MotionEvent.ACTION_MOVE:
 * **upx = event.getX();*
 * upy = event.getY();*
  double temp = Math.pow((upx - downx), 2)
  + Math.pow((upy - downy), 2);
  float radius = (float) Math.sqrt(temp) / 2;
  canvas.drawCircle(downx, downy, radius, paint);
 Log.d(TAG, DRAG);
 break;


 On Friday, February 15, 2013 7:25:26 AM UTC-6, Numair Qadir wrote:

 Greetings,
 I'm trying to draw a circle using onTouch event. What it should do is get
 the coordinates where screen is touched(ACTION_DOWN), and where touch is
 lift up(ACTION_UP). For drawing circles we have
 canvas.drawCircle(x,y,radius,**paint); . Now radius should be equal
 to the area where user has lift the touch up(ACTION_UP)... It is not
 drawing like that.. Here is my code ..

 *case MotionEvent.ACTION_DOWN:*
 * downx = event.getX();*
 * downy = event.getY();*
 * Log.d(TAG, DOWN);*
 * break;*
 * case MotionEvent.ACTION_UP:*
 * upx = event.getX();*
 * upy = event.getY();*
 * choosenImageView.invalidate();
 *
 * mode = NONE;*
 * Log.d(TAG, mode=NONE);*
 * break;*
 *
 *
 * case MotionEvent.ACTION_MOVE:*
 * double temp = Math.pow((upx - downx), 2)*
 * + Math.pow((upy - downy), 2);*
 * float radius = (float) Math.sqrt(temp) / 2;*
 * canvas.drawCircle(downx, downy, radius, paint);*
 * Log.d(TAG, DRAG);*
 * break;*

 Can any one help me??? 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.




-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Debugging beta apps

2013-02-15 Thread bob
 

In the Google app Developer Control Panel, there's a link that says 
Errors sometimes.  Then you can see how your app crashed for different 
users.



On Friday, February 15, 2013 12:40:01 PM UTC-6, dashman wrote:

 How do users debug their beta apps - once it's released 
 to users. I'd like to get a better feedback than 'app crashed.

 Can users send back log files etc.

 I was thinking about using ASSERT.

 Is the java assert feature recommended or the Assert class.

 I noticed that the latter does not display a message on the screen.


 Help appreciated.



-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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-15 Thread Jonathan S
You can use https://play.google.com/store/apps/details?id=lv.n3o.sharkhl=en

Also, Android Emulator has tcpdump capability too. 

On Thursday, February 14, 2013 12:07:38 PM UTC-5, BearTi 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.




[android-developers] Re: Catch network traffic?

2013-02-15 Thread Jonathan S
https://play.google.com/store/apps/details?id=lv.n3o.sharkhl=en

On Wednesday, February 13, 2013 4:33:58 AM UTC-5, BearTi wrote:

 Hi,

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

 Thanks


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




[android-developers] Re: Debugging beta apps

2013-02-15 Thread bob
 

Here's an image illustrating the Errors link:

https://lh3.googleusercontent.com/-LnU_E5pgHFA/UR6dQZSD4WI/ANk/kG9-Y94TzG0/s1600/androidglass.png



On Friday, February 15, 2013 12:40:01 PM UTC-6, dashman wrote:

 How do users debug their beta apps - once it's released 
 to users. I'd like to get a better feedback than 'app crashed.

 Can users send back log files etc.

 I was thinking about using ASSERT.

 Is the java assert feature recommended or the Assert class.

 I noticed that the latter does not display a message on the screen.


 Help appreciated.



-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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-15 Thread Lew
bob wrote:

 It is probably a null pointer exception because you are using an 
 uninitialized widget.

Are you clairvoyant?

How were you able to discern that?
 

 Make sure you call findViewById to initialize all widgets before use.
 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.


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

2013-02-15 Thread bob
 

Another option is to possibly run a Wifi router that just logs everything.



On Friday, February 15, 2013 2:38:19 PM UTC-6, Jonathan S wrote:

 You can use 
 https://play.google.com/store/apps/details?id=lv.n3o.sharkhl=en

 Also, Android Emulator has tcpdump capability too. 

 On Thursday, February 14, 2013 12:07:38 PM UTC-5, BearTi 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.




[android-developers] Re: Catch network traffic?

2013-02-15 Thread bob
 

Another option is to possibly run a Wifi router that just logs everything.



On Friday, February 15, 2013 2:38:19 PM UTC-6, Jonathan S wrote:

 You can use 
 https://play.google.com/store/apps/details?id=lv.n3o.sharkhl=en

 Also, Android Emulator has tcpdump capability too. 

 On Thursday, February 14, 2013 12:07:38 PM UTC-5, BearTi 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.




[android-developers] Re: Multiple HTTP requests

2013-02-15 Thread bob
 

Are you doing this on Wifi, 3G, or 4G?



On Friday, February 15, 2013 8:36:26 AM UTC-6, Diego Nunes wrote:

 Dear, good day.


 I have an application that makes several connections (5 for 5 seconds) to 
 an Apache server with PHP. I'm using the POST method and HTTPClient in an 
 AsyncTask.


 The problem is that I'm getting more 
 ConnectionTimeoutException/SocketTimeoutException. 
 My timeout is configured as follows:


 *HttpConnectionParams.setConnectionTimeout (httpParameters, 3);*

 *HttpConnectionParams.setSoTimeout (httpParameters, 3);*


 I did a test using apache jmetter sending multiple requests to this server 
 and had no problems.


 This can be a limitation of the network? SO?


 Has anyone experienced this problem or know of a better strategy for 
 making these requests?


 Thank you.



-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Google Play Licensing Testing Problem

2013-02-15 Thread g...@deanblakely.com


I think I have a catch-22 problem with Google Play Licensing.

1. My Android device account must be setup with a Gmail email address.  I 
used deanblakelyu...@gmail.com.

2. I setup my Developer Console (DC) with my real email address (
g...@deanblakely.com)

3. My DC will only send test responses to devices having accounts with 
g...@deanblakely.com. (see graphic below)

4. Although I changed the email in my DC account profile DC is still 
using g...@deanblakely.com.

So, my problem is : DC apparently won't let a developer change his email 
address.  The graphic below shows that the license testing is looking for 
messages from devices having g...@deanblakely.com as their email address 
(which is impossible becasue of my point #1 above)
 
Can someone please help me get out of this mess?.
 
BTW I always get back NOT_MARKET_MANAGED.
 
Thanks, Gary
 
 

https://lh5.googleusercontent.com/-bsQO8m4tq4Q/UR60l_Ev1KI/ABQ/pST9MXZtJiM/s1600/EMAILcatch22X.png
 

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




Re: [android-developers] Google Play Licensing Testing Problem

2013-02-15 Thread Kostya Vasilyev
Have you tried entering deanblakelyu...@gmail.com into the Test
accounts edit control above and pressing Save below?

-- K

2013/2/16 g...@deanblakely.com g...@deanblakely.com

 I think I have a catch-22 problem with Google Play Licensing.

 1. My Android device account must be setup with a Gmail email address.  I
 used deanblakelyu...@gmail.com.

 2. I setup my Developer Console (DC) with my real email address (
 g...@deanblakely.com)

 3. My DC will only send test responses to devices having accounts with
 g...@deanblakely.com. (see graphic below)

 4. Although I changed the email in my DC account profile DC is still
 using g...@deanblakely.com.

 So, my problem is : DC apparently won't let a developer change his email
 address.  The graphic below shows that the license testing is looking for
 messages from devices having g...@deanblakely.com as their email address
 (which is impossible becasue of my point #1 above)

 Can someone please help me get out of this mess?.

 BTW I always get back NOT_MARKET_MANAGED.

 Thanks, Gary






 --
 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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: odd warning from eclipse I am worried about

2013-02-15 Thread Damien Cooke
Thanks I appreciate your time.

Damien

On 16/02/2013, at 1:35 AM, Nobu Games dev.nobu.ga...@gmail.com wrote:

 Trust Eclipse (actually it is ADT whining about it). What you're doing is 
 redundant and unnecessary, that's why you are getting this warning message. 
 ScrollView is also a kind of layout and derived from FrameLayout.
 
 
 On Friday, February 15, 2013 3:29:11 AM UTC-6, Damien wrote:
 Hi All,
 I am getting an odd warning from eclipse. The ScrollView layout or its 
 parent LinearLayout is useless
 
 I need some type of layout at the top level and I need the scrollview as the 
 content is bigger thatn the screen.  Is there a better way to do this or is 
 Eclipse whining about nothing?
 
 Regards
 Damien
 
 
 ?xml version=1.0 encoding=utf-8?
 LinearLayout xmlns:android=http://schemas.android.com/apk/res/android;
 android:layout_width=match_parent
 android:layout_height=match_parent
 android:orientation=vertical 
 
 ScrollView 
android:layout_marginTop=10dip
  android:layout_height=wrap_content 
  android:layout_width=fill_parent
  
 LinearLayout
 android:layout_width=match_parent
 android:layout_height=wrap_content
 android:orientation=vertical 
 ...
 /LinearLayout 
 /ScrollView
 /LinearLayout

-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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-15 Thread tom lee
Thanks for the info. I have now fully grasped the usage of UUIDs in an app.

-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Adjust ActionBar Tabs Width

2013-02-15 Thread sree android
Hi
see The above attachment.
I implemented ActionBar tabs,But when i add more than 3 tabs it is going
back of the screen.so i need to adjust width for each tab.How can i do it.
actually i need to implement 5 tabs.

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.