[android-developers] Re: Required: Sr. NET Developer at Santa Clara, CA
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 one many one way dead ends off micro$oft way ;-) On Friday, December 7, 2012 2:56:09 AM UTC+11, Munawar Ali wrote: Hi Friend, Hope you are doing good. Please let me know if you have someone for the below mention requirement… Please send resumes on mu...@tekenergyusa.com *Position: Sr. ASP.NET Developer* *Location: Santa Clara, CA* *Duration: 6 Months Contract* *Start Date: Monday December 10th* *Interview Process: Phone In-Person Interview* *Description:* The Developer will be responsible for the design, development, implementation, testing and supporting of the new web applications as well as adding new features and enhancements to existing ones. The Developer must have Front End (GUI) development of various web controls and knowledge of specific web development platforms and languages (*HTML, JavaScript, DHTML, XML, and XSL*). SQL back end development of database application and its inherent connection devices. The ideal candidate must have 4+ years experience with *ASP.NET, C#, .NET Framework 3.0* or higher, *MS SQL Server 2005/2008, HTML, CSS and JavaScript*. Positions require previous experience analyzing and resolving web site problems. Candidates must be able to think on their feet, work on multiple projects simultaneously and be able to develop a wide variety of browsers. Thanks Regards, Munawar Ali Technical Recruiter TEKenergy LLC mu...@tekenergyusa.com www.tekenergyusa.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: ListView with Editable components
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 focus issues. That being said, what I would like to know is if it's a design issue of the engineers not to do things this way, or just some devs personal opinions? Leonardo -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] How to start service at boot time?
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 question, he'd get the full answer with booth needed filters (quickboot_poweron is needed as well). On Tuesday, December 11, 2012 4:24:58 PM UTC+2, Mark Murphy (a Commons Guy) wrote: On Tue, Dec 11, 2012 at 9:14 AM, Bajrang Asthana asthana...@gmail.com javascript: wrote: I want to know how to start service at boot time? Register a BroadcastReceiver in the manifest for ACTION_BOOT_COMPLETED, and have the receiver start the service. Having an always-running service is an anti-pattern in Android, I am wondering how do apps like Easy Battery Saver or Open Advanced Task Killer work? Note that apps like Advanced Task Killer are designed to help users defend themselves against developers who try to have an always-running service. Is starting service at boot time possible in Android 3.1+ Yes, though you will also need an activity on Android 3.1+, and the user must manually launch that activity before your boot-time BroadcastReceiver will get control. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 4.4 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: ListView one item per screen
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 go that way...it wont be easy at all to cause the list to behave properly with moving between pages... As i suggested before, you're much better off trying to replicate the source of ViewPager... If you dont want that much work (which i believe will actually be less work than retrofitting a listview), you'll also find it easier to add gesture control to a ViewFlipper On Wednesday, December 12, 2012 9:29:30 AM UTC+2, Dmitriy F wrote: Since DirectionalViewPagerhttps://github.com/JakeWharton/Android-DirectionalViewPager is deprecated now, I need some way to mimic its' vertical paging functionlity. First thing that comes to my mind is ListView, but I'd like some tips for implementing row per screen funcitonality - where do I start ? Thanks. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: ListView one item per screen
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. Trying to retrofit a ListView looks like the harder path to take. On Wednesday, December 12, 2012 10:24:14 AM UTC+2, Dmitriy F wrote: 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 go that way...it wont be easy at all to cause the list to behave properly with moving between pages... As i suggested before, you're much better off trying to replicate the source of ViewPager... If you dont want that much work (which i believe will actually be less work than retrofitting a listview), you'll also find it easier to add gesture control to a ViewFlipper On Wednesday, December 12, 2012 9:29:30 AM UTC+2, Dmitriy F wrote: Since DirectionalViewPagerhttps://github.com/JakeWharton/Android-DirectionalViewPager is deprecated now, I need some way to mimic its' vertical paging functionlity. First thing that comes to my mind is ListView, but I'd like some tips for implementing row per screen funcitonality - where do I start ? Thanks. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: ContentResolver.query return null android
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)){ c=mContentResolver.query(uri, DatabaseContants.COLUMNS_SETTING,null, null,null); } else if(uri.equals(DatabaseContants.CONTENT_URI_FAVORITEPOI)){ Log.v(TAG,ContentResolver is +mContentResolver); c=mContentResolver.query(uri, DatabaseContants.COLUMNS_FAVORITEPOI,null, null,DatabaseContants.PLACEID_FAVORITE+ DESC); Log.v(TAG,Cursor c is +c); } if(c!=nullc.getCount()0)size=c.getCount(); c.close(); return size; } the error appears in this function. 在 2012年12月12日星期三UTC+8上午11时13分55秒,Hilda Chen写道: Hi All: I create a datatbase with provider and get the data by content resolver. when call ContentResolver.insert is ok, but ContentResolver.query fail. c=mContentResolver.query(uri, DatabaseContants.COLUMNS_FAVORITEPOI,null, null,DatabaseContants.PLACEID_FAVORITE+ DESC); it return null, and the ContentResolver is not null; the log is 06-02 03:31:34.235: E/AndroidRuntime(23134): FATAL EXCEPTION: main 06-02 03:31:34.235: E/AndroidRuntime(23134): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.providerdatabase/com.example.providerdatabase.PrivoterDatabaseActivity}: java.lang.NullPointerException 06-02 03:31:34.235: E/AndroidRuntime(23134): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2082) 06-02 03:31:34.235: E/AndroidRuntime(23134): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2107) 06-02 03:31:34.235: E/AndroidRuntime(23134): at android.app.ActivityThread.access$600(ActivityThread.java:139) 06-02 03:31:34.235: E/AndroidRuntime(23134): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1207) 06-02 03:31:34.235: E/AndroidRuntime(23134): at android.os.Handler.dispatchMessage(Handler.java:99) 06-02 03:31:34.235: E/AndroidRuntime(23134): at android.os.Looper.loop(Looper.java:137) 06-02 03:31:34.235: E/AndroidRuntime(23134): at android.app.ActivityThread.main(ActivityThread.java:4812) 06-02 03:31:34.235: E/AndroidRuntime(23134): at java.lang.reflect.Method.invokeNative(Native Method) 06-02 03:31:34.235: E/AndroidRuntime(23134): at java.lang.reflect.Method.invoke(Method.java:511) 06-02 03:31:34.235: E/AndroidRuntime(23134): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:789) 06-02 03:31:34.235: E/AndroidRuntime(23134): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:556) 06-02 03:31:34.235: E/AndroidRuntime(23134): at dalvik.system.NativeStart.main(Native Method) 06-02 03:31:34.235: E/AndroidRuntime(23134): Caused by: java.lang.NullPointerException 06-02 03:31:34.235: E/AndroidRuntime(23134): at com.example.providerdatabase.DatabaseController.getCount(DatabaseController.java:47) 06-02 03:31:34.235: E/AndroidRuntime(23134): at com.example.providerdatabase.PrivoterDatabaseActivity.onCreate(PrivoterDatabaseActivity.java:62) 06-02 03:31:34.235: E/AndroidRuntime(23134): at android.app.Activity.performCreate(Activity.java:5008) 06-02 03:31:34.235: E/AndroidRuntime(23134): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1079) 06-02 03:31:34.235: E/AndroidRuntime(23134): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2046) 06-02 03:31:34.235: E/AndroidRuntime(23134): ... 11 more can you help me? Thanks! Hilda -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: onConfigurationChanged() is not called when flipping between landscape and reverse landscape?
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 orientation. *Unfortunately it is mangled in accordance to the new orientation.* In NDK, raw sensor vectors aren't officially available in sensor.h. We use remapCoordinateSystem()[1] when away from default orientation. We call this on config change to remember the new orientation and compensate for sensor value mangling. int rotation = activity.getWindowManager().getDefaultDisplay().getRotation() Even without JNI such a call must be avoided except on config change event. It is a overkill to (JNI-)call that on each frame just because the framework hides it from the activity but uses the new orientation in sensor value mangling. Framework must inform the activity of the change if it chooses to alter sensor values by the new (flipped) orientation. Thanks, RS [1] http://developer.android.com/reference/android/hardware/SensorManager.html#remapCoordinateSystem(float[], int, int, float[]) ps: This is specific to flip... there is no switch between landscape-portrait but just flipped as in landscape to reverse-landscape or portrait to reverse-portrait. On Friday, June 15, 2012 2:44:55 AM UTC+1, Dianne Hackborn wrote: This is simply not a configuration change. There is no notification the platform provides for when it does this, because it is invisible to the environment the app is in. On Thu, Jun 14, 2012 at 4:36 PM, Farmer duanx...@gmail.com javascript:wrote: Thanks guys for your reply! I tried to set android:configChanges=keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize, but it didn't help. To Hoang, I can understand that Configuration does not change when I flip the phone. Actually I am calling getRotation() to decide current display rotation. The thing is that I need a trigger to call the method when orientation is changing between landscape and reverse landscape. And onConfigurationChanged() is my first thought. Any idea? On Friday, June 8, 2012 1:26:08 AM UTC+8, Hoang DN wrote: Hi guy, In your case, actually, Configuration did not change, therefore the method onConfigurationChanged() won't be called. If you want handle this event, you can use android.view.Display.**getRotation(). The returned value may be Surface.ROTATION_0 (no rotation), Surface.ROTATION_90, Surface.ROTATION_180, or Surface.ROTATION_270. Hope this useful for you. Good luck! Br, hoangdn On 7 Tháng Sáu, 23:49, Farmer duanxiao...@gmail.com wrote: Hi there, On ICS, when I flip the phone between landscape and reverse landscape, it seems onConfigurationChanged() won't be called. How can I get notified when such event happens, or did I miss anything here? Thanks in advance! best, duanxiaotao -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-d...@googlegroups.comjavascript: To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com javascript: For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Dianne Hackborn Android framework engineer hac...@android.com javascript: Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Adding support to USB audio 5.1 and USB TV Tuner
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 are available soundcards based on MCM6206 for about 15$) instead of electric/optical SPDIF: there aren't cheap home teather systems with digital output, to interface a cheap Media Center we need to buy a non-cheap Home Teather system.. or spend around 70$ for a hardware converter SPDIF-6 analog channels.. that's a waste. I hope we can keep everyting cheap :) It can allow also mobile devices to output multichannel instead of the classic stereo, useful for seeing a movie or as DJ mixing (master+monitor output) The support of a cheap USB TV Tuner allows to add the Media Centers without a TV antenna input the precious feature to display and record TV channels, also it allows all the mobile devices users to see TV on their Android Palms.. amazing. Hope you consider these ideas exciting as I do, thank you for your attention -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Adding support to USB audio 5.1 and USB TV Tuner
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 are available soundcards based on MCM6206 for about 15$) instead of electric/optical SPDIF: there aren't cheap home teather systems with digital output, to interface a cheap Media Center we need to buy a non-cheap Home Teather system.. or spend around 70$ for a hardware converter SPDIF-6 analog channels.. that's a waste. I hope we can keep everyting cheap :) It can allow also mobile devices to output multichannel instead of the classic stereo, useful for seeing a movie or as DJ mixing (master+monitor output) The support of a cheap USB TV Tuner allows to add the Media Centers without a TV antenna input the precious feature to display and record TV channels, also it allows all the mobile devices users to see TV on their Android Palms.. amazing. Hope you consider these ideas exciting as I do, thank you for your attention -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Adding support to USB audio 5.1 and USB TV Tuner
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 email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How to get the space available in sdcard..?
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 Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Identifying HTTP Get requests in Android
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, December 4, 2012 12:58:42 PM UTC+2, skink wrote: Archana wrote: Hi, is it using HttpService.handleRequest? Please help as I dont have much idea of using HTTP Core. i have not used HttpService so cant help much pskink -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] How to get the space available in sdcard..?
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..? http://developer.android.com/reference/android/os/StatFs.html -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 4.4 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Continuosly playing video
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 problem you are facing? pskink -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Continuosly playing video
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 email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] SecurityException thown from MediaPlayer.prepare()?
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 throw SecurityException, and the application has been processed by Proguard. Is it possible that Proguard causes this kind of inaccuracy and the exception was actually thrown by setDataSource()? Even if so, I'm still not sure what the exception could mean. The data source is set to a file stored in the assets/ directory, possibly of a different package. The crash happened on 4.0.3 (the app has been tested rather extensively on N7 with 4.1 and 4.2, and is mostly used on 4.x IIRC). -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Identifying HTTP Get requests in Android
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 mechanism (GCM) to talk back to your apps. HTTP servers will kill the battery... But if you insist that your app is special, the common pattern is to have a dedicated thread that handles the connection and forks off worker threads to handle incoming requests, this is the common case. Is there any reason you'd want truly non blocking I/O? But the answer is Java nio, which Android *does* include: http://developer.android.com/reference/java/nio/package-summary.html http://blog.codepainters.com/2012/02/17/why-java-nio-is-a-better-idea-for-android/ Kris On Wed, Dec 12, 2012 at 8:27 AM, Archana ramalingam.arch...@gmail.com wrote: 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, December 4, 2012 12:58:42 PM UTC+2, skink wrote: Archana wrote: Hi, is it using HttpService.handleRequest? Please help as I dont have much idea of using HTTP Core. i have not used HttpService so cant help much pskink -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How to tidy up a Surface and SurfaceTexture when used with RenderScript
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. However when I attempt to tidy up and destroy the RenderScript context I get a Fatal signal 11 (SIGSEGV). How do I go about tidying up the Surface, SurfaceTexture, Allocation and RenderScript context so that the crash does not occur? This is running on a Nexus S with Android 4.1.2 and an Emulator running 4.2. The crash occurs during rsContextDestroy. I tried to attach an example Activity and RenderScript (sets random grey values) and the log output from a call to contextDump() just before the destroy() call on the RenderScript context but that did not seem to work. You can find them over on StackOverflowhttp://stackoverflow.com/questions/13842609/how-to-tidy-up-a-surface-and-surfacetexture-when-used-with-renderscript . -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Required: Sr. NET Developer at Santa Clara, CA
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 head back through the last decade towards the twentieth century, you'll find asp.net is one many one way dead ends off micro$oft way ;-) On Friday, December 7, 2012 2:56:09 AM UTC+11, Munawar Ali wrote: Hi Friend, Hope you are doing good. Please let me know if you have someone for the below mention requirement… Please send resumes on mu...@tekenergyusa.com *Position: Sr. ASP.NET Developer* *Location: Santa Clara, CA* *Duration: 6 Months Contract* *Start Date: Monday December 10th* *Interview Process: Phone In-Person Interview* *Description:* The Developer will be responsible for the design, development, implementation, testing and supporting of the new web applications as well as adding new features and enhancements to existing ones. The Developer must have Front End (GUI) development of various web controls and knowledge of specific web development platforms and languages (*HTML, JavaScript, DHTML, XML, and XSL*). SQL back end development of database application and its inherent connection devices. The ideal candidate must have 4+ years experience with *ASP.NET, C#, .NET Framework 3.0* or higher, *MS SQL Server 2005/2008, HTML, CSS and JavaScript*. Positions require previous experience analyzing and resolving web site problems. Candidates must be able to think on their feet, work on multiple projects simultaneously and be able to develop a wide variety of browsers. Thanks Regards, Munawar Ali Technical Recruiter TEKenergy LLC mu...@tekenergyusa.com www.tekenergyusa.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] HelloEffects confusion
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 this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Public Play Store statistics ?
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 check the number of application download or installation. I would like to know : - is the public download statistic chart on the Play Store page of the app reliable ? - is there a way to make the statistic part of the other company developper console accessible for us ? 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
Re: [android-developers] cleaner shaders
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 = precision mediump float;\n + uniform sampler2D tex_sampler_0;\n + uniform float scale;\n + uniform float stepsizeX;\n + uniform float stepsizeY;\n + varying vec2 v_texcoord;\n + void main() {\n + vec3 nbr_color = vec3(0.0, 0.0, 0.0);\n + vec2 coord;\n + vec4 color = texture2D(tex_sampler_0, v_texcoord);\n + coord.x = v_texcoord.x - 0.5 * stepsizeX;\n + coord.y = v_texcoord.y - stepsizeY;\n + nbr_color += texture2D(tex_sampler_0, coord).rgb - color.rgb;\n + coord.x = v_texcoord.x - stepsizeX;\n + coord.y = v_texcoord.y + 0.5 * stepsizeY;\n + nbr_color += texture2D(tex_sampler_0, coord).rgb - color.rgb;\n + coord.x = v_texcoord.x + stepsizeX;\n + coord.y = v_texcoord.y - 0.5 * stepsizeY;\n + nbr_color += texture2D(tex_sampler_0, coord).rgb - color.rgb;\n + coord.x = v_texcoord.x + stepsizeX;\n + coord.y = v_texcoord.y + 0.5 * stepsizeY;\n + nbr_color += texture2D(tex_sampler_0, coord).rgb - color.rgb;\n + gl_FragColor = vec4(color.rgb - 2.0 * scale * nbr_color, color.a);\n + }\n; System.out.println(m); } } On Tuesday, December 11, 2012 12:38:59 AM UTC-6, Harri Smått wrote: I've been putting shader code into assets or raw resources for a long while. Writing your shaders as strings is a pain. -- H On Dec 11, 2012 12:29 AM, bob b...@coolfone.comze.com javascript: wrote: I'm looking at the BasicGLSurfaceView example, and I'm thinking maybe the vertex shader and fragment shader ought to be stored as assets for readability. Right now they are like this: private final String mVertexShader = uniform mat4 uMVPMatrix;\n + attribute vec4 aPosition;\n + attribute vec2 aTextureCoord;\n + varying vec2 vTextureCoord;\n + void main() {\n + gl_Position = uMVPMatrix * aPosition;\n + vTextureCoord = aTextureCoord;\n + }\n; private final String mFragmentShader = precision mediump float;\n + varying vec2 vTextureCoord;\n + uniform sampler2D sTexture;\n + void main() {\n + gl_FragColor = texture2D(sTexture, vTextureCoord);\n + }\n; On iOS, they are stored in .vsh and .fsh files. I think we should do something like that. What do you guys think? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-d...@googlegroups.comjavascript: To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com javascript: For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Best way to integrate G+ reviewing for an app?
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 getting more reviews for the app and improve its rank on G play? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] cleaner shaders
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 11, 2012 12:38:59 AM UTC-6, Harri Smått wrote: I've been putting shader code into assets or raw resources for a long while. Writing your shaders as strings is a pain. -- H On Dec 11, 2012 12:29 AM, bob b...@coolfone.comze.com wrote: I'm looking at the BasicGLSurfaceView example, and I'm thinking maybe the vertex shader and fragment shader ought to be stored as assets for readability. Right now they are like this: private final String mVertexShader = uniform mat4 uMVPMatrix;\n + attribute vec4 aPosition;\n + attribute vec2 aTextureCoord;\n + varying vec2 vTextureCoord;\n + void main() {\n + gl_Position = uMVPMatrix * aPosition;\n + vTextureCoord = aTextureCoord;\n + }\n; private final String mFragmentShader = precision mediump float;\n + varying vec2 vTextureCoord;\n + uniform sampler2D sTexture;\n + void main() {\n + gl_FragColor = texture2D(sTexture, vTextureCoord);\n + }\n; On iOS, they are stored in .vsh and .fsh files. I think we should do something like that. What do you guys think? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-d...@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: App disappearing from my user's phones after update with preferExternal install location in Manifest
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 sure the fewest users are affected. In other words, does it make sense to deploy another update with installLocation=auto. Does that improve matters? What is root cause, is this a known android bug, etc. If the problem is due to faulty SD cards, then installLocation=auto may help but only if SD card is unavailable during install (cause then it will install on internal). If SD card is working during install, the phone might install on SD anyway, then SD card gets unmounted or something weird and all apps on SD card become unavailable. Anyway thanks for the info with your phone. On Thursday, December 6, 2012 12:08:59 PM UTC-5, Nobu Games wrote: This used to happen quite often on my old Samsung Galaxy S with any app installed on the SD card. It sometimes took a restart and even purging ... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Why oh why did Google let manufacturers take over the getExternalStorageDirectory() API?
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 this problem a long time ago, but just letting users type in the real path to the external card into my app. But many apps don't do this yet. So you get lots of apps that put everything on the internal storage when you have a 64GB card which is getting nothing put on it (I'm looking at you, Amazon MP3 and Amazon Kindle). Who let this slide man! -niko -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] GCode
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 received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: ListView with Editable components
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 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 focus issues. That being said, what I would like to know is if it's a design issue of the engineers not to do things this way, or just some devs personal opinions? Leonardo -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Why oh why did Google let manufacturers take over the getExternalStorageDirectory() API?
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 go along with this. +1 man, this pisses me off to no end. I don't mind, I've solved this problem a long time ago, but just letting users type in the real path to the external card into my app. I appreciate the quotes, because this is not a solution, it's a support headache every time a user upgrades to one of these devices and wonders where their data is. It is annoying trying to explain to a user how to get the read SD card path and explain the difference between internal, secondary internal the device considers external because manufacturers are dicks, and SD card, the true external, which they rendered almost so useless on new devices that it feels like they only add it to f*** with developers and confuse people even more. 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. I'm curious, does anyone know if this was brought up at I/O? If not, it should be next time. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] New In-app billing (v3)
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 (subscriptions, mostly) but if v3 covers your needs, you should use it. Ian Thanks Ian, This is great news. 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. Also, it would help if you list the ways 'in which to get AIBv2 wrong' as you put it? Every day, I am still seeing at least 3% of my users paying for purchases that never arrive. 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 android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] GCode
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 sucks, I don't think Google could do better without a lot of effort invested, and I don't think it would help any of their developers (since I doubt too many Google developers really use eclipse all that much anyway..) kris On Wed, Dec 12, 2012 at 3:06 PM, bob b...@coolfone.comze.com 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. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: GCode
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. Do you think Google would care what we answer? The point of the I in IDE is that it's *integrated*, including features that are meant for general development. With Eclipse or NetBeans or JetBrains or whatever, you can use one IDE to handle your client (Android), your server (database, middleware, whatever), XML, deployment (Ant-based or whatever), and other ecosystem-relevant tasks from the one platform. You may find Eclipsy options confusing, but that's your problem, not Eclipse's. Eclipse's options are not inherently confusing. I guess you need to up your game. I don't like XCode precisely because it is a one-trick pony. Why would I prefer half a dozen tools, none as good within their own domain as the one I use, to the one integrated one that I do use? So basically I find your idea simply terrible, and I hope Google agrees with me. -- 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
Re: [android-developers] GCode
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 course of years and it still really sucks, I don't think Google could do better without a lot of effort invested, and I don't think it would help any of their developers (since I doubt too many Google developers really use eclipse all that much anyway..) Based on what do you have this doubt? How many is too many? How much is all that much? Do you have statistics? -- 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
Re: [android-developers] WTH?
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) { assertNotNull(newActivity); } Why isn't that exception logged, re-thrown, or even it's .toString() included in the assertion failure? IMO, this is a text book How not to handle an error ever. example. Larry -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] BlackWhiteFilter.java
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 + uniform sampler2D tex_sampler_0;\n + uniform vec2 seed;\n + uniform float black;\n + uniform float scale;\n + uniform float stepsize;\n + varying vec2 v_texcoord;\n + float rand(vec2 loc) {\n + // Compute sin(theta), theta = 12.9898 x + 78.233y // because floating point has limited range, make theta = theta1 + theta2 // where theta1 = 12x + 78y and theta2 = 0.9898x + 0.233y) // Note that theta1 and theta2 cover diffent range of theta. float theta1 = dot(loc, vec2(0.9898, 0.233));\n + float theta2 = dot(loc, vec2(12.0, 78.0));\n + // Use the property sin(theta) = cos(theta1)*sin(theta2)+sin(theta1)*cos(theta2) // this approach also increases the precisions of sin(theta) float value = cos(theta1) * sin(theta2) + sin(theta1) * cos(theta2);\n + // fract(43758.5453 * x) = fract(43758 * x + 0.5453 * x) // keep value of part1 in range: (2^-14 to 2^14). Since 43758 = 117 * 374 // fract(43758 * sin(theta)) = mod(221 * mod(198*sin(theta), 1.0), 1.0) // also to keep as much decimal digits, use the property // mod(mod(198*sin(theta)) = mod(mod(197*sin(theta) + sin(theta)) float temp = mod(197.0 * value, 1.0) + value;\n + float part1 = mod(220.0 * temp, 1.0) + temp;\n + float part2 = value * 0.5453;\n + float part3 = cos(theta1 + theta2) * 0.43758;\n + return fract(part1 + part2 + part3);\n + }\n + void main() {\n + vec4 color = texture2D(tex_sampler_0, v_texcoord);\n + float dither = rand(v_texcoord + seed);\n + vec3 xform = clamp((color.rgb - black) * scale, 0.0, 1.0);\n + vec3 temp = clamp((color.rgb + stepsize - black) * scale, 0.0, 1.0);\n + vec3 new_color = clamp(xform + (temp - xform) * (dither - 0.5), 0.0, 1.0);\n + gl_FragColor = vec4(new_color, color.a);\n + }\n; -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] WTH?
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 not the case and if anything barfs this just sweeps it under the rug and quietly fails with no indication of what failed, why it failed, or where it failed. This is a case where e.printStackTrace() would be an improvement. To figure it out, you get to set a breakpoint and attach a debugger. Good times! Larry -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Weird artifacts simple List View on 4.2
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: http://forums.androidcentral.com/android-applications/206430-music-player-remix-public-beta-now-open-6.html#post2416112 ). No one else has reported this. I've run the app on the Android 4.2 emulator and have not seen it. I wonder if there's something in Android 4.2.1 (the one running on the Nexus 4) that is causing 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
Re: [android-developers] New In-app billing (v3)
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 Play services, so it requires an update to the Play Services apk. V2 was built into the Play store client itself. The cache/EULA issue isn't specifically related to IAB, it's related to setting up Play Services (and hopefully is unnecessary for most users, the cache part anyway). It's a bummer to be in this transition period where Play Services has to be updated before your app can take advantage of it, but I think most people would agree that it's better than waiting for an OS upgrade. Also, it would help if you list the ways 'in which to get AIBv2 wrong' as you put it? Every day, I am still seeing at least 3% of my users paying for purchases that never arrive. The most common issue was the one that Dan Galpin and I outlined in our I/O 2012 talk, 10 things all game developers should know. Under IABv2 it was unlikely but possible for the billing confirmation to arrive at a time when your app wasn't running. Many developers, especially game developers with substantial amounts of C++ code, had written their billing service in a way that assumed that it was always started by their app and that the app was always running when the billing service was alive. This isn't a valid assumption. The fix is usually to add some persistence code to the billing service, so that the app can check for new receipts when it starts running again. Ironically, the most common reason for your app to not be running when the confirmation arrives is that it was killed to make room for Google Play to run. Good times. :-) Ian 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 android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Ian Ni-Lewis Developer Advocate Android Developer Relations -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] New In-app billing (v3)
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 android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] New In-app billing (v3)
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 hesitate to put this burden on my users. IABv3 is built into Google Play services, so it requires an update to the Play Services apk. V2 was built into the Play store client itself. T So does that mean that v3 billing won't work on Android 2.1 then? We will need separate APKs to support both 2.1 and above? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] New In-app billing (v3)
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 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 Play services, so it requires an update to the Play Services apk. V2 was built into the Play store client itself. T So does that mean that v3 billing won't work on Android 2.1 then? We will need separate APKs to support both 2.1 and above? Ah, here it is: DEPENDENCIES AND PREREQUISITES Android 2.2 or higher -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Complicated Preference Activity
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, per host settings, etc). The data for each host is described in a separate Class, which is currently stored in a file associated with the application. My application currently handles the settings for Host selection and Host details using Dialog boxes attached to the menu button. I would like to update these basic Dialog boxes to use more modern PreferenceFragments. I don't know how to handle the storing of N HOSTS data values in the SharedPreference hash. I realize I can use this to store the chosen HOST, but I don't know how to handle the data associated with each HOST, which is currently held in a separate class and stored outside SharedPreference in a file attached to the application. Any advice appreciated. Do I need to stick with my external dialog boxes? Thanks, Jim -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Complicated Preference Activity
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: http://developer.android.com/reference/android/content/Context.html#getSharedPreferences%28java.lang.String,%20int%29 - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Viewstub reuse
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:inflatedId**=**@+id/titleArea* *android:layout**=**@layout/title_one* */* title_one.xml some controls titile_two.xml some controls i want change title_one and title_two toggle here is my code titleBar = (ViewStub)findViewById(R.id.headerstub); titleBar.setLayoutResource(R.layout.title_one); titleBar.inflate(); some event change to title_two titleBar.setLayoutResource(R.layout.title_two); titleBar.inflate(); crash app logcat message : ViewStub must have a non-null ViewGroup viewParent how can reuse viewstub? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Why oh why did Google let manufacturers take over the getExternalStorageDirectory() API?
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 getInternalStorageDirectory() API to go along with this. I don't mind, I've solved this problem a long time ago, but just letting users type in the real path to the external card into my app. But many apps don't do this yet. So you get lots of apps that put everything on the internal storage when you have a 64GB card which is getting nothing put on it (I'm looking at you, Amazon MP3 and Amazon Kindle). Who let this slide man! -niko Not exactly. It is confusing because of the unfortunate naming of getExternalStorageDirectory(). In Google's speak, Extenal Storage doesn't refer to physical external storage (like USB stick, external HDD, ...) but to storage that can be access from an *external* device like a computer. Physical internal SD card qualify as external storage since you can read it from a PC a MAC or whatever. Now were manufacturers did not their job, is when they added additional External storage (whether it is physically external or not), and put the damn mount point not in a subdirectory of directory returned by getExternalStorageDirectory(). So for apps to have access to this additional storage, apps have to expose all kind of crazy stuff like letting users enter mount points, parse /etc/fstab (WTF), etc. Long story short: all External Storage whether physically external or not should reside in getExternalStorageDirectory() so apps and users do not have to deal with anything else. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Exception in socket programming
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. The exception occurs on the execution of this line, socket = serverSocket.accept(); Please tell me what to do to get rid of the exception. 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
[android-developers] Re: Weird artifacts simple List View on 4.2
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 wrote: 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: http://forums.androidcentral.com/android-applications/206430-music-player-remix-public-beta-now-open-6.html#post2416112 ). No one else has reported this. I've run the app on the Android 4.2 emulator and have not seen it. I wonder if there's something in Android 4.2.1 (the one running on the Nexus 4) that is causing 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
Re: [android-developers] New In-app billing (v3)
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 hesitate to put this burden on my users. IABv3 is built into Google Play services, so it requires an update to the Play Services apk. V2 was built into the Play store client itself. Hmm, is it really though? Unless I am missing something, IInAppBillingService is in the com.android.vending.apk, which is the Google Play client, right? As well as this which implements the interface: service android:name=com.google.android.finsky.billing.iab.InAppBillingService intent-filter action android:name=com.android.vending.billing.InAppBillingService.BIND / /intent-filter /service -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Cipher.wrap() not working in Android 4.2?
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 = pbeEncryptCipher.wrap(key); } catch (Exception e2) { Log.v(tag, encrypt: + e2.toString()); } In Android 4.2, but not in any previous version as far as I can tell, this throws a java.lang.UnsupportedOperationException. My understanding is that this is the result of something missing from the cryptographic service provider in Android 4.2, which was not missing in previous versions, ie an Android bug. Please advise if my understanding is incorrect, otherwise maybe Google could fix this? There doesn't seem to be a work-around. TIA, Matthew Fleming, MD DermVision, LLC -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Complicated Preference Activity
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: http://developer.android.com/reference/android/content/Context.html#getSharedPreferences%28java.lang.String,%20int%29 Oh, I get it. Thanks for the tip! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Exception in socket programming
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 wrote: 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. The exception occurs on the execution of this line, socket = serverSocket.accept(); Please tell me what to do to get rid of the exception. 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 post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Exception in socket programming
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, means, to run two emulators (server and client) at the same time. Please tell me how can do it. On Thu, Dec 13, 2012 at 8:37 AM, Kristopher Micinski krismicin...@gmail.com wrote: 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 wrote: 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. The exception occurs on the execution of this line, socket = serverSocket.accept(); Please tell me what to do to get rid of the exception. 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 post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Exception in socket programming
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 Kris On Wed, Dec 12, 2012 at 11:25 PM, Sara Ali sara.bi...@gmail.com wrote: 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, means, to run two emulators (server and client) at the same time. Please tell me how can do it. On Thu, Dec 13, 2012 at 8:37 AM, Kristopher Micinski krismicin...@gmail.com wrote: 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 wrote: 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. The exception occurs on the execution of this line, socket = serverSocket.accept(); Please tell me what to do to get rid of the exception. 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 post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Better view recycling like the Google Play App
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 to be able to instantly show (read: never see the placeholder) the icon when you scroll the app list in the other direction. My experience has been that when rebuilding using a recycled view, there is lag when 'repopulating' the ImageView as it displays the placeholder image and then the desired bitmap when ready. I have implemented the following: 1. In memory and on disk cache 2. Sub-sampling of images 3. View recycling I still get this clunky experience that, when a recycled view is used and the bitmap must be loaded, even from memory, the app shows the placeholder image. Is the issue just with GridView or is there something else I should look at? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Viewpager overscrolls when width is changed when swiping
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 onPageSelected 3. completeScroll 4. scrollTo it seems like changing the width of ViewPager during the scroll operation (step 2) is not by the designer of Viewpager's intention. The reason why I need to change Viewpager's width when swiping to a different page is that for example, we have pages A, B, C A might not have a footer bar on its right, but B has it, so when I swipe from A to B, footer bar will pop out from right. therefore changing the width of ViewPager. I tried postDelay the time to show footer and it worked perfectly, but i don't think this is a good solution. Anyone knows how I should go about to solve this problem? Where should I move the show footer bar code to? 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
Re: [android-developers] Cipher.wrap() not working in Android 4.2?
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 idea to use both DES and MD5 in this day and age... In Android 4.2, but not in any previous version as far as I can tell, this throws a java.lang.UnsupportedOperationException. My understanding is that this is the result of something missing from the cryptographic service provider in Android 4.2, which was not missing in previous versions, ie an Android bug. This is probably due to the shift to using OpenSSL (backed classes) as the default provider for pretty much everything. Depending on how you look at it, it's not really a bug, but you might want to file it at http://b.android.com(). -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Android circular seek bar
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 circular shape ?? is there any example ?? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: using ffmpeg library for converting no. of images into a video containing music
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 video https://github.com/guardianproject/SSCVideoProto But, the problem is that it runs properly on version 2.3.6, where as gives problem while running on the version 2.3.3, it gives the following error /mnt/sdcard/Test/%0d.jpeg: No such file or directory*** Here */mnt/sdcard/Tes**t/%0d.jpeg* is the path, where the images (which are to be converted), are stored. Please, suggest what is wrong here. Thanks and Regards NSR -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Android circular seek bar
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 because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Identifying HTTP Get requests in Android
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 http://hc.apache.org/httpcomponents-core-ga/tutorial/pdf/httpcore-tutorial.pdf ? Thank you! On Wednesday, December 12, 2012 5:20:46 PM UTC+2, Kristopher Micinski wrote: 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 mechanism (GCM) to talk back to your apps. HTTP servers will kill the battery... But if you insist that your app is special, the common pattern is to have a dedicated thread that handles the connection and forks off worker threads to handle incoming requests, this is the common case. Is there any reason you'd want truly non blocking I/O? But the answer is Java nio, which Android *does* include: http://developer.android.com/reference/java/nio/package-summary.html http://blog.codepainters.com/2012/02/17/why-java-nio-is-a-better-idea-for-android/ Kris On Wed, Dec 12, 2012 at 8:27 AM, Archana ramalinga...@gmail.comjavascript: wrote: 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, December 4, 2012 12:58:42 PM UTC+2, skink wrote: Archana wrote: Hi, is it using HttpService.handleRequest? Please help as I dont have much idea of using HTTP Core. i have not used HttpService so cant help much 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-d...@googlegroups.comjavascript: To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com javascript: For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: using ffmpeg library for converting no. of images into a video containing music
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 to use that. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Why oh why did Google let manufacturers take over the getExternalStorageDirectory() API?
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 installed on the phone and tablet, and they want to copy the config across with the SD card. Pent -- 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