Re: [android-developers] What are the advantages of an Android Developers Device?
28.06.2010 9:56, sagare пишет: Also i want to know is motorola droid a good device to be selected for android application testing? Yes, it works (I have the Milestone). Had to install their own driver in Windows 7 instead of the one that comes with Android SDK. Not sure if it has an unlocked boot loader, but for me it makes no difference - I don't develop Android firmware modifications, only applications. -- Kostya Vasilev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Notification when any child of a ViewGroup is done drawing
I am trying to figure out if there is a way to be notified when any child of a ViewGroup has done drawing. I tried using the ViewTreeObserver's preDraw listener which works great if I know a child is about to get drawn, but I am looking for an equivalent postDraw or onDrawDone callback. -- 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] Notification when any child of a ViewGroup is done drawing
There is no such global listener. You can simply create your own ViewGroup and override draw() or dispatchDraw(). On Sun, Jun 27, 2010 at 11:16 PM, George bipi...@gmail.com wrote: I am trying to figure out if there is a way to be notified when any child of a ViewGroup has done drawing. I tried using the ViewTreeObserver's preDraw listener which works great if I know a child is about to get drawn, but I am looking for an equivalent postDraw or onDrawDone callback. -- 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 -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. 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] Display a Dialog in non-Activity (simple Java) Class By passing Parameters
Use a handler to show dialog in activity and you can set handler which is created in activity to the class which you are using to show dialog On Mon, Jun 28, 2010 at 9:50 AM, TreKing treking...@gmail.com wrote: On Wed, Jun 23, 2010 at 4:38 AM, Nishant Kumar nishant.cs...@gmail.comwrote: I am trying to display a dialog box in a simple Java class that is called from my main Activity but not successful. First question: why are you trying to show a dialog from a class that is not an Activity? But I am *unable to call* the onCreateDialog method that I have *defined in the simple java class*. However , If I define the *onCreateDialog method in MainActivity*, I am able to display it* successfully. * Well onCreateDialog is defined in Activity. How do you expect it to be called in your custom class that does not extend Activity and thus does not inherit the function? WHAT ARE YOU TRYING TO ACCOMPLISH? On Wed, Jun 23, 2010 at 8:52 AM, Gyan gnanesh@gmail.com wrote: make the activity variable static No. and don't use this try getApplicationContext Hells no. or an instance created with new keyword Now you're just f***ing with the us. - TreKing - Chicago transit tracking app for Android-powered devices http://sites.google.com/site/rezmobileapps/treking -- 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.comandroid-developers%2bunsubscr...@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] xxx.apk file works on emulator when on Motorola milestone pictures are not shown
my problem : the app I have uploaded into my cellular device is shown without the pictures I have insert to it . steps I have done in order to install: I have inserted the xxx.apk file into the device via usb I downloaded an apps installer via the Market I opened the app using the installer and instead of picture an white background appeared when I opened the xxx.apk file using file system I found the pictures. note: even an application icon weren't appearing. Apparently the res libary having problem to be bined to application. I might ness to add something to my appliction manifest? I might need to change something on my device ? (I already made a change and enabled user's not Market application ) I would be very grateful for some life saving answer I need to show my work in a few days in this is the first time i tested her on a real devise. Please tell me what I might be doing wrong. -- 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: Drawing 2D stuff on the screen in OpenGL over a 3D scene
There's a chance that your 2D stuff is behind 3D stuff. Turning depth test off is a good idea for drawing UI. gl.glDisable(GL10.GL_DEPTH_TEST); Does drawing 2D alone work? On Jun 27, 4:01 pm, Navigateur naveen.c...@googlemail.com wrote: Can somebody take me step-by-step how to draw 2D stuff over a 3D scene (such as controls, etc.). What I've been doing so far has not been working (it only draws the 3D scene), which is (in every frame): draw the 3D scene as normal, projection matrix mode, load identity, call GLU.gluOrtho2D(gl, 0, myScreenWidthInPixels, 0, myScreenHeightInPixels), switch the array pointers (vertices and texture coords) to the ones for my 2D stuff, then drawElements with an appropriate index list. (then switch the array pointers back so the 3D stuff works again). I get nothing added to the screen (just the 3D stuff). Do I need to be doing something else for it to draw? Can somebody take me step-by-step? -- 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 paid apps in Ireland
This is a disgrace! And I cant get an answer from anyone in Google as to when this will be available. Oh well. It looks like SlideMe it is Bryan On Jun 26, 7:43 pm, Tomáš Hubálek tom.huba...@gmail.com wrote: On 21 čvn, 10:37, skooter500 skooter...@gmail.com wrote: (though I have users in 22 countries). I am not going to release it for free. It seems I cant sign up for a google checkout merchant account, because I live in Ireland and there are no paid apps allowed on the Irish Android Marketplace!!! Welcome to Android World where highest percentage of the apps on the market is free... We are going to communism where everything is for free and everybody is working for pleasure ;-) And all pigs are equal and some of the are more equal ;-) Tom -- 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 dismiss the soft keyboard
Hi I have a TextView and a search button on an activity. When I press the enter key, I want to do something and then dismiss the soft keyboard programatically. I have set the TextView to be single line by using: android:singleLine=true, which moves the focus to the next component when you press the enter key 1. How do I trap the enter key? A TextWatcher? An OnKeyListener? 2. How do I dismiss the soft keyboard programatically? Thanks! Bryan -- 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: Hiding application's icon from main menu.
Hi Murphy, I used setApplicationEnabledSetting(). but it's throwing an error java.lang.SecurityException: Permission Denial: attempt to change component How do we set permission ? I was trying to disable a third party app downloaded from google and installed using adb command. Is it possible to do so ? Thanks, Amit On Jun 25, 11:03 am, Amit magic.man.a...@gmail.com wrote: Thanks a lot Murphy. On Jun 24, 6:32 pm, Mark Murphy mmur...@commonsware.com wrote: On Thu, Jun 24, 2010 at 9:25 AM, Amit magic.man.a...@gmail.com wrote: Is there any way to change the category at run time? Not that I am aware of. or any other way to hide the icon from main menu ? You can disable the activity completely using the PackageManager. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy Android App Developer 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: Android can not render large triangles
It run on the htc device successfully!,but on emulator On Jun 17, 5:48 pm, john yx.xi...@luck-u.com wrote: I cannotrender alargetriangle onandroid,what Icansee is a rectangle,just like the triangle drops a corner This is my vertex array: [-8240, -3540, 10120, -8240, -3540, -3800, -8240, 10582, 10120] and this is my code: gl.glVertexPointer(va.getComponentCount(), gl.GL_SHORT, 6, vertices); gl.glDrawArrays(gl.GL_TRIANGLES, 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] The opengl app run very slow on HTC Hero Device
My app run very slow on this device, But the Neocore run very fast, I saw this infomation at its about page : Using Qualcomms Adreno graphics hardware I don't know how to use this My code: holder = getHolder(); holder.addCallback(this); holder.setType(SurfaceHolder.SURFACE_TYPE_GPU); I had test SURFACE_TYPE_HARDWARE,But this cannot run on the device ,only I can see is a black screen!!! What should I do! -- 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] WebView memory leak
I have an activity using an xml layout where a WebView is embedded. I am not using the WebView in my activity code at all, all it does is sitting there in my xml layout. Now, when I finish the activity, I find that my activity is not being cleared from memory. (I check via hprof dump). The activity is entirely cleared though if I remove the WebView from the xml layout. I already tried a webView.destroy(); webView = null; in onDestroy() of my activity, but that doesn't help much. In my hprof dump, my activity (named 'Browser') has the following remaining GC roots (after having called destroy() on it): com.myapp.android.activity.browser.Browser - mContext of android.webkit.JWebCoreJavaBridge - sJavaBridge of android.webkit.BrowserFrame [Class] - mContext of android.webkit.PluginManager - mInstance of android.webkit.PluginManager [Class] I found that another developer has experienced similar thing, see the reply of Filipe Abrantes on: http://www.curious-creature.org/2008/12/18/avoid-memory-leaks-on-android/ : Indeed a very interesting post. Recently I had a very hard time troubleshooting a memory leak on my Android app. In the end it turned out that my xml layout included a WebView component that, even if not used, was preventing the memory from being g-collected after screen rotations/app restart… is this a bug of the current implementation, or is there something specific that one needs to do when using WebViews Now, unfortunately there has been no reply on the blog or the mailing list about this question yet. Therefore I am wondering, is that a bug in the SDK (maybe similar to the MapView bug as reported http://code.google.com/p/android/issues/detail?id=2181) or how to get the activity entirely off the memory with a webview embedded? (I noted a similar thread on the mailing list from last year, but unfortunately never an answer to it; http://groups.google.com/group/android-developers/browse_thread/thread/81312866cb21ec76/6d2fb24980aa71a3?lnk=gstq=webview+xml+memory#6d2fb24980aa71a3) -- 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] Starting an AVD from a custom location
Hallo! I want the android emulator to start a AVD from a non default location using the following command: ./android-sdk-linux_86/tools/emulator -sysdir /opt/ development/.android/avd/ -avd AVD1.6_HTC_SD The .android directory is a copy from the default .android directory from my homefolder... The emulator states the following: emulator: ERROR: unknown virtual device name: 'AVD1.6_HTC_SD' emulator: could not find virtual device named 'AVD1.6_HTC_SD' Any ideas? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Display customized Soft keyboard at run time
Hi, I have 2 keyboard installed in my android emulator. First is default android keyboard for emulator and second one is customized soft keyboard(implemented using InputMethodService). At run time, I wanna to decide which keyboard should be display. I wanna to show only one keyboard at a time. Regards Amit -- 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: What are the advantages of an Android Developers Device?
that's somewhat it regarding advantages... There is no device ALL the developers are using, I guess many are using of the shelf devices... Personally I have a ADP2 in combination with a off-the-shelf Htc Hero and since a couple of days a Samsung Galaxy S... No the ADP2 cannot has no 2.1 update, it can be updated obviously because it has an unlucked bootloader but on the HTC developers site there is no update available... It's lakcing support if you ask me... It has been a good revenue-source letting developers think they needed one or that they would get betetr support : be adviced, that's NOT the case ! A droid can be a good device yes, even though personally I like to test my apps on less powerfull devices, if it runs good on a low-end or mainstream device it will run decently on any, if you only test your software on high-end devices it might run slow on low-end and mainstream devices... On 28 jun, 07:56, sagare sagar.ekb...@gmail.com wrote: Hi All, I saw thishttp://developer.android.com/guide/developing/device.html and as per what i got the advantages of Android developer device is that it is SIM unlocked and unlocked bootloader what i wanted to know is are there any other advantages than this of the Android developers Device? Also i want to know which device are all of the developers using for developing their apps are they using only Android developers device or any other device? Also i want to know whether Android developers device has Android 2.1 update? Also i want to know is motorola droid a good device to be selected for android application testing? Please help me on this. Thanks, Sagar -- 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: Marketplace behavior when version is wrong.
I've been wondering about the same thing, but re paid apps in countries or with carriers that don't support them. It isn't just a problem for links on web sites for that, though. I can't even tell from the free versions of my apps if I can launch the market intent for the paid versions successfully on a particular phone (using public APIs anyway). If the user can't see paid apps in the market, I really shouldn't be showing them buttons to launch market intents to go to the details pages of those apps. I guess you'd know the Android version there, at least, though. On Jun 27, 10:27 pm, TreKing treking...@gmail.com wrote: On Tue, Jun 22, 2010 at 6:10 PM, Chris Hessing chsoftwo...@gmail.comwrote: What does the user see? A message saying the app could not be found with absolutely no explanation as to WHY, leading to many confused individuals that then flood the Android Market Support forum with the same questions every single day. - TreKing - Chicago transit tracking app for Android-powered deviceshttp://sites.google.com/site/rezmobileapps/treking -- 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] sqlite3 in adb not in 2.2?
On Mon, May 24, 2010 at 7:41 AM, Mark Murphy mmur...@commonsware.comwrote: schwiz wrote: So I just watched the talk at Google I/O where they showed how to use sqlite3 in ADB to help debug your database. I didn't know you could do that way cool. So I was doing it on my nexus which is rooted and it was working fine. Then I went ahead and installed 2.2 and now when I type sqlite3 in the shell it says sqlite3 not found Any ideas? Well, it's in the 2.2 emulator image, for what that's worth. i found it's too bad to check data debug from my app i can't check my data from my nexus one anymore, that's bad! -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Consulting: http://commonsware.com/consulting -- 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.comandroid-developers%2bunsubscr...@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]
hi all, I want to make my android application with android source. my application will retrieves sensor data by i2c_smbus_read_word_data i2c API. but I always get the error messages like below: packages/apps/PSensorDemoProject2/jni/psensor-jni.c:92: undefined reference to 'i2c_smbus_read_word_data' I have added the path of header files of i2c in my application's Android.mk, but it's not work. and I also added this path in the build/core/config.mk, but it's not work too... Someone can give me some hint ?? thanks~ -- Regards Y-C Wang -- 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: How to fetch phone's phone number or unique ID
You might want to re-read the post of Indicator, he actually tell you which package you should use and even which method.. If those things don't ring a bell you might want to start learning OOP first (specifically Java) and the in a couple of months start programming for the mobile platform... On 27 jun, 02:08, Nando Android nando.andr...@gmail.com wrote: Exactly, I want an unique ID to it. How can I call it? Do I have to instantiate something? Thanks, On Sat, Jun 26, 2010 at 4:25 PM, Indicator Veritatis mej1...@yahoo.comwrote: First of all, you should keep in mind that in the GSM world, the phone number identifies the SIM, the user's account; it does not identify the phone. There is, however, in the android.telephony package, an method of the TelephonyManager class called getDeviceId() that returns a unique ID for the phone: IMEI for a GSM phone and MEID for CDMA. There is also a getLine1Number() that returns the phone number, which is probably not what you really want on a GSM phone. It might not even be what you want on a CDMA phone, since there are obsure models with two lines, and even more obscure models that take a SIM even on CDMA. On Jun 25, 2:36 pm, Nando Android nando.andr...@gmail.com wrote: Hello, I wonder how could I fetch the phone's phone number or an unique id to identify 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.comandroid-developers%2bunsubscr...@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] rtsp client?
Hi could someone say if android supports an RTSP stack? We've an RTSP server that we'd like to stream video to an android rtsp client if thats possible 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] extending media framework on android 2.2 / froyo (stagefright ?)
hi, I am interested in adding support for some video containers not supported by default in a video player application. flash player plugin being able to play video on froyo, I suppose there are some api to extend the media framework. I've heard of stagefright but didn't find much details. where can I find details on how the flash player works ? does it use publicly available api ? public or not, how can I access them ? 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: Problem with BaseAdapter on android2.2 SDK
Thanks for your kind reply... My Problem is: I am showing three checkboxes with some background drawables. For this,i am using Gridview and data adapter is BaseAdapter. I am unable to click/check the 0th positioned checkbox in the grid view on SDK2.2.The same code is working fine with 2.1SDK. From the logs i observed the above behaveour. Please let me know regarding this . Thanks Regards, Vissu On Jun 23, 11:23 am, Romain Guy romain...@android.com wrote: There is no guarantee on the ordering of the calls to getView, nor how many times it will be called. Your application should NEVER depend on this. On Tue, Jun 22, 2010 at 11:19 PM, vishu viswanath1...@gmail.com wrote: Hi, I am facing one issue withBaseAdapter, which is set to Gridview in My application. Issue here is: getView() method is calling again twice for the zeroth index item. ...due to this i m facing severe bug in my application.. on Android2.1 SDK, the same application is working fine..i.e. getView() is invoked only once for the zeroth item in the adapter. Can anyone 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 -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. 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] Camera in Froyo emulator crashes
Hello! We are exploring the default applications in Froyo and we found out that the Camera app always crashes seconds after it loads. Is this related to the no camera/video input limitation of the application? If not, what seems to be the problem? We already added all the additional properties to the AVD. We also disabled the auto-rotate screen option. Attached is the stacktrace. Thank you -- Fina -- 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=enD/dalvikvm( 369): GC_FOR_MALLOC freed 4396 objects / 262744 bytes in 328ms I/ActivityManager( 60): Starting activity: Intent { act=android.intent.action. MAIN cat=[android.intent.category.HOME] flg=0x1020 cmp=com.android.launcher/ com.android.launcher2.Launcher } W/InputManagerService( 60): Ignoring hideSoftInput of: com.android.internal.vi ew.iinputmethodclient$stub$pr...@43f60d08 W/InputManagerService( 60): Starting input on non-focused client com.android.i nternal.view.iinputmethodclient$stub$pr...@43dbb2a0 (uid=10004 pid=369) I/ActivityManager( 60): Starting activity: Intent { act=android.intent.action. MAIN cat=[android.intent.category.LAUNCHER] flg=0x1020 cmp=com.android.camer a/.Camera bnds=[243,46][317,125] } I/ActivityManager( 60): Start proc com.android.camera for activity com.android .camera/.Camera: pid=389 uid=10005 gids={1006, 1015} D/dalvikvm( 33): GC_EXPLICIT freed 290 objects / 11016 bytes in 156ms D/dalvikvm( 33): GC_EXPLICIT freed 47 objects / 2120 bytes in 244ms D/dalvikvm( 33): GC_EXPLICIT freed 2 objects / 64 bytes in 127ms I/WindowManager( 60): Setting rotation to 1, animFlags=1 I/ActivityManager( 60): Config changed: { scale=1.0 imsi=310/260 loc=en_US tou ch=3 keys=2/1/2 nav=3/1 orien=2 layout=18 uiMode=17 seq=8} D/CameraHardwareStub( 34): initHeapLocked: preview size=320x240 D/Camera ( 389): app passed NULL surface D/CameraHardwareStub( 34): initHeapLocked: preview size=320x240 V/camera ( 389): startPreview I/ActivityManager( 60): Displayed activity com.android.camera/.Camera: 2858 ms (total 2858 ms) D/qemud ( 38): fdhandler_accept_event: accepting on fd 10 D/qemud ( 38): created client 0x17018 listening on fd 15 D/qemud ( 38): client_fd_receive: attempting registration for service 'senso rs' D/qemud ( 38): client_fd_receive:- received channel id 10 D/qemud ( 38): client_registration: registration succeeded for client 10 D/qemud ( 38): fdhandler_event: disconnect on fd 15 D/dalvikvm( 389): GC_EXTERNAL_ALLOC freed 2200 objects / 138344 bytes in 171ms D/libEGL ( 389): egl.cfg not found, using default config D/libEGL ( 389): loaded /system/lib/egl/libGLES_android.so W/dalvikvm( 389): threadid=9: thread exiting with uncaught exception (group=0x4 001d800) E/AndroidRuntime( 389): FATAL EXCEPTION: GLThread 11 E/AndroidRuntime( 389): java.lang.IllegalArgumentException: No configs match co nfigSpec E/AndroidRuntime( 389):at android.opengl.GLSurfaceView$BaseConfigChoose r.chooseConfig(GLSurfaceView.java:760) E/AndroidRuntime( 389):at android.opengl.GLSurfaceView$EglHelper.start( GLSurfaceView.java:916) E/AndroidRuntime( 389):at android.opengl.GLSurfaceView$GLThread.guarded Run(GLSurfaceView.java:1246) E/AndroidRuntime( 389):at android.opengl.GLSurfaceView$GLThread.run(GLS urfaceView.java:1116) W/ActivityManager( 60): Force finishing activity com.android.camera/.Camera V/camera ( 389): stopPreview D/dalvikvm( 60): GC_EXPLICIT freed 2847 objects / 14 bytes in 261ms I/WindowManager( 60): Setting rotation to 0, animFlags=1 I/ActivityManager( 60): Config changed: { scale=1.0 imsi=310/260 loc=en_US tou ch=3 keys=2/1/2 nav=3/1 orien=1 layout=18 uiMode=17 seq=9} W/ActivityManager( 60): Activity pause timeout for HistoryRecord{43f47358 com. android.camera/.Camera} I/Process ( 389): Sending signal. PID: 389 SIG: 9 I/ActivityManager( 60): Process com.android.camera (pid 389) has died. I/WindowManager( 60): WIN DEATH: Window{43f26ce0 SurfaceView paused=false} I/WindowManager( 60): WIN DEATH: Window{43fb2818 com.android.camera/com.androi d.camera.Camera paused=false} I/WindowManager( 60): WIN DEATH: Window{43ff0c50 SurfaceView paused=false} D/dalvikvm( 60): GC_EXPLICIT freed 1465 objects / 78512 bytes in 203ms
[android-developers] How to keep android phone both connected to WIFI and 3G network?
Hi, folks I have a application that requires both connected to WIFI and 3G mobile network, but I found that if I switch to WIFI, I'll automatically lost 3G data connection, all connection I made now routes to WIFI. Does anybody know how to keep phone both connected to those networks, and how to choose which network I'll use to connect? thanks Alex -- 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: rtsp client?
afaik you can directly feed that trsp url to the MediaPlayer class... On 28 jun, 12:33, chas__123 charlie.nug...@gmail.com wrote: Hi could someone say if android supports an RTSP stack? We've an RTSP server that we'd like to stream video to an android rtsp client if thats possible 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
Re: [android-developers] Re: Best httpclient re-use stategy
Ok, thanks for this advice. So you decide to manage preference by yourself using the filesystem directly ? On Fri, Jun 25, 2010 at 10:48 PM, Mariano Kamp mariano.k...@gmail.comwrote: Just a sidenote on an issue that you touch, but not the actual main issue: - Save the cookie (String serialized into SharedPreferences) and create every time a new httpclient instance (then set the cookie to the new instance) = overhead to get the http connection I tried that in my app and found out there is a huge performance penalty involved as compared to just writing it to a file directly. I got the impression if you set any preference and do a commit, then all the settings are serialized into one single XML file and that's written to the very slow flash memory. If you have, say 50 other settings, this may take 300-600ms vs. 15 ms. Don't get hung up on the the actual numbers, just see the difference in principle here. Also when you have other stuff (the stream?) that you want to write, then you're also clogging the flash memory. On Fri, Jun 25, 2010 at 4:46 PM, MoxFulder dago...@gmail.com wrote: nobody has any idea ? On Jun 21, 10:33 am, MoxFulder dago...@gmail.com wrote: Hi there, I'm new using android sdk/httpclient I'm writing a small application which needs httpclient lib, basically to manage the cookie/session automatically. The website I'm targeting needs a valid session, so, between each http call, I need to send the cookie. Httpclient does it well. This is a tv stream application and I have to fetch the channel url, the url has a token parameter and I have to be logged / authenticated / (= have a valid cookie/sessionid) to fetch the channel url. I got the first cookie/sessionid with the first connection to the website. The cookie is valid for a certain amount of time, there is no expires but I don't know if there is any server cron to cleanup the sessions. I assume I have to ping every x secondes to maintain the session valid. Between each http call, the time could be from 1 sec to several minutes, it depends if the user wants to change the watched tv channel. The http call (to fetch the url) is not made by the UI Thread. There are several possibilities to manage the httpclient : - a single httpclient static singleton instance accessed by a custom synchronized getClient() on an helper class = when / how to release the http connection ? How to handle that correctly if the user got a phone call / does not use the application for now (unvalidate during onResume, etc)? - Save the cookie (String serialized into SharedPreferences) and create every time a new httpclient instance (then set the cookie to the new instance) = overhead to get the http connection - other ? I'm asking here what is the best way to implement 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.comandroid-developers%2bunsubscr...@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.comandroid-developers%2bunsubscr...@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] Status bar leaves a black bar in my Fullscreen Activity !
Hi, I have a Fulscreen Activity (by using android:theme=@android:style/ Theme.NoTitleBar.Fullscreen). I noticed that when the device has gone into powersave mode (black screen) or when I have used the Home Button, and I get back in my Activity the whole Layout will have been moved downwards leaving a black bar of nothingness on top of the Activity :( The Activity Layout fills the screen precisely, so when this happens I am able (with the scrollball) to scroll my whole Layout upwards and downwards for the height of the aforementioned black bar (of death?)... At some point I noticed it looked like it was just as high as the stanbdard Android status bar, so I dismissed the Fullscreen from the Activity... From that point onwards the Activity would work as expected, but I actually don't want the status bar... Anyone experienced this and how can I solve this ? -- 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: Capture home key event
I do understand the difference between the back key and home key. Anyways, is this the android where developer say anything can be done in android by developer? :-( On Jun 24, 3:00 pm, Tomáš Hubálek tom.huba...@gmail.com wrote: Many users don't understand difference between Home and Back button (according my experience of support of my apps) and in this case they don't understand why screen widget does not appear on home screen while configuration finished with Home button. I'm going to detect somehow that application went to background and accept this as confirmation. Any better idea? Thanks Tom -- 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] Percentages on ProgressDialog.STYLE_HORIZONTAL
Hi, I have been using a ProgressDialog in it's horizontal form, exactly like in this article : http://mobiledeviceprogramming.blogspot.com/2010/01/showing-progress-bar-on-android.html Now I was wondering how do I get rid of one of the two percentages ? As in I have a percentage on the left side (as 61%) and one on hte right side, and they always give the same value so I woould like to get rid on one or the other... Any ideas in how to accomplish this ? 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
Re: [android-developers] Camera in Froyo emulator crashes
Don't know if it's related but the camera app crashes every one of our Nexus one's. (actual hardware) -Stace On Mon, Jun 28, 2010 at 6:57 AM, Fina Mesina fina.mes...@gmail.com wrote: Hello! We are exploring the default applications in Froyo and we found out that the Camera app always crashes seconds after it loads. Is this related to the no camera/video input limitation of the application? If not, what seems to be the problem? We already added all the additional properties to the AVD. We also disabled the auto-rotate screen option. Attached is the stacktrace. Thank you -- Fina -- 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.comandroid-developers%2bunsubscr...@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: how to play a 8192*8192 image ?
Thank you ! I will have a try! 2010/6/28 Streets Of Boston flyingdutc...@gmail.com Then you need to tell them it is impossible. Ask them what the maximum resolution is of the output they desire. And i'm curious which output- device your clients have in mind if it needs a 8192x8192 resolution. Anyway, if it is an HDTV, more than 1920x1080 is not necessary. And if you hook up the phone to an output-device using HDMI, more than 1080p is not supported... If it is an Android phone, more than 854x480 is not necessary. They still can supply you with a 8192x8192 image, but for display you need to scale it down to the display resolution (BitmapFactory.Options.inSampleSize having a value greater than 1). On Jun 27, 8:02 pm, xhy xhyg...@gmail.com wrote: In fact the clients demand it,so i have no idea. 2010/6/28 Kostya Vasilyev kmans...@gmail.com 27.06.2010 21:25, Streets Of Boston пишет: Wow, do you have a big screen TV capable of displaying 8192*8192 pixel images!? I doubt it:-) If you have an HDTV of 1080p, then the max resolution is 1920*1080 (about 2MPixels). There's no need to go larger. Besides, the phone's real output resolution might be even smaller (to match the screen). -- Kostya Vasilev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com android-developers%2bunsubs-cr...@googlegroups.comandroid-developers%252bunsubs-cr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- xhy- Hide quoted text - - Show quoted text - -- 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- xhy -- 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] Starting the Market Application programatically
Is this possible? I have a free and a paid version of an application. From the FREE version I want to provide the ability to for the user to PURCHASE the paid version. I want to make it as simple as possible. I am thinking of Starting the market app and passing the identification of the PAID so that the Market app will take them right there. I am trying to make it as easy as posible. No searching etc. No I have no intent of doing the purchasing from within my app. I want to have them press [Get Paid Now] button and then I start the Market app which would then take them to my Paid Application in the store. Is this possible? Thanks in advance for all responses. -- 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] Defining a class at runtime
Hi, I'm trying to achieve the following: - class A (in application A) derives from class B. - application A loads a dex dynamically (using DexClassLoader). - application A wants to have the *definition* of class B to come from this newly loaded dex. Something similar does happen for the Google Maps API (and for the inbuilt APIs) - however, the dex implementing these are picked up from under /system and pre-loaded before any classes of the current application. I want to achieve something similar - however, the OS doesn't seem to provide a mechanism to pre-load arbitrary dex files in a way that any newly required classes (e.g. when class A is instantiated, a definition of class B would be required) are resolved against those in the loaded dex. Could someone please let me know if it's possible to achieve what I want to? If not, would it be possible to inject new methods in the definition of an existing class? It seems like some Java reflection related methods are not implemented on Android (e.g. ClassLoader.resolveClass() or the resolve argument to ClassLoader.loadClass()). Thanks, Ashutosh -- 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: PNG loading that doesn't premultiply alpha?
Thanks Jeremy, I've just understood why I had this strange blending behaviour in my app (I didn't know premultiplied alpha existed). I'm also very interested in a way to correctly blend multiple layers in opengl (I guess the solution would be in loading png without premultiplied alpha... or could it be demultiply alpha channel once the png is loaded ?) -- 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] draw hands on canvas
Hi, I want to draw hands on the canvas which is smooth and closed arc. How can I draw it? Any code regarding graphics or refrence class to draw it will be helpful. Thanks and Regards, Beena -- 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: draw hands on canvas
See the ApiDemo. You can draw it using ArcShap. On Jun 28, 5:44 pm, Beena swdeveloper2...@gmail.com wrote: Hi, I want to draw hands on the canvas which is smooth and closed arc. How can I draw it? Any code regarding graphics or refrence class to draw it will be helpful. Thanks and Regards, Beena -- 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: Starting the Market Application programatically
http://developer.android.com/guide/publishing/publishing.html#marketintent Be aware that substring matching is broken, last I heard, but the other query forms work. String On Jun 28, 1:06 pm, lloyd1949 lloydmcfarl...@comcast.net wrote: Is this possible? I have a free and a paid version of an application. From the FREE version I want to provide the ability to for the user to PURCHASE the paid version. I want to make it as simple as possible. I am thinking of Starting the market app and passing the identification of the PAID so that the Market app will take them right there. I am trying to make it as easy as posible. No searching etc. No I have no intent of doing the purchasing from within my app. I want to have them press [Get Paid Now] button and then I start the Market app which would then take them to my Paid Application in the store. Is this possible? Thanks in advance for all responses. -- 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] soft keyboard
Hi, I've got a problem with my application in that the soft-keyboard is not being closed unless the user pushes the back button. I use several layouts which I load using the setContentView method of the application. Some layouts contain multiple EditText fields. The soft-keyboard pops up correctly when the entry boxes are being clicked, but never gets dismissed, even after I switch to a new layout using setContentView (instigated by on-screen push buttons). I found a way of apparently removing the keyboard using the InputManager class but how exactly does that work if I don't know which entry field opened/currently owns the keyboard? Is there a way of possibly invalidating a whole layout which would perhaps cause all resources (and hopefully the keyboard) to be cleared? As said before, I currently just use setContentView to load the next screen. Cheers -- 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: Null canvas being passed to onDraw(Canvas canvas)
Hi, Maybe you can just skip the onDraw in that case. hopefully the next one will have a valid Canvas. Just trowing an idea ;) On 27 mayo, 11:15, Erik erikcell...@gmail.com wrote: I have two bug reports now in my publisher console, and the both are Null Pointer Exceptions from onDraw, and result from a null canvas object being passed into the method. I've searched and not found any information on why this may be happening. Anyone have ideas? Or any ideas on how to gracefully handle a null canvas being passed in? Wondering if I should return from the method or attempt to exit the app gracefully? Both errors were on the droid platform. -- 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: Simple Cursor Adapter - List View
Hi, You might find useful to set a ViewBinder for the adapter. Have a look at this interface for the SimpleCursorAdapter http://developer.android.com/reference/android/widget/SimpleCursorAdapter.ViewBinder.html There's only one method which is invoked for each column-to-view bind and it gives you the cursor and the column index so you can easily retrieve the value of a column and based on that evaluate if you want to make the view visible or not by setting the visibility invoking the method setVisibility(). Cheers, On Jun 9, 8:49 pm, sateesh devabhaktuni sateesh@gmail.com wrote: I have table with 3 columns which is binded to an XML document with three text views. String[] from = new String[]{A,B,C}; int [] to = new int[] {R.id.a,R.id.b,R.id.c}; Where R.id.a, R.id.b, R.id.c - TextView Depending on the value store in the third column, I have to decide whether i should display this row or not How should, I go about with this. This is what I have so far : SimpleCursorAdapterentry = newSimpleCursorAdapter(this, R.layout.addrow, vCursor , from , to); setListAdapter(entry); If you can provide me an example, that would be really helpful. -- 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: Do VBOs really improve performance? Really?
That's is a good point but it's still likely some kind of gain a the driver can preprocess the vertices into a format it prefers. Leigh On 6/27/2010 6:08 PM, Lance Nanek wrote: Do VBOs do anything on a device with unified memory? There is no separate graphics memory on many of these devices, right? On Jun 20, 9:51 pm, Robert Greenrbgrn@gmail.com wrote: Navigateur, Performance is highly device-dependent. If you're not seeing any performance differences, it would be helpful if you listed on which device, what your FPS is with/without VBOs, etc.. It sounds like you're doing it right. I doubt it matters how you partition the vertex attributes. You can do what you do or do what I do which is have 3 separate VBOs for them. I would expect no difference there. If you're not getting a performance improvement then that's not a bottleneck for your app/game, but it's still lightening the load on the bus so is a good thing overall. Most games are fill-bound, not vert-bound. On Jun 20, 11:46 am, Navigateurnaveen.c...@googlemail.com wrote: What is your approximate experimental fps improvement using exactly the same content with and without VBOs? I'm testing with 3000 static verts (GL_STATIC_DRAW) and I'm getting exactly the same frame rate with and without VBOs, only the set-up time is longer with VBOs. What are your results with and without? If you're sure there's an improvement, then what might I be doing wrong with my VBOs? (I'm using 2 VBOs, one for the indices and the other for verts, normals and texturecoords) And what's your way of doing it? On Jun 20, 11:50 am, Robert Greenrbgrn@gmail.com wrote: The question are VBOs faster is a very subjective one. I can answer the question are VBOs faster for large amounts of static geometry and the answer in my experience has been yes, very much so, especially on first-gen devices. For quads and such? No. In fact, it could actually be slower depending on the chip and implementation. VBOs are designed to reduce bus bandwidth usage for static geometry. If you're not pushing too much across that bus (as in the case of quads or very few, very low poly objects), they won't do much. If, on the other hand, you're actually running static scenes that are moving 5k polys per draw eg (7.5k verts, 7.5k normals, 15k indices, 7.5k UVs) = 270Kb, you will most likely see some sort of improvement, especially on chips like the qualcomms as they have fairly slow transfers. Just think, 270Kb @30fps = 8.1Mb of memory copying per second you're saving using VBOs. If you're rendering scenes that have REALLY large amounts of geometry (for mobile), such as 50k or 100k polys, you'll find that you'll be totally vert-bound on the first gen devices, so there's kind of that limit there as to how effective VBOs can be. The spots where they REALLY shine, like really high poly counts, can't ever be used on the first-gen phones because they are incapable of processing that many vertices with high efficiency anyway. High end devices running big scenes like that will really benefit from them because it's a whole lot of memory transfer savings. Anyone doing things like that will want to be using configurable LoD to support the first-gens while keeping things high quality on newer chips. I would be interested in a simple test that increases poly count frame by frame and graphs the FPS up from 0 to 100k polys. Running one pass textured and the other just colored would be a good way to discriminate between becoming fill-bound and memory or vert-bound. Seeing this data on an MSM7200, Cortex/PVR (Droid) and a snapdragon would be very useful for determining optimization targets. On Jun 20, 4:37 am, Navigateurnaveen.c...@googlemail.com wrote: No I'm not even using draw_texture. I'm comparing using VBOs to just ordinary Buffers for the vertices (and no draw_texture). My test is not near the max frame rate for my device. On Jun 20, 12:21 am, Miguel Moralestherevolti...@gmail.com wrote: Well, if you look at the talk google gave the developer gave a short note about it:http://code.google.com/intl/es-ES/events/io/2010/sessions/writing-rea... If memory serves me correct, you won't gain much of a speed gain from using VBOs as opposed to say draw_texture. This is because the FPS is capped at 30FPS for some devices, however I can't recall the details. Miguel. On Sat, Jun 19, 2010 at 3:01 PM, Navigateurnaveen.c...@googlemail.com wrote: I've been trying VBOs (3D) and I've seen no improvement at all on my Motorola Dext over not using VBOs. I've tried all kinds of configurations, interleaved arrays, bytebuffers instead of floatbuffers, both direct and indirect. My question is, has anybody got any
[android-developers] Mapview ConcurrentModification Exception
Hello everyone, As the title suggest i have (sometimes) a concurrentmodificationexception while trying to create a route between two locations ... Here is my code (and in case you're wondering MyOverlay does not try to access the other Overlays in the map) private class fillRouteTask extends AsyncTaskVoid, GeoPoint, Void { /** * create the url to call to get the route * * @param src * @param dest * @return */ private StringBuilder createUrl(GeoPoint src, GeoPoint dest) { // connect to map web service StringBuilder urlString = new StringBuilder(); urlString.append(http://maps.google.com/maps?f=dhl=en;); urlString.append(saddr=);// from urlString.append(Double .toString((double) src.getLatitudeE6() / 1.0E6)); urlString.append(,); urlString.append(Double .toString((double) src.getLongitudeE6() / 1.0E6)); urlString.append(daddr=);// to urlString.append(Double .toString((double) dest.getLatitudeE6() / 1.0E6)); urlString.append(,); urlString.append(Double .toString((double) dest.getLongitudeE6() / 1.0E6)); urlString.append(ie=UTF80om=0output=kml); Log.d(xxx, URL= + urlString.toString()); return urlString; } /** * create the connection to google url * * @param src * @param dest * @return */ private String connectToUrl(GeoPoint src, GeoPoint dest) { // get the kml (XML) doc. And parse it to get the // coordinates(direction // route). Document doc = null; HttpURLConnection urlConnection = null; URL url = null; try { url = new URL(createUrl(src, dest).toString()); urlConnection = (HttpURLConnection) url.openConnection(); urlConnection.setRequestMethod(GET); urlConnection.setDoOutput(true); urlConnection.setDoInput(true); urlConnection.connect(); DocumentBuilderFactory dbf = DocumentBuilderFactory .newInstance(); DocumentBuilder db = dbf.newDocumentBuilder(); doc = db.parse(urlConnection.getInputStream()); if (doc.getElementsByTagName(GeometryCollection) != null doc.getElementsByTagName(GeometryCollection) .getLength() 0) { return doc.getElementsByTagName(GeometryCollection).item( 0).getFirstChild().getFirstChild().getFirstChild() .getNodeValue(); } } catch (MalformedURLException e) { Log.d(test, e.getLocalizedMessage()); } catch (IOException e) { Log.d(test, e.getLocalizedMessage()); } catch (ParserConfigurationException e) { Log.d(test, e.getLocalizedMessage()); } catch (SAXException e) { Log.d(test, e.getLocalizedMessage()); } return null; } protected Void doInBackground(Void... arg0) { try { // get the current overlays present in the map ListOverlay overs = Collections.synchronizedList(mapView .getOverlays()); String path = connectToUrl(orig, dest); if (path != null) { Log.d(xxx, path= + path); String[] pairs = path.split( ); String[] lngLat = pairs[0].split(,);
[android-developers] Re: notifyDataSetChanged() not updating listview after orientation change
Great you figured that one out! :-) On Jun 27, 9:12 pm, Bara bara.kath...@gmail.com wrote: I figured it out! As it turns out, I have the ListView's visibility set to GONE by default. I show the ListView in my OnClick event for my button. When the orientation changes and the Activity gets destroyed and re-created, the ListView's visibility gets reset to the default set in the XML, GONE. All I had to do was to set the visibility to VISIBLE in UpdateDisplay() and it all worked! Thanks to everyone for the help! It is much appreciated, and I'll be sure to put all of your usernames in the About/Thank You section of my app :) Bara On Jun 23, 1:44 pm, Streets Of Boston flyingdutc...@gmail.com wrote: thisListView.setAdapter(r_adapter); r_adapter.notifyDataSetChanged(); If you do 'setAdapter', calling notifyDataSetChanged() is not necessary, if i'm not mistaken. But calling an extra notifyDataSetChanged() should hurt. Override the adapter's getItem and getCount methods and put a break- point in these methods. See if these get hit and, if they do, see what values they return. On Jun 22, 11:55 pm, Bara bara.kath...@gmail.com wrote: Hmm... could it be my ArrayAdapter class causing the problem? This is how I call it: r_adapter = new ReminderAdapater(rData.getCurrentActivity(), remindersList, thisListView); thisListView.setAdapter(r_adapter); r_adapter.notifyDataSetChanged(); And this is ReminderAdapater itself: public class ReminderAdapater extends ArrayAdapterClass_Reminder { ArrayListClass_Reminder items = new ArrayListClass_Reminder(); private ListView listView; public ReminderAdapater(Activity activity, ArrayListClass_Reminder items, ListView listView) { super(activity, 0, items); this.listView = listView; this.items = items; Log.i(ReminderAdapater, Constructor; Size: + items.size()); } @Override public void add(Class_Reminder object) { Log.i(ReminderAdapater.add, Item count = + items.size()); super.add(object); } @Override public View getView(int position, View convertView, ViewGroup parent) { //... some view related stuff here, but it never actually gets to this point } } Do you guys see anything wrong with that? On Jun 22, 11:47 pm, Streets Of Boston flyingdutc...@gmail.com wrote: The call to onRetainConfigurationChange and getLastNonConfigurationInstance always works, if you have your activity declared not to handle configuration changes by itself (which it doesn't by default). On Jun 22, 10:51 am, Gyan gnanesh@gmail.com wrote: Classic problem! Use a static variable rather than onRetainConfigurationChange() lot of state data to be saved doesn't work all the time!! Gyan- Hide quoted text - - Show quoted text -- Hide quoted text - - Show quoted text - -- 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: Starting the Market Application programatically
It's also worth remembering that not all users will be able to access the paid version depending on their location and the choices you made when you set up the market options for your paid version. /Paul PuzzleQube - the 3D picture puzzle Grey Knotts Software - www.greyknotts.com -Original Message- From: android-developers@googlegroups.com [mailto:android-develop...@googlegroups.com] On Behalf Of String Sent: 28 June 2010 14:08 To: Android Developers Subject: [android-developers] Re: Starting the Market Application programatically http://developer.android.com/guide/publishing/publishing.html#marketintent Be aware that substring matching is broken, last I heard, but the other query forms work. String On Jun 28, 1:06 pm, lloyd1949 lloydmcfarl...@comcast.net wrote: Is this possible? I have a free and a paid version of an application. From the FREE version I want to provide the ability to for the user to PURCHASE the paid version. I want to make it as simple as possible. I am thinking of Starting the market app and passing the identification of the PAID so that the Market app will take them right there. I am trying to make it as easy as posible. No searching etc. No I have no intent of doing the purchasing from within my app. I want to have them press [Get Paid Now] button and then I start the Market app which would then take them to my Paid Application in the store. Is this possible? Thanks in advance for all responses. -- 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: Set android:layout_gravity from code ??
Here's what you are looking for: ibMap.setGravity(android.view.Gravity.RIGHT); The constants defined in android.view.Gravity mimic the names you're used to seeing in the XML tags. Good luck. On May 15, 2:13 pm, pawan nimje pawanni...@gmail.com wrote: Hi All once again, In xml we have android:layout_gravity ... how can i set this for any view [say image button] ... from code ... plz help ...any kind if suggestion will do .. code: ibMap = new ImageButton(getApplicationContext()); ibMap.setLayoutParams(new LayoutParams(width,height)); ibMap.setBackgroundResource(resId); now i want to set the android:layout_gravity from code ... -- 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 athttp://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: send MMS with Audio part via Intent
Yes, I have ever this problem. I have put a new message in this topic : http://code.google.com/p/android/issues/detail?id=1745 but, this is not considered as a deffect... so, I haven't any idea when it will be fix. On 24 juin, 21:11, Josh joshua.millst...@gmail.com wrote: Did you ever figure this out? On Jun 17, 6:27 am, mickael le trocquer letrocquermickael-...@yahoo.com wrote: Hello, I have a problem in my application. I have to sendMMSwithaudio attachement. If I do : public void sendMMS(Context aContext, String aFilePath) { Intent intent = new Intent(android.intent.action.SEND_MSG); intent.putExtra(address, aphonenumber); intent.putExtra(sms_body, mybody); Uri uri = Uri.fromFile(new File(/sdcard/myimage.jpg)); intent.putExtra(Intent.EXTRA_STREAM, uri); // imageUri set previously intent.setType(image/jpeg); aContext.startActivity(intent); } It's work great. I can preview myMMSwith an image in attachement. But if I putaudiofile in attachement : public void sendMMS(Context aContext, String aFilePath) { Intent intent = new Intent(android.intent.action.SEND_MSG); intent.putExtra(address, aphonenumber); intent.putExtra(sms_body, mybody); Uri uri = Uri.fromFile(new File(/sdcard/audiofile.amr)); intent.putExtra(Intent.EXTRA_STREAM, uri); // imageUri set previously intent.setType(audio/amr); aContext.startActivity(intent); } It's didn't work... I have a nice exception : 06-17 11:29:44.608: DEBUG/ComposeMessageActivity(3881): initActivityState: null, Intent { act=android.intent.action.SEND_MSG typ=audio/amr cmp=com.android.mms/.ui.ComposeMessageActivity (has extras) } 06-17 11:29:44.648: VERBOSE/MmsProvider(139): Delete uri=content://mms/ 9223372036854775807/part, match=11 06-17 11:29:44.738: DEBUG/dalvikvm(3881): GC freed 1436 objects / 118040 bytes in 80ms 06-17 11:29:44.848: VERBOSE/MessageTextEditor(3881): Nli: -1 06-17 11:29:44.858: DEBUG/Jerry(3881): new mMessageBodyEditor 06-17 11:29:44.978: VERBOSE/ComposeMessageActivity(3881): onCreate(): savedInstanceState = null 06-17 11:29:44.978: VERBOSE/ComposeMessageActivity(3881): onCreate(): intent = Intent { act=android.intent.action.SEND_MSG typ=audio/amr cmp=com.android.mms/.ui.ComposeMessageActivity (has extras) } 06-17 11:29:44.978: VERBOSE/ComposeMessageActivity(3881): onCreate(): mThreadId = 0 06-17 11:29:44.978: VERBOSE/ComposeMessageActivity(3881): onCreate(): mMessageUri = null 06-17 11:29:44.978: DEBUG/ComposeMessageActivity(3881): initFocus: true 06-17 11:29:45.008: DEBUG/ComposeMessageActivity(3881): -mMessageUri:null 06-17 11:29:45.218: ERROR/AndroidRuntime(3881): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.android.mms/ com.android.mms.ui.ComposeMessageActivity}: java.lang.NullPointerException 06-17 11:29:45.218: ERROR/AndroidRuntime(3881): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java: 2464) 06-17 11:29:45.218: ERROR/AndroidRuntime(3881): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java: 2486) 06-17 11:29:45.218: ERROR/AndroidRuntime(3881): at android.app.ActivityThread.access$2100(ActivityThread.java:123) 06-17 11:29:45.218: ERROR/AndroidRuntime(3881): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1843) 06-17 11:29:45.218: ERROR/AndroidRuntime(3881): at android.os.Handler.dispatchMessage(Handler.java:99) 06-17 11:29:45.218: ERROR/AndroidRuntime(3881): at android.os.Looper.loop(Looper.java:123) 06-17 11:29:45.218: ERROR/AndroidRuntime(3881): at android.app.ActivityThread.main(ActivityThread.java:4321) 06-17 11:29:45.218: ERROR/AndroidRuntime(3881): at java.lang.reflect.Method.invokeNative(Native Method) 06-17 11:29:45.218: ERROR/AndroidRuntime(3881): at java.lang.reflect.Method.invoke(Method.java:521) 06-17 11:29:45.218: ERROR/AndroidRuntime(3881): at com.android.internal.os.ZygoteInit $MethodAndArgsCaller.run(ZygoteInit.java:791) 06-17 11:29:45.218: ERROR/AndroidRuntime(3881): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:549) 06-17 11:29:45.218: ERROR/AndroidRuntime(3881): at dalvik.system.NativeStart.main(Native Method) 06-17 11:29:45.218: ERROR/AndroidRuntime(3881): Caused by: java.lang.NullPointerException 06-17 11:29:45.218: ERROR/AndroidRuntime(3881): at android.content.ContentResolver.acquireProvider(ContentResolver.java: 574) 06-17 11:29:45.218: ERROR/AndroidRuntime(3881): at android.content.ContentResolver.query(ContentResolver.java:147) 06-17 11:29:45.218: ERROR/AndroidRuntime(3881): at
[android-developers] Re: Mapview ConcurrentModification Exception
Fixed it, i removed the Overlays reference from the mapview and it worked :) On 28 juin, 16:01, Necroline adeline.hul...@gmail.com wrote: Hello everyone, As the title suggest i have (sometimes) a concurrentmodificationexception while trying to create a route between two locations ... Here is my code (and in case you're wondering MyOverlay does not try to access the other Overlays in the map) private class fillRouteTask extends AsyncTaskVoid, GeoPoint, Void { /** * create the url to call to get the route * * @param src * @param dest * @return */ private StringBuilder createUrl(GeoPoint src, GeoPoint dest) { // connect to map web service StringBuilder urlString = new StringBuilder(); urlString.append(http://maps.google.com/maps?f=dhl=en;); urlString.append(saddr=);// from urlString.append(Double .toString((double) src.getLatitudeE6() / 1.0E6)); urlString.append(,); urlString.append(Double .toString((double) src.getLongitudeE6() / 1.0E6)); urlString.append(daddr=);// to urlString.append(Double .toString((double) dest.getLatitudeE6() / 1.0E6)); urlString.append(,); urlString.append(Double .toString((double) dest.getLongitudeE6() / 1.0E6)); urlString.append(ie=UTF80om=0output=kml); Log.d(xxx, URL= + urlString.toString()); return urlString; } /** * create the connection to google url * * @param src * @param dest * @return */ private String connectToUrl(GeoPoint src, GeoPoint dest) { // get the kml (XML) doc. And parse it to get the // coordinates(direction // route). Document doc = null; HttpURLConnection urlConnection = null; URL url = null; try { url = new URL(createUrl(src, dest).toString()); urlConnection = (HttpURLConnection) url.openConnection(); urlConnection.setRequestMethod(GET); urlConnection.setDoOutput(true); urlConnection.setDoInput(true); urlConnection.connect(); DocumentBuilderFactory dbf = DocumentBuilderFactory .newInstance(); DocumentBuilder db = dbf.newDocumentBuilder(); doc = db.parse(urlConnection.getInputStream()); if (doc.getElementsByTagName(GeometryCollection) != null doc.getElementsByTagName(GeometryCollection) .getLength() 0) { return doc.getElementsByTagName(GeometryCollection).item( 0).getFirstChild().getFirstChild().getFirstChild() .getNodeValue(); } } catch (MalformedURLException e) { Log.d(test, e.getLocalizedMessage()); } catch (IOException e) { Log.d(test, e.getLocalizedMessage()); } catch (ParserConfigurationException e) { Log.d(test, e.getLocalizedMessage()); } catch (SAXException e) { Log.d(test, e.getLocalizedMessage()); } return null; } protected Void doInBackground(Void... arg0) { try { // get the current overlays present in the map ListOverlay overs = Collections.synchronizedList(mapView .getOverlays()); String path = connectToUrl(orig, dest); if (path != null) {
[android-developers] Re: Drawing 2D stuff on the screen in OpenGL over a 3D scene
Here's the standard method for a 3D game w/2D controls: onSurfaceChanged: this means you have a new GL context so it's a fresh state machine ready to be configured. set viewport and enable and configure things that will always be used, like texturing, texture coordinate arrays, vert arrays, erase color, etc you can set your projection matrix here if it's going to be fixed load textures, vbos and anything else into vram onDrawFrame: clear depth and color buffer for dynamic projection (like if FoV or near/far clip plane can change), switch to projection matrix, load identity and set. switch to modelview matrix set lookAt enable depth test // draw each totally opaque object sorted front to back for (GameObject gameObject : sortedGameObjects) { push matrix draw opaque parts of the object pop matrix } // draw alpha blended parts of objects sorts back to front enable blending for (GameObject gameObject : sortedGameObjects) { push matrix draw alpha parts of the object pop matrix } // draw HUD switch to projection matrix push matrix set ortho switch to modelview matrix push matrix load identity disable depth test // draw HUD components in orthographic screen space enable depth test pop matrix switch to projection matrix pop matrix // done - the way the matrix stack was handled here means the projection and modelview are exactly as they were before the HUD was drawn, so for the next frame, your projection doesn't need to be reset unless it's dynamic (changing fov or near/far clip) On Jun 27, 7:01 am, Navigateur naveen.c...@googlemail.com wrote: Can somebody take me step-by-step how to draw 2D stuff over a 3D scene (such as controls, etc.). What I've been doing so far has not been working (it only draws the 3D scene), which is (in every frame): draw the 3D scene as normal, projection matrix mode, load identity, call GLU.gluOrtho2D(gl, 0, myScreenWidthInPixels, 0, myScreenHeightInPixels), switch the array pointers (vertices and texture coords) to the ones for my 2D stuff, then drawElements with an appropriate index list. (then switch the array pointers back so the 3D stuff works again). I get nothing added to the screen (just the 3D stuff). Do I need to be doing something else for it to draw? Can somebody take me step-by-step? -- 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] Animating App Widgets
On Tue, Jun 22, 2010 at 6:37 AM, rams plram2...@gmail.com wrote: How can I implement this widget? I don't know anything about widgets, but based on posts on here, animation is not supported out of the box. You'd probably have schedule an alarm that would notify that it was time to change the image shown. Of course, you'd probably kill the user's battery doing this so think about whether this is really necessary. - TreKing - Chicago transit tracking app for Android-powered devices http://sites.google.com/site/rezmobileapps/treking -- 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 change the contrast and intensity of androind phone display programmatically?
On Wed, Jun 23, 2010 at 1:33 AM, SM shruti1...@gmail.com wrote: I want to change the contrast and intensity of my androind phone display programmatically, how can i do it? Look up brightness in the documentation. - TreKing - Chicago transit tracking app for Android-powered devices http://sites.google.com/site/rezmobileapps/treking -- 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] Double Click
On Mon, Jun 21, 2010 at 6:40 PM, Cameron Houston airca...@gmail.com wrote: Is there a way/setting/app capable of being able to double click on an Icon while browsing on the phone. You might try alternate browsers, like Dolphin. No idea if that will actually work though. Alternatively, you might investigate if there's another way of opening your calendar item instead of double clicking (right-clicking and selecting an option, for example). - TreKing - Chicago transit tracking app for Android-powered devices http://sites.google.com/site/rezmobileapps/treking -- 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] Filter for crapps (crap apps)
On Tue, Jun 22, 2010 at 9:16 AM, McDanish bennymcandr...@gmail.com wrote: Does anyone know if there is some sort of filter funktion, either in Andoid Market itself or in/as an app? Nope, but it's needed desperately. The amount of garbage in the market has rendered the Just In List absolutely useless for discovering interesting new apps. - TreKing - Chicago transit tracking app for Android-powered devices http://sites.google.com/site/rezmobileapps/treking -- 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 know if child activity exit by unexpected exception (onActivityResult() is not called)
On Wed, Jun 23, 2010 at 7:57 AM, Alexey Kryshen a.krys...@gmail.com wrote: If child activity started by the startActivityForResult() exit by unexpected exception the onActivityResult() is not called and I have no any ideas how can I handle this to get application working in a fail-safe manner ? You can register an uncaught exception handler to catch any exceptions that are not otherwise handled properly. When my code runs child activity with startActivityForResult() it awaits until onActivityResult() will be invoked to get working further, but onActivityResult() is not calling and my code is hang- up (logically). This is strange. AFAIK, if any activity in your stack crashes, your who Application comes down with it. You should not be stuck, especially since startActivityForResult() doesn't block - it just starts the child activity then waits for a return value in onActivityResult(). Unless you're doing something that prevents the app from functioning until a valid response is obtained. - TreKing - Chicago transit tracking app for Android-powered devices http://sites.google.com/site/rezmobileapps/treking -- 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 eclipse download link at https://dl-ssl.google.com/android/eclipse/ broken - please fix
On Tue, Jun 22, 2010 at 9:33 AM, Morex m...@orderlysoftware.com wrote: I want to get started with an Android application but can't download the plug-in. What are you trying and what errors are you getting? - TreKing - Chicago transit tracking app for Android-powered devices http://sites.google.com/site/rezmobileapps/treking -- 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: Starting the Market Application programatically
Thank you very much. It's exactly what I had hoped for. -Original Message- From: android-developers@googlegroups.com [mailto:android-develop...@googlegroups.com] On Behalf Of String Sent: Monday, June 28, 2010 9:08 AM To: Android Developers Subject: [android-developers] Re: Starting the Market Application programatically http://developer.android.com/guide/publishing/publishing.html#marketintent Be aware that substring matching is broken, last I heard, but the other query forms work. String On Jun 28, 1:06 pm, lloyd1949 lloydmcfarl...@comcast.net wrote: Is this possible? I have a free and a paid version of an application. From the FREE version I want to provide the ability to for the user to PURCHASE the paid version. I want to make it as simple as possible. I am thinking of Starting the market app and passing the identification of the PAID so that the Market app will take them right there. I am trying to make it as easy as posible. No searching etc. No I have no intent of doing the purchasing from within my app. I want to have them press [Get Paid Now] button and then I start the Market app which would then take them to my Paid Application in the store. Is this possible? Thanks in advance for all responses. -- 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 Database and PC Applications
Thanks everyone for your help, very useful :D On 21 June, 15:51, Steven Maitlall m.ste...@gmail.com wrote: There is a .NET Sync Framework that you could use with C#. http://msdn.microsoft.com/en-us/sync/default.aspx On Mon, Jun 21, 2010 at 10:33 AM, Mark Murphy mmur...@commonsware.comwrote: On Mon, Jun 21, 2010 at 10:30 AM, Boardy board.christop...@googlemail.com wrote: How can I get a PC application ideally in C# to be able to get the information out of the android device, is there a way that I can use the ADB without having to have the Android SDK installed on the PC. Have the Android application upload the data to a Web service. Have the C# application use the Web service. Or replace the C# desktop application with a Web application. -- Mark Murphy (a Commons Guy) http://commonsware.com|http://github.com/commonsguy http://commonsware.com/blog|http://twitter.com/commonsguy Android App Developer 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.comandroid-developers%2Bunsubs cr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Steven Marajhttp://www.marajservices.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Android eclipse download link at https://dl-ssl.google.com/android/eclipse/ broken - please fix
try http://dl-ssl.google.com/android/eclipse/ note the missing s on http /Richard On Jun 28, 5:38 pm, TreKing treking...@gmail.com wrote: On Tue, Jun 22, 2010 at 9:33 AM, Morex m...@orderlysoftware.com wrote: I want to get started with an Android application but can't download the plug-in. What are you trying and what errors are you getting? - TreKing - Chicago transit tracking app for Android-powered deviceshttp://sites.google.com/site/rezmobileapps/treking -- 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: Drawing 2D stuff on the screen in OpenGL over a 3D scene
Many many many thanks. I'll get back to you whether it works or not. I was still in projection matrix mode (and not modelview) before drawing the 2D stuff (from the OpenGL FAQ for drawing 2D controls). I'll tell you whether modelview works or not. Nightwolf - thanks, yeah I forgot to mention I did try that. On Jun 28, 5:10 pm, Robert Green rbgrn@gmail.com wrote: Here's the standard method for a 3D game w/2D controls: onSurfaceChanged: this means you have a new GL context so it's a fresh state machine ready to be configured. set viewport and enable and configure things that will always be used, like texturing, texture coordinate arrays, vert arrays, erase color, etc you can set your projection matrix here if it's going to be fixed load textures, vbos and anything else into vram onDrawFrame: clear depth and color buffer for dynamic projection (like if FoV or near/far clip plane can change), switch to projection matrix, load identity and set. switch to modelview matrix set lookAt enable depth test // draw each totally opaque object sorted front to back for (GameObject gameObject : sortedGameObjects) { push matrix draw opaque parts of the object pop matrix} // draw alpha blended parts of objects sorts back to front enable blending for (GameObject gameObject : sortedGameObjects) { push matrix draw alpha parts of the object pop matrix} // draw HUD switch to projection matrix push matrix set ortho switch to modelview matrix push matrix load identity disable depth test // draw HUD components in orthographic screen space enable depth test pop matrix switch to projection matrix pop matrix // done - the way the matrix stack was handled here means the projection and modelview are exactly as they were before the HUD was drawn, so for the next frame, your projection doesn't need to be reset unless it's dynamic (changing fov or near/far clip) On Jun 27, 7:01 am, Navigateur naveen.c...@googlemail.com wrote: Can somebody take me step-by-step how to draw 2D stuff over a 3D scene (such as controls, etc.). What I've been doing so far has not been working (it only draws the 3D scene), which is (in every frame): draw the 3D scene as normal, projection matrix mode, load identity, call GLU.gluOrtho2D(gl, 0, myScreenWidthInPixels, 0, myScreenHeightInPixels), switch the array pointers (vertices and texture coords) to the ones for my 2D stuff, then drawElements with an appropriate index list. (then switch the array pointers back so the 3D stuff works again). I get nothing added to the screen (just the 3D stuff). Do I need to be doing something else for it to draw? Can somebody take me step-by-step? -- 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] soft keyboard
I found this to work for me: getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_HIDDEN); (found here: http://stackoverflow.com/questions/1109022/how-to-close-hide-the-android-soft-keyboard ) On Mon, Jun 28, 2010 at 3:36 PM, Lieuwe lieuwe.elger...@gmail.com wrote: Hi, I've got a problem with my application in that the soft-keyboard is not being closed unless the user pushes the back button. I use several layouts which I load using the setContentView method of the application. Some layouts contain multiple EditText fields. The soft-keyboard pops up correctly when the entry boxes are being clicked, but never gets dismissed, even after I switch to a new layout using setContentView (instigated by on-screen push buttons). I found a way of apparently removing the keyboard using the InputManager class but how exactly does that work if I don't know which entry field opened/currently owns the keyboard? Is there a way of possibly invalidating a whole layout which would perhaps cause all resources (and hopefully the keyboard) to be cleared? As said before, I currently just use setContentView to load the next screen. Cheers -- 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- YuviDroid http://android.yuvalsharon.net -- 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] Capture home key event
On Wed, Jun 23, 2010 at 11:52 PM, Vishal k.vishaljais...@gmail.com wrote: I want to kill my application whenever the home key is pressed. Why, exactly? - TreKing - Chicago transit tracking app for Android-powered devices http://sites.google.com/site/rezmobileapps/treking -- 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] Design Question
On Thu, Jun 24, 2010 at 1:52 AM, davemeetsworld djbak...@gmail.com wrote: i was wondering what the best practice is for performing background tasks that return results in Android is? Your new best friend - AsyncTask. - TreKing - Chicago transit tracking app for Android-powered devices http://sites.google.com/site/rezmobileapps/treking -- 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's Launcher
On Thu, Jun 24, 2010 at 2:43 AM, Goodwin purerain2...@163.com wrote: As we known, there are 3 home screens in the android's default launcher In 2.1 there are 5 screens. . we can move the right screen or the left screen. In 2.1, there are 2 left screens and 2 right screens. and we don't know how many pages are in left-hand right hand sites . In 2.1, there are dots indicating how many screens are available in either direction. now, I found the Launcher source in the src/app/packages. But which xml shoul I modity and hown can I known the screen's move ? If you found the source, it shouldn't be much harder to track down what resources it's using and where the screen changing occurs. - TreKing - Chicago transit tracking app for Android-powered devices http://sites.google.com/site/rezmobileapps/treking -- 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: ItemizedOverlay using both onTap methods
On Thu, Jun 24, 2010 at 11:57 AM, Carlos Silva r3...@r3pek.org wrote: I don't really agree with this. OK, can you elaborate why not and how you believe the functions work? Any more info we can get on the Maps API, given the craptastic documentation, would benefit everyone. I use onTap(int) to detect if an overlayItem was clicked. Can you elaborate on how? The docs say By default, does nothing and returns false. Given nothing more than an index I'd love to know how you determine an item was clicked. And use onTap(point, mapview) to handle every other click on the map. I use the first to show a ballow, and the second to hide it. Again, would be great if you could elaborate on your methodology. - TreKing - Chicago transit tracking app for Android-powered devices http://sites.google.com/site/rezmobileapps/treking -- 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: Animating App Widgets
On Jun 22, 12:37 pm, rams plram2...@gmail.com wrote: Now I want to animate the widget (ImageView) every 100 ms I dont think AppWidgets will scale well for this case. That's correct, they won't. I have seen Custom Homescreens in previous Android SDK's. Should I have modify the Homescreen widget for doing this or is there any other way. A custom homescreen is overkill, IMHO; it would need to be a full- blown home screen replacement simply to implement your one widget. You might investigate whether any of the popular home screen replacements already in the market would support your functionality, and latch onto them. Personally, I'd advise using live wallpaper, in fact I think a weather live wallpaper could be quite cool. Only real disadvantage is that many devices (essentially all first-generation Android phones, regardless of OS version) can't use it, which does limit the market quite a bit in the near term. String -- 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 SDK and Helios - compatibility problems?
The Android plug-ins are compatible with Eclispe 3.6 Make sure you had Contact all update sites during install to find required software checked in when you installed them. I would delete the workspace (or try with a different one) to see if that helps. On Sun, Jun 27, 2010 at 8:04 PM, SChaser crotalistig...@gmail.com wrote: Are folks having success with Helios (Eclipse 3.6) and the latest SDK (r_06)? I am having problems getting the Eclipse DDMS to work;. It is missing most of its views (such as logcat) and complained about that the first time I ran it (but not since, so I don't have a list of what is going on. I had a previous working version with a prior Eclipse, but started from scratch with this one. The steps were: *Download and install (via unzip) Helios *Download and unzip files for SDK *Run SDK setup and download everything it would download. **It complained that some packages available were incompatible and it wouldn't download (or list) them *Install the Eclipse plug-in from https://dl-ssl.google.com/android/eclipse/ using the Eclipse new software dialog Is Helios incompatible? Or am I doing something wrong? 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 -- Xavier Ducrohet Android SDK Tech Lead Google Inc. Please do not send me questions directly. 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] Starting an AVD from a custom location
-sysdir cannot be used with AVDs. you can overide the location of the .android folder by setting an env var call ANDROID_SDK_HOME. In your case, you should try: $ ANDROID_SDK_HOME=/opt/development emulator -avd AVD1.6_HTC_SD Xav On Mon, Jun 28, 2010 at 1:55 AM, Patrick patrick.manges...@gmail.com wrote: Hallo! I want the android emulator to start a AVD from a non default location using the following command: ./android-sdk-linux_86/tools/emulator -sysdir /opt/ development/.android/avd/ -avd AVD1.6_HTC_SD The .android directory is a copy from the default .android directory from my homefolder... The emulator states the following: emulator: ERROR: unknown virtual device name: 'AVD1.6_HTC_SD' emulator: could not find virtual device named 'AVD1.6_HTC_SD' Any ideas? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Xavier Ducrohet Android SDK Tech Lead Google Inc. Please do not send me questions directly. 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] Filter for crapps (crap apps)
+1 for filtering. I think it would be pretty useful to be able to tag applications: picture viewer, web page launchers, etc and then have a preference section of AM that allows user filtering of those types. On Mon, Jun 28, 2010 at 9:25 AM, TreKing treking...@gmail.com wrote: On Tue, Jun 22, 2010 at 9:16 AM, McDanish bennymcandr...@gmail.comwrote: Does anyone know if there is some sort of filter funktion, either in Andoid Market itself or in/as an app? Nope, but it's needed desperately. The amount of garbage in the market has rendered the Just In List absolutely useless for discovering interesting new apps. - TreKing - Chicago transit tracking app for Android-powered devices http://sites.google.com/site/rezmobileapps/treking -- 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Shane Isbell (Founder of ZappMarket) http://apps.facebook.com/zappmarket/ -- 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] SSL Cert Issue javax.net.ssl.SSLException: Not trusted server certificate
Hey Guys, I get the following issue javax.net.ssl.SSLException: Not trusted server certificate when contacting a server via a 3G network only. Has anyone else seen this issue? Thanks guys, Tom -- 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: Filter for crapps (crap apps)
It would be useful to just have a flashlite, tip calculator, and sexy asian girl category subfolder. That would clean up about 80% of the flotsam and jetsam so we could scan the market for interesting new 'killer apps' we can't live without. Might find the next Visicalc in there for free. -- 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: Mapping (x,y) to (latitude,longitude)
I think your map center is giving you different values because you are checking it before it has animated/moved to the new position you have set... It's the same reason your getLatitudeSpan() was zero at the time. BUT.. if you are setting the map center anyway, you don't need to get it from the map, just use the coordinates you are setting the map center to, OR wait for the map to be finished moving.. and get all the values from there... Yes, I guess it's the same reason. The map isn't ready fast enough. My map center is actually the user position, so it will depend on the device coordinates, so I can't define any position for it. I'm trying to figure out a way to let the map finishing moving, before I can set a center, though I don't understand because it's getting the ''curentlocation'' coordinates just fine.. but the the mapCenter value is different. By the way.. do you set any zoom on your code? Which is the predefined zoom if you don't set a zoom at all? I have my code different from yours.. I guess more ''newbie'' like but it's kinda working.. I'm just having an issue with my server algorithm because besides the pictures being in that bound we've been talking about I want them to be shown only when they have a certain distance between them ( I called it threshold) .. e.g: if 2 pictures have too close latitude or longitude just one of them is shown. I had this set on the server but I'm dealing with the minimal size of the distance between picture 1 and picture 2, because it depends on the zoom. On a lower zoom (higher view = less pictures = bigger threshold), on a bigger zoom (closer view = more pictures = smaller threshold) ... Basically I think I can summarize my objective with this link: http://myhome.bankofamerica.com/?findmlo=94114#/findmlo/94105 It's what I'm trying to achieve. I know that after all this is done I'll still have to deal with a listener for panning or zooming lol.. good luck for me On Jun 28, 2010, at 12:19 AM, Brad Gies wrote: I think your map center is giving you different values because you are checking it before it has animated/moved to the new position you have set... It's the same reason your getLatitudeSpan() was zero at the time. BUT.. if you are setting the map center anyway, you don't need to get it from the map, just use the coordinates you are setting the map center to, OR wait for the map to be finished moving.. and get all the values from there... I think it's safe to assume that if your getLatitudeSpan() is zero... then your getMapCenter() is probably not accurate either... but I don't know that for sure. Here's how I call it... The below has a couple of my own functions in it to set parameters etc... but you would just substitute it for whatever you need to do. After the JSON object is created I just assign it to both my Map Overlay and a list view, so I can view the info on either a Map or in a list. The line: sharedFunctions.SendMessage(handler, HandlerReturnMessage, param1, param2, retStr); sends the returned string to a handler in the calling activity which deals with it like this : The HANDLER IN MY ACTIVITY.. Handler handler = new Handler() { @Override public void handleMessage(Message msg) { try { setProgressBarIndeterminateVisibility(false); String res = (String) msg.obj; switch (msg.what) { case BistroSharedStatic.MESSAGE_LOCATIONS: { try { resultsJSON = new JSONArray (res); } catch (Exception ex) { resultsJSON = new JSONArray(); // just so it's not null. } break; } etc SENDING TO THE SERVER: try { InputStream is = null; DefaultHttpClient httpclient = new DefaultHttpClient(); HttpPost httpPost = new HttpPost(urlString); if (needSearchParams) { String searchParams = getSearchParams(); searchParams = URLEncoder.encode(searchParams, HTTP.UTF_8); nvps.add(new BasicNameValuePair(category, searchParams)); } httpPost.setEntity(new UrlEncodedFormEntity(nvps, HTTP.UTF_8)); HttpResponse response = httpclient.execute(httpPost); HttpEntity entity = response.getEntity(); if (entity != null) { try { is = entity.getContent(); String line; StringBuilder builder = new StringBuilder(); BufferedReader reader = new BufferedReader(new InputStreamReader(is), 8192);
[android-developers] How to get the license type of each installed package
Hello all, Not all the packages have license information and I am not sure if those that do have that on the manifest but it doesn't seem like it. Therefore, is there a way to extract the license of all the packages installed on a Android system? 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] App failing to load on Nexus One
On Wed, Jun 23, 2010 at 6:59 PM, SilverStr d...@vulscan.com wrote: Anyone have any ideas? The log also says: Make sure to create a MAIN intent- filter for the corresponding activity or use the exported attribute for this activity. So maybe try that? - TreKing - Chicago transit tracking app for Android-powered devices http://sites.google.com/site/rezmobileapps/treking -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] How to get the license type of each installed package
On Mon, Jun 28, 2010 at 4:45 PM, Nando Android nando.andr...@gmail.com wrote: Not all the packages have license information and I am not sure if those that do have that on the manifest but it doesn't seem like it. Therefore, is there a way to extract the license of all the packages installed on a Android system? What license? I see nothing in the manifest where you would put a license. -- 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
[android-developers] XML Parsing Strange Error
Hi I am trying to parse XML with a simple sax parser. Interestingly i am able to see desired output in the emulator. but when i run the program on a device program shows no output. I tried many different way for example putting the XML file in a raw folder but every time no out put on device. Tried this on two different handset and everywhere get the same error. Code SAXParser saxParser = SAXParserFactory.newInstance().newSAXParser(); DefaultHandler handler = new DefaultHandler() { boolean id = false; boolean stationName = false; boolean latitude = false; boolean longitude = false; boolean ArivalTime = false; boolean Train = false; boolean bound = false; @Override public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException { if (qName.equalsIgnoreCase(id)) { id = true; } if (qName.equalsIgnoreCase(myName)) { myName = true; } } @Override public void characters(char ch[], int start, int length) throws SAXException { tv=(TextView)findViewById(R.id.text); String st=new String(); if (id) { tv.append(new String(ch, start, length)); id = false; } if (myName) { tv.append(new String(ch, start, length)); myName = false; } System.out.println(tv.getText()); } }; saxParser.parse(XML_FILE_URL, handler); /Code -- 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] App failing to load on Nexus One
Can you post your manifest file? 29.06.2010 0:45 пользователь TreKing treking...@gmail.com написал: On Wed, Jun 23, 2010 at 6:59 PM, SilverStr d...@vulscan.com wrote: Anyone have any ideas? The log also says: Make sure to create a MAIN intent- filter for the corresponding activity or... So maybe try that? - TreKing - Chicago transit tracking app for Android-powered devices http://sites.google.com/site/rezmobileapps/treking -- You received this message because you are subscribed to the Google Groups Android Developers ... -- 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: Reading from XML
How would I go about storing everything in between the db to a new custom object? for example I have a custom object with parameters (name, street, long, lat) and at every db tag, I want it to store each element into a variable and then when it hits the close db tag, the variables can be added to an arraylist like this customObjectarraylist.add(new CustomObject(name,street,long,lat)). Then when i populate the markers I can just iterate through the arraylist. Any help on this would be much appreciated! On Jun 27, 3:42 pm, chaitanya vengeance...@gmail.com wrote: How about using the SAXParser ? The SAXParser will throw events for start of a tag and end of a tag. Plus it is much more faster than a DOM Parser. For every head element i.e. in your case db have a flag and store the value in the name tag in either a StringBuilder or a custom object which contains information about overlays. On Jun 27, 10:52 am, Michael michael...@gmail.com wrote: Hello, on my app I will be reading in from an XML file thats formatted something like this database db1 db namename here/name streetstreet here/street long longitude here/long lat latitude here /lat /db db name new name here /name street new street here /street long new longitude here /long lat new latitude here /latitude /db /db1 /database With this information I need to create Overlay Markers on the map (using latitude and longitude) and when they're clicked on I need it to display the name with the address. Depending on the conditions of where the map is, the number of markers will be different so I need a dynamic model for reading in these markers. If I were to use Document methods like getElementById(String name) then I couldn't call getElementById(name) because it would likely try to call just the first name/name or give an unintended result. Any help on this would be much appreciated! Michael -- 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] Widget inside a pre-existing application
I've created a complex application that uses SQLite and would like to give the user an option to install a very simple widget on the homescreen (just a number taken from the database). Do I have to create a new .apk just for the widget? I've tried to cut- and-paste the WordWidget example but it takes over the application (does nothing when started) and after installing the widget any click on it gives an exception View not attached to window manager. If I have to create a new .apk just for the widget, will it be able to access directly the databases from my main application? 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
Re: [android-developers] Widget inside a pre-existing application
You can have an application + homescreen widget in a single .apk. Make sure your main application has the intent-filter android:name=android.intent.action.MAIN and android:name=android.intent.category.LAUNCHER. Your widget receivers/activities instead shouldn't have any intent-filters with name MAIN (they should of course have the APPWIDGET_UPDATE/APPWIDGET_CONFIGURE/..). Yuvi -- YuviDroid http://android.yuvalsharon.net On Mon, Jun 28, 2010 at 11:59 PM, Pinheiro rui.c.pinhe...@gmail.com wrote: I've created a complex application that uses SQLite and would like to give the user an option to install a very simple widget on the homescreen (just a number taken from the database). Do I have to create a new .apk just for the widget? I've tried to cut- and-paste the WordWidget example but it takes over the application (does nothing when started) and after installing the widget any click on it gives an exception View not attached to window manager. If I have to create a new .apk just for the widget, will it be able to access directly the databases from my main application? 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.comandroid-developers%2bunsubscr...@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] Filter for crapps (crap apps)
Agreee!! +1 (or +1000...) On Mon, Jun 28, 2010 at 10:03 PM, Shane Isbell shane.isb...@gmail.comwrote: +1 for filtering. I think it would be pretty useful to be able to tag applications: picture viewer, web page launchers, etc and then have a preference section of AM that allows user filtering of those types. On Mon, Jun 28, 2010 at 9:25 AM, TreKing treking...@gmail.com wrote: On Tue, Jun 22, 2010 at 9:16 AM, McDanish bennymcandr...@gmail.comwrote: Does anyone know if there is some sort of filter funktion, either in Andoid Market itself or in/as an app? Nope, but it's needed desperately. The amount of garbage in the market has rendered the Just In List absolutely useless for discovering interesting new apps. - TreKing - Chicago transit tracking app for Android-powered devices http://sites.google.com/site/rezmobileapps/treking -- 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Shane Isbell (Founder of ZappMarket) http://apps.facebook.com/zappmarket/ -- 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- YuviDroid http://android.yuvalsharon.net -- 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: Mapping (x,y) to (latitude,longitude)
I set the zoom level at 15 if I don't already have it. BUT.. I save the zoom level, latitude, longitude and a bunch of other stuff to Preferences in the onPause and restore it in onResume, so the only time I don't have something to work with is the first time a user uses that activity. I've been doing it that way for so long I don't remember what the default zoom level is... but I think it's 16. I remember that I thought it was off by one from what I wanted. On 28/06/2010 1:40 PM, Pedro Teixeira wrote: I think your map center is giving you different values because you are checking it before it has animated/moved to the new position you have set... It's the same reason your getLatitudeSpan() was zero at the time. BUT.. if you are setting the map center anyway, you don't need to get it from the map, just use the coordinates you are setting the map center to, OR wait for the map to be finished moving.. and get all the values from there... Yes, I guess it's the same reason. The map isn't ready fast enough. My map center is actually the user position, so it will depend on the device coordinates, so I can't define any position for it. I'm trying to figure out a way to let the map finishing moving, before I can set a center, though I don't understand because it's getting the ''curentlocation'' coordinates just fine.. but the the mapCenter value is different. By the way.. do you set any zoom on your code? Which is the predefined zoom if you don't set a zoom at all? I have my code different from yours.. I guess more ''newbie'' like but it's kinda working.. I'm just having an issue with my server algorithm because besides the pictures being in that bound we've been talking about I want them to be shown only when they have a certain distance between them ( I called it threshold) .. e.g: if 2 pictures have too close latitude or longitude just one of them is shown. I had this set on the server but I'm dealing with the minimal size of the distance between picture 1 and picture 2, because it depends on the zoom. On a lower zoom (higher view = less pictures = bigger threshold), on a bigger zoom (closer view = more pictures = smaller threshold) ... Basically I think I can summarize my objective with this link: http://myhome.bankofamerica.com/?findmlo=94114#/findmlo/94105 It's what I'm trying to achieve. I know that after all this is done I'll still have to deal with a listener for panning or zooming lol.. good luck for me On Jun 28, 2010, at 12:19 AM, Brad Gies wrote: I think your map center is giving you different values because you are checking it before it has animated/moved to the new position you have set... It's the same reason your getLatitudeSpan() was zero at the time. BUT.. if you are setting the map center anyway, you don't need to get it from the map, just use the coordinates you are setting the map center to, OR wait for the map to be finished moving.. and get all the values from there... I think it's safe to assume that if your getLatitudeSpan() is zero... then your getMapCenter() is probably not accurate either... but I don't know that for sure. Here's how I call it... The below has a couple of my own functions in it to set parameters etc... but you would just substitute it for whatever you need to do. After the JSON object is created I just assign it to both my Map Overlay and a list view, so I can view the info on either a Map or in a list. The line: sharedFunctions.SendMessage(handler, HandlerReturnMessage, param1, param2, retStr); sends the returned string to a handler in the calling activity which deals with it like this : The HANDLER IN MY ACTIVITY.. Handler handler = new Handler() { @Override public void handleMessage(Message msg) { try { setProgressBarIndeterminateVisibility(false); String res = (String) msg.obj; switch (msg.what) { case BistroSharedStatic.MESSAGE_LOCATIONS: { try { resultsJSON = new JSONArray(res); } catch (Exception ex) { resultsJSON = new JSONArray(); // just so it's not null. } break; } etc SENDING TO THE SERVER: try { InputStream is = null; DefaultHttpClient httpclient = new DefaultHttpClient(); HttpPost httpPost = new HttpPost(urlString); if (needSearchParams) { String searchParams = getSearchParams(); searchParams = URLEncoder.encode(searchParams, HTTP.UTF_8); nvps.add(new BasicNameValuePair(category, searchParams)); } httpPost.setEntity(new
[android-developers] Re: Drawing 2D stuff on the screen in OpenGL over a 3D scene
It works. I do it on every game :) Just be careful about the matrix stack and you'll be fine. On Jun 28, 12:16 pm, Navigateur naveen.c...@googlemail.com wrote: Many many many thanks. I'll get back to you whether it works or not. I was still in projection matrix mode (and not modelview) before drawing the 2D stuff (from the OpenGL FAQ for drawing 2D controls). I'll tell you whether modelview works or not. Nightwolf - thanks, yeah I forgot to mention I did try that. On Jun 28, 5:10 pm, Robert Green rbgrn@gmail.com wrote: Here's the standard method for a 3D game w/2D controls: onSurfaceChanged: this means you have a new GL context so it's a fresh state machine ready to be configured. set viewport and enable and configure things that will always be used, like texturing, texture coordinate arrays, vert arrays, erase color, etc you can set your projection matrix here if it's going to be fixed load textures, vbos and anything else into vram onDrawFrame: clear depth and color buffer for dynamic projection (like if FoV or near/far clip plane can change), switch to projection matrix, load identity and set. switch to modelview matrix set lookAt enable depth test // draw each totally opaque object sorted front to back for (GameObject gameObject : sortedGameObjects) { push matrix draw opaque parts of the object pop matrix} // draw alpha blended parts of objects sorts back to front enable blending for (GameObject gameObject : sortedGameObjects) { push matrix draw alpha parts of the object pop matrix} // draw HUD switch to projection matrix push matrix set ortho switch to modelview matrix push matrix load identity disable depth test // draw HUD components in orthographic screen space enable depth test pop matrix switch to projection matrix pop matrix // done - the way the matrix stack was handled here means the projection and modelview are exactly as they were before the HUD was drawn, so for the next frame, your projection doesn't need to be reset unless it's dynamic (changing fov or near/far clip) On Jun 27, 7:01 am, Navigateur naveen.c...@googlemail.com wrote: Can somebody take me step-by-step how to draw 2D stuff over a 3D scene (such as controls, etc.). What I've been doing so far has not been working (it only draws the 3D scene), which is (in every frame): draw the 3D scene as normal, projection matrix mode, load identity, call GLU.gluOrtho2D(gl, 0, myScreenWidthInPixels, 0, myScreenHeightInPixels), switch the array pointers (vertices and texture coords) to the ones for my 2D stuff, then drawElements with an appropriate index list. (then switch the array pointers back so the 3D stuff works again). I get nothing added to the screen (just the 3D stuff). Do I need to be doing something else for it to draw? Can somebody take me step-by-step? -- 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: Mapping (x,y) to (latitude,longitude)
When I get the current location lat/long it gives me back the wrong number.. if the center is for example : 14,324234 23,432557 it delivers 1400 2300 That's why my code is all messed up.. I never got the center right. On Jun 28, 2010, at 11:17 PM, Brad Gies wrote: I set the zoom level at 15 if I don't already have it. BUT.. I save the zoom level, latitude, longitude and a bunch of other stuff to Preferences in the onPause and restore it in onResume, so the only time I don't have something to work with is the first time a user uses that activity. I've been doing it that way for so long I don't remember what the default zoom level is... but I think it's 16. I remember that I thought it was off by one from what I wanted. On 28/06/2010 1:40 PM, Pedro Teixeira wrote: I think your map center is giving you different values because you are checking it before it has animated/moved to the new position you have set... It's the same reason your getLatitudeSpan() was zero at the time. BUT.. if you are setting the map center anyway, you don't need to get it from the map, just use the coordinates you are setting the map center to, OR wait for the map to be finished moving.. and get all the values from there... Yes, I guess it's the same reason. The map isn't ready fast enough. My map center is actually the user position, so it will depend on the device coordinates, so I can't define any position for it. I'm trying to figure out a way to let the map finishing moving, before I can set a center, though I don't understand because it's getting the ''curentlocation'' coordinates just fine.. but the the mapCenter value is different. By the way.. do you set any zoom on your code? Which is the predefined zoom if you don't set a zoom at all? I have my code different from yours.. I guess more ''newbie'' like but it's kinda working.. I'm just having an issue with my server algorithm because besides the pictures being in that bound we've been talking about I want them to be shown only when they have a certain distance between them ( I called it threshold) .. e.g: if 2 pictures have too close latitude or longitude just one of them is shown. I had this set on the server but I'm dealing with the minimal size of the distance between picture 1 and picture 2, because it depends on the zoom. On a lower zoom (higher view = less pictures = bigger threshold), on a bigger zoom (closer view = more pictures = smaller threshold) ... Basically I think I can summarize my objective with this link: http://myhome.bankofamerica.com/?findmlo=94114#/findmlo/94105 It's what I'm trying to achieve. I know that after all this is done I'll still have to deal with a listener for panning or zooming lol.. good luck for me On Jun 28, 2010, at 12:19 AM, Brad Gies wrote: I think your map center is giving you different values because you are checking it before it has animated/moved to the new position you have set... It's the same reason your getLatitudeSpan() was zero at the time. BUT.. if you are setting the map center anyway, you don't need to get it from the map, just use the coordinates you are setting the map center to, OR wait for the map to be finished moving.. and get all the values from there... I think it's safe to assume that if your getLatitudeSpan() is zero... then your getMapCenter() is probably not accurate either... but I don't know that for sure. Here's how I call it... The below has a couple of my own functions in it to set parameters etc... but you would just substitute it for whatever you need to do. After the JSON object is created I just assign it to both my Map Overlay and a list view, so I can view the info on either a Map or in a list. The line: sharedFunctions.SendMessage(handler, HandlerReturnMessage, param1, param2, retStr); sends the returned string to a handler in the calling activity which deals with it like this : The HANDLER IN MY ACTIVITY.. Handler handler = new Handler() { @Override public void handleMessage(Message msg) { try { setProgressBarIndeterminateVisibility(false); String res = (String) msg.obj; switch (msg.what) { case BistroSharedStatic.MESSAGE_LOCATIONS: { try { resultsJSON = new JSONArray (res); } catch (Exception ex) { resultsJSON = new JSONArray(); // just so it's not null. } break; } etc SENDING TO THE SERVER: try { InputStream is = null; DefaultHttpClient httpclient = new DefaultHttpClient(); HttpPost httpPost = new HttpPost(urlString); if
[android-developers] Re: Widget inside a pre-existing application
Thanks, YuviDroid! -- 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] onclick open new view
I am trying to create a list view where each item will open up a new view and display a picture and text describing the item when said item is selected. I am working with this tutorial novice-tutorials-f8/opening-windows-i-e-webbrowser-reacting-on-clicks- t22.html?hilit=reacting%20on%20Clicks so is there a way i can use this code to open up a new view [co...@override protected void onListItemClick(ListView l, View v, int position, long id){ super.onListItemClick(l, v, position, id); // Get the item that was clicked Object o = this.getListAdapter().getItem(position); String keyword = o.toString(); // Create an VIEW intent Intent myIntent = null; // The intent will open our anddev.org-board and search for the keyword clicked. myIntent = new Intent(android.intent.action.VIEW, Uri.parse ( + keyword + ) ); // Start the activity startActivity(myIntent); } }[/code] -- 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: onclick open new view
realized i didn't give the full url of the tut i was using http://www.anddev.org/novice-tutorials-f8/opening-windows-i-e-webbrowser-reacting-on-clicks-t22.html?hilit=reacting%20on%20Clicks -- 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] Changing MAIN activity mucks up application
I recently added a new activity to my app, acting as a splash offering info to the user. Some users complained that after the upgrade, it's mucked up the app (for want of a better word). I tested it loads, but never found a problem on 3 devices I tried it on. Now, I'm working on a new release, and have actually decided to lose that activity, and return to the way it was before. I notice that I now have a similar problem on my older 1.5 device, but not on my 2.0 device... linked application not installed on phone or something to that affect. Is there anything I can do to avoid this problem? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Why is it that moderators never accept my questions?
I'm assuming you'll see this, but I'm just extremely curious. It's a pain since I really can't find the answer for my questions anywhere else, and this seems to be the best place to ask as there are actual Google developers here. 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: Why is it that moderators never accept my questions?
Well this is ironic. Ignore this then. I suppose questions no longer need moderator approval. On Jun 28, 7:40 pm, John Oliver shreddedched...@gmail.com wrote: I'm assuming you'll see this, but I'm just extremely curious. It's a pain since I really can't find the answer for my questions anywhere else, and this seems to be the best place to ask as there are actual Google developers here. 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] How do I change the textColorPrimary in a theme?
I'm changing the theme of an activity in onCreate using setTheme (I'm doing that even before calling super.onCreate(), as this is supposed to be more reliable). It does work in the sense that it changes the background and foreground colors. However, my layout has a few elements that use styles like textAppearanceLarge. Now Android's textAppearanceLarge internally uses the textPrimaryColor - which is still unchanged by my theme. I tried to override the primary text color in my theme, but that doesn't seem to work. Here is the crucial part of the theme: style name=Theme.MyApp.White item name=android:background@android:color/white/item item name=android:textColor#00/item /style The background appears white, plain TextViews appear black... but TextViews using textAppearanceLarge are white, and as such invisible (white on white). I tried things like this: item name=android:ColorPrimary#00/item item name=android:textColorPrimary#00/item item name=android:attr/textColorPrimary#00/item But none of those do anything. What's the magic trick? -- 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] Launch the WebBrowser with an intent (containing url) and then close it automatically?
I'm launching a webbrowser via an intent, which allows my app user to login to Google Docs in a 2-legged oauth dance. This works fine, and the browser callback comes to my app with the right authentication string. I just want to be able to kill that browser window once we are done - having it sitting there is confusing and messy. How can I kill a browser window I started up? -- 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: rtsp client?
With certain types of well formed RTSP streams the mediaplayer class can play it directly. http://m.youtube.com is a great example of some well formed feeds, but most RTSP feeds from the net seem to work fine. I've also managed to get ffserver streaming fine to it using H.264. On Mon, Jun 28, 2010 at 7:28 PM, MobDev developm...@mobilaria.com wrote: afaik you can directly feed that trsp url to the MediaPlayer class... On 28 jun, 12:33, chas__123 charlie.nug...@gmail.com wrote: Hi could someone say if android supports an RTSP stack? We've an RTSP server that we'd like to stream video to an android rtsp client if thats possible 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How to determine whether a ScrollView needs to scroll?
Hello to all, How can I track out if a ScrollView needs to scroll or not? I need to draw a particular View according to this condition. What I'm asking is the same condition that makes ScrollView's scrolling bar visible or not, but in this case I want to draw another View, not just the scrolling bar. Thanks a lot for your help, Pepi -- 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: rtsp client?
Hi, folks Are there any media player in Android can play HTTP stream media files? thanks On Tue, Jun 29, 2010 at 9:10 AM, Andy Savage a...@bluewire.net.nz wrote: With certain types of well formed RTSP streams the mediaplayer class can play it directly. http://m.youtube.com is a great example of some well formed feeds, but most RTSP feeds from the net seem to work fine. I've also managed to get ffserver streaming fine to it using H.264. On Mon, Jun 28, 2010 at 7:28 PM, MobDev developm...@mobilaria.com wrote: afaik you can directly feed that trsp url to the MediaPlayer class... On 28 jun, 12:33, chas__123 charlie.nug...@gmail.com wrote: Hi could someone say if android supports an RTSP stack? We've an RTSP server that we'd like to stream video to an android rtsp client if thats possible 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.comandroid-developers%2bunsubscr...@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.comandroid-developers%2bunsubscr...@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: Mapping (x,y) to (latitude,longitude)
Re: If the center is for example : 14,324234 23,432557 it delivers 1400 2300 Please post the essential code. For example, when I try: GeoPoint centerPoint = new GeoPoint(37762336,-122435640); ... mapView.getController().setCenter(centerPoint); mapView.getController().setZoom(16); ... Log.i(TAG, center: + mapView.getMapCenter().getLatitudeE6() + , + mapView.getMapCenter().getLongitudeE6()); I see this in logcat: 06-28 18:57:08.278: INFO/MapDroid(3102): center: 37762336,-122435640 -- 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: Reading from XML
Well, it sounds like you're doing it correctly with SAX: in the endElement() method, test for if (localName.equals(db)) { ...}, and add the new object to the list. What error are you getting when you do it that way? -- 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] XML Parsing Strange Error
I think you have two errors: 1) In the characters() method, you should append the given character span to a StringBuffer or StringBuilder (which you reset for each startElement: @Override public void characters(char[] ch, int offset, int count) { sb.append(ch, offset, count); } 2) Perform the data collection in the endElement method. The problem may well be that since you are setting id and myName false after just getting a part of the text node content, you're not getting the full content. If you want I can explain how to use the characters() method correctly. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Why Monkey was stopped by Error: RemoteException while injecting event. ?
Hi buddies, I am doing monkey test for my APP, and I meet RemoteException many times. I don't know why remote-invocation errors occurs. Has anyone experienced such exception? Monkey Log snippet: :Sending Pointer ACTION_MOVE x=-1.0 y=-3.0 :Sending Pointer ACTION_DOWN x=322.0 y=77.0 :Sending Pointer ACTION_UP x=322.0 y=77.0 :Sending Pointer ACTION_DOWN x=299.0 y=488.0 ** Error: RemoteException while injecting event. Events injected: 11088 :Dropped: keys=0 pointers=2 trackballs=0 flips=0 ## Network stats: elapsed time=1511978ms (1511978ms mobile, 0ms wifi, 0ms not connected) ** System appears to have crashed at event 11088 of 56000 using seed 25194847 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: got a problem to learn Android
I have to disagree. Sun's tutorials ignore far too many really basic pedagogical principles to be the best. But I still use them -- and advise others to use them, Why? Because they are the most up-to-date freely available tutorials on the web. They most likely always will be. But let's not confuse that with 'best'. That they are not. They are not even close. A tutorial that pay more attention to basic pedagogy is http://www.webbasedprogramming.com/Java-1.2-Unleashed/. Unfortunately, it is quite dated. But that is exactly why I so strongly recommend using both Sun's and another, such as this Java 1.2 Unleashed. Also good and not quite as out of date, Bruce Eckel's Thinking in Java. The 3rd edition is at http://www.mindview.net/Books/TIJ/ On Jun 27, 2:45 am, Navigateur naveen.c...@googlemail.com wrote: The best Java tutorials are the Sun The Java Tutorials on the internet. Since Android uses the Java programming language but uses a different virtual machine, you can overlook some of the JVM-related comments in the tutorials but programming is the same in every language, so what you learn in Java, you can translate over to any other language, and develop in that also. On Jun 25, 3:02 am, ben linus benzhe...@gmail.com wrote: thank you for the book you recommended,i will read it seriously. 2010/6/24 MobDev developm...@mobilaria.com you can buy a book, and even though this might be wrongly interpreted as some kind of publicity I'd like to advise you to buy Mark Murphy's books. He has a beginners version and an advanced one, and in my opinion they are very very understandable (I have read some very techincal Android books as well, but those became very boring very fast)... http://commonsware.com/ On 22 jun, 11:13, ben linus benzhe...@gmail.com wrote: Hi , Does anyone can tell me how to master android fast, i am a beginner. The official doc is so tedious, i have no clue to learn it. expect your reply and thanks for 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.comandroid-developers%2bunsubscr...@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] Why Monkey was stopped by Error: RemoteException while injecting event. ?
As the last line says, this is usually because the system process has crashed. On Mon, Jun 28, 2010 at 7:31 PM, Jerome Deng deng.jer...@gmail.com wrote: Hi buddies, I am doing monkey test for my APP, and I meet RemoteException many times. I don't know why remote-invocation errors occurs. Has anyone experienced such exception? Monkey Log snippet: :Sending Pointer ACTION_MOVE x=-1.0 y=-3.0 :Sending Pointer ACTION_DOWN x=322.0 y=77.0 :Sending Pointer ACTION_UP x=322.0 y=77.0 :Sending Pointer ACTION_DOWN x=299.0 y=488.0 ** Error: RemoteException while injecting event. Events injected: 11088 :Dropped: keys=0 pointers=2 trackballs=0 flips=0 ## Network stats: elapsed time=1511978ms (1511978ms mobile, 0ms wifi, 0ms not connected) ** System appears to have crashed at event 11088 of 56000 using seed 25194847 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.comandroid-developers%2bunsubscr...@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] Passing data with PendingIntent
I would like to create some home screen app widgets that are entry points into an application. I can put a button in the app widget that uses setOnClickPendingIntent to start the activity. The problem occurs when I want to have two of these app widgets that are entry points to different parts of the activity. I need to be able to pass data into the activity that will distinguish these. Since both app widgets use a PendingIntent that starts the same activity, the two PendingIntents are shared and I can't reliably set extras for the corresponding intents. Any ideas how to solve this problem? -- 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