Re: [android-developers] getIntent().removeExtra() in Activity doesn't work for android:launchmode=“singleTask”?
hi boss On 9/18/11, Pritam pritamsha...@gmail.com wrote: 0 down vote favorite share [fb] share [tw] I am relaunching my HomeActivity and setting an extra relaunchstatus in the Intent. In Activity's onCreate() method I check this value, if present, show some alert. The launchmode for this activity is android:launchmode=singleTask. The issue comes after the user sees this alert and close it and again close the activity by pressing Back button. Now if he starts it from Recent list of apps by long pressing 'Home' button, then the same intent which had an extra relaunchstatus in it is used and again the alert comes. This keeps on as long as user comes from the recent items (OK, may be recent launch apps uses the same intent which had the extra relaunchstatus set in it). So I tried to remove this extra by handling BACK_KEY press just before the activity finishes itself, using getIntent().removeExtra(relaunchstatus) , still this extra exists in the new launch from Recent items. However this is not the case if I start the app from launcher menu icon. Also, I finish my activity before relaunching, in this particular case. Hence its onCreate() is called instead of onNewIntent() as it do not exist in the task stack. In other cases I need it to reuse, so cannot remove the singleTask option So If Activity's getIntent() is giving you a copy of Intent that launched it, its not like a reference to same Intent object on which changes will be permanent. If this is the case, then we will need to do it from current device GUI (like HTC Sense etc. ) , whose recent items are bind to that intent , which may not be possible ? One way is to set setFlags(Intent.FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS), while restarting it again. So for this case it won't appear in recent menu, still there needs to be some other 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 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to 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: What is the sorting order on Android Market?
On Sat, Sep 17, 2011 at 8:07 PM, sblantipodi perini.dav...@dpsoftware.orgwrote: why something like that should be a secret? every market has a clear sorting policy why android market doesn't have a sorting policy? The answer to this is the same. is this a way to promote some apps instead of another? I don't know what you mean by promote. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: What is the sorting order on Android Market?
From what I guess that while publishing the app, you choose a category, and your app will appear in this category. Now it may be too down the list, that is something related to SEO part similar to search engines, and may depend on many factors other than ratings, like number of downloads, active downloads, total user reviews, etc. and all that would obviously never will be openly shared and will keep changing. Sometimes it may happen things like, http://techcrunch.com/2011/09/12/googles-auto-correct-killed-the-launch-of-our-android-app/, though now fixed. On Sep 17, 9:46 pm, sblantipodi perini.dav...@dpsoftware.org wrote: Hi all... Is there someone who can help me understanding how android market sort the apps? One of my financial apps has 4.5stars, it has more download than other apps but it isn't displayed in the financial section of the market. Why? How the market sort the apps? 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] Re: Ridiculous Publisher Stats - Anyone had enough???
On Sat, Sep 17, 2011 at 9:16 PM, LackeySoft g...@lackeysoft.com wrote: Anyone try Google Analytics within your app? Yes. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Ynt: Gallery view image zoom option in multi touch..
Hi, Sorry for the delay im tried your code its showing error on the getScaleX() and getScaleY() methods. If u dont any other idea? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to 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: Share View as Image
I found a solution. It was the created images file permission. I just needed file.setReadable(true, false); -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to 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: Running ui thread from another thread
thank you so much for your information Mark . On Sep 16, 4:57 am, Mark Murphy mmur...@commonsware.com wrote: On Fri, Sep 16, 2011 at 12:26 AM, Logesh rajendren loges...@gmail.com wrote: Is there any way to run a UI thread from another class ? You don't run a UI thread. If you mean run some code on the UI thread, use runOnUiThread(), or post(), or postDelayed(), or a Handler, or AsyncTask. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy Android 3.1 Programming Books:http://commonsware.com/books -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Running ui thread from another thread
Thank you Blake . On Sep 16, 9:56 am, blake blake.me...@gmail.com wrote: Logesh, Nearly all of your code runs on the UI thread, unless you do something, specifically, to arrange otherwise (the list of tools that Mark gives). If you are literally trying to do what your message suggests -- run a UI-like thread from somewhere -- have a look at Looper. -blake Programming Android, FTW!http://oreilly.com/catalog/0636920010364 On Sep 15, 9:26 pm, Logesh rajendren loges...@gmail.com wrote: Is there any way to run a UI thread from another class ? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to 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: OpenGL ES 2.0 question
I do not understand step 5) create a framebuffer and bind it to the texture from #3 do you call *glFramebufferTexture *attaching texture as GL_COLOR_ATTACHMENT* i* or what? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to 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] onTouchEvent not called on every touch motion
I want to let a user smoothly draw elements with his finger and avoid any lags as follows: public boolean onTouchEvent(MotionEvent event) { float x = event.getX(); float y = event.getY(); switch (event.getAction()) { case MotionEvent.ACTION_DOWN: mCanvas.drawBitmap(primitive, x, y, mPaint); invalidate(); break; case MotionEvent.ACTION_MOVE: mCanvas.drawBitmap(primitive, x, y, mPaint); invalidate(); break; case MotionEvent.ACTION_UP: mCanvas.drawBitmap(primitive, x, y, mPaint); invalidate(); break; } return true; } } Using android SDK I find onTouchEvent is not called for every motion event. This results in drawing of a bitmap only at the points when the motion event is detected. I can do this very easily using iPhone SDK . Can anyone confirm if this is a limitation in Android or if there is a way we can increase the rate of motion events? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to 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] What is wrong with this code?
(Button)findViewById(R.id.start).setOnClickListener(new View.OnClickListener() { public void onClick(View arg0) { new Timer().schedule(new TimerTask(){ @Override public void run() { new Handler().post(new Runnable(){ @Override public void run() { new myAsyncTask().execute(); } }); } }, 0, 1); } }); I get exception : java.lang.RuntimeException: Can't create handler inside thread that has not called Looper.prepare() Thnaks in advance -- Subin Sebastian http://in.linkedin.com/in/subinsebastien https://plus.google.com/subinhttps://plus.google.com/118262481642737404812 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to 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 is the sorting order on Android Market?
I'm always disgusted from the Google policy. My app has more good reviews, more downloads, more active downloads and is far above other fart app that no one downloaded. On Sep 18, 8:31 am, Pritam pritamsha...@gmail.com wrote: From what I guess that while publishing the app, you choose a category, and your app will appear in this category. Now it may be too down the list, that is something related to SEO part similar to search engines, and may depend on many factors other than ratings, like number of downloads, active downloads, total user reviews, etc. and all that would obviously never will be openly shared and will keep changing. Sometimes it may happen things like,http://techcrunch.com/2011/09/12/googles-auto-correct-killed-the-laun..., though now fixed. On Sep 17, 9:46 pm, sblantipodi perini.dav...@dpsoftware.org wrote: Hi all... Is there someone who can help me understanding how android market sort the apps? One of my financial apps has 4.5stars, it has more download than other apps but it isn't displayed in the financial section of the market. Why? How the market sort the apps? 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] What is the sorting order on Android Market?
hi how to upload image file in background.and how much size required thanks shital -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to 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] What is wrong with this code?
Use postDelayed() to create a periodic loop that runs on the main application thread. This will allow you to dump the Timer and the Handler (BTW, post() and postDelayed() are available on View, such as your Button). On Sun, Sep 18, 2011 at 6:54 AM, Subin Sebastian subinsebast...@gmail.com wrote: (Button)findViewById(R.id.start).setOnClickListener(new View.OnClickListener() { public void onClick(View arg0) { new Timer().schedule(new TimerTask() { @Override public void run() { new Handler().post(new Runnable() { @Override public void run() { new myAsyncTask().execute(); } }); } }, 0, 1); } }); I get exception : java.lang.RuntimeException: Can't create handler inside thread that has not called Looper.prepare() Thnaks in advance -- Subin Sebastian http://in.linkedin.com/in/subinsebastien https://plus.google.com/subin -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to 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 -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 3.6 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: What is the sorting order on Android Market?
why are you on this thread asking for this? On Sep 18, 1:26 pm, shital suryawanshi shital.andr...@gmail.com wrote: hi how to upload image file in background.and how much size required thanks shital -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How to get outgoing call duration in real time?
Hi, guys Now I write one app and have some problem - I need to show real-time outgoing call duration. But I do not know when I should start timer. I must start when get answer from other side. I tried TelephonyManager.EXTRA_STATE_OFFHOOK -- but it's state is when I press call-button.. OFFHOOK is the state when call is placed. So we should be notified when the call is received. How can we get that? Can You help me? When I should start count outgoing time? 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] EditText layer on SurfaceView gets invisible problem
Hello, I have the following problem: my layout includes SurfaceView (custom view with com.components.game.MyGameView) and a RelativeLayout which includes EditText view: ?xml version=1.0 encoding=utf-8? RelativeLayout xmlns:android=http://schemas.android.com/apk/res/android; android:layout_width=fill_parent android:layout_height=fill_parent com.components.game.MyGameView android:id=@+id/game_id android:layout_width=fill_parent android:layout_height=fill_parent / RelativeLayout android:id=@+id/TextLayout android:layout_width=fill_parent android:layout_height=wrap_content android:visibility=invisible android:layout_alignParentBottom=true Button android:id=@+id/TextOkButton android:layout_width=wrap_content android:layout_height=wrap_content android:text=OK android:layout_alignParentRight=true /Button EditText android:id=@+id/TextEditText android:layout_width=wrap_content android:layout_height=wrap_content android:singleLine=true android:maxLength=80 android:layout_toLeftOf=@+id/TextOkButton android:focusable=true android:focusableInTouchMode=true /EditText /RelativeLayout /RelativeLayout I want to be able to turn TextLayout visibility ON from the screen onTouch. I do get an event and I use Handler to call: findViewById(R.id.TextLayout).setVisibility(VISIBLE) the problem is that the TextLayout is NOT being shown (stays INVISIBLE) but it does get an event when pressing on the area of the EditText - it functions like it VISIBLE while staying INVISIBLE. this problem only happens on SDK 2.3 and upper. anyone has an idea how to 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: onTouchEvent not called on every touch motion
If you look at the sample code in the Google documents you'll see that motion events have history. You'll need to use it to get a smooth trace -Blake Programming Android, FTW On Sep 18, 5:20 am, loril...@gmail.com loril...@gmail.com wrote: I want to let a user smoothly draw elements with his finger and avoid any lags as follows: public boolean onTouchEvent(MotionEvent event) { float x = event.getX(); float y = event.getY(); switch (event.getAction()) { case MotionEvent.ACTION_DOWN: mCanvas.drawBitmap(primitive, x, y, mPaint); invalidate(); break; case MotionEvent.ACTION_MOVE: mCanvas.drawBitmap(primitive, x, y, mPaint); invalidate(); break; case MotionEvent.ACTION_UP: mCanvas.drawBitmap(primitive, x, y, mPaint); invalidate(); break; } return true; } } Using android SDK I find onTouchEvent is not called for every motion event. This results in drawing of a bitmap only at the points when the motion event is detected. I can do this very easily using iPhone SDK . Can anyone confirm if this is a limitation in Android or if there is a way we can increase the rate of motion events? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to 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] Set Phone HTTP Proxy on Wifi Network
I would like to know if it's possible to setup an HTTP Proxy for Wifi networks. I managed to setup the proxy (calling the com.android.settings.ProxySelector activity by code or using an app like Any Cut) but when I'm connected to the Wifi it seems that the proxy settings are ignored (I'm trying with multiple default apps like browser, maps, ...). Sometimes it seems that the settings is read correctly by the browser and the proxy works without problems, is seems more like a bug on the app (because is really hard to reproduce it). Anyone here that have clear ideas about this topic? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to 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] Handling Adjacent Fragments in ViewPager Contributing to Options Menu
Ah, ok . I asked that because as you were talking about improving api of PagerAdapter, I thought there could be some improvement in this area of FragmentPagerAdapter too. I think having access to the fragments tags added by the adapter would help. But as you said, I can get the existing adapter code which makes the name and use it to my code. :) 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: same app one tablet and phone with differnt gui
I have to load different layouts for activities depending on the device type, not only menus :( Okay, I see there are alternative resources, but how can I handle this on the level of activites? if(orientation== landscape){ init tablet varables }else{ phone variables } This is what I would like not to do, I looking for some more elegant solution ! On Sep 16, 10:49 am, sparky spar...@google.com wrote: Please don't use multiple APKs for tablet support. Just implement some xlarge layouts. You'll be glad you did. For the menu buttons, just populate the Activity Bar with Options Menu items. Any buttons that don't fit on screen can automatically go into the Options (or overflow) menu. See this article:http://developer.android.com/guide/practices/optimizing-for-3.0.html -- although it says 3.0, it's mostly about adding support for tablets. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to 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] please help debugging
Hello, I have an application which pushes a screen when I press a button on another screen. It was working fine until having made some code changes and run the application again I get the following messages (see below). I tried tracing the activity that is pushed but it is after onCreate and onStart that the application crashes with the message the application com.foo.bar has stopped unexpectedly. Please try again.. Since my application makes it past initialization I don't know where to look for the bug. Any ideas or tips for debugging this one? Thanks, John Goche 09-18 16:12:21.059: INFO/ActivityManager(74): Starting: Intent { cmp=com.foo.bar/.AlarmGroupsActivity } from pid 3583 09-18 16:12:21.199: DEBUG/dalvikvm(3583): GC_EXTERNAL_ALLOC freed 69K, 52% free 2600K/5379K, external 2032K/2137K, paused 61ms 09-18 16:12:21.279: DEBUG/AndroidRuntime(3583): Shutting down VM 09-18 16:12:21.279: WARN/dalvikvm(3583): threadid=1: thread exiting with uncaught exception (group=0x40015560) 09-18 16:12:21.289: ERROR/AndroidRuntime(3583): FATAL EXCEPTION: main 09-18 16:12:21.289: ERROR/AndroidRuntime(3583): android.app.SuperNotCalledException: Activity {com.foo.bar/com.foo.bar.AlarmGroupsActivity} did not call through to super.onStart() 09-18 16:12:21.289: ERROR/AndroidRuntime(3583): at android.app.Activity.performStart(Activity.java:3793) 09-18 16:12:21.289: ERROR/AndroidRuntime(3583): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1620) 09-18 16:12:21.289: ERROR/AndroidRuntime(3583): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1663) 09-18 16:12:21.289: ERROR/AndroidRuntime(3583): at android.app.ActivityThread.access$1500(ActivityThread.java:117) 09-18 16:12:21.289: ERROR/AndroidRuntime(3583): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:931) 09-18 16:12:21.289: ERROR/AndroidRuntime(3583): at android.os.Handler.dispatchMessage(Handler.java:99) 09-18 16:12:21.289: ERROR/AndroidRuntime(3583): at android.os.Looper.loop(Looper.java:123) 09-18 16:12:21.289: ERROR/AndroidRuntime(3583): at android.app.ActivityThread.main(ActivityThread.java:3683) 09-18 16:12:21.289: ERROR/AndroidRuntime(3583): at java.lang.reflect.Method.invokeNative(Native Method) 09-18 16:12:21.289: ERROR/AndroidRuntime(3583): at java.lang.reflect.Method.invoke(Method.java:507) 09-18 16:12:21.289: ERROR/AndroidRuntime(3583): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839) 09-18 16:12:21.289: ERROR/AndroidRuntime(3583): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597) 09-18 16:12:21.289: ERROR/AndroidRuntime(3583): at dalvik.system.NativeStart.main(Native Method) 09-18 16:12:21.300: WARN/ActivityManager(74): Force finishing activity com.foo.bar/.AlarmGroupsActivity 09-18 16:12:21.309: WARN/ActivityManager(74): Force finishing activity com.foo.bar/.ScheduleActivity 09-18 16:12:21.819: WARN/ActivityManager(74): Activity pause timeout for HistoryRecord{406608e8 com.foo.bar/.AlarmGroupsActivity} -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to 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: same app one tablet and phone with differnt gui
It is entirely possibly to have resources and code vary based on orientation, but the code you have here is fundamentally broken: landscape != tablet, portrait != phone. This document talks about identifying tablets vs phones: http://android-developers.blogspot.com/2011/07/new-tools-for-managing-screen-sizes.html 2011/9/18 Károly Holczhauser holczhau...@gmail.com I have to load different layouts for activities depending on the device type, not only menus :( Okay, I see there are alternative resources, but how can I handle this on the level of activites? if(orientation== landscape){ init tablet varables }else{ phone variables } This is what I would like not to do, I looking for some more elegant solution ! On Sep 16, 10:49 am, sparky spar...@google.com wrote: Please don't use multiple APKs for tablet support. Just implement some xlarge layouts. You'll be glad you did. For the menu buttons, just populate the Activity Bar with Options Menu items. Any buttons that don't fit on screen can automatically go into the Options (or overflow) menu. See this article: http://developer.android.com/guide/practices/optimizing-for-3.0.html -- although it says 3.0, it's mostly about adding support for tablets. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: please help debugging
On Sunday, September 18, 2011 12:24:35 PM UTC-4, John Goche wrote: Hello, Any ideas or tips for debugging this one? Hi John, your answer is right there in your stacktrace (wish it was always that easy): 09-18 16:12:21.059: INFO/ActivityManager(74): Starting: Intent { cmp=com.foo.bar/.AlarmGroupsActivity } from pid 3583 ... 09-18 16:12:21.289: ERROR/AndroidRuntime(3583): FATAL EXCEPTION: main 09-18 16:12:21.289: ERROR/AndroidRuntime(3583): android.app.SuperNotCalledException: Activity {com.foo.bar/com.foo.bar.AlarmGroupsActivity} did not call through to super.onStart() Your AlarmGroupsActivity class isn't calling super.onStart(). I'm assuming you override onStart()? First line in the method should be to invoke the superclass's onStart(). Hth, - Chris -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to 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] App appears to be missing for a number of devices on Android Market
Our app seems to be disappearing from the Market for a number of devices. For example, my Samsung Galaxy Tab 10.1 shows up in the market when I upgrade, but each time I download it crashes the market. I have users w/ a Samsung Galaxy Mini GT-S5570 which can't even see it in the market. I am trying to figure out what is wrong in my Manifest :/ The Galaxy Mini user was able to side load the app, and works fine.. So not sure why it is being excluded. Also had a report that it was not working on Motorola Xoom (not visible in market). Is the Xoom at 3.2 already? That would be explained my my max SDK @ 12 instead of 13. Device search results Samsung Unsupported devices due to your manifest settings GT-S5570B(GT-S5570B) GT-S5570L(GT-S5570L) Design name search results Samsung Unsupported devices due to your manifest settings Galaxy Mini(GT-S5570) GT-S5570B(GT-S5570B) Not sure why. uses-sdk android:minSdkVersion=4 android:maxSdkVersion=12 android:targetSdkVersion=8/ supports-screens android:smallScreens=true android:normalScreens=true android:largeScreens=true android:anyDensity=true android:resizeable=true/ Now I realize that maxSdkVersion=12 is not the highest currently, but if I put 13 then the market says that 13 is not currently supported (too high). My permissions from manifest are below. uses-permission android:name=android.permission.CAMERA/uses- permission uses-permission android:name=android.permission.ACCESS_FINE_LOCATION/uses- permission uses-permission android:name=android.permission.ACCESS_COARSE_LOCATION/uses- permission uses-permission android:name=android.permission.INTERNET/uses- permission uses-permission android:name=android.permission.FLASHLIGHT/uses- permission uses-permission android:name=android.permission.ACCESS_LOCATION_EXTRA_COMMANDS/ uses-permission uses-permission android:name=android.permission.VIBRATE/ uses-permission android:name=android.permission.WRITE_EXTERNAL_STORAGE / uses-permission android:name=android.permission.READ_EXTERNAL_STORAGE/ From the market I see this : Supported Devices This application is only available to devices with these features, as defined in your application manifest. Screen layouts: SMALL NORMAL LARGE XLARGE Required device features android.hardware.camera android.hardware.location.network android.hardware.location android.hardware.location.gps android.hardware.camera.autofocus android.hardware.screen.landscape android.hardware.touchscreen android.hardware.screen.portrait Here is a list of unsuported devices. Unsupported devices due to your manifest settings ALM-001J(smdkv210) Archos 101 Internet Tablet(A101S) Dell Streak 10 Pro(Streak10Pro) unknown(magic) unknown(XT319) unknown(hws7300u) unknown(A101IT) unknown(VENUS) unknown(SCH-I589) unknown(p7901a) unknown(ASP320Q_GSM) unknown(u8150) unknown(nbx02) unknown(GT-B5510) unknown(harmony) unknown(LIFETAB_P9514) unknown(viewpad7x) unknown(ASP320Q) unknown(hwc8511) unknown(TB07STA) unknown(tostab04) unknown(hwm860) unknown(TB07FTA) unknown(SH8158U) unknown(huashan) unknown(mi_350) unknown(zt180) unknown(X500) unknown(msm7627_ntls) unknown(one_touch_918N_umts) unknown(one_touch_908A_gsm) unknown(mangrove7) unknown(GT-S5360L) unknown(CAP8) unknown(CAP6) unknown(anydata16_a10y) unknown(YPY) unknown(A80S) unknown(pasteur) unknown(AMD120) unknown(goldfish) unknown(icx1216) unknown(A70S) unknown(A70H) unknown(generic) unknown(fleming) unknown(utv210) unknown(OP070) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to 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] Call to System.loadLibrary() causes process to die
've decided to take on porting a game, that uses SDL libraries and makes heavy use of C++ and the STL, over to Android. I've been successful in getting all the required libraries compiled as well as all the source files for the game. My problem is that when I call System.loadLibrary() to load the .so for the game, the app immediately crashes with Process org.libsdl.app (pid 3569) has died. Here is the section of code where I load all the needed libraries and the game as a shared library. static { // Load the required libraries for the game System.loadLibrary(SDL); System.loadLibrary(SDL_image); System.loadLibrary(SDL_mixer); System.loadLibrary(SDL_net); // load the game as a shared library System.loadLibrary(smw_jni); // process dies when this is called } libswm_jni.so was compiled with the Android NDK and in the Applicaion.mk file I specified APP_STL := gnustl_static Since it crashes immediately after System.loadLibrary(smw_jni) with no meaningful error messages, I am at a loss as to how to go about getting to the root cause. I've worked on porting another game which was just plain old C code, which worked out, so I am not sure if there is an issue with the fact that this particular game is heavy on the C++ side. Thanks in advance for any help with this headache of mine! -clark- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to 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] Listview: heterogenous rows: if statements in XML layout file?
Thanks Romain, Thank you for your answer. I would like to use the second method. Can you please tell me a little bit more about how to use the two methods you describe. First of all, which Adapter class should I subclass (if I need to subclass at all). Can I subclass SimpleAdapter? I was able to understand the following code: http://ykyuen.wordpress.com/2010/01/03/android-simple-listview-using-simpleadapter/but I am not sure whether I can adapt it to use getItemViewType and getViewTypeCount. My rows contain textviews with strings but it seems like I am looking in the wrong place. Thanks again, Regards, John Goche On Sat, Sep 17, 2011 at 8:52 PM, Romain Guy romain...@android.com wrote: Hi John, You have to do it programmatically from the adapter. You have two ways of doing it. Either you can use a single list item with some of its child views marked with a GONE visibility or you can use different list items. The preferred solution is the latter. If you decide to use it, you need to override getItemViewType() and getViewTypeCount(). Android's XML files do not contain logic. On Sat, Sep 17, 2011 at 11:47 AM, John Goche johngoch...@googlemail.comwrote: Hello, I need a dynamic list view which has heterogenous row entries. For instance one item may have two text edits whereas another list item may have four text edits. Does this mean I have to do it all programmatically and cannot encode an if (say like in Java Apache Tomcat Struts Library) to decide how my list row should appear (with 2 or with 4 text edits)? What other options would I have to do this? Thanks, John Goche -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to 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 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: please help debugging
Thanks, That was easy indeed. I was worried when I didn't see the debugger going through my source code but I should have catched that message. Will look more carefully in the future. Your AlarmGroupsActivity class isn't calling super.onStart(). I'm assuming you override onStart()? First line in the method should be to invoke the superclass's onStart(). Hth, - Chris -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Listview: heterogenous rows: if statements in XML layout file?
I have found another custom adapter tutorial at the following site: http://thetechnib.blogspot.com/2010/12/android-tutorial-custom-adapter-for.html I am going to try and modify it and see whether I can get what you suggest to work here. John Goche On Sun, Sep 18, 2011 at 7:48 PM, John Goche johngoch...@googlemail.comwrote: Thanks Romain, Thank you for your answer. I would like to use the second method. Can you please tell me a little bit more about how to use the two methods you describe. First of all, which Adapter class should I subclass (if I need to subclass at all). Can I subclass SimpleAdapter? I was able to understand the following code: http://ykyuen.wordpress.com/2010/01/03/android-simple-listview-using-simpleadapter/but I am not sure whether I can adapt it to use getItemViewType and getViewTypeCount. My rows contain textviews with strings but it seems like I am looking in the wrong place. Thanks again, Regards, John Goche On Sat, Sep 17, 2011 at 8:52 PM, Romain Guy romain...@android.com wrote: Hi John, You have to do it programmatically from the adapter. You have two ways of doing it. Either you can use a single list item with some of its child views marked with a GONE visibility or you can use different list items. The preferred solution is the latter. If you decide to use it, you need to override getItemViewType() and getViewTypeCount(). Android's XML files do not contain logic. On Sat, Sep 17, 2011 at 11:47 AM, John Goche johngoch...@googlemail.comwrote: Hello, I need a dynamic list view which has heterogenous row entries. For instance one item may have two text edits whereas another list item may have four text edits. Does this mean I have to do it all programmatically and cannot encode an if (say like in Java Apache Tomcat Struts Library) to decide how my list row should appear (with 2 or with 4 text edits)? What other options would I have to do this? Thanks, John Goche -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to 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 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Listview: heterogenous rows: if statements in XML layout file?
Yes, the example can be modified to do more or less what I wanted. Here is what I changed: inside getView in Main.java: === }else{ row = inflater.inflate(R.layout.list_row_layout_odd, parent, false); TextView textLabel = (TextView) row.findViewById(R.id.text); TextView textLabel2 = (TextView) row.findViewById(R.id.text2); textLabel.setText(data[position]); textLabel2.setText(data[position]); } return (row); } == Then at the bottom of row_layout_odd.xml inside the relative layout: TextView android:id=@+id/text2 android:layout_height=wrap_content android:layout_width=wrap_content android:layout_alignParentLeft=true android:textColor=#ff android:textSize=16dip android:layout_marginRight=120dip android:layout_marginLeft=8dip android:layout_marginTop=30dip / == I am still curious though on how this solution differs from the one suggested by Romain Guy. Anyone have any thoughts on this? Thanks, John Goche On Sun, Sep 18, 2011 at 8:26 PM, John Goche johngoch...@googlemail.comwrote: I have found another custom adapter tutorial at the following site: http://thetechnib.blogspot.com/2010/12/android-tutorial-custom-adapter-for.html I am going to try and modify it and see whether I can get what you suggest to work here. John Goche On Sun, Sep 18, 2011 at 7:48 PM, John Goche johngoch...@googlemail.comwrote: Thanks Romain, Thank you for your answer. I would like to use the second method. Can you please tell me a little bit more about how to use the two methods you describe. First of all, which Adapter class should I subclass (if I need to subclass at all). Can I subclass SimpleAdapter? I was able to understand the following code: http://ykyuen.wordpress.com/2010/01/03/android-simple-listview-using-simpleadapter/but I am not sure whether I can adapt it to use getItemViewType and getViewTypeCount. My rows contain textviews with strings but it seems like I am looking in the wrong place. Thanks again, Regards, John Goche On Sat, Sep 17, 2011 at 8:52 PM, Romain Guy romain...@android.comwrote: Hi John, You have to do it programmatically from the adapter. You have two ways of doing it. Either you can use a single list item with some of its child views marked with a GONE visibility or you can use different list items. The preferred solution is the latter. If you decide to use it, you need to override getItemViewType() and getViewTypeCount(). Android's XML files do not contain logic. On Sat, Sep 17, 2011 at 11:47 AM, John Goche johngoch...@googlemail.com wrote: Hello, I need a dynamic list view which has heterogenous row entries. For instance one item may have two text edits whereas another list item may have four text edits. Does this mean I have to do it all programmatically and cannot encode an if (say like in Java Apache Tomcat Struts Library) to decide how my list row should appear (with 2 or with 4 text edits)? What other options would I have to do this? Thanks, John Goche -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to 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 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Listview: heterogenous rows: if statements in XML layout file?
On Sun, Sep 18, 2011 at 2:53 PM, John Goche johngoch...@googlemail.com wrote: Yes, the example can be modified to do more or less what I wanted. Here is what I changed: inside getView in Main.java: === }else{ row = inflater.inflate(R.layout.list_row_layout_odd, parent, false); TextView textLabel = (TextView) row.findViewById(R.id.text); TextView textLabel2 = (TextView) row.findViewById(R.id.text2); textLabel.setText(data[position]); textLabel2.setText(data[position]); } return (row); } == Then at the bottom of row_layout_odd.xml inside the relative layout: TextView android:id=@+id/text2 android:layout_height=wrap_content android:layout_width=wrap_content android:layout_alignParentLeft=true android:textColor=#ff android:textSize=16dip android:layout_marginRight=120dip android:layout_marginLeft=8dip android:layout_marginTop=30dip / == I am still curious though on how this solution differs from the one suggested by Romain Guy. Anyone have any thoughts on this? You asked for heterogeneous rows. Your solution does not seem to involve heterogeneous rows, unless I am missing something. What Romain suggested was: -- Override getViewTypeCount() to return the number of distinct types of rows (e.g., 2) -- Override getItemViewType() to return a value from 0 to getViewTypeCount()-1, indicating which type of row to use for a given position -- In your getView() (or newView(), if you are extending CursorAdapter), inflate the appropriate row layout for the position's type, or recycle the supplied convertView -- by overriding the two methods in the previous bullets, you ensure that convertView will be of the desired layout -- In your getView() (or bindView(), if you are extending CursorAdapter), bind your model data into the right widgets based on the row type See also: http://stackoverflow.com/questions/5300962/getviewtypecount-and-getitemviewtype-methods-of-arrayadapter http://stackoverflow.com/questions/1660417/android-efficientadapter-with-two-different-views http://stackoverflow.com/questions/3144555/different-views-on-a-single-list-android and probably another 50 or so answers on StackOverflow, where getViewTypeCount() and getItemViewType() appear. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 3.6 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: no XML code formatting options in eclipse classic?
Sure there is! It just isn't like the code formatter... WindowPreferencesXMLXML FilesEditor You can make each attribute on a single line, indention, etc... It's not super flexible but it works for what you want. @Tor Norbye THANK YOU!!! That will be nice :) String formatting is my most hated thing! I have to specifically remember to NOT hit CTRL+Shift+F in my strings file -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to 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: no XML code formatting options in eclipse classic?
On Sun, Sep 18, 2011 at 9:18 PM, rich friedel rich.frie...@gmail.comwrote: Sure there is! It just isn't like the code formatter... WindowPreferencesXMLXML FilesEditor You can make each attribute on a single line, indention, etc... It's not super flexible but it works for what you want. Thanks, that works perfectly for me as well. Should have seen that option. Regards, John Goche -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to 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] Call to System.loadLibrary() causes process to die
Why are you building the SDL stuff as shared libraries instead of just statically linking them into your main .so? On Sun, Sep 18, 2011 at 10:21 AM, clark clarkd...@gmail.com wrote: 've decided to take on porting a game, that uses SDL libraries and makes heavy use of C++ and the STL, over to Android. I've been successful in getting all the required libraries compiled as well as all the source files for the game. My problem is that when I call System.loadLibrary() to load the .so for the game, the app immediately crashes with Process org.libsdl.app (pid 3569) has died. Here is the section of code where I load all the needed libraries and the game as a shared library. static { // Load the required libraries for the game System.loadLibrary(SDL); System.loadLibrary(SDL_image); System.loadLibrary(SDL_mixer); System.loadLibrary(SDL_net); // load the game as a shared library System.loadLibrary(smw_jni); // process dies when this is called } libswm_jni.so was compiled with the Android NDK and in the Applicaion.mk file I specified APP_STL := gnustl_static Since it crashes immediately after System.loadLibrary(smw_jni) with no meaningful error messages, I am at a loss as to how to go about getting to the root cause. I've worked on porting another game which was just plain old C code, which worked out, so I am not sure if there is an issue with the fact that this particular game is heavy on the C++ side. Thanks in advance for any help with this headache of mine! -clark- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] UsbStorageConnector failing with IOException.
Hi all! I'm getting the following error in my logcat: E/UsbStorageConnector( 189): listenToSocket - Communications error E/UsbStorageConnector( 189): java.io.IOException: No such file or directory E/UsbStorageConnector( 189): at android.net.LocalSocketImpl.connectLocal(Nati ve Method) E/UsbStorageConnector( 189): at android.net.LocalSocketImpl.connect(LocalSock etImpl.java:238) E/UsbStorageConnector( 189): at android.net.LocalSocket.connect(LocalSocket.j ava:98) E/UsbStorageConnector( 189): at com.android.server.NativeDaemonConnector.list enToSocket(NativeDaemonConnector.java:102) E/UsbStorageConnector( 189): at com.android.server.NativeDaemonConnector.run( NativeDaemonConnector.java:85) E/UsbStorageConnector( 189): at java.lang.Thread.run(Thread.java:1019) I tried to find where is the file with a tag UsbStorageConnector and I couldn't find it. Do you know where is the class which has this tag? Or even better, would you have any clue about what file it is trying to listen to? This way I could check why it is missing or if it is something related to permissions. Thank you very much in advance. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Call to System.loadLibrary() causes process to die
I was sImply following the SDL example project that they provided that did the same. I'll statically link them and see what the outcome is. Thanks, -clark- On Sep 18, 2:37 pm, Dianne Hackborn hack...@android.com wrote: Why are you building the SDL stuff as shared libraries instead of just statically linking them into your main .so? On Sun, Sep 18, 2011 at 10:21 AM, clark clarkd...@gmail.com wrote: 've decided to take on porting a game, that uses SDL libraries and makes heavy use of C++ and the STL, over to Android. I've been successful in getting all the required libraries compiled as well as all the source files for the game. My problem is that when I call System.loadLibrary() to load the .so for the game, the app immediately crashes with Process org.libsdl.app (pid 3569) has died. Here is the section of code where I load all the needed libraries and the game as a shared library. static { // Load the required libraries for the game System.loadLibrary(SDL); System.loadLibrary(SDL_image); System.loadLibrary(SDL_mixer); System.loadLibrary(SDL_net); // load the game as a shared library System.loadLibrary(smw_jni); // process dies when this is called } libswm_jni.so was compiled with the Android NDK and in the Applicaion.mk file I specified APP_STL := gnustl_static Since it crashes immediately after System.loadLibrary(smw_jni) with no meaningful error messages, I am at a loss as to how to go about getting to the root cause. I've worked on porting another game which was just plain old C code, which worked out, so I am not sure if there is an issue with the fact that this particular game is heavy on the C++ side. Thanks in advance for any help with this headache of mine! -clark- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: onTouchEvent not called on every touch motion
You don't need the history to do smooth tracking. The history gives you all of the points between this in the last motion event... but when tracking you always want to show your object at the most recent reported position, so the history is irrelevant. The problem with the code is that it is trying to draw in to mCanvas directly. The view hierarchy is update-based; you need to update the state and then invalidate the view drawing it to show the new state. Even if you could draw to the Canvas outside of an update, the code here would be broken because it would just leave a trail of bitmaps drawn at various positions without erasing the previous one. (Though I guess it is doing an invalidate() after drawing the bitmap, so you'd end up with the bitmap being briefly drawn and then erased as the invalidate is executed.) Anyway, just store the new position of the bitmap, call invalidate(), and then in your onDraw() draw the bitmap at the current position. On Sun, Sep 18, 2011 at 7:20 AM, blake blake.me...@gmail.com wrote: If you look at the sample code in the Google documents you'll see that motion events have history. You'll need to use it to get a smooth trace -Blake Programming Android, FTW On Sep 18, 5:20 am, loril...@gmail.com loril...@gmail.com wrote: I want to let a user smoothly draw elements with his finger and avoid any lags as follows: public boolean onTouchEvent(MotionEvent event) { float x = event.getX(); float y = event.getY(); switch (event.getAction()) { case MotionEvent.ACTION_DOWN: mCanvas.drawBitmap(primitive, x, y, mPaint); invalidate(); break; case MotionEvent.ACTION_MOVE: mCanvas.drawBitmap(primitive, x, y, mPaint); invalidate(); break; case MotionEvent.ACTION_UP: mCanvas.drawBitmap(primitive, x, y, mPaint); invalidate(); break; } return true; } } Using android SDK I find onTouchEvent is not called for every motion event. This results in drawing of a bitmap only at the points when the motion event is detected. I can do this very easily using iPhone SDK . Can anyone confirm if this is a limitation in Android or if there is a way we can increase the rate of motion events? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: no XML code formatting options in eclipse classic?
Man... it took me well over a year of using Eclipse before I happened onto that!!! Glad it works :) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to 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] Listview: heterogenous rows: if statements in XML layout file?
On Sun, Sep 18, 2011 at 3:45 PM, John Goche johngoch...@googlemail.com wrote: I see now what these BaseAdapter methods are meant to do. You can define a certain number of row types each defined by a type integer. These default to a type count of 1 with a view type of 0. But I do not understand where the view type gets passed in since getView only receives a row position. Eventually the data will specify which row type to use, so the row position should be enough to identify the row type should it not? Hopefully not. Based on your later comments, you have two row types, not infinite row types. So here we have getView from class Adapter. The position which is the row number should be enough to inflate the desired row layout... so in this case the two bulleted methods above are not needed? Not if you have different types of rows. Do not confuse the *type* of the row (gross layout) with the *contents* of the row (gross layout with widgets populated with model data). or recycle the supplied convertView -- by overriding the two methods in the previous bullets, you ensure that convertView will be of the desired layout What do you mean by recycle here? Please read: http://commonsware.com/Android/excerpt.pdf It's a free excerpt from one of my books. You really need to learn what row recycling is if you are going to extend BaseAdapter. Bear in mind that you only extend BaseAdapter if your data is not in a data structure already handled by a more concrete adapter class (e.g., ArrayAdapter, CursorAdapter). -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, One Low Price! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to 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] Listview: heterogenous rows: if statements in XML layout file?
On Sun, Sep 18, 2011 at 4:05 PM, John Goche johngoch...@googlemail.com wrote: How can MyCustomAdapter even compile? Rather than asking 50,000 people that question, you might consider contacting the author of that code and asking the author that question. Is there less abstract methods in the BaseAdapter interface in the Android 1.6 API? Not that I am aware of. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, One Low Price! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to 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: Call to System.loadLibrary() causes process to die
I went ahead and statically linked all the SDL_ libs so that I only have libsmw_jni.so library but the problem remains the same. I am back to square one as to how to track down why loading this library causes the process to immediately die without any error messages. I've narrowed it down to the call to nativeLoad(filename, loader) insider Runtime.java. At this point I'm thinking I may need to build Android from source and run an emulator with nativeLoad() modified to spit out some extra messages so I can see where it is getting to and where it dies. On Sep 18, 2:37 pm, Dianne Hackborn hack...@android.com wrote: Why are you building the SDL stuff as shared libraries instead of just statically linking them into your main .so? On Sun, Sep 18, 2011 at 10:21 AM, clark clarkd...@gmail.com wrote: 've decided to take on porting a game, that uses SDL libraries and makes heavy use of C++ and the STL, over to Android. I've been successful in getting all the required libraries compiled as well as all the source files for the game. My problem is that when I call System.loadLibrary() to load the .so for the game, the app immediately crashes with Process org.libsdl.app (pid 3569) has died. Here is the section of code where I load all the needed libraries and the game as a shared library. static { // Load the required libraries for the game System.loadLibrary(SDL); System.loadLibrary(SDL_image); System.loadLibrary(SDL_mixer); System.loadLibrary(SDL_net); // load the game as a shared library System.loadLibrary(smw_jni); // process dies when this is called } libswm_jni.so was compiled with the Android NDK and in the Applicaion.mk file I specified APP_STL := gnustl_static Since it crashes immediately after System.loadLibrary(smw_jni) with no meaningful error messages, I am at a loss as to how to go about getting to the root cause. I've worked on porting another game which was just plain old C code, which worked out, so I am not sure if there is an issue with the fact that this particular game is heavy on the C++ side. Thanks in advance for any help with this headache of mine! -clark- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Icecream Sandwich, when the SDK?
As title. If its true that we will see the first icecream phone in october, isn't it late for releasing the new SDK? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to 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 is the sorting order on Android Market?
There is no sorting order as it appears that companies can buy a good place in the order. The current #1 Financial App has debuted in the #1 spot. That would never happen with no reviews and no downloads for any other no name app from an independent developer. But since it's an app from a well known player in the field, it appeared as #1 and it has stayed there. Curious if the playing field is even -- it certainly doesn't appear to be. On Sep 18, 7:17 pm, sblantipodi perini.dav...@dpsoftware.org wrote: I'm always disgusted from the Google policy. My app has more good reviews, more downloads, more active downloads and is far above other fart app that no one downloaded. On Sep 18, 8:31 am, Pritam pritamsha...@gmail.com wrote: From what I guess that while publishing the app, you choose a category, and your app will appear in this category. Now it may be too down the list, that is something related to SEO part similar to search engines, and may depend on many factors other than ratings, like number of downloads, active downloads, total user reviews, etc. and all that would obviously never will be openly shared and will keep changing. Sometimes it may happen things like,http://techcrunch.com/2011/09/12/googles-auto-correct-killed-the-laun..., though now fixed. On Sep 17, 9:46 pm, sblantipodi perini.dav...@dpsoftware.org wrote: Hi all... Is there someone who can help me understanding how android market sort the apps? One of my financial apps has 4.5stars, it has more download than other apps but it isn't displayed in the financial section of the market. Why? How the market sort the apps? Thanks.- 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
[android-developers] Re: What is the sorting order on Android Market?
Shame on google, this is the first market where there is no even sorting method. Sorting of the apps is really important, shame on google. On Sep 19, 2:39 am, Zsolt Vasvari zvasv...@gmail.com wrote: There is no sorting order as it appears that companies can buy a good place in the order. The current #1 Financial App has debuted in the #1 spot. That would never happen with no reviews and no downloads for any other no name app from an independent developer. But since it's an app from a well known player in the field, it appeared as #1 and it has stayed there. Curious if the playing field is even -- it certainly doesn't appear to be. On Sep 18, 7:17 pm, sblantipodi perini.dav...@dpsoftware.org wrote: I'm always disgusted from the Google policy. My app has more good reviews, more downloads, more active downloads and is far above other fart app that no one downloaded. On Sep 18, 8:31 am, Pritam pritamsha...@gmail.com wrote: From what I guess that while publishing the app, you choose a category, and your app will appear in this category. Now it may be too down the list, that is something related to SEO part similar to search engines, and may depend on many factors other than ratings, like number of downloads, active downloads, total user reviews, etc. and all that would obviously never will be openly shared and will keep changing. Sometimes it may happen things like,http://techcrunch.com/2011/09/12/googles-auto-correct-killed-the-laun..., though now fixed. On Sep 17, 9:46 pm, sblantipodi perini.dav...@dpsoftware.org wrote: Hi all... Is there someone who can help me understanding how android market sort the apps? One of my financial apps has 4.5stars, it has more download than other apps but it isn't displayed in the financial section of the market. Why? How the market sort the apps? Thanks.- 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: OpenGL ES 2.0 question
Yes. I figured out what my problem was in this case. I was creating more texture image units than were provided by the phone, so only the last n image units worked. The SGS 2 has very few image units, apparently. Interestingly, making calls to invalid image units didn't raise any errors. Once I put resource management around image units everything started working as it should. Thanks for the reply though! Cheers On 9/18/2011 6:11 PM, cybice wrote: I do not understand step 5) create a framebuffer and bind it to the texture from #3 do you call *glFramebufferTexture *attaching texture as GL_COLOR_ATTACHMENT/i/ or what? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to 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: How to communicate two android device
Hi, NFC peer to peer is another option on suitable phones that are in close proximity http://developer.android.com/guide/topics/nfc/index.html Regards On Sep 18, 1:56 am, Kristopher Micinski krismicin...@gmail.com wrote: I've also seen a number of variety of free backend services available for you to use popping up. But yes, I'd say that the way that backend communication is done these days definitely seems to be moving toward the internet / server side of things (from what?). You can google for parse and the related ones... Kris On Sat, Sep 17, 2011 at 10:38 AM, Matthew Patience matthewj.patie...@gmail.com wrote: You could use a server in between the 2 devices. Create a simple back end API, which I wont go in to, but this is definitely an obvious option if you are good with PHP. On Sep 17, 3:01 am, kirti waykole kirti.carr...@gmail.com wrote: hello friends, I am new in android. I want to communicate two android device . Blue-tooth is there but I want another option for communicating two device. Please Help me for this to solve. thanks in advance. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Cavnas's pattern to bitmap
Hi, See http://developer.android.com/reference/android/graphics/Canvas.html#setBitmap(android.graphics.Bitmap) Regards On Sep 17, 11:55 am, Perry168 perry...@netvigator.com wrote: Hi all, If I draw some graphic on the cavnas, How can I convert the cavnas's pattern to a bitmap format? 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: complieStatement(INSERT) crashing my app??
Hi, Looks like you have not provided the value be to inserted (?) before compiling the statement, have a look in the logcat for error messages. Also try finding a valid insert example. Regards On Sep 17, 5:05 am, mwllace wallace.d.m...@gmail.com wrote: Im trying to use a datahelper class for my android database, and there is one line that when executed causes my app to quit unexpectedly. Im using android 2.2 Library. this.insertStmt = this.db.compileStatement(INSERT); // Crashes the emulator When I comment the line out the app runs fine, but I cant use insert because I cant get this line work. No errors are reported in eclipse before I run the app in the emulator. Any ideas what this may be? Thanks! private SQLiteDatabase db; private SQLiteStatement insertStmt; private static final String INSERT = insert into + TABLE_NAME + (name) values (?); public DataBaseHelper(Context context) { this.context = context; OpenHelper openHelper = new OpenHelper(this.context); this.db = openHelper.getWritableDatabase(); this.insertStmt = this.db.compileStatement(INSERT); // Crashes the emulator . } -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to 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 create custom softkeyboard ??
I need a custom Soft keyboard for my application .For that can anybody guide me,where to start? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: onTouchEvent not called on every touch motion
Will it not just move the element as I move my finger on the screen. I want to draw the element at all positions where my finger has touched so that I can see a continuous drawing. Let me know if I have misunderstood. On Sep 19, 3:03 am, Dianne Hackborn hack...@android.com wrote: You don't need the history to do smooth tracking. The history gives you all of the points between this in the last motion event... but when tracking you always want to show your object at the most recent reported position, so the history is irrelevant. The problem with the code is that it is trying to draw in to mCanvas directly. The view hierarchy is update-based; you need to update the state and then invalidate the view drawing it to show the new state. Even if you could draw to the Canvas outside of an update, the code here would be broken because it would just leave a trail of bitmaps drawn at various positions without erasing the previous one. (Though I guess it is doing an invalidate() after drawing the bitmap, so you'd end up with the bitmap being briefly drawn and then erased as the invalidate is executed.) Anyway, just store the new position of the bitmap, call invalidate(), and then in your onDraw() draw the bitmap at the current position. On Sun, Sep 18, 2011 at 7:20 AM, blake blake.me...@gmail.com wrote: If you look at the sample code in the Google documents you'll see that motion events have history. You'll need to use it to get a smooth trace -Blake Programming Android, FTW On Sep 18, 5:20 am, loril...@gmail.com loril...@gmail.com wrote: I want to let a user smoothly draw elements with his finger and avoid any lags as follows: public boolean onTouchEvent(MotionEvent event) { float x = event.getX(); float y = event.getY(); switch (event.getAction()) { case MotionEvent.ACTION_DOWN: mCanvas.drawBitmap(primitive, x, y, mPaint); invalidate(); break; case MotionEvent.ACTION_MOVE: mCanvas.drawBitmap(primitive, x, y, mPaint); invalidate(); break; case MotionEvent.ACTION_UP: mCanvas.drawBitmap(primitive, x, y, mPaint); invalidate(); break; } return true; } } Using android SDK I find onTouchEvent is not called for every motion event. This results in drawing of a bitmap only at the points when the motion event is detected. I can do this very easily using iPhone SDK . Can anyone confirm if this is a limitation in Android or if there is a way we can increase the rate of motion events? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Can 'Recent' item's bind intent be changed ?
Hi All, Can we change the intent that is bind to recent item list that appears on long press of 'Home' button? Or to be precise change the extra in it ? I want to do this for my application only. I had put this question before, http://groups.google.com/group/android-developers/browse_thread/thread/ccf50e4394ba087b but I guess was too long in terms of description :) 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: Copying a file from assets or raw to /system/bin folder (rsync)
Chris, I am only trying to justify my questioning on this forum. The steps mentioned on the rsync wiki work on a emulator. I assumed it would work on the device since it does on the emualtor. I was wondering what I was doing wrong, so wrote a piece of shareable code that can put up on a public forum. Obviously you will realize that I cannot put up production quality code up here. By the way, I am not getting personal. I will and have not written anything derogatory. All I said was I assumed that the rsync guys would have tried it out on a real device, but may be its just in beta stage now. Again, I am only trying to justify my questioning on this forum. I used android sdk to develop a app to auto deploy a tool that I believe is helpful. It works on a emulator, does not on a device. Thats it.. Yes, I did put up a question and a marked a bug on the rsync project too. I politely request that you refrain from be derogatory on a public forum. This is my last mail on this topic. Conny On Sep 18, 8:43 am, Chris crehb...@gmail.com wrote: On Saturday, September 17, 2011 10:45:46 PM UTC-4, Conny wrote: I was assuming that the developers of that app would have done enough research to get it to work on a real device. I guess not enough. And what lead you to believe that 'rsync droid' was a part of the SDK or has anything whatsoever to do with this mailing list? If you want to make some kind of point about some developers of 'rsync droid' not 'having done research' we can start with your utter butchering of the Java language referenced in your op. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to 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 is the sorting order on Android Market?
That isn't great but what about Inesoft Cash Organizer. No other apps by the dev , 1-5 installs and it is at position 8. On Sep 19, 1:39 am, Zsolt Vasvari zvasv...@gmail.com wrote: There is no sorting order as it appears that companies can buy a good place in the order. The current #1 Financial App has debuted in the #1 spot. That would never happen with no reviews and no downloads for any other no name app from an independent developer. But since it's an app from a well known player in the field, it appeared as #1 and it has stayed there. Curious if the playing field is even -- it certainly doesn't appear to be. On Sep 18, 7:17 pm, sblantipodi perini.dav...@dpsoftware.org wrote: I'm always disgusted from the Google policy. My app has more good reviews, more downloads, more active downloads and is far above other fart app that no one downloaded. On Sep 18, 8:31 am, Pritam pritamsha...@gmail.com wrote: From what I guess that while publishing the app, you choose a category, and your app will appear in this category. Now it may be too down the list, that is something related to SEO part similar to search engines, and may depend on many factors other than ratings, like number of downloads, active downloads, total user reviews, etc. and all that would obviously never will be openly shared and will keep changing. Sometimes it may happen things like,http://techcrunch.com/2011/09/12/googles-auto-correct-killed-the-laun..., though now fixed. On Sep 17, 9:46 pm, sblantipodi perini.dav...@dpsoftware.org wrote: Hi all... Is there someone who can help me understanding how android market sort the apps? One of my financial apps has 4.5stars, it has more download than other apps but it isn't displayed in the financial section of the market. Why? How the market sort the apps? Thanks.- 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
[android-developers] Android Honeycomb CheckBox against white background cannot be seen
I am putting a CheckBox against a white background. It looks fine on pre-Honeycomb devices but on Honeycomb, it seems that the graphic has partial transparency and is white, so when the checkbox is unticked, you cannot see it. I tried using the Theme.Holo.Light style as follows: CheckBox android:text= style=@android:style/Theme.Holo.Light android:layout_marginLeft=5dip android:id=@+id/checkBoxWifiOnly android:layout_width=wrap_content android:layout_height=wrap_content / This appears to have no effect. Am I typing the syntax wrongly? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to 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 is the sorting order on Android Market?
Yes, same thing with Cash Organizer. That app is only a week old. I do believe the rankings are manipulated. On Sep 19, 12:35 pm, Peter Sinnott psinn...@gmail.com wrote: That isn't great but what about Inesoft Cash Organizer. No other apps by the dev , 1-5 installs and it is at position 8. On Sep 19, 1:39 am, Zsolt Vasvari zvasv...@gmail.com wrote: There is no sorting order as it appears that companies can buy a good place in the order. The current #1 Financial App has debuted in the #1 spot. That would never happen with no reviews and no downloads for any other no name app from an independent developer. But since it's an app from a well known player in the field, it appeared as #1 and it has stayed there. Curious if the playing field is even -- it certainly doesn't appear to be. On Sep 18, 7:17 pm, sblantipodi perini.dav...@dpsoftware.org wrote: I'm always disgusted from the Google policy. My app has more good reviews, more downloads, more active downloads and is far above other fart app that no one downloaded. On Sep 18, 8:31 am, Pritam pritamsha...@gmail.com wrote: From what I guess that while publishing the app, you choose a category, and your app will appear in this category. Now it may be too down the list, that is something related to SEO part similar to search engines, and may depend on many factors other than ratings, like number of downloads, active downloads, total user reviews, etc. and all that would obviously never will be openly shared and will keep changing. Sometimes it may happen things like,http://techcrunch.com/2011/09/12/googles-auto-correct-killed-the-laun..., though now fixed. On Sep 17, 9:46 pm, sblantipodi perini.dav...@dpsoftware.org wrote: Hi all... Is there someone who can help me understanding how android market sort the apps? One of my financial apps has 4.5stars, it has more download than other apps but it isn't displayed in the financial section of the market. Why? How the market sort the apps? Thanks.- 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
[android-developers] Get Data from Database of selected Item
I have wrote a program to get students names from database and display them, using ListActivity. and used OnItemClickListener to click on each items. now i want to do, when i click on a student name, display other information of student (age, sex, address) on another screen. how could i do this? pls guide me. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Get Data from Database of selected Item
@Override public void onItemClick(AdapterView? parent, View arg1, int i, long l) { try { SimpleCursorAdapter simpleCursorAdapter = (SimpleCursorAdapter) parent .getAdapter(); final Cursor cursor = simpleCursorAdapter.getCursor(); final int idColIndex = cursor.getColumnIndex(_id); Save the value in a variable and use bundles Bundle bundle = new Bundle(); bundle.putString(any name,Id); Intent intent = new Intent(first activity.this, second activity.class); intent.putExtras(bundle); startActivity(intent); On Mon, Sep 19, 2011 at 10:27 AM, Bishan tvbis...@gmail.com wrote: I have wrote a program to get students names from database and display them, using ListActivity. and used OnItemClickListener to click on each items. now i want to do, when i click on a student name, display other information of student (age, sex, address) on another screen. how could i do this? pls guide me. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Get Data from Database of selected Item
i think ,you got it.. On Mon, Sep 19, 2011 at 10:32 AM, Krishna Prasad krishnaprasadrs.1...@gmail.com wrote: @Override public void onItemClick(AdapterView? parent, View arg1, int i, long l) { try { SimpleCursorAdapter simpleCursorAdapter = (SimpleCursorAdapter) parent .getAdapter(); final Cursor cursor = simpleCursorAdapter.getCursor(); final int idColIndex = cursor.getColumnIndex(_id); Save the value in a variable and use bundles Bundle bundle = new Bundle(); bundle.putString(any name,Id); Intent intent = new Intent(first activity.this, second activity.class); intent.putExtras(bundle); startActivity(intent); On Mon, Sep 19, 2011 at 10:27 AM, Bishan tvbis...@gmail.com wrote: I have wrote a program to get students names from database and display them, using ListActivity. and used OnItemClickListener to click on each items. now i want to do, when i click on a student name, display other information of student (age, sex, address) on another screen. how could i do this? pls guide me. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Get Data from Database of selected Item
thanx Krishna :) On 9/19/11, Krishna Prasad krishnaprasadrs.1...@gmail.com wrote: @Override public void onItemClick(AdapterView? parent, View arg1, int i, long l) { try { SimpleCursorAdapter simpleCursorAdapter = (SimpleCursorAdapter) parent .getAdapter(); final Cursor cursor = simpleCursorAdapter.getCursor(); final int idColIndex = cursor.getColumnIndex(_id); Save the value in a variable and use bundles Bundle bundle = new Bundle(); bundle.putString(any name,Id); Intent intent = new Intent(first activity.this, second activity.class); intent.putExtras(bundle); startActivity(intent); On Mon, Sep 19, 2011 at 10:27 AM, Bishan tvbis...@gmail.com wrote: I have wrote a program to get students names from database and display them, using ListActivity. and used OnItemClickListener to click on each items. now i want to do, when i click on a student name, display other information of student (age, sex, address) on another screen. how could i do this? pls guide me. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Get Data from Database of selected Item
welcome.. On Mon, Sep 19, 2011 at 10:33 AM, Bishan tvbis...@gmail.com wrote: thanx Krishna :) On 9/19/11, Krishna Prasad krishnaprasadrs.1...@gmail.com wrote: @Override public void onItemClick(AdapterView? parent, View arg1, int i, long l) { try { SimpleCursorAdapter simpleCursorAdapter = (SimpleCursorAdapter) parent .getAdapter(); final Cursor cursor = simpleCursorAdapter.getCursor(); final int idColIndex = cursor.getColumnIndex(_id); Save the value in a variable and use bundles Bundle bundle = new Bundle(); bundle.putString(any name,Id); Intent intent = new Intent(first activity.this, second activity.class); intent.putExtras(bundle); startActivity(intent); On Mon, Sep 19, 2011 at 10:27 AM, Bishan tvbis...@gmail.com wrote: I have wrote a program to get students names from database and display them, using ListActivity. and used OnItemClickListener to click on each items. now i want to do, when i click on a student name, display other information of student (age, sex, address) on another screen. how could i do this? pls guide me. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Get Data from Database of selected Item
bundle.putString(any name,Id); what is the Id in above code ? On 9/19/11, Krishna Prasad krishnaprasadrs.1...@gmail.com wrote: welcome.. On Mon, Sep 19, 2011 at 10:33 AM, Bishan tvbis...@gmail.com wrote: thanx Krishna :) On 9/19/11, Krishna Prasad krishnaprasadrs.1...@gmail.com wrote: @Override public void onItemClick(AdapterView? parent, View arg1, int i, long l) { try { SimpleCursorAdapter simpleCursorAdapter = (SimpleCursorAdapter) parent .getAdapter(); final Cursor cursor = simpleCursorAdapter.getCursor(); final int idColIndex = cursor.getColumnIndex(_id); Save the value in a variable and use bundles Bundle bundle = new Bundle(); bundle.putString(any name,Id); Intent intent = new Intent(first activity.this, second activity.class); intent.putExtras(bundle); startActivity(intent); On Mon, Sep 19, 2011 at 10:27 AM, Bishan tvbis...@gmail.com wrote: I have wrote a program to get students names from database and display them, using ListActivity. and used OnItemClickListener to click on each items. now i want to do, when i click on a student name, display other information of student (age, sex, address) on another screen. how could i do this? pls guide me. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to 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: Can 'Recent' item's bind intent be changed ?
What would the API be for such a functionality? Your app is not running, so the user would have to initiate the change using some UI paradigm. Is there such a UI paradigm in Android currently? On Sep 19, 12:11 pm, Pritam pritamsha...@gmail.com wrote: Hi All, Can we change the intent that is bind to recent item list that appears on long press of 'Home' button? Or to be precise change the extra in it ? I want to do this for my application only. I had put this question before,http://groups.google.com/group/android-developers/browse_thread/threa... but I guess was too long in terms of description :) 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: How to create custom softkeyboard ??
Yes, the SDK documentation. On Sep 19, 11:44 am, Krishna Prasad krishnaprasadrs.1...@gmail.com wrote: I need a custom Soft keyboard for my application .For that can anybody guide me,where to start? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Get Data from Database of selected Item
id means the String variable where u save the cursor.colum value. On Mon, Sep 19, 2011 at 10:53 AM, Bishan tvbis...@gmail.com wrote: bundle.putString(any name,Id); what is the Id in above code ? On 9/19/11, Krishna Prasad krishnaprasadrs.1...@gmail.com wrote: welcome.. On Mon, Sep 19, 2011 at 10:33 AM, Bishan tvbis...@gmail.com wrote: thanx Krishna :) On 9/19/11, Krishna Prasad krishnaprasadrs.1...@gmail.com wrote: @Override public void onItemClick(AdapterView? parent, View arg1, int i, long l) { try { SimpleCursorAdapter simpleCursorAdapter = (SimpleCursorAdapter) parent .getAdapter(); final Cursor cursor = simpleCursorAdapter.getCursor(); final int idColIndex = cursor.getColumnIndex(_id); Save the value in a variable and use bundles Bundle bundle = new Bundle(); bundle.putString(any name,Id); Intent intent = new Intent(first activity.this, second activity.class); intent.putExtras(bundle); startActivity(intent); On Mon, Sep 19, 2011 at 10:27 AM, Bishan tvbis...@gmail.com wrote: I have wrote a program to get students names from database and display them, using ListActivity. and used OnItemClickListener to click on each items. now i want to do, when i click on a student name, display other information of student (age, sex, address) on another screen. how could i do this? pls guide me. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to 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: complieStatement(INSERT) crashing my app??
SQLite has the best logging in all of Android's components. The exact error is almost always spelt out in Android for Dummies detail. On Sep 17, 3:05 am, mwllace wallace.d.m...@gmail.com wrote: Im trying to use a datahelper class for my android database, and there is one line that when executed causes my app to quit unexpectedly. Im using android 2.2 Library. this.insertStmt = this.db.compileStatement(INSERT); // Crashes the emulator When I comment the line out the app runs fine, but I cant use insert because I cant get this line work. No errors are reported in eclipse before I run the app in the emulator. Any ideas what this may be? Thanks! private SQLiteDatabase db; private SQLiteStatement insertStmt; private static final String INSERT = insert into + TABLE_NAME + (name) values (?); public DataBaseHelper(Context context) { this.context = context; OpenHelper openHelper = new OpenHelper(this.context); this.db = openHelper.getWritableDatabase(); this.insertStmt = this.db.compileStatement(INSERT); // Crashes the emulator . }- 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] Get Data from Database of selected Item
final int id = cursor.getint(idColIndex ); just check the value using logcat whether it is getting or not On Mon, Sep 19, 2011 at 10:57 AM, Krishna Prasad krishnaprasadrs.1...@gmail.com wrote: id means the String variable where u save the cursor.colum value. On Mon, Sep 19, 2011 at 10:53 AM, Bishan tvbis...@gmail.com wrote: bundle.putString(any name,Id); what is the Id in above code ? On 9/19/11, Krishna Prasad krishnaprasadrs.1...@gmail.com wrote: welcome.. On Mon, Sep 19, 2011 at 10:33 AM, Bishan tvbis...@gmail.com wrote: thanx Krishna :) On 9/19/11, Krishna Prasad krishnaprasadrs.1...@gmail.com wrote: @Override public void onItemClick(AdapterView? parent, View arg1, int i, long l) { try { SimpleCursorAdapter simpleCursorAdapter = (SimpleCursorAdapter) parent .getAdapter(); final Cursor cursor = simpleCursorAdapter.getCursor(); final int idColIndex = cursor.getColumnIndex(_id); Save the value in a variable and use bundles Bundle bundle = new Bundle(); bundle.putString(any name,Id); Intent intent = new Intent(first activity.this, second activity.class); intent.putExtras(bundle); startActivity(intent); On Mon, Sep 19, 2011 at 10:27 AM, Bishan tvbis...@gmail.com wrote: I have wrote a program to get students names from database and display them, using ListActivity. and used OnItemClickListener to click on each items. now i want to do, when i click on a student name, display other information of student (age, sex, address) on another screen. how could i do this? pls guide me. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: How to create custom softkeyboard ??
Thanks .. On Mon, Sep 19, 2011 at 10:56 AM, Zsolt Vasvari zvasv...@gmail.com wrote: Yes, the SDK documentation. On Sep 19, 11:44 am, Krishna Prasad krishnaprasadrs.1...@gmail.com wrote: I need a custom Soft keyboard for my application .For that can anybody guide me,where to start? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Get Data from Database of selected Item
thanx Krishna. i'll check this. On 9/19/11, Krishna Prasad krishnaprasadrs.1...@gmail.com wrote: final int id = cursor.getint(idColIndex ); just check the value using logcat whether it is getting or not On Mon, Sep 19, 2011 at 10:57 AM, Krishna Prasad krishnaprasadrs.1...@gmail.com wrote: id means the String variable where u save the cursor.colum value. On Mon, Sep 19, 2011 at 10:53 AM, Bishan tvbis...@gmail.com wrote: bundle.putString(any name,Id); what is the Id in above code ? On 9/19/11, Krishna Prasad krishnaprasadrs.1...@gmail.com wrote: welcome.. On Mon, Sep 19, 2011 at 10:33 AM, Bishan tvbis...@gmail.com wrote: thanx Krishna :) On 9/19/11, Krishna Prasad krishnaprasadrs.1...@gmail.com wrote: @Override public void onItemClick(AdapterView? parent, View arg1, int i, long l) { try { SimpleCursorAdapter simpleCursorAdapter = (SimpleCursorAdapter) parent .getAdapter(); final Cursor cursor = simpleCursorAdapter.getCursor(); final int idColIndex = cursor.getColumnIndex(_id); Save the value in a variable and use bundles Bundle bundle = new Bundle(); bundle.putString(any name,Id); Intent intent = new Intent(first activity.this, second activity.class); intent.putExtras(bundle); startActivity(intent); On Mon, Sep 19, 2011 at 10:27 AM, Bishan tvbis...@gmail.com wrote: I have wrote a program to get students names from database and display them, using ListActivity. and used OnItemClickListener to click on each items. now i want to do, when i click on a student name, display other information of student (age, sex, address) on another screen. how could i do this? pls guide me. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Screenshot capture
Hello, I am capturing screenshot using Android screenshot library(http:// code.google.com/p/android-screenshot-library/wiki/DeveloperGuide) But I have observed that many times the screenshot captured by ASL is stale , it does not show the actual contents being shown on device. It happens when the changes on screen are quite small. I want to use this screenshot cature tool in automation workflow. Is there any other library or method which captures latest/refershed view of device screen. Thanks much Suman -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to 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: Can 'Recent' item's bind intent be changed ?
I am not sure on any current available option from API. If you mean what can be , then yes, we can make it to pass some predefined extra added with Intent, so we know from where the application is launched. I mean if it has been from somewhere out of app control, like the GUI app in this case. On Sep 19, 10:25 am, Zsolt Vasvari zvasv...@gmail.com wrote: What would the API be for such a functionality? Your app is not running, so the user would have to initiate the change using some UI paradigm. Is there such a UI paradigm in Android currently? On Sep 19, 12:11 pm, Pritam pritamsha...@gmail.com wrote: Hi All, Can we change the intent that is bind to recent item list that appears on long press of 'Home' button? Or to be precise change the extra in it ? I want to do this for my application only. I had put this question before,http://groups.google.com/group/android-developers/browse_thread/threa... but I guess was too long in terms of description :) 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: Using chimpchat
Here it is http://code.google.com/p/aster/downloads/list On Sep 17, 3:37 am, Case B casebea...@gmail.com wrote: Where did you find the source and jar file? I am trying to do the same. On Sep 13, 5:35 am, suman sumanmeht...@gmail.com wrote: I have read on one of the Android groups that it is better ti use ChimpChat rather than usingMonkeyRunner. I have downloaded chimpchat source and jar file. Till now I have not found any documentation or code sample on how to use it. Is it in a stable state to be used in my automation project. Thanks, Suman- 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] Get Data from Database of selected Item
i got this exception, java.lang.ClassCastException: android.widget.ArrayAdapter for below code. SimpleCursorAdapter simpleCursorAdapter = (SimpleCursorAdapter) parent.getAdapter(); On 9/19/11, Bishan tvbis...@gmail.com wrote: thanx Krishna. i'll check this. On 9/19/11, Krishna Prasad krishnaprasadrs.1...@gmail.com wrote: final int id = cursor.getint(idColIndex ); just check the value using logcat whether it is getting or not On Mon, Sep 19, 2011 at 10:57 AM, Krishna Prasad krishnaprasadrs.1...@gmail.com wrote: id means the String variable where u save the cursor.colum value. On Mon, Sep 19, 2011 at 10:53 AM, Bishan tvbis...@gmail.com wrote: bundle.putString(any name,Id); what is the Id in above code ? On 9/19/11, Krishna Prasad krishnaprasadrs.1...@gmail.com wrote: welcome.. On Mon, Sep 19, 2011 at 10:33 AM, Bishan tvbis...@gmail.com wrote: thanx Krishna :) On 9/19/11, Krishna Prasad krishnaprasadrs.1...@gmail.com wrote: @Override public void onItemClick(AdapterView? parent, View arg1, int i, long l) { try { SimpleCursorAdapter simpleCursorAdapter = (SimpleCursorAdapter) parent .getAdapter(); final Cursor cursor = simpleCursorAdapter.getCursor(); final int idColIndex = cursor.getColumnIndex(_id); Save the value in a variable and use bundles Bundle bundle = new Bundle(); bundle.putString(any name,Id); Intent intent = new Intent(first activity.this, second activity.class); intent.putExtras(bundle); startActivity(intent); On Mon, Sep 19, 2011 at 10:27 AM, Bishan tvbis...@gmail.com wrote: I have wrote a program to get students names from database and display them, using ListActivity. and used OnItemClickListener to click on each items. now i want to do, when i click on a student name, display other information of student (age, sex, address) on another screen. how could i do this? pls guide me. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en