Re: [android-developers] Re: Identifying HTTP Get requests in Android

2012-12-13 Thread Archana
I m getting a Timeout or No Response from server in Mozilla Poster(when I issue GET and DELETE requests), while able to see the response from the server in the logs. So I thought, this is due to blocking of sockets/ports(as I am utilizing only one in my case). On Thursday, December 13, 2012

[android-developers] Re: Why oh why did Google let manufacturers take over the getExternalStorageDirectory() API?

2012-12-13 Thread Piren
the naming of the function is bad, but the manufacturers are not to blame.. they actually do what google declared the function to be: http://developer.android.com/reference/android/os/Environment.html#getExternalStorageDirectory() The real issue is that there's no easy way to get the sdcard,,,

Re: [android-developers] Re: Identifying HTTP Get requests in Android

2012-12-13 Thread skink
Archana wrote: I m getting a Timeout or No Response from server in Mozilla Poster(when I issue GET and DELETE requests), while able to see the response from the server in the logs. So I thought, this is due to blocking of sockets/ports(as I am utilizing only one in my case). and your

[android-developers] Re: Android circular seek bar

2012-12-13 Thread djhacktor
@sink can u please give me example or code m stuck and totally confused On Monday, 3 December 2012 13:42:34 UTC+5:30, skink wrote: djhacktor wrote: Hi can any one tell me how to make seek bar in circular shape ?? is there any example ?? if you want a seek bar in a circular shape

[android-developers] Re: Android circular seek bar

2012-12-13 Thread skink
djhacktor wrote: @sink can u please give me example or code m stuck and totally confused you are stuck? what have you done so far? pskink -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

Re: [android-developers] Re: Identifying HTTP Get requests in Android

2012-12-13 Thread Archana
I m including the server code for GET request. Post and delete follow the same pattern: while(true){ socket = serverSocket.accept(); conn = new DefaultHttpServerConnection(); conn.bind(socket,new BasicHttpParams());

Re: [android-developers] Re: Identifying HTTP Get requests in Android

2012-12-13 Thread skink
Archana wrote: I m including the server code for GET request. Post and delete follow the same pattern: did you try to debug it and see where it hangs? pskink -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send

[android-developers] Re: Android circular seek bar

2012-12-13 Thread djhacktor
have nt worked on it i started today and lots of ui component are left so it will great help if you can provide right resource this is what i need Reference : https://lh4.ggpht.com/9qL2sQi6XQYBY2pvgsPyObYS3UM42kRw64ve-GacU3jqW0XTEhARkdCLpmYzzhRULk0r On Thursday, 13 December 2012 14:24:43

[android-developers] Re: Android circular seek bar

2012-12-13 Thread djhacktor
Since there is no resource available so i started with extends seek bar import android.content.Context; import android.graphics.Canvas; import android.graphics.Color; import android.graphics.Paint; import android.util.AttributeSet; import android.view.MotionEvent; import

Re: [android-developers] Re: ContentResolver.query return null android

2012-12-13 Thread Hilda Chen
Thanks Chris. It is my mistake. There misses a 'break' in switch in function of provide code. I am so sorry. 2012/12/12 Chris Mawata chris.maw...@gmail.com Are you sure the uri coming into the method is not null? On Tuesday, December 11, 2012 10:19:13 PM UTC-5, Hilda Chen wrote: public int

Re: [android-developers] Re: Identifying HTTP Get requests in Android

2012-12-13 Thread Archana
Hi, when I issue GET, POST requests simultaneously, timeout occurs in Mozilla Poster (as I mentioned below). I need to handle asynchronous requests (non-blocking) as I m using the same socket/port. On Thursday, December 13, 2012 11:20:09 AM UTC+2, skink wrote: Archana wrote: I m

[android-developers] Re: HelloEffects confusion

2012-12-13 Thread a1
GLES20.glUniform1i(mTexSamplerHandle, 0); I would think it should be: GLES20.glUniform1i(mTexSamplerHandle, texId); But that doesn't work. Can someone help me understand this line? Each GPU has multiple texture units (at least 8 as required by GL ES 2.0 specification), sampler2D

[android-developers] not able to open numpade(soft keyboard) @ activity launched time

2012-12-13 Thread Rajan
i want open a keypade with numpade (number only, just like input type is phone). but problem is : My activity contains one edittext and one button. so when my activity launched at that time i want cursor focus on my edittext and open soft keyboard @ activity launched time.

[android-developers] Touch events to the Android OS

2012-12-13 Thread Perumss Naren
- an android service running in BG - the service gets input data from a data stream - the data received from the data stream will be co-ordinates of points on the display. Example: (20, 30) (320, 56) - when a co-ordinate is received, the service has to send the Android OS, that a touch event

Re: [android-developers] Re: Identifying HTTP Get requests in Android

2012-12-13 Thread skink
Archana wrote: Hi, when I issue GET, POST requests simultaneously, timeout occurs in Mozilla Poster (as I mentioned below). I need to handle asynchronous requests (non-blocking) as I m using the same socket/port. so follow Kris's advice, he already answered what to do pskink -- You

[android-developers] Re: Android circular seek bar

2012-12-13 Thread skink
On 13 Gru, 10:21, djhacktor deepanshcri...@gmail.com wrote: have nt worked on it  i started today and lots of ui component are left so it will great help if you can provide right resource this is what i need Reference :https://lh4.ggpht.com/9qL2sQi6XQYBY2pvgsPyObYS3UM42kRw64ve-GacU3jqW0X...

[android-developers] Gallery issues

2012-12-13 Thread Vivek Malavade
Hi, I have created CoverFlow effect using Gallary view and in each gallary item consist of my custom view(view contains buttons, imageviews, gridviews, etc.). On the top of item view ther are two buttons (i.e. prev and next). I creared two different clicklisteners for buttons. When I going to

[android-developers] Re: Android circular seek bar

2012-12-13 Thread djhacktor
@sink thank for reply there is problem in my ui i need to have track and thumb image , track is circular and thumb is dial have seen this aswell http://blog.publicobject.com/2010/04/shush-ringer-restorer-update.html but m still struggling to put image in canvas of this view On Thursday,

[android-developers] onKeyUp, onKeyDown no longer being sent to Views?

2012-12-13 Thread Lee
We have hit a serious roadblock in our application, which provides remote connectivity to Windows desktops. We have a view that renders a remote server desktop and allows the user to interact with the server desktop using the software keyboard and by tapping on the screen. With the recent

[android-developers] Re: Android circular seek bar

2012-12-13 Thread skink
djhacktor wrote: @sink thank for reply there is problem in my ui i need to have track and thumb image , track is circular and thumb is dial have seen this aswell http://blog.publicobject.com/2010/04/shush-ringer-restorer-update.html but m still struggling to put image in canvas of this view

[android-developers] Re: onKeyUp, onKeyDown no longer being sent to Views?

2012-12-13 Thread Piren
I'm not sure its thats new of an issue... its been like that for quite a while. I think someone else asked the same thing not long ago... You can either write your own keyboard implementation or maybe use some trickery... cover the entire view with an Edittext being completely transparent (so

[android-developers] Re: Android circular seek bar

2012-12-13 Thread djhacktor
@ sink i mean that how can i put image in seek bar progressdrawable ( image is a circle ) and same with thumb On Thursday, 13 December 2012 17:25:28 UTC+5:30, skink wrote: djhacktor wrote: @sink thank for reply there is problem in my ui i need to have track and thumb image , track is

[android-developers] Re: Android circular seek bar

2012-12-13 Thread skink
djhacktor wrote: @ sink i mean that how can i put image in seek bar progressdrawable ( image is a circle ) and same with thumb how to put an image in a drawable? i still dont understand... pskink -- You received this message because you are subscribed to the Google Groups Android

[android-developers] password protect text/excel file

2012-12-13 Thread Narendra Singh Rathore
Hi all, Is it possible to password protect an existing file in SDCard or to create a file with password protection through code. If yes, how to do that? Plz guide me the way to do this. Thanks and Regards, NSR -- You received this message because you are subscribed to the Google Groups

Re: [android-developers] password protect text/excel file

2012-12-13 Thread Mark Murphy
On Thu, Dec 13, 2012 at 8:04 AM, Narendra Singh Rathore nsr.curi...@gmail.com wrote: Is it possible to password protect an existing file in SDCard No. or to create a file with password protection through code. Not on external storage. -- Mark Murphy (a Commons Guy) http://commonsware.com |

Re: [android-developers] password protect text/excel file

2012-12-13 Thread Narendra Singh Rathore
On Thu, Dec 13, 2012 at 7:11 PM, Mark Murphy mmur...@commonsware.comwrote: On Thu, Dec 13, 2012 at 8:04 AM, Narendra Singh Rathore nsr.curi...@gmail.com wrote: Is it possible to password protect an existing file in SDCard No. or to create a file with password protection through code.

Re: [android-developers] password protect text/excel file

2012-12-13 Thread Mark Murphy
On Thu, Dec 13, 2012 at 8:47 AM, Narendra Singh Rathore nsr.curi...@gmail.com wrote: so is it possible to do that in Internal storage? By definition, nobody but your app and rooted device users can get at internal storage. Hence, no passwords are needed. -- Mark Murphy (a Commons Guy)

[android-developers] Find the list of all apps which can be moved to SD card out of all installed apps

2012-12-13 Thread Bajrang Asthana
I have a requirement where I want to show the list of all apps which are installed on device. And corresponding to the list of all the applications i want to show an image sort of where the user can know that this application is movable to SD card. Currently I am accessing these values from

Re: [android-developers] password protect text/excel file

2012-12-13 Thread Narendra Singh Rathore
On Thu, Dec 13, 2012 at 7:24 PM, Mark Murphy mmur...@commonsware.comwrote: On Thu, Dec 13, 2012 at 8:47 AM, Narendra Singh Rathore nsr.curi...@gmail.com wrote: so is it possible to do that in Internal storage? By definition, nobody but your app and rooted device users can get at internal

Re: [android-developers] password protect text/excel file

2012-12-13 Thread Kristopher Micinski
Use a java encryption library. kris On Thu, Dec 13, 2012 at 8:04 AM, Narendra Singh Rathore nsr.curi...@gmail.com wrote: Hi all, Is it possible to password protect an existing file in SDCard or to create a file with password protection through code. If yes, how to do that? Plz guide me

Re: [android-developers] GCode

2012-12-13 Thread Kristopher Micinski
On Wed, Dec 12, 2012 at 3:37 PM, Lew lewbl...@gmail.com wrote: Kristopher Micinski wrote: I don't really think that would be of any use to the Android team and seems like kind of a time waste: I don't really see how that would make economic sense for Google. Developing an IDE is extremely

[android-developers] Further Mediacodec API issues in Jellybean

2012-12-13 Thread Peter Kolarov
Hello, I am using Samsung N7100 device to test encoding capabilities of mediacodec API, and I am not able to get any meaningful results. Basically, I am able to successfully setup encoder, then I am able to enqueu input buffers, I am also getting 2 output buffers worth of data before the

[android-developers] Re: How to access a AIDL service from different packages?

2012-12-13 Thread Nguyen Dat
Hi Priyank, Problem belong this step: I have exported this in the source code of the application as import com.VMService; you don't need to do this step because because aidl generate Java interface, refer: http://developer.android.com/tools/building/index.html i guest your error come because

[android-developers] Re: Better view recycling like the Google Play App

2012-12-13 Thread Nicholas Campion
Doing some more research, I'm wondering if the issue is the view recycling methodology for GridView. It *appears* that its only caching one view offscreen, one grid view child, which when a 'row' of the grid is more then one view, causes a some chunkiness as the row comes on screen and the rest

[android-developers] Re: HelloEffects confusion

2012-12-13 Thread bob
Thanks. I'm still a little confused about why there is a glActiveTexture and a glBindTexture. Seems like there ought to be one function for setting the current texture. On Thursday, December 13, 2012 4:14:52 AM UTC-6, a1 wrote: GLES20.glUniform1i(mTexSamplerHandle, 0); I would

[android-developers] Re: Why oh why did Google let manufacturers take over the getExternalStorageDirectory() API?

2012-12-13 Thread bob
Well, the confusing thing is that the function usually returns '/mnt/sdcard' when that's not actually the SD card. On Thursday, December 13, 2012 2:06:27 AM UTC-6, Piren wrote: the naming of the function is bad, but the manufacturers are not to blame.. they actually do what google

[android-developers] Re: Better view recycling like the Google Play App

2012-12-13 Thread bob
You could always avoid this by writing your own subclass of View rather than using ListView. On Thursday, December 13, 2012 9:08:40 AM UTC-6, Nicholas Campion wrote: Doing some more research, I'm wondering if the issue is the view recycling methodology for GridView. It *appears* that

Re: [android-developers] Re: HelloEffects confusion

2012-12-13 Thread Latimerius
On Thu, Dec 13, 2012 at 4:17 PM, bob b...@coolfone.comze.com wrote: Thanks. I'm still a little confused about why there is a glActiveTexture and a glBindTexture. Seems like there ought to be one function for setting the current texture. You need to differentiate between texture and texture

[android-developers] Re: Android circular seek bar

2012-12-13 Thread djhacktor
see this image i want this kinda ui On Thursday, 13 December 2012 17:53:09 UTC+5:30, skink wrote: djhacktor wrote: @ sink i mean that how can i put image in seek bar progressdrawable ( image is a circle ) and same with thumb how to put an image in a drawable? i still dont

[android-developers] Re: Android circular seek bar

2012-12-13 Thread skink
djhacktor wrote: see this image i want this kinda ui and whats your problem exactly? pskink -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe

[android-developers] Re: Android circular seek bar

2012-12-13 Thread bob
Hi Dj. Here is the fragment shader that does the polar coordinates I spoke of: #extension GL_OES_EGL_image_external: require uniform samplerExternalOES tex_sampler_0; precision mediump float; varying vec2 v_texcoord; const float PI = 3.14159265358979323846264; const vec2 texOff = vec2(0.0,

[android-developers] Re: GCode

2012-12-13 Thread RichardC
Are you guys reading? http://tools.android.com/tech-docs/new-build-system see also: https://groups.google.com/forum/?fromgroups=#!forum/adt-dev http://tools.android.com/ On Wednesday, December 12, 2012 8:06:08 PM UTC, bob wrote: What do you guys think about Google developing an IDE that is

[android-developers] Re: GCode

2012-12-13 Thread John Coryat
Personally, I find questions like this in the nature of trolling. The Eclipse is an excellent IDE for Android. There's nothing confusing about it. I've been using it for years now and find it simple, straight forward and easily installed and upgraded. Please, keep such questions either to

[android-developers] Re: Maximum number of test accounts in app using LVL

2012-12-13 Thread Kalinka
Did you ever find this out? I am trying to do the same thing. On Monday, June 4, 2012 3:32:34 AM UTC-5, Matteo Brusa wrote: Hi, I'm about to run a friendly user trial for a paid app using the License Verification Library. I'm going to directly distribute the apk to about 1000 users. In

[android-developers] Re: Android circular seek bar

2012-12-13 Thread djhacktor
@ bob thanks for reply can u send me your java implementation because its hard to under stands , from your file i can try to get whats ur code is doing -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

Re: [android-developers] Better view recycling like the Google Play App

2012-12-13 Thread Kristopher Micinski
You've seen the efficient adapter sample in the API demos...? kris On Wed, Dec 12, 2012 at 11:47 PM, Nicholas Campion camp...@gmail.com wrote: I'm wondering if anyone could give me ideas about how the Google Play app implements its list of apps (e.g. the search results page). I'm specifically

[android-developers] 2 really simple Google Wallet / in-app purchase questions

2012-12-13 Thread Keith Wiley
To test in-app purchases I need to create a second google account and add it as a test account through the dev console. I also have to attach a credit card to the account through Google Wallet so it can actually purchase my in-app items. Question: Google Wallet's webpage seems to have some

Re: [android-developers] Better view recycling like the Google Play App

2012-12-13 Thread Nicholas Campion
I was able to get everything working much better. In the end, it came down to two things: 1. Caching the result of the bitmaps at nearly the size used 2. Decoding the bitmap using RGB_565 instead of ARGB_ This combined with https://github.com/nostra13/Android-Universal-Image-Loader

[android-developers] vignette formula

2012-12-13 Thread bob
I noticed the vignette effect on Android looks really good. In the code, it boils down to this surprising formula: float lumen = shade / (1.0 + exp((dist * inv_max_dist - range) * slope)) + (1.0 - shade); Anyone know where this formula comes from? I was definitely surprised to see a cameo

Re: [android-developers] give uniform variables an initial value

2012-12-13 Thread bob
Thanks. This is pretty much what I did… int intensity_Handle; intensity_Handle = GLES20.glGetUniformLocation(mProgram, intensity); GLES20.glUniform1f(intensity_Handle, 0.5f); Seems to work. On Tuesday, December 11, 2012 3:03:14 PM UTC-6, Romain Guy (Google) wrote: No, you have to

[android-developers] Re: XML issue

2012-12-13 Thread igor ganapolsky
Copy the xml file contents into notepad (or any plain text editor), then paste them back into your project. On Thursday, July 29, 2010 11:15:09 AM UTC-4, Pedro Teixeira wrote: Hello there, I've been going on and on with my XML file and I can't seem to find any problem... The file

Re: [android-developers] 2 really simple Google Wallet / in-app purchase questions

2012-12-13 Thread Nikolay Elenkov
On Fri, Dec 14, 2012 at 5:41 AM, Keith Wiley kbwi...@gmail.com wrote: To test in-app purchases I need to create a second google account and add it as a test account through the dev console. I also have to attach a credit card to the account through Google Wallet so it can actually purchase my

Re: [android-developers] give uniform variables an initial value

2012-12-13 Thread Lew
bob wrote: Thanks. This is pretty much what I did… int intensity_Handle; intensity_Handle = GLES20.glGetUniformLocation(mProgram, intensity); GLES20.glUniform1f(intensity_Handle, 0.5f); Seems to work. http://groups.google.com/group/android-developers?hl=en This is just a nit, and

Re: [android-developers] GCode

2012-12-13 Thread Lew
Kristopher Micinski wrote: Lew wrote: Kristopher Micinski wrote: I don't really think that would be of any use to the Android team and seems like kind of a time waste: I don't really see how that would make economic sense for Google. Developing an IDE is extremely

Re: [android-developers] Cipher.wrap() not working in Android 4.2?

2012-12-13 Thread Matthew Fleming
On Wednesday, December 12, 2012 11:21:10 PM UTC-6, Nikolay Elenkov wrote: On Thu, Dec 13, 2012 at 11:55 AM, Matthew Fleming mgf...@gmail.comjavascript: wrote: I use the following code to encrypt a SecretKey with password-based encryption: Cipher pbeEncryptCipher =

Re: [android-developers] GCode

2012-12-13 Thread Michael Leung
I think they need to have an IDE can provide more in Debug and UI design. On Fri, Dec 14, 2012 at 11:19 AM, Lew lewbl...@gmail.com wrote: Kristopher Micinski wrote: Lew wrote: Kristopher Micinski wrote: I don't really think that would be of any use to the Android team and seems like

Re: [android-developers] Cipher.wrap() not working in Android 4.2?

2012-12-13 Thread Nikolay Elenkov
On Fri, Dec 14, 2012 at 11:15 AM, Matthew Fleming mgf...@gmail.com wrote: On Wednesday, December 12, 2012 11:21:10 PM UTC-6, Nikolay Elenkov wrote: On Thu, Dec 13, 2012 at 11:55 AM, Matthew Fleming mgf...@gmail.com wrote: I use the following code to encrypt a SecretKey with password-based

Re: [android-developers] Cipher.wrap() not working in Android 4.2?

2012-12-13 Thread Nikolay Elenkov
On Fri, Dec 14, 2012 at 11:22 AM, Nikolay Elenkov nikolay.elen...@gmail.com wrote: On Fri, Dec 14, 2012 at 11:15 AM, Matthew Fleming mgf...@gmail.com wrote: On Wednesday, December 12, 2012 11:21:10 PM UTC-6, Nikolay Elenkov wrote: On Thu, Dec 13, 2012 at 11:55 AM, Matthew Fleming

[android-developers] How to create new PreferenceFragment from XML

2012-12-13 Thread Jim Duda
I want to launch a new preference screen from my main preference screen. My main preference.xml is this: ?xml version=1.0 encoding=utf-8? PreferenceScreen xmlns:android=http://schemas.android.com/apk/res/android; PreferenceScreen android:title=@string/pref_settings_title

Re: [android-developers] 2 really simple Google Wallet / in-app purchase questions

2012-12-13 Thread Keith Wiley
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,

Re: [android-developers] Re: Identifying HTTP Get requests in Android

2012-12-13 Thread Archana
Hi Kris, Can I use HttpAsyncRequestHandler and HttpAsyncService for my Android app? Can I use the same socket/port in this case? Thanks! On Thursday, December 13, 2012 12:22:57 PM UTC+2, skink wrote: Archana wrote: Hi, when I issue GET, POST requests simultaneously, timeout occurs in

[android-developers] SharedPreferences no work

2012-12-13 Thread Antonis Kanaris
Hello.I make an apk with two activities and use SharedPreferences for store user values but no workthis is my code...Need something extra to manifest for work SharedPreferences? public class MainActivity extends Activity { @Override public void onCreate(Bundle savedInstanceState) {