[android-developers] Re: OnTouchEvent disable
Dear Memo, try to use view.setFocusable(false) and check Enjoy Moktarul Anam On Friday, 27 April 2012 09:16:39 UTC+5:30, Memo wrote: Hello every one, In my program, I handle a touch event on the screen using OnTouchEvent, if I handle the touch , I will do some tasks and during that, I want to disable touch event handler, i.e the OnTouchEvent does not respond to the touch. Could you please help me. Thanks all in advance. -- Mai A. Al-Ammar Teacher Assistant Imam Mohammad bin Saud Islamic University College of Computer Science -- 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: OnTouchEvent disable
Dear Memo, try to use view.setFocusable(false) and check Enjoy Moktarul Anam On Friday, 27 April 2012 09:16:39 UTC+5:30, Memo wrote: Hello every one, In my program, I handle a touch event on the screen using OnTouchEvent, if I handle the touch , I will do some tasks and during that, I want to disable touch event handler, i.e the OnTouchEvent does not respond to the touch. Could you please help me. Thanks all in advance. -- Mai A. Al-Ammar Teacher Assistant Imam Mohammad bin Saud Islamic University College of Computer Science -- 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] Android application StartUp Internals
Hi all, I am very much interested to know how an android application starts.After much googling I understood something but not fully. Below some of my observations: 1.When i click an application icon from launcher ,System look for activity with intent action main and category Launcher and starts that activity. *I need some more clarity regarding who launch main activity or who filtering main activity from others(I think package manager does). 2.Once Activity is launched there will be no windows associated with that application until i call setContentView(layout id). 3.When i call setContentView(layout id),Activity creates a new Window inance and this window has some default root layout to which we set our layout . *I think this window have a Surface instance and is associated with native Bitmap ?Did this surface have a Canvas wrapper over native bitmap ? 4.Once Layout is attached to Window ,This window is added to Window manager. 5.Window manager gives gives all window(having Surface) on screen to Surface Flinger. 6.SurfaceFlinger based on visibility of window set pixels in FrameBuffer and displays to screen. I am not sure whether what i said above is right or wrong.Please correct me if my understanding is wrong. Also add extra processes happening whilhe application start up. Thanks and have a Nice day :) -- 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] Customizing Android Battery Icon
Is it possible to customize default Battery Icon on Android without rooting the phone ? Any APIs are available ? Any way to 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] sdk version
if I want to deploy my app in a real device should that device sdk version match with my app sdk version? Also how can I find the sdk version of any device? -- 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] Problem while running ICS..?
Hi, I had made an application whose target api level is 2.2 and min:sdkversion in manifest i mentionedas 7. This application is running in all devices even in tablets also, but this application is not running in the devices whose OS is ICS Do i need to mention anything in manifest to run it ICS OS Device? Anybody help me on this issue.. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Refresh current list after receiving notification
Dear rachana govilkar , try to use android broadcast receiver/ service. Moktarul On Thursday, 26 April 2012 17:56:32 UTC+5:30, rachana govilkar wrote: Hello, I have an application in which i display list of messages between two users. Whenever i receive notification for new message,i have written a code to click on that notification and show details of it. But i don't know how to write a code if i am already on Message List screen and notification arrived then refresh that list without clicking on the notification. Please tell me if there is any example of it. Thanks. On Thursday, 26 April 2012 17:56:32 UTC+5:30, rachana govilkar wrote: Hello, I have an application in which i display list of messages between two users. Whenever i receive notification for new message,i have written a code to click on that notification and show details of it. But i don't know how to write a code if i am already on Message List screen and notification arrived then refresh that list without clicking on the notification. Please tell me if there is any example of it. 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: Off-screen View hierarchy in OpenGL ES. Views incorrectly invalidating each other.
Hi, Thanks Romain! I tried overriding this method and managed to get the results I wanted. Just thought that I'd post how I did it. Perhaps it helps someone, or perhaps someone has pointers on how to do it cleaner: I overrode invalidateChildInParent(), storing the dirty region in a member variable. invalidateChildInParent() gets called directly when any of my child views does invalidate(). Here I post a job to draw myself, with the texture's Canvas (A Canvas to a Bitmap). Then I return null to ensure that nobody else gets the call - that way nobody thinks they need to be redrawn because they overlap this view. @Override public ViewParent invalidateChildInParent(int[] location, Rect dirty) { mDirty.set(dirty); post(mDrawRunnable); return null; } mDrawRunnable = new Runnable() { @Override public void run() { draw(mTextureCanvas); } }; Then in the draw() method (and also in the dispatchDraw() method) I set thecanvas clip to my dirty region. I clear the dirty region of the Canvas if it is not opaque. And then I call super.draw(mTextureCanvas) to draw the view to the texture, uploading it to GL. Under ICS I rather lock the Canvas of a SurfaceTexture's Surface, and draw on that instead, avoiding the constant texture uploads to GL. @Override public void draw(Canvas textureCanvas) { textureCanvas.clipRect(mDirty); if (!textureCanvas.isOpaque()) { textureCanvas.drawColor(0x, PorterDuff.Mode.CLEAR); } super.draw(textureCanvas); uploadTextureToOpenGL(); } The fastest solution under ICS should of course be to enable HW acceleration of Views and to steal their OpenGL textures instead of drawing them to a SurfaceTexture, but I haven't looked in to that. On Apr 7, 5:27 pm, Romain Guy romain...@android.com wrote: Hi, You can try to override ViewGroup.invalidateChildInParentto achieve what you want (return null immediately.) You should know however that the UI toolkit was never designed in such a way and that you will likely run into other issues. On Sat, Apr 7, 2012 at 4:06 AM, hanni hann...@gmail.com wrote: Hi all, I'm making an app that has standard Android Views on OpenGL ES textures, allowing them to be rendered on any 3D mesh. I have everything working, like touch and correct View invalidates. The way I'm doing it is putting all the Android Views that are supposed to rendered to textures in my root content view, along with the actual GL Surface View. All the Android views have overridden draw methods, that draw to a texture matching the View's size, instead of the screen. I call those views the off-screen View hierarchy. My problem is, every View in the off-screen View hierarchy is positioned at the same coordinate (0, 0), in order for it to be drawn to the top left pixel of its own texture. This has the effect that when a View; let's say a Button, is invalidated because the user pressed it, all the other Views are also automatically invalidated. This is because Android redraws all views which intersect with an invalidated View, and in the off-screen View hierarchy they are all positioned at (0, 0) and all overlapping. This is not what I want, since all views are drawn to different textures and they are not really overlapping on screen, just in the off-screen View hierarchy. I really want to prevent Views in the off-screen View hierarchy from invalidating each other but all the things I have tried already, failed: * I tried offsetting each View so that it does not overlap any other View. Then I translate the canvas just before drawing to get the View to be drawn on coordinate (0, 0) of the texture. The problem I face with this method is that when I have many Views, so that some must be offset to the extent that they are outside the screen, they are not rendered at all (Probably an optimization in the View framework, not drawing Views outside the screen, but I need all Views to be drawn when requested). * I tried overriding all the different invalidate()-methods of View, to prevent Views from invalidating each other. That doesn't help at all, and it really looks like the method I should be overriding is ViewGroup.invalidateChild(), which is final, and can't be overridden. * I tried adding each off-screen View via addContentView() instead of putting them all in a single View hierarchy, but they still invalidate each other. Does anyone with great knowledge of the View-framework have a solution to this? Thanks! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at
[android-developers] Re: NFC Detection
yes, simply register your application with an intent filter in the manifest and declare on which tags (tag types / mimeType) your application should be started. Dominik Am Dienstag, 24. April 2012 13:49:52 UTC+2 schrieb NontKub Klinkhajorn: I want my app can scan tag when it close.Example when i scan tag while my apps is cloesed when the NFC adapter detect my tag it will call my app.How ??? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Does gravity work in nested LinearLayouts?
I have, didn't work though. I eventually changed tracks and solved it with a RelativeLayout: RelativeLayout xmlns:android=http://schemas.android.com/apk/res/android; android:layout_width=fill_parent android:layout_height=wrap_content android:padding=10dip TextView android:id=@+id/list_item_name android:layout_width=wrap_content android:layout_height=wrap_content android:layout_alignParentLeft=true android:layout_alignParentTop=true / LinearLayout android:id=@+id/list_item_rating android:layout_width=wrap_content android:layout_height=wrap_content android:layout_alignParentRight=true android:orientation=horizontal android:gravity=right ImageView android:layout_width=16dip android:layout_height=15dip android:src=@drawable/foo android:contentDescription=@string/accessibility_foo / /LinearLayout !-- below name rating -- TextView android:id=@+id/list_item_review_message android:layout_width=fill_parent android:layout_height=wrap_content android:layout_below=@id/list_item_rating android:layout_alignParentLeft=true android:layout_alignParentBottom=true / /RelativeLayout This blogpost helped me realise that right aligning within a horizontal linearlayout wouldn't work, not as of now: http://sandipchitale.blogspot.com/2010/05/linearlayout-gravity-and-layoutgravity.html I hope the layout I'm using now is a good one and isn't too bloated. It certainly looks cleaner, a smaller performance footprint would be a bonus :-) Thank you for your time though! On 26 April 2012 16:55, Justin Anderson magouyaw...@gmail.com wrote: Have you tried the android:layout_gravity attribute? Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Thu, Apr 26, 2012 at 6:59 AM, Niels Delporte niels.delpo...@gmail.comwrote: Hi Romain Guy, I know this is a very old post, but still wanted to ask you something relating to this. You see, I want to achieve the same result but wit a TextView and another LinearLayout within a LinearLayout. I'm experiencing the same problem though. LinearLayout xmlns:android=http://schemas.android.com/apk/res/android; android:layout_width=fill_parent android:layout_height=wrap_content android:orientation=vertical LinearLayout android:layout_width=fill_parent android:layout_height=wrap_content android:orientation=horizontal TextView android:id=@+id/name android:layout_width=wrap_content android:layout_height=wrap_content / LinearLayout android:layout_width=wrap_content android:layout_height=wrap_content android:orientation=horizontal android:gravity=right ImageView android:layout_width=16dip android:layout_height=15dip android:src=@drawable/foo android:contentDescription=@string/accessibility_foo / /LinearLayout /LinearLayout TextView android:id=@+id/message android:layout_width=fill_parent android:layout_height=wrap_content android:layout_marginTop=10dip / /LinearLayout Can you see why my inner LinearLayout doesn't want to anchor to the outmost rigt? Thank you in advance! Niels -- 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] Re: Total Available memory for Memory Management logic.
Dallas, Very good pointer to developer resources - thanks a lot! Serves me well for not scanning through these for some time now. Daniel On 26 April 2012 17:47, Dallas Gutauckis dall...@gmail.com wrote: The Android developer site also explains why SoftReference and WeakReference are no longer a good solution. It also goes into detail on how to developer a good solution: http://developer.android.com/training/displaying-bitmaps/cache-bitmap.html In the past, a popular memory cache implementation was a SoftReference or WeakReference bitmap cache, however this is not recommended. Starting from Android 2.3 (API Level 9) the garbage collector is more aggressive with collecting soft/weak references which makes them fairly ineffective. On Thu, Apr 26, 2012 at 11:49 AM, bruce palant...@gmail.com wrote: I found that the soft references works when you are dealing with smaller allocations but if you deal with images, it gc()'s the reference took quick for it to be useful. There used to be some control around what thresholds are used but that isn't a good way to do it anyway. My solution was to go ahead and implement an LRU cache with hashmap and software references as Daniel mentions. Then I have a subset of that which are have hard references to a minimal number. That way, I don't get immediately gc'd and for systems that work better I get the benefit. If an OutOfMemoryError occurs, I can flush the cache, perform a couple of gc() calls, and continue. After doing some performance analysis of the rest of the code, minimizing memory churn, making sure bitmaps are manually recycled, reduced these errors greatly. I would suggest using TraceView and MemoryAnalyzer to make sure you really are releasing properly and just to see how the app is performing in general. You might spot some problems. On 3.0+ devices you can add to your AndroidManifest, in the application / area: 'android:largeHeap=true'. This gives lots of room for large pics (256M I believe). I wouldn't use it if you use mostly small allocations because there is a performance hit with the large heap. Cheers, Bruce On Apr 26, 4:01 am, Daniel Drozdzewski daniel.drozdzew...@gmail.com wrote: The thing is that Android OS will allocate the memory according to the needs of a process (up to maximum memory allowed). So, if were able to establish the amount of free memory that your app has available, the OS might increase this allowance as soon as you allocate next bitmap, therefore the whole method makes little sense. Instead build a HashMap that uses soft references to build a primitive cache with random eviction policy. The bitmaps will get removed as the process is running low on memory. There are few good articles about the usage of soft and weak references to implement primitive caches in Java. This gives you a solution that will adapt to whatever memory allowance is there (different per OS version) with all the memory management duties shifted to the platform. Here is one such article:http://www.javaspecialists.eu/archive/Issue015.html Daniel On 25 April 2012 16:57, Anieeh animesh.andr...@gmail.com wrote: Hi all I am having problem with releasing memory problem, i have a Hashmap in which i am adding Bitmap object, and the no. of bitmaps are quite large. for this reason i am getting OutOfMemoryError. So for this i have decided to release Bitmap whic is least used from Collection, on memory crunch or system getting low heap memory. For getting current memory available i used ActivityManager.MemoryInfo.availMem but it gives total RAM size memory, not Available Heap memory. And i found that this memory is not getting updated on releasing Bitmap from collection. Then i have used these three method Debug.getNativeHeapAllocatedSize() Debug.getNativeHeapFreeSize() Debug.getNativeHeapSize() but found the NativeHeapSize goes on increasing upto some certain say 16MB changing after that an outOfMemoryError occur. In this also i found that the NativeHeapAllocatedSize and getNativeHeapSize not decreasing on releasing Bitmap from collection. So please help me for solving the problem if anyone facing the same problem and fixed earlier it. My problem is i want to calculate Max Available application memory allocated and currently available memory, for such that if currently available memory goes beyond the Threshold memory i will release some Bitmap from the collection and GC will reclaim the memory and free it without generating error. Thanks in advance Anieeh -- 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
[android-developers] Re: Selling paid apps at Google Play
Correct, since there is no longer Google group for Market, this group is your best bet. As far your question: You don't need a company, in the legal sense of the word to sell apps. As long as you paid your $25 fee with a US credit card with a US billing address, your account should be in the US. You will also need a US bank account to receive payments. But once you do that, you can sell your app wherever you are How do I know this? I am also in the exact same situation -- I am a US citizen living in Singapore and I sell my apps with a US account. I actually tried to move it to Singapore, but, even though Singapore is a country where you can sell apps from, there is no Singapore development agreement listed. On Friday, April 27, 2012 3:38:02 AM UTC+8, Jose_GD wrote: Certainly this is not the right list for the question, but where to post questions about publishing Android apps? There was a Google group for the Market, but since the rebranding as Google Play I'm lost at this. Cheers, José El jueves, 26 de abril de 2012 12:09:10 UTC-3, barrett escribió: that's an interesting question but I think you are posting to the wrong list. This list is for developers and how to build apps, your question seems more legal than technical. I would consult with a lawyer. You will probably need to have your US registered company sell apps. But, you need to ensure you are dealing with taxes properly. I don't know how things work in Armenia but in Canada (i'm from Canada) you would definitely have to pay income taxes on apps even if you sell them through a US company (assuming the revenue actually gets to you personally) and I'm pretty sure the IRS will want a cut too. good luck and let us know how things go. On Wednesday, April 25, 2012 9:40:25 PM UTC-6, Narek Gevorgyan wrote: Hi, I am going to sign up for a developer account but I have one question, Can I sell apps from the name of my company which is registered at US Delaware state but I am an Armenian citizen and my residency is in Armenia. As I am from Armenia I can't sell paid apps, but can I do that via my US LLC, as my billing address will be at United States? Thanks, Narek -- 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: How to change default HIPRI connection expiry?
Thank you! I will give it a try Le 26 avril 2012 19:33, Robert Greenwalt rgreenw...@google.com a écrit : If you are making your own system image you can set the expiration timeout (or turn it off) through config.xml settings. If you are not making a new system image you cannot adjust the expiration timeout. R On Wed, Apr 25, 2012 at 2:28 AM, Med Chakib ouabimedcha...@gmail.comwrote: Hello all, I'm currently working on a project that need a data connexion to be active while I'm connected on WIFI. Your solution seems to be exactly what I need. Did you find a way to extend the duration of your HIPRI connection ? Med On Mar 23, 10:01 pm, San sanees...@gmail.com wrote: Hey flumby, Did you get any solution? I am also facing the same issue... San On Mar 2, 11:08 pm, flumby jay.mojni...@gmail.com wrote: Has anyone played with TYPE_MOBILE_HIPRI? Is there a way to set the RestoreDefaultNetworkDelay or any other way to increase the duration ofHIPRIconnection? On Feb 29, 5:55 pm, flumby jay.mojni...@gmail.com wrote: In my project, I need to access an IP Address through mobile connection --irrespective of whether it is connected to mobile or WIFI network. My code is similar to below: connMan = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE); int res = connMan.startUsingNetworkFeature(ConnectivityManager.TYPE_MOBILE, enableHIPRI); Then when I get the notification thatHIPRIis available, I call: boolean reqRes = connMan.requestRouteToHost(ConnectivityManager.TYPE_MOBILE_HIPRI, ipAddress); This is working fine. My app can connect to the URL specified in the ipAddress. My app can send requests, and receive responses. However, the connection gets disconnected after about a minute. Is there a way to have HIPRIconnection for longer time? To make a short story long, I see the following in the log: D/ConnectivityService( 1640): ignoring as dup is found stopUsingNetworkFeature for net 5: enableHIPRI by 9683/10033(expire - created 60026 mSec ago) I took a look at the source and I see that in ConnectivityService.java, in the implementation of requestRouteToHost method, it calls: mHandler.sendMessageDelayed (mHandler.obtainMessage (NetworkStateTracker.EVENT_RESTORE_DEFAULT_NETWORK, f), getRestoreDefaultNetworkDelay()); And I see that getRestoreDefaultNetworkDelay is returning 6. So, I know why my app is getting disconnected after about a minute. My question is, how can I haveHIPRIconnection for a longer period -at least 30 minutes? -- 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] Audio / Performance Issues on ICS / Android 4
Hello I have a music (sequencer/synth) app in Android Market. One of its strengths is that it uses very little resources and plays smoothly even on the oldest and cheapest devices and only requires Android version 1.6. However, since the arrival of ICS, I get more and more complaints about stuttering playback and a sluggish interface, mainly on Galaxy Nexus. The app hasn't changed and still works fine on earlier versions of Android. I wonder what may have changed. My app does the audio processing in native code and I suspect the way data are passed between java and native might be the problem (I still use AudioTrack to maintain 1.6 compatibility and because it always worked fine): public class PlayThread extends Thread { public void run() { ByteBuffer byteBuffer = ByteBuffer.allocateDirect(minSize); byte[] byteArray = new byte[minSize]; android.os.Process.setThreadPriority(android.os.Process.THREAD_PRIORITY_URGENT_AUDIO); int minSize =AudioTrack.getMinBufferSize( 44100, AudioFormat.CHANNEL_CONFIGURATION_STEREO, AudioFormat.ENCODING_PCM_16BIT ); myTrack = new AudioTrack( AudioManager.STREAM_MUSIC, 44100, AudioFormat.CHANNEL_CONFIGURATION_STEREO, AudioFormat.ENCODING_PCM_16BIT, minSize, AudioTrack.MODE_STREAM); myTrack.play(); while(1) { byteBuffer.position(0); processNativeAudio(byteBuffer, minSize); byteBuffer.position(0); byteBuffer.get(byteArray, 0, minSize); myTrack.write( puff, 0, minSize ); } } } In the main activity, a new PlayThread is created on startup. The native function looks like this: void Java_com_myapp_ processNativeAudio( JNIEnv * env, jobject this, jobject buffer , jint buflng) { jbyte *jbuffer = (*env)-GetDirectBufferAddress(env, buffer); short *shortBuffer= (short*)(jbuffer); // processing audio here and writing to shortBuffer } Anyone has similar problems or even knows a workaround? 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] android camera and image processing / control image enhancement
The background to my question is: I am currently developing a system for the recognition and detection of traffic signs. For this I use colour segmentation in the hsv colour space. The system/algorithm works very well via webcam and desktop pc. I have ported this algorithm to Android via jni/android ndk. However, I realized that Android makes use of some image enhancements e.g. white balance. These changes on the picture, especially caused by the automatic white balance, have a strong influence on the colour segmentation. Even various modes such as WHITE_BALANCE_AUTO WHITE_BALANCE_CLOUDY_DAYLIGHT WHITE_BALANCE_DAYLIGHT WHITE_BALANCE_FLUORESCENT WHITE_BALANCE_INCANDESCENT do not work reliably. For displaying my camera pictures I implement a surfaceview. Here are my questions: 1) Is there a possibilty to access the image data without consideration for the automatic image enhancements which are provided by the Android camera API? 2) If not, is there a possibilty to individually disable the above-mentioned image enhancements? Methods such as setAutoWhiteBalanceLock() only cause me a black screen. Regarding the camera lifecycle, where exactly does this lock have to be activated? This, however, would only be an emergency solution as for the first frames the white balance is applied and will then only be blocked. 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]
HI all, How to recall(refresh or reload) the tabA in tabActivity when tabA(current tab) is selected again. In tabA i loading groupactivity from there it will go to webview that too created as a activity. now when i click that tabA it should refresh (load the groupactivity) I used the link http://stackoverflow.com/questions/5487770/get-notified-when-current-tab-is-selected-againwhich is not useful for me so please help to solve this. -- Regards, Perumal.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
[android-developers] How to recall(refresh or reload) the tabA in tabActivity when tabA(current tab) is selected again.
HI all, How to recall(refresh or reload) the tabA in tabActivity when tabA(current tab) is selected again. In tabA i loading groupactivity from there it will go to webview that too created as a activity. now when i click that tabA it should refresh (load the groupactivity) I used the link http://stackoverflow.com/questions/5487770/get-notified-when-current-tab-is-selected-againwhich is not useful for me so please help to solve this. -- Regards, Perumal.N -- Regards, Perumal.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
[android-developers] Re: Video Streaming Using Darwin Streaming Server(DSS) through Ethernet LAN
Hi, Did you found a way to play RTSP on Android-x86 using VideoView? Thanks Segunda-feira, 11 de Abril de 2011 12:16:39 UTC+1, saha escreveu: I have my Blaze board running Gingerbread, Connected to my Desktop and i am able to ping from PC to Board. Installed DSS on Desktop and i am successful in testing with VLC ( by playing rtsp://+DSS-IP +/+sample_50kbit.3gp). How do i connect DSS with android through Ethernet LAN? I tried the following code but its not working. Whats the problem with following code? try { for (EnumerationNetworkInterface en = NetworkInterface .getNetworkInterfaces(); en.hasMoreElements();) { NetworkInterface intf = en.nextElement(); if (intf.getName().startsWith(eth)) { try { mMediaPlayer = new MediaPlayer(); mMediaPlayer.setDataSource(rtsp://+DSS-IP +/+sample_50kbit.3gp); mMediaPlayer.setDisplay(holder); mMediaPlayer.prepare(); mMediaPlayer.setOnBufferingUpdateListener(this); mMediaPlayer.setOnCompletionListener(this); mMediaPlayer.setOnPreparedListener(this); mMediaPlayer.setOnVideoSizeChangedListener(this); mMediaPlayer.setAudioStreamType(AudioManager.STREAM_MUSIC); mMediaPlayer.setLooping(true); } catch (Exception e) { Log.e(TAG, error: + e.getMessage(), e); } } } } catch (SocketException ex) { } -- 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] systemUiVisibility is a global flag across apps?
On Thu, Apr 26, 2012 at 10:32 PM, Agus agus.sant...@gmail.com wrote: As soon as I throw a dialog within activity that has setSystemUiVisibility set to HIDE_NAVIGATION, that flag got cleared. Is that the expected behavior? Beats me, sorry. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android 4.0 Programming Books: http://commonsware.com/books -- 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] android camera and image processing / control image enhancement
On Fri, Apr 27, 2012 at 02:48:10AM -0700, Dominik Schaudel wrote: The background to my question is: I am currently developing a system for the recognition and detection of traffic signs. For this I use colour segmentation in the hsv colour space. The system/algorithm works very well via webcam and desktop pc. I have ported this algorithm to Android via jni/android ndk. However, I realized that Android makes use of some image enhancements e.g. white balance. These changes on the picture, especially caused by the automatic white balance, have a strong influence on the colour segmentation. Even various modes such as This must be a class project or something I think this is at least the third time I've seen this question asked, and that's the ones I noticed Later, --jim -- THE SCORE: ME: 2 CANCER: 0 73 DE N5IAL (/4)MiSTie #49997 Running FreeBSD 7.0 spooky1...@gmail.com ICBM/Hurricane: 30.44406N 86.59909W Do not look into laser with remaining eye. Android Apps Listing at http://www.jstrack.org/barcodes.html -- 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] sdk version
On Fri, Apr 27, 2012 at 2:51 AM, fachhoch fachh...@gmail.com wrote: if I want to deploy my app in a real device should that device sdk version match with my app sdk version? Not necessarily. http://developer.android.com/guide/appendix/api-levels.html Also how can I find the sdk version of any device? Build.VERSION.SDK_INT (in the android.os package). -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android 4.0 Programming Books: http://commonsware.com/books -- 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] Problem while running ICS..?
On Fri, Apr 27, 2012 at 3:21 AM, Abhilash baddam abhilash.androiddevelo...@gmail.com wrote: I had made an application whose target api level is 2.2 and min:sdkversion in manifest i mentionedas 7. This application is running in all devices even in tablets also, but this application is not running in the devices whose OS is ICS Not running is a completely useless description of your symptoms. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android 4.0 Programming Books: http://commonsware.com/books -- 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] Android application StartUp Internals
On Fri, Apr 27, 2012 at 2:21 AM, Mansoor musafir4frie...@gmail.com wrote: 1.When i click an application icon from launcher ,System look for activity with intent action main and category Launcher and starts that activity. No. The launcher already found the main/launcher activity, which is why the icon appeared in the launcher. *I need some more clarity regarding who launch main activity or who filtering main activity from others(I think package manager does). Yes. 2.Once Activity is launched there will be no windows associated with that application until i call setContentView(layout id). No. There will be a window associated with the activity regardless of your call to setContentView(). 4.Once Layout is attached to Window ,This window is added to Window manager. 5.Window manager gives gives all window(having Surface) on screen to Surface Flinger. 6.SurfaceFlinger based on visibility of window set pixels in FrameBuffer and displays to screen. If you care about any of this, you are on the wrong Google Group. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android 4.0 Programming Books: http://commonsware.com/books -- 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] Customizing Android Battery Icon
On Fri, Apr 27, 2012 at 2:26 AM, Jovish P android.f...@gmail.com wrote: Is it possible to customize default Battery Icon on Android without rooting the phone ? No. I'm not even sure rooting the phone works -- it might require custom firmware. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android 4.0 Programming Books: http://commonsware.com/books -- 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] SDcard booting on blaze board through fastboot
On Fri, Apr 27, 2012 at 12:44 AM, Mamatha K mamatha...@gmail.com wrote: I am facing problem in sdcard booting on blaze board. Step #1: Visit http://source.android.com Step #2: Click on the Community tab Step #3: Find a Google Group of relevance to your question Step #4: Ask your question there -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android 4.0 Programming Books: http://commonsware.com/books -- 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: Enable User Friendly keyboard based on input
Thanks! So if you are accessing a webpage using an iphone which has a form field with input type = email. On iPhone it automatically displays a softkeyboard with @. This article covers the other types as well. http://www.456bereastreet.com/archive/201004/html5_input_types/ I want to know if this can be activated for andriod user. I got a lot of replies, but that is more in context in building android native app. My question is if this can be activated on a simple page with few form fields. On Apr 24, 3:42 pm, Justin Anderson magouyaw...@gmail.com wrote: User Friendly Keyboard based on input type, Is this a feature provide by os, or it is based on the browser or is it based on device? I don't really know what you are asking here... I'm going to go out on a limb and assume that this might help:http://developer.android.com/reference/android/widget/TextView.html#a... Thanks, Justin Anderson MagouyaWare Developerhttp://sites.google.com/site/magouyaware On Wed, Apr 18, 2012 at 4:11 AM, Frontendboss ansaripar...@gmail.comwrote: User Friendly Keyboard based on input type, Is this a feature provide by os, or it is based on the browser or is it based on device? It works perfectly on IOS, is it possible to enable this for Andriod? -- 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: Android application StartUp Internals
Hi Mark Thanks for your reply :) I have some doubts regarding the reply to point 2. When i call setContentView(layoud id) only new window instance get created before that there is no UI so no need of window right? I am only a android application developer but i wish to know what really happening behind the scene :) Where can i find exact information regarding this ? Regards Mansoor V.M -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Android application StartUp Internals
On Fri, Apr 27, 2012 at 7:26 AM, Mansoor musafir4frie...@gmail.com wrote: I have some doubts regarding the reply to point 2. When i call setContentView(layoud id) only new window instance get created before that there is no UI so no need of window right? No. You can prove this by actually trying it. You will find that Android is happy to display a blank activity, even though you did not call setContentView(). I am only a android application developer but i wish to know what really happening behind the scene :) Where can i find exact information regarding this ? Read the source code, and bear in mind that the answer may have changed in past Android versions and may change in future Android versions. Questions regarding the source code belong on a Google Group hosted at http://source.android.com. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android 4.0 Programming Books: http://commonsware.com/books -- 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] Unknown Android Packaging Problem: java.lang.ArrayIndexOutOfBoundsException: 13
Great!!! ... Now ADB will detect all the devices attached to your system along with emulator ... That's why you are getting a list of multiple devices but if you attach such devices which are not supported by the Google's default USB drivers then you need to search for the right driver to get it detected by the SDK platform. Cheers!! Shantanu. On Wed, Apr 25, 2012 at 11:10 PM, Rohit Lagu laguro...@gmail.com wrote: Hi Shantanu, I have check Create Test Project option run application it works. :) :) :) :) :) https://lh3.googleusercontent.com/-nB3iCOiCgV0/T5g0pb4BbxI/AXY/j-AAAIHKUQQ/s1600/2012-04-25_22-32-49.jpg Now New problem arise. While Testing on Device i got many instance of my attached device in Choose running Android Device. Any ways now can code run android application on new laptop :) Thanks again. -Rohit. On Friday, April 13, 2012 4:35:20 PM UTC+5:30, Androidic wrote: Hi Rohit Your project is getting associated with some Test Project which you are not mapping with your newly created project. When you are creating any new project check carefully whether you are including the Create Test Project option or not. Thanks, Shantanu Mitra. On Fri, Apr 13, 2012 at 12:00 AM, Rohit Lagu laguro...@gmail.com wrote: Hi All, I have installed all latest version software in my machine ( eclipse-java-indigo-SR2-win32-**x86_64, ADT V18 , Android Latest version) When i create a new android application build it all works fine. but when i try to run application in simulator i got this error Description ResourcePath Location Type Error generating final archive: java.lang.** ArrayIndexOutOfBoundsException**: 13TestProject Unknown Android Packaging Problem I have search on net for this but did not got anything. same error found on stack-overflow http://stackoverflow.com/questions/8835258/android-packaging-error-arrayindexoutofboundsexception . please help, -- 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 android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+**unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/**group/android-developers?hl=enhttp://groups.google.com/group/android-developers?hl=en On Friday, April 13, 2012 4:35:20 PM UTC+5:30, Androidic wrote: Hi Rohit Your project is getting associated with some Test Project which you are not mapping with your newly created project. When you are creating any new project check carefully whether you are including the Create Test Project option or not. Thanks, Shantanu Mitra. On Fri, Apr 13, 2012 at 12:00 AM, Rohit Lagu laguro...@gmail.com wrote: Hi All, I have installed all latest version software in my machine ( eclipse-java-indigo-SR2-win32-**x86_64, ADT V18 , Android Latest version) When i create a new android application build it all works fine. but when i try to run application in simulator i got this error Description ResourcePath Location Type Error generating final archive: java.lang.** ArrayIndexOutOfBoundsException**: 13TestProject Unknown Android Packaging Problem I have search on net for this but did not got anything. same error found on stack-overflow http://stackoverflow.com/questions/8835258/android-packaging-error-arrayindexoutofboundsexception . please help, -- 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 android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+**unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/**group/android-developers?hl=enhttp://groups.google.com/group/android-developers?hl=en On Friday, April 13, 2012 4:35:20 PM UTC+5:30, Androidic wrote: Hi Rohit Your project is getting associated with some Test Project which you are not mapping with your newly created project. When you are creating any new project check carefully whether you are including the Create Test Project option or not. Thanks, Shantanu Mitra. On Fri, Apr 13, 2012 at 12:00 AM, Rohit Lagu laguro...@gmail.com wrote: Hi All, I have installed all latest version software in my machine ( eclipse-java-indigo-SR2-win32-**x86_64, ADT V18 , Android Latest version) When i create a new android application build it all works fine. but when i try to run application in simulator i got this error Description ResourcePath Location Type Error generating final
Re: [android-developers] sdk version
just keep this line in your Androidmanifest -- -- 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] sdk version
uses-sdk android:minSdkVersion=4 / -- -- -- 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 application StartUp Internals
Thanks a lot Mark -- 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] sdk version
uses-sdk android:minSdkVersion=4 / now it supports starting os version with 1.6 and ending with current version 4.0.3 -- -- -- -- 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] Android WideVine HLS/DRM support
It will be soon 2 years since Google acquires the WideVine company that provides the DRM support for protecting e.g. the HLS H.264/AAC streams. According to the http://www.widevine.com/ not only Android, but also iPhone/iPad and game consoles like Wii or PS3 ares supported. Does anybody experience with the Android WideVine DRM support for HLS video streams? Regards, STeN -- 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] Android WideVine HLS/DRM support
It will be soon 2 years since Google acquires the WideVine company that provides the DRM support for protecting e.g. the HLS H.264/AAC streams. According to the http://www.widevine.com/ not only Android, but also iPhone/iPad and game consoles like Wii or PS3 ares supported. Does anybody experience with the Android WideVine DRM support for HLS video streams? Regards, STeN -- 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: RelativeLayout layout_alignParentRight changes parent
I'm having the same issue. Is there any workaround for 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] value of EditText duplicated in ListView
I have list item with EditText in it, I dont know how many items there will be. I have a problem when I enter some text in EditText, and then scroll down a ListView, after I've scroll up again there is no text in my first EditText, or there is some text from other EditText from ListView. please help -- 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: Non-square pixels
So short of modifying the display drivers themselves to report the larger resolution and translate, there's no way to trick it... Thanks though. On Apr 26, 5:52 pm, Dianne Hackborn hack...@android.com wrote: No, Android fundamentally has no current support for non-square pixels. On Wed, Apr 25, 2012 at 5:23 AM, SytheZN sythe...@gmail.com wrote: I realise this may have been asked before, but I'm struggling to find any relevant information. First things first, I've got a cheapy tablet (Zenithink C7). The display resolution is 800x480 which works out to 5:3. The physical dimensions are 154x85.5mm which gives me an approx. physical aspect of 9:5. Given these variables, pixel aspect should be 27:25. If I resize an image or video to match this pixel aspect the distortion is not noticible. Unfortunately, the rest of the system (GUI .etc) all appear stretched. My query is this: Although the compliance specs say the pixel aspect should be 1:1, is there any way I can tweak the graphics subsystem to account for the variance in pixel aspect? I'm not overly concerned with OpenGL correction, but it'd be nice if i could sort out the aspect ratio system-wide. My thoughts were to perhaps give the UI subsystem a fictitious resolution (i.e. 864x480) to display on screen. Is this possible? If so, how would i go about 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 -- Dianne Hackborn Android framework engineer hack...@android.com 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: Show 3D object on top of camera view (augmented reality)
Thanks RAGHAV. On 19 abr, 20:33, Raghav Sood raghavs...@gmail.com wrote: Afraid to be the one to break it to you, but your research isn't very thorough. AndAR does exactly what you want. In fact, one of their code sample projects is a perfect carbon copy of what you want. Loading 3d models over a camera preview that are exported from blender in .obj formats. http://code.google.com/p/andar Thanks -- Raghav Soodhttps://market.android.com/developer?pub=Appaholicshttp://www.appaholics.in/ -- 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] Testing in app billing ended with DisplayErrorMessage[Your order could not be processed. Please try again.]
Hi, I tested an inapp purchase app in two devices[Motorola xoom and samsung galaxy tab 10.1]. In Motrola xoom it works fine but for Samsung galaxy tab its not working, i am getting the below exception: ERROR/Volley(8252): [12] BasicNetwork.performRequest: Unexpected response code 500 for https://android.clients.google.com/fdfe/completePurchase WARN/Finsky(8252): [1] CheckoutPurchase.onErrorResponse: DisplayErrorMessage[Your order could not be processed. Please try again.] ERROR/Finsky(8252): [1] CheckoutPurchase.setError: type=UNKNOWN, code=-1, message=Error retrieving information from server. -- 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] Odd ICS only, ScrollView/ListView, landscape only shadow at top of View
I am seeing an odd dark shadow at the top of all ScrollView and ListViews in my application that I can't seem to get rid of. The odd part about it, it ONLY appears in landscape mode on the Galaxy Nexus or in the emulator. It doesn't appear on any emulators running 2.2 or 2.3.x, nor does it appear on my Captivate running 2.3.3. Also, it doesn't appear on my Asus Transformer Prime running 4.0.3 in landcape mode, so it seems like the issue is localized to the Galaxy Nexus and the Android emulator with a 4.0.x based AVD. I do not have anything within the app that would provide a different theme/layout/style for orientation, nor OS version. Can anyone provide me some guidance here? Here are two snippets of a screenshot, one in landscape, the other in portrait https://lh4.googleusercontent.com/-6_zGD6D58sg/T5rJQYsstLI/H60/unOKwwXjs4Q/s1600/anotated.pnghttps://lh5.googleusercontent.com/-EOunVBMNXz0/T5rJeDp6rfI/H7A/ujyLWFP7Ta0/s1600/missing.png https://lh4.googleusercontent.com/-6_zGD6D58sg/T5rJQYsstLI/H60/unOKwwXjs4Q/s1600/anotated.png -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Android application StartUp Internals
The view provided in setContentView() is only that, the content part of the activity. The system creates the top-level view along with any optional chrome (titlebar/actionbar) and a top-level FrameLayout within which the content view you set is displayed. If you don't call setContentView(), you will see the title-bar (optional) and the empty top-level FrameLayout. These details may change with Android versions though. -- 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] Customizing Android Battery Icon
Not really needs custom firmware code, but needs custom artwork to replace all the existing battery state icons in the OS file system. On Friday, April 27, 2012 7:13:10 AM UTC-4, Mark Murphy (a Commons Guy) wrote: On Fri, Apr 27, 2012 at 2:26 AM, Jovish P android.f...@gmail.com wrote: Is it possible to customize default Battery Icon on Android without rooting the phone ? No. I'm not even sure rooting the phone works -- it might require custom firmware. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android 4.0 Programming Books: http://commonsware.com/books -- 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] android camera and image processing / control image enhancement
I've already discussed this in the 'OpenCV4Android' google group. However, the problem could not be solved. In the 'Android Developers' google group I was advised to open a discussion about this on stackoverflow.com. There, the problem could not be solved either. Therefore, I think it seems legit to post this issue in the 'Android Developers' group, doesn't it? On Friday, April 27, 2012 1:07:05 PM UTC+2, Spooky wrote: On Fri, Apr 27, 2012 at 02:48:10AM -0700, Dominik Schaudel wrote: The background to my question is: I am currently developing a system for the recognition and detection of traffic signs. For this I use colour segmentation in the hsv colour space. The system/algorithm works very well via webcam and desktop pc. I have ported this algorithm to Android via jni/android ndk. However, I realized that Android makes use of some image enhancements e.g. white balance. These changes on the picture, especially caused by the automatic white balance, have a strong influence on the colour segmentation. Even various modes such as This must be a class project or something I think this is at least the third time I've seen this question asked, and that's the ones I noticed Later, --jim -- THE SCORE: ME: 2 CANCER: 0 73 DE N5IAL (/4)MiSTie #49997 Running FreeBSD 7.0 spooky1...@gmail.com ICBM/Hurricane: 30.44406N 86.59909W Do not look into laser with remaining eye. Android Apps Listing at http://www.jstrack.org/barcodes.html -- 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] Customizing Android Battery Icon
On Fri, Apr 27, 2012 at 1:02 PM, lbendlin l...@bendlin.us wrote: Not really needs custom firmware code, but needs custom artwork to replace all the existing battery state icons in the OS file system. Yeah, I wasn't sure if the icons were ordinary files (just somewhere only root can get to) or somehow packaged somewhere (akin to resources) that might not be readily accessible. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android 4.0 Programming Books: http://commonsware.com/books -- 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] android camera and image processing / control image enhancement
On Fri, Apr 27, 2012 at 10:09:18AM -0700, dschaudel wrote: Therefore, I think it seems legit to post this issue in the 'Android Developers' group, doesn't it? I wasn't questioning the legitimacy of posting the question. I was simply saying that I seem to recall several people posting this same (or very similar) question. That's all. Don't read anything more into it than that---if you do, you're wrong. Later, --jim -- THE SCORE: ME: 2 CANCER: 0 73 DE N5IAL (/4)| Tux (E Cat): DS B+Wd Y 6 Y L+++ W+ C++/C++ I+++ spooky1...@gmail.com| T++ A E H+ S V- F++ Q+++ P/P+ B++ PA+ PL SC--- Running FreeBSD 7.0 | ICBM / Hurricane: | Tiggerbelle: DS W+S+Bts % 1.5 X L W C+++/C+ 30.44406N 86.59909W | I+++ T A E++ H S++ V+++ Q+++ P B++ PA++ PL+ SC Android Apps Listing at http://www.jstrack.org/barcodes.html -- 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: Non-square pixels
I'm not sure what you mean by that. Android will ignore the aspect ratio of the pixels. If your pixels are tall, the entire UI will be visually corresponding taller than normal. I can't imagine what trick a display driver would do to change this in any reasonable way. On Fri, Apr 27, 2012 at 7:38 AM, SytheZN sythe...@gmail.com wrote: So short of modifying the display drivers themselves to report the larger resolution and translate, there's no way to trick it... Thanks though. On Apr 26, 5:52 pm, Dianne Hackborn hack...@android.com wrote: No, Android fundamentally has no current support for non-square pixels. On Wed, Apr 25, 2012 at 5:23 AM, SytheZN sythe...@gmail.com wrote: I realise this may have been asked before, but I'm struggling to find any relevant information. First things first, I've got a cheapy tablet (Zenithink C7). The display resolution is 800x480 which works out to 5:3. The physical dimensions are 154x85.5mm which gives me an approx. physical aspect of 9:5. Given these variables, pixel aspect should be 27:25. If I resize an image or video to match this pixel aspect the distortion is not noticible. Unfortunately, the rest of the system (GUI .etc) all appear stretched. My query is this: Although the compliance specs say the pixel aspect should be 1:1, is there any way I can tweak the graphics subsystem to account for the variance in pixel aspect? I'm not overly concerned with OpenGL correction, but it'd be nice if i could sort out the aspect ratio system-wide. My thoughts were to perhaps give the UI subsystem a fictitious resolution (i.e. 864x480) to display on screen. Is this possible? If so, how would i go about 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 -- Dianne Hackborn Android framework engineer hack...@android.com 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 -- Dianne Hackborn Android framework engineer hack...@android.com 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
Re: [android-developers] value of EditText duplicated in ListView
After you edit the text in the textview you need to update your adapter with the new information, and then call notifyDataSetChanged(). Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Fri, Apr 27, 2012 at 8:32 AM, Seif-Allah seifallah.bena...@gmail.comwrote: I have list item with EditText in it, I dont know how many items there will be. I have a problem when I enter some text in EditText, and then scroll down a ListView, after I've scroll up again there is no text in my first EditText, or there is some text from other EditText from ListView. please help -- 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] systemUiVisibility is a global flag across apps?
It's more complicated than that. Each window can make a request fot the system UI visibility, but since there is only one system UI at some level this is global. The top-most application gets to control it. That is why there is: http://developer.android.com/reference/android/view/View.OnSystemUiVisibilityChangeListener.html On Thu, Apr 26, 2012 at 5:14 PM, Mark Murphy mmur...@commonsware.comwrote: On Thu, Apr 26, 2012 at 8:07 PM, Agus agus.sant...@gmail.com wrote: I am wondering if systemUiVisibility flag set via setSystemUiVisibility is a global flag across apps? No. You only affect your app with that flag. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training...At Your Office: http://commonsware.com/training -- 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 -- Dianne Hackborn Android framework engineer hack...@android.com 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
Re: [android-developers] systemUiVisibility is a global flag across apps?
Hi Dianne, Why is the systemUiVisibility for the activity window not get reset when the dialog get dismissed? -Agus. On Fri, Apr 27, 2012 at 11:12 AM, Dianne Hackborn hack...@android.comwrote: It's more complicated than that. Each window can make a request fot the system UI visibility, but since there is only one system UI at some level this is global. The top-most application gets to control it. That is why there is: http://developer.android.com/reference/android/view/View.OnSystemUiVisibilityChangeListener.html On Thu, Apr 26, 2012 at 5:14 PM, Mark Murphy mmur...@commonsware.comwrote: On Thu, Apr 26, 2012 at 8:07 PM, Agus agus.sant...@gmail.com wrote: I am wondering if systemUiVisibility flag set via setSystemUiVisibility is a global flag across apps? No. You only affect your app with that flag. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training...At Your Office: http://commonsware.com/training -- 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 -- Dianne Hackborn Android framework engineer hack...@android.com 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 -- 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: Backporting stagefright and NuPlayer to Android 2.2?
The media framework uses various private APIs, has components that talk directly to hardware (DSPs for encoding/decoding, etc), etc. This doesn't seem to me like a good idea. And not for perspective -- you would not end up with two instances of media service always running, because you are writing an app, not a low-level system service. On Thu, Apr 26, 2012 at 8:25 PM, Kiran Rao techie.curi...@gmail.com wrote: Thanks for the response b0b. I realize MediaPlayer will not do the job for me - at least in 2.2. But, is there any framework-level requirement that is stopping me from building the newer media framework source and deploying it on 2.2? Perhaps this would make my app prohibitively large? Or performance impact? (Since 2 instance of media service will always be running) ?? On Thursday, 26 April 2012 16:03:31 UTC+5:30, b0b wrote: I wouldn't care about Android 2.2 at this point, as the MediaPlayer is really incomplete and buggy in this version and lower. It is a lot better in 2.3.x and above. Most third party video players use ffmpeg as the media framework. -- 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 -- Dianne Hackborn Android framework engineer hack...@android.com 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
Re: [android-developers] Re: Enable User Friendly keyboard based on input
If you are creating the UI, then yes. If you are talking about an existing browser app or something like that then you would be at the mercy of the developer. I don't know for sure, but it also might be more difficult with a WebView or full-fledged browser... Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Fri, Apr 27, 2012 at 5:20 AM, Frontendboss ansaripar...@gmail.comwrote: Thanks! So if you are accessing a webpage using an iphone which has a form field with input type = email. On iPhone it automatically displays a softkeyboard with @. This article covers the other types as well. http://www.456bereastreet.com/archive/201004/html5_input_types/ I want to know if this can be activated for andriod user. I got a lot of replies, but that is more in context in building android native app. My question is if this can be activated on a simple page with few form fields. On Apr 24, 3:42 pm, Justin Anderson magouyaw...@gmail.com wrote: User Friendly Keyboard based on input type, Is this a feature provide by os, or it is based on the browser or is it based on device? I don't really know what you are asking here... I'm going to go out on a limb and assume that this might help: http://developer.android.com/reference/android/widget/TextView.html#a... Thanks, Justin Anderson MagouyaWare Developerhttp://sites.google.com/site/magouyaware On Wed, Apr 18, 2012 at 4:11 AM, Frontendboss ansaripar...@gmail.com wrote: User Friendly Keyboard based on input type, Is this a feature provide by os, or it is based on the browser or is it based on device? It works perfectly on IOS, is it possible to enable this for Andriod? -- 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] ActivityUnitTestCase and sendKeys()
Can anyone please quickly confirm that ActivityUnitTestCase and sendKeys() DO work as the Android Developer docs describe. I've searched through a number of threads on this topic and I'm getting conflicting info. I've run through the Spinner and SpinnerTest samples, and the call to sendKeys() works fine there When running the same call through my test project, I fail with the dreaded: 04-27 11:41:00.344: W/WindowManager(59): Permission denied: injecting key event from pid 1221 uid 10041 to window Window{450d0b78 com.android.launcher/com.android.launcher2.Launcher paused=false} owned by uid 10020 Can anyone tell me what's going on? Thanks DD -- 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] get image from gallery and set in fragment
Look at your logcat output and figure out why your app is closing... Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Thu, Apr 26, 2012 at 1:08 AM, vani reddy vani.reddy.bl...@gmail.comwrote: Hi friends, I need to access gallery and select an image from gallery and after selecting image i need to come back to my fragment. But after selecting image from gallery my application is closing.(But no force close). I used the following code to open gallery. Intent intent = new Intent(Intent.ACTION_GET_CONTENT, null); intent.setType(image/*); intent.putExtra(return-data, true); startActivityForResult(intent, 1); how to resolve this?? -- Regards, Vani Reddy -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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] Fwd: طلاق
-- Forwarded message -- From: Erfan Attarzadeh erfan_...@yahoo.com Date: Fri, Apr 27, 2012 at 8:16 AM Subject: طلاق To: -- 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] GPX issue emulator crash on error 3 code
This code crashes the emulator, can anyone tell me why? !DOCTYPE HTML html head titlePhoneGap/title script type=text/javascript src=cordova-1.6.1.js/script script type=text/javascript /** Called when phonegap javascript is loaded */ function onDeviceReady(){ navigator.geolocation.getCurrentPosition(onSuccess, onError, { maximumAge: 3000, timeout: 5000, enableHighAccuracy: true }); } function onSuccess(position) { document.getElementById('latitude').innerHTML = position.coords.latitude; document.getElementById('longitude').innerHTML = position.coords.longitude; document.getElementById('altitude').innerHTML = position.coords.altitude; document.getElementById('timestamp').innerHTML = new Date(position.timestamp); } function onError(error) { alert('code: '+ error.code+ '\n' + 'message: ' + error.message + '\n'); } /** Called when browser load this page*/ function init(){ document.addEventListener(deviceready, onDeviceReady, false); } /script /head body onLoad=init() h1GeoLocation/h1 table border=1 tr tdLatitue/tdtd id=latitude/td tr tr tdLongitude/td td id=longitude/tdtr tr tdAltitude/td td id=altitude/td tr tr tdTimestamp/td td id=timestamp/tdtr /table /ul /body /html I was running this together with the http://tramper.co.nz/?5613 gpx file... not getting this to work -- 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 debug Service/BroadcastReceiver and prevent Watchdog from killing process when stepping through the code?
I'm debugging on a device. When setting a breakpoint in a process that runs a Service or a BroadcastReceiver on a spot in the code that is run on the main (UI) thread, the phone's watch-dog service kills the process, because I'm stepping through the code slowly. Is there a way, when in debug-mode, to stop the watch-dog service from killing the process that i'm debugging? It is very annoying when this happens or any debugging must be done very quickly (no more that 10 seconds total). 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] How to debug Service/BroadcastReceiver and prevent Watchdog from killing process when stepping through the code?
AFAIK there isn't... But if I'm wrong, I would love for someone to point out how to do it as well! Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Fri, Apr 27, 2012 at 2:46 PM, Streets Of Boston flyingdutc...@gmail.comwrote: I'm debugging on a device. When setting a breakpoint in a process that runs a Service or a BroadcastReceiver on a spot in the code that is run on the main (UI) thread, the phone's watch-dog service kills the process, because I'm stepping through the code slowly. Is there a way, when in debug-mode, to stop the watch-dog service from killing the process that i'm debugging? It is very annoying when this happens or any debugging must be done very quickly (no more that 10 seconds total). Thanks! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] How to debug Service/BroadcastReceiver and prevent Watchdog from killing process when stepping through the code?
Make a Handler and post the processing logic to it as a runnable. You will still get the ANR which you can ignore, but the process won't be killed. -- K 28 апреля 2012 г. 1:09 пользователь Justin Anderson magouyaw...@gmail.comнаписал: AFAIK there isn't... But if I'm wrong, I would love for someone to point out how to do it as well! Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Fri, Apr 27, 2012 at 2:46 PM, Streets Of Boston flyingdutc...@gmail.com wrote: I'm debugging on a device. When setting a breakpoint in a process that runs a Service or a BroadcastReceiver on a spot in the code that is run on the main (UI) thread, the phone's watch-dog service kills the process, because I'm stepping through the code slowly. Is there a way, when in debug-mode, to stop the watch-dog service from killing the process that i'm debugging? It is very annoying when this happens or any debugging must be done very quickly (no more that 10 seconds total). Thanks! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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] systemUiVisibility is a global flag across apps?
They do get cleared. So if you turn on low profile, and the user does something in the nav bar or system bar to take it out of low profile, you will get a callback about the change and it will be cleared from your window. Otherwise it would keep trying to go back to low profile mode. On Fri, Apr 27, 2012 at 11:15 AM, Agus agus.sant...@gmail.com wrote: Hi Dianne, Why is the systemUiVisibility for the activity window not get reset when the dialog get dismissed? -Agus. On Fri, Apr 27, 2012 at 11:12 AM, Dianne Hackborn hack...@android.comwrote: It's more complicated than that. Each window can make a request fot the system UI visibility, but since there is only one system UI at some level this is global. The top-most application gets to control it. That is why there is: http://developer.android.com/reference/android/view/View.OnSystemUiVisibilityChangeListener.html On Thu, Apr 26, 2012 at 5:14 PM, Mark Murphy mmur...@commonsware.comwrote: On Thu, Apr 26, 2012 at 8:07 PM, Agus agus.sant...@gmail.com wrote: I am wondering if systemUiVisibility flag set via setSystemUiVisibility is a global flag across apps? No. You only affect your app with that flag. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training...At Your Office: http://commonsware.com/training -- 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 -- Dianne Hackborn Android framework engineer hack...@android.com 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 -- 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 -- Dianne Hackborn Android framework engineer hack...@android.com 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: Selling paid apps at Google Play
Hi, Thanks for helpful comments, yea I only found this place for posting my message. Okay Let me try to open a bank account in US, seems I need to order mail forwarding service. Hope I'll not be double taxed. Regarding a lawyer, I talked with some of them but no result, seems I need a lawyer from US. On Friday, April 27, 2012 12:25:14 PM UTC+4, Zsolt Vasvari wrote: Correct, since there is no longer Google group for Market, this group is your best bet. As far your question: You don't need a company, in the legal sense of the word to sell apps. As long as you paid your $25 fee with a US credit card with a US billing address, your account should be in the US. You will also need a US bank account to receive payments. But once you do that, you can sell your app wherever you are How do I know this? I am also in the exact same situation -- I am a US citizen living in Singapore and I sell my apps with a US account. I actually tried to move it to Singapore, but, even though Singapore is a country where you can sell apps from, there is no Singapore development agreement listed. On Friday, April 27, 2012 3:38:02 AM UTC+8, Jose_GD wrote: Certainly this is not the right list for the question, but where to post questions about publishing Android apps? There was a Google group for the Market, but since the rebranding as Google Play I'm lost at this. Cheers, José El jueves, 26 de abril de 2012 12:09:10 UTC-3, barrett escribió: that's an interesting question but I think you are posting to the wrong list. This list is for developers and how to build apps, your question seems more legal than technical. I would consult with a lawyer. You will probably need to have your US registered company sell apps. But, you need to ensure you are dealing with taxes properly. I don't know how things work in Armenia but in Canada (i'm from Canada) you would definitely have to pay income taxes on apps even if you sell them through a US company (assuming the revenue actually gets to you personally) and I'm pretty sure the IRS will want a cut too. good luck and let us know how things go. On Wednesday, April 25, 2012 9:40:25 PM UTC-6, Narek Gevorgyan wrote: Hi, I am going to sign up for a developer account but I have one question, Can I sell apps from the name of my company which is registered at US Delaware state but I am an Armenian citizen and my residency is in Armenia. As I am from Armenia I can't sell paid apps, but can I do that via my US LLC, as my billing address will be at United States? Thanks, Narek -- 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] Can not get the source from https://android.googlesource.com/platform/manifest -b android-4.0.1_r1
Hi all: I have already repo initialized in my workdirectory, but I got the problem when i try to repo sync. DownloadError: android.googlesource.com: urlopen error [Errno 111] Connection refused failing all week long, anybody can help me. Thanks in advance -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en