[android-developers] Re: Required: Sr. NET Developer at Santa Clara, CA

2012-12-12 Thread Piren
i think spelling Microsoft with the dollar sign was lost somewhere in the twentieth century as well :) On Wednesday, December 12, 2012 3:18:45 AM UTC+2, gjs wrote: Clearly you are lost. Turn around and head back through the last decade towards the twentieth century, you'll find asp.net is

[android-developers] Re: ListView with Editable components

2012-12-12 Thread Piren
any kind of focusable/clickable item causes issues in listviews, but nothing that can't be handled. On Tuesday, December 11, 2012 9:32:58 PM UTC+2, Leossa wrote: Hi, I read on the wild some people saying that it's not a good thing to have EditTexts inside a ListView. Something related to

Re: [android-developers] How to start service at boot time?

2012-12-12 Thread Piren
That's why i dont like answering such questions ... Although your answer is pretty much correct, it's also promising that eventually he'll return to the forum asking how come this isn't working on all devices. That's the whole teach a man to fish thing... had he done a simple search for his

[android-developers] Re: ListView one item per screen

2012-12-12 Thread Dmitriy F
I've tried using the library - it crushes when in onPause state. If I knew I would be able to achieve something with rewriting the code, I would go for it, but again - not sure if I can - can't waste time really. среда, 12 декабря 2012 г., 11:58:30 UTC+4 пользователь Piren написал: I wouldn't

[android-developers] Re: ListView one item per screen

2012-12-12 Thread Piren
I'm not saying that you should use the library (since its obviously isnt working and you dont want to revert to an older version of it). I did say that at least to me, it be easier to either write your own ViewPager based on their source or make a ViewFlipper (and the likes) work as a pager.

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

2012-12-12 Thread Chris Mawata
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 getCount(Uri uri){ Cursor c=null; int size=0; if(uri.equals(DatabaseContants.CONTENT_URI_SETTING)){

Re: [android-developers] Re: onConfigurationChanged() is not called when flipping between landscape and reverse landscape?

2012-12-12 Thread RS
Hi Dianne, your answer isn't good enough. On flipping, the activity isn't informed through onConfigurationChanged (since Honeycomb, I suppose). This saves an unnecessary onSurfaceChange, texture loading, etc. Cool. But in that case sensor manager too must provide values as in previous

[android-developers] Re: Adding support to USB audio 5.1 and USB TV Tuner

2012-12-12 Thread Barabba
Il giorno mercoledì 28 novembre 2012 00:56:32 UTC+1, Barabba ha scritto: Hi all, I would kindly suggest 2 important features to include in Android: The support for 5.1 USB soundcard allows devices like Media Centers (based on Android) to output audio over a cheap soundard (on Ebay there

[android-developers] Re: Adding support to USB audio 5.1 and USB TV Tuner

2012-12-12 Thread Barabba
Il giorno mercoledì 28 novembre 2012 00:56:32 UTC+1, Barabba ha scritto: Hi all, I would kindly suggest 2 important features to include in Android: The support for 5.1 USB soundcard allows devices like Media Centers (based on Android) to output audio over a cheap soundard (on Ebay there

[android-developers] Re: Adding support to USB audio 5.1 and USB TV Tuner

2012-12-12 Thread Barabba
Anyone is interested on this project? It will save us lot of money! 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

[android-developers] How to get the space available in sdcard..?

2012-12-12 Thread abhay_401
Hi, I want to write a file(.txt) in sdcard before to that I want to check whether the space availability in Sdcard. If there is sufficient memory I want to write that file in sdcard. How can I do that..? -- You received this message because you are subscribed to the Google Groups Android

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

2012-12-12 Thread Archana
Hi, I used request.getRequestLine().getMethod(); that tells me if the method is GET/DELETE/POST and handle it accordingly. Any idea of how can I make my HTTP server in the Android phone non-blocking? I mean to simultaneously handle POST, GET and DELETE requests ? Thank you! On Tuesday,

Re: [android-developers] How to get the space available in sdcard..?

2012-12-12 Thread Mark Murphy
On Wed, Dec 12, 2012 at 8:21 AM, abhay_401 abhilash.androiddevelo...@gmail.com wrote: I want to write a file(.txt) in sdcard before to that I want to check whether the space availability in Sdcard. If there is sufficient memory I want to write that file in sdcard. How can I do that..?

Re: [android-developers] Re: Continuosly playing video

2012-12-12 Thread nemi chhimpa
They are not playing as a single file playing On Dec 11, 2012 11:01 PM, skink psk...@gmail.com wrote: nemi chhimpa wrote: I have list of video file. I want to play them one after other and look like that only one video file is playing. Video files are at server. Thanks. and what is a

Re: [android-developers] Re: Continuosly playing video

2012-12-12 Thread skink
nemi chhimpa wrote: They are not playing as a single file playing why? pskink -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send

[android-developers] SecurityException thown from MediaPlayer.prepare()?

2012-12-12 Thread Latimerius
Hello, I got a crash logged through ACRA which looks like MediaPlayer.prepare() threw SecurityException. I'm not sure how to interpret this - as far as I can tell, prepare() is not documented to throw that exception type. However, the previous line in my source calls setDataSource() which can

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

2012-12-12 Thread Kristopher Micinski
This is nothing Android specific. Designing HTTP servers that follow this pattern is a common Java problem, but in my mind there is no reason that you should be doing this on Android. Instead you should be communicating with your service using messages to and from a service using a smart

[android-developers] How to tidy up a Surface and SurfaceTexture when used with RenderScript

2012-12-12 Thread Massycat
I am using an android.view.Surface, an android.graphics.SurfaceTexture and the setSurface method of an Allocation to receive the results from some RenderScript and then use those results as a texture within OpenGL ES. The texture does successfully get updated with the RenderScript results.

[android-developers] Re: Required: Sr. NET Developer at Santa Clara, CA

2012-12-12 Thread bob
It is now Mi¢rosoft. On Wednesday, December 12, 2012 2:00:32 AM UTC-6, Piren wrote: i think spelling Microsoft with the dollar sign was lost somewhere in the twentieth century as well :) On Wednesday, December 12, 2012 3:18:45 AM UTC+2, gjs wrote: Clearly you are lost. Turn around and

[android-developers] HelloEffects confusion

2012-12-12 Thread bob
I'm looking at the HelloEffects sample, and I'm very confused. There is this line of code: 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? -- You received

[android-developers] Re: Public Play Store statistics ?

2012-12-12 Thread bob
Why not put Localytics or Flurry into your app? On Tuesday, December 11, 2012 5:06:31 AM UTC-6, Jean-Luc TRESSET wrote: Hi We've just produced an application for a third party company which have published it on the Play Store with their own developper account and we would like to

Re: [android-developers] cleaner shaders

2012-12-12 Thread bob
Yeah. I like to convert the current ones to files by going to ideone.com and pasting in short programs like this: import java.util.*; import java.lang.*; class Main { public static void main (String[] args) throws java.lang.Exception { String m =

[android-developers] Best way to integrate G+ reviewing for an app?

2012-12-12 Thread MobileVisuals
I want to add a button in my live wallpapers and apps, so the usera easily can G+ the app and write a review. Which is the best way to do that? Which text is most suitable for the button? G+ this app, Rate this app or Write a review for this app? I assume that this would be a good way of

Re: [android-developers] cleaner shaders

2012-12-12 Thread Kristopher Micinski
FYI GNU indent does exactly this, along with indent-buffer in emacs... kris On Tue, Dec 11, 2012 at 1:50 PM, bob b...@coolfone.comze.com wrote: Yeah, I'm using raw resources now. Also, I like to format the code using http://jsbeautifier.org/ It indents it real nice. On Tuesday, December

[android-developers] Re: App disappearing from my user's phones after update with preferExternal install location in Manifest

2012-12-12 Thread niko20
Don't use preferExternal, ever. I learned that a long time ago. It's too buggy. Use auto On Thursday, December 6, 2012 11:35:49 AM UTC-6, Paul wrote: Thanks Nobu Games, but I'm not worried about what to tell customers (got that covered), I'm worried about how to fix the problem or make

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

2012-12-12 Thread niko20
Just what the title says, The getExternalStorageDirectory API is supposed to GET EXTERNAL STORAGE. But manufacturers have all turned it into point to the internal storage on the device. There should have been a getInternalStorageDirectory() API to go along with this. I don't mind, I've solved

[android-developers] GCode

2012-12-12 Thread bob
What do you guys think about Google developing an IDE that is tailored specifically for Android development? It would basically replace Eclipse and not have a bunch of confusing Eclipsy options that are irrelevant to Android. It would basically be Google's answer to Xcode. -- You

[android-developers] Re: ListView with Editable components

2012-12-12 Thread Leossa
Thanks for answering Piren. That's the point. Those kind of items cause issues though they can be handled in some or other way. So I guess it was a design decision not to make things like that. Em quarta-feira, 12 de dezembro de 2012 06h03min01s UTC-2, Piren escreveu: any kind of

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

2012-12-12 Thread TreKing
On Wed, Dec 12, 2012 at 1:54 PM, niko20 nikolatesl...@yahoo.com wrote: The getExternalStorageDirectory API is supposed to GET EXTERNAL STORAGE. But manufacturers have all turned it into point to the internal storage on the device. There should have been a getInternalStorageDirectory() API to

Re: [android-developers] New In-app billing (v3)

2012-12-12 Thread Bram Stolk
On Tuesday, December 11, 2012 10:39:37 AM UTC-8, Ian Ni-Lewis wrote: For those who are wondering if you should switch: the answer is probably yes. IABv2 turned out to be very, very easy to get wrong. V3 is pretty easy to get right. There are a couple things that v3 doesn't support yet

Re: [android-developers] GCode

2012-12-12 Thread Kristopher Micinski
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 nontrivial, eclipse has thousands of developers over the course of years and it still really

[android-developers] Re: GCode

2012-12-12 Thread Lew
bob wrote: What do you guys think about Google developing an IDE that is tailored specifically for Android development? It would basically replace Eclipse and not have a bunch of confusing Eclipsy options that are irrelevant to Android. It would basically be Google's answer to Xcode.

Re: [android-developers] GCode

2012-12-12 Thread Lew
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 nontrivial, eclipse has thousands of developers over the

Re: [android-developers] WTH?

2012-12-12 Thread Raymond C. Rodgers
Because you're supposed to define that exception handling yourself, just like the rest of it? On 12/11/2012 1:31 PM, Larry Meadors wrote: This is in the android.test.ActivityUnitTestCase code: try{ // do some stuff here to build the activity to test } catch (Exception e) {

[android-developers] BlackWhiteFilter.java

2012-12-12 Thread bob
Anyone know what the story is with BlackWhiteFilter.java? As far as I can tell, it has nothing to do with making stuff black and white. The output is in full color. Here's the brains behind it: private final String mBlackWhiteShader = precision mediump float;\n +

Re: [android-developers] WTH?

2012-12-12 Thread Larry Meadors
On Wed, Dec 12, 2012 at 4:27 PM, Raymond C. Rodgers raym...@badlucksoft.com wrote: Because you're supposed to define that exception handling yourself, just like the rest of it? No, that might be adequate if it were not relying on components that are out of our control. Unfortunately, that's

[android-developers] Re: Weird artifacts simple List View on 4.2

2012-12-12 Thread Hedami
My app is currently in beta testing and a Nexus 4 user running Android 4.2.1 is reporting the same thing. When scrolling the ListView, it products visual artifacts (screenshots posted here:

Re: [android-developers] New In-app billing (v3)

2012-12-12 Thread Ian Ni-Lewis
On Wed, Dec 12, 2012 at 12:21 PM, Bram Stolk b.st...@gmail.com wrote: Could you please comment on the reports that AIBv3 will not work until you clear the cache of Google Play, and agree to a EULA? If this is the case, I hesitate to put this burden on my users. IABv3 is built into Google

Re: [android-developers] New In-app billing (v3)

2012-12-12 Thread Bram Stolk
Thanks Ian, A lot of useful information there. Bram -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to

Re: [android-developers] New In-app billing (v3)

2012-12-12 Thread Nikolay Elenkov
On Thu, Dec 13, 2012 at 9:18 AM, Ian Ni-Lewis ile...@google.com wrote: On Wed, Dec 12, 2012 at 12:21 PM, Bram Stolk b.st...@gmail.com wrote: Could you please comment on the reports that AIBv3 will not work until you clear the cache of Google Play, and agree to a EULA? If this is the case, I

Re: [android-developers] New In-app billing (v3)

2012-12-12 Thread Nikolay Elenkov
On Thu, Dec 13, 2012 at 10:07 AM, Nikolay Elenkov nikolay.elen...@gmail.com wrote: On Thu, Dec 13, 2012 at 9:18 AM, Ian Ni-Lewis ile...@google.com wrote: On Wed, Dec 12, 2012 at 12:21 PM, Bram Stolk b.st...@gmail.com wrote: Could you please comment on the reports that AIBv3 will not work

[android-developers] Complicated Preference Activity

2012-12-12 Thread Jim Duda
I've learned how to build simple preferences for my application using a separate Activity and PreferenceFragments. So far so good. Part of my application's preferences are to provide a list of HOSTS to select from, where each HOST has a set of data which describes the host (host address, port,

Re: [android-developers] Complicated Preference Activity

2012-12-12 Thread TreKing
On Wed, Dec 12, 2012 at 7:27 PM, Jim Duda j...@duda.tzo.com wrote: Any advice appreciated. Do I need to stick with my external dialog boxes? Use a different SharedPreferences instance for each host, using some name unique to each host:

[android-developers] Viewstub reuse

2012-12-12 Thread apaladin
i want use viewstub real time titlebar change main.xml ***ViewStub* *android:id**=**@+id/headerstub* *android:layout_gravity**=**top* *android:layout_width**=**match_parent* *android:layout_height**=**wrap_content*

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

2012-12-12 Thread b0b
On Wednesday, 12 December 2012 20:54:10 UTC+1, niko20 wrote: Just what the title says, The getExternalStorageDirectory API is supposed to GET EXTERNAL STORAGE. But manufacturers have all turned it into point to the internal storage on the device. There should have been a

[android-developers] Exception in socket programming

2012-12-12 Thread s_ali
Hi! I am trying to make a client server scenario in android. In client project, emulator is acting like a client, and its working fine. But when I run the server code (using emulator), it gives an exception. The server project gives the correct output when I run it as a simple java project.

[android-developers] Re: Weird artifacts simple List View on 4.2

2012-12-12 Thread Hedami
I was able to work with the user and found that removing the alpha from the RelativeLayout (containing the ListView) eliminated the glitches while scrolling. Instead of using alpha, I'm now using a background color with transparency. On Wednesday, December 12, 2012 6:45:48 PM UTC-5, Hedami

Re: [android-developers] New In-app billing (v3)

2012-12-12 Thread Nikolay Elenkov
On Thu, Dec 13, 2012 at 9:18 AM, Ian Ni-Lewis ile...@google.com wrote: On Wed, Dec 12, 2012 at 12:21 PM, Bram Stolk b.st...@gmail.com wrote: Could you please comment on the reports that AIBv3 will not work until you clear the cache of Google Play, and agree to a EULA? If this is the case, I

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

2012-12-12 Thread Matthew Fleming
I use the following code to encrypt a SecretKey with password-based encryption: Cipher pbeEncryptCipher = Cipher.getInstance(PBEWithMD5AndDES); pbeEncryptCipher.init(Cipher.WRAP_MODE, pbeKey, pbeParamSpec); byte[] symKeyBytes = null; try { symKeyBytes =

[android-developers] Re: Complicated Preference Activity

2012-12-12 Thread Jim Duda
On 12/12/2012 08:59 PM, TreKing wrote: On Wed, Dec 12, 2012 at 7:27 PM, Jim Duda j...@duda.tzo.com mailto:j...@duda.tzo.com wrote: Use a different SharedPreferences instance for each host, using some name unique to each host:

Re: [android-developers] Exception in socket programming

2012-12-12 Thread Kristopher Micinski
1. You probably shouldn't be writing a server as an Android app. That's just a bad idea. It's going to kill the battery unless you have really good motivation for doing so... 2. You forgot to include the internet permission. Kris On Wed, Dec 12, 2012 at 9:28 PM, s_ali sara.bi...@gmail.com

Re: [android-developers] Exception in socket programming

2012-12-12 Thread Sara Ali
Actually I want two android phones to communicate with each other. For that purpose, one phone would need to behave as a server. Yeah, I now have added the internet permission, it does not crash now but I am not getting any output. I don't know how to run two android projects simultaneously,

Re: [android-developers] Exception in socket programming

2012-12-12 Thread Kristopher Micinski
FYI two phones communicating is *not* a good use case for a server... As for your question, you can easily answer that by a quick Google search eclipse multiple emulators: http://stackoverflow.com/questions/1761246/possible-to-safely-run-multiple-android-emulators-on-the-same-machine-and-commun

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

2012-12-12 Thread Nicholas Campion
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 interested in how it handles the apps icon because, it appears to be lazy loaded (flinging down the list will show a placeholder) but it seems

[android-developers] Viewpager overscrolls when width is changed when swiping

2012-12-12 Thread spotleo
Dear all, I am having trouble with ViewPager overscrolling to the next or previous page if ViewPager's width is changed in onPageSelected. I'm looking at ViewPager's setCurrentItemInternal code and the steps of swiping to the next page seems to be 1. smoothScrollTo 2. calls

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

2012-12-12 Thread Nikolay Elenkov
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 encryption: Cipher pbeEncryptCipher = Cipher.getInstance(PBEWithMD5AndDES); Try Cipher.getInstance(PBEWithMD5AndDES, BC); Also probably not a good

[android-developers] Re: Android circular seek bar

2012-12-12 Thread djhacktor
hi bob m still struggling in understanding your example what i want is Reference : https://lh4.ggpht.com/9qL2sQi6XQYBY2pvgsPyObYS3UM42kRw64ve-GacU3jqW0XTEhARkdCLpmYzzhRULk0r On Monday, 3 December 2012 11:45:23 UTC+5:30, djhacktor wrote: Hi can any one tell me how to make seek bar in

[android-developers] Re: using ffmpeg library for converting no. of images into a video containing music

2012-12-12 Thread rakesh kumar
Hi Narendra, I have to covert no of images into video. Can you Please share your code on my mail Id:rakesh_dogr...@yahoo.co.in Regards Rakeh On Friday, October 19, 2012 6:11:31 PM UTC+5:30, Narendra Singh Rathore wrote: Hello all, I have used the following link for converting images into

[android-developers] Re: Android circular seek bar

2012-12-12 Thread djhacktor
On Monday, 3 December 2012 11:45:23 UTC+5:30, djhacktor wrote: Hi can any one tell me how to make seek bar in circular shape ?? is there any example ?? Reference : https://lh4.ggpht.com/9qL2sQi6XQYBY2pvgsPyObYS3UM42kRw64ve-GacU3jqW0XTEhARkdCLpmYzzhRULk0r -- You received this message

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

2012-12-12 Thread Archana
Hi, Thanks for the input. It is part of research project (so we are using HTTP servers) and we also want to monitor battery in this scenario. As I am relatively new to developing these, please let me know if I am to use the code similar to Page 31, 32 of

Re: [android-developers] Re: using ffmpeg library for converting no. of images into a video containing music

2012-12-12 Thread Narendra Singh Rathore
On Thu, Dec 13, 2012 at 11:58 AM, rakesh kumar dogra.rakes...@gmail.comwrote: Hi Narendra, I have to covert no of images into video. Can you Please share your code on my mail Id:rakesh_dogr...@yahoo.co.in Hi Rakesh, I already shared the link, which I used to convert images into video. Try

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

2012-12-12 Thread Pent
A user should be able to move an SD card from one device to the next and have all of there data in the expected location and be ready to go from an app standpoint without jumping through these hoops. This is so broken it's pathetic. Yeah, this is where the pain comes. And when your app is