[android-developers] Re: SurfaceHolder.Callback.surfaceCreated not being triggered when surface is re-created
Had exactly the same problem. As it looks like, the issue is not that the callback isn't fired, but that when Android creates a new SurfaceView, it also creates a new holder. Check if this helps you: http://groups.google.com/group/android-developers/browse_thread/thread/3514e1890ed958e2/8874eff5e487553a?hl=deq=surfaceview+callback+create -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Skip activity to maintain activity stack
I have just implemented the startActivityForResult solution I outlined above, and that does the trick! Thanks a lot! JP On 29 Nov., 08:58, JP jetp...@yahoo.com wrote: Hi Guys, Thanks for the input. I can see how you would do this by overriding the back button functionality, which I was hoping not to do. But I am a little unclear on how you would go about doing this by using the startActivityForResult and onActivityResult. Can you provide a little clue as to what you wanted to do in this case Lbendling? I know how to start an activity for a result, I just wanted to know what exactly you were thinking? Are you thinking that I should start the Activity for a result, and then if the result is cancel i.e. the back button pressed, then open the MainActivity? Thanks, JP On 28 Nov., 17:11, lbendlin l...@bendlin.us wrote: look into startActivityForResult and onActivityResult -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: NFC Secure Element
I only have a checkbox 'NFC', to activate the NFC reader. Activated (or not), the phone doesn't act as a Mifare tag on every Mifare test system I own. Is there something else I can check ? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] database connectivity on real device
Hi all, plz help me connecting the sqlite database onto a real device. I have connected it to the android emulator easily, using push in DDMS - file Explorer - data/data/package name/ur_database. It worked fine. But, now when I going to use real device (Samsung Galaxy Pop) for database, it is giving me database exception. Even the former way of DDMS is unable to help me. I m perfectly fine running other apps (without using database), on my device. I tried a lot, but *still waiting* for the result. Suggest me what can I do to solve that... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] database connectivity on real device
data/data/package name/ur_database, Database folder you creating or not by Ur own code . On Tue, Nov 29, 2011 at 2:27 PM, Narendra Singh Rathore nsr.curi...@gmail.com wrote: Hi all, plz help me connecting the sqlite database onto a real device. I have connected it to the android emulator easily, using push in DDMS - file Explorer - data/data/package name/ur_database. It worked fine. But, now when I going to use real device (Samsung Galaxy Pop) for database, it is giving me database exception. Even the former way of DDMS is unable to help me. I m perfectly fine running other apps (without using database), on my device. I tried a lot, but *still waiting* for the result. Suggest me what can I do to solve that... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: [Applications signed by manufacturer/Permissions not granted] Correct approach to develop appliations for device manufacturers
Hi! Thank you for your response! Ok, I understand that it would be quite a difficult task and I should get familiar with Android source code in the first place. On 28 Lis, 14:39, Mark Murphy mmur...@commonsware.com wrote: On Mon, Nov 28, 2011 at 5:15 AM, cpphool cpph...@gmail.com wrote: I was wondering what is the correct approach when developing applications with non-public functionality for Android device manufacturers. Just say no. First of all, there are a lot of Android permissions that are not granted to 3rd party apps unless they are signed with manufacturer certificate, f.e. android.permission.READ_FRAME_BUFFER. http://developer.android.com/reference/android/Manifest.permission.ht... Android documentation says: Allows an application to take screen shots and more generally get access to the frame buffer data. Ok, so how can I take this screen shot? Is there some API? No. Or should I directly access framebuffer (like many applications that work on rooted devices do)? Your guess is as good as mine. 1) Where can I find out how these permissions exactly work? Read through the source code onhttp://source.android.com. Searching on the name of the permission frequently comes up with interesting stuff. 2) Should not there be some information if permissions are accessible by normal 3rd party applications or not? There isn't in the documentation. However, in frameworks/base/core/res/AndroidManifest.xml in the source code, you will see declarations like: !-- Allows an application to take screen shots and more generally get access to the frame buffer data -- permission android:name=android.permission.READ_FRAME_BUFFER android:label=@string/permlab_readFrameBuffer android:description=@string/permdesc_readFrameBuffer android:protectionLevel=signature / The android:protectionLevel tells you what is required. In this case, signature means that it must be signed with the same signing key as is used with the firmware. You will also sometimes see signatureOrSystem, which (from what I can tell) allows both signature-based apps and ones that reside in /system/app. 3) Secondly, is there a way of testing an applications that uses these non-public permissions? I assume that you would have rooted device in order to do so. But can you switch something in the rooted Android operating system so that it would grant all permissions for all applications? Not that I am aware of, but that's a far better question for some firmware-related Google Group, hosted over onhttp://source.android.com. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://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] Re: NFC Secure Element
Then the patches are not correctly applied. On Tue, Nov 29, 2011 at 9:56 AM, fuful ludwig.fulg...@gmail.com wrote: I only have a checkbox 'NFC', to activate the NFC reader. Activated (or not), the phone doesn't act as a Mifare tag on every Mifare test system I own. Is there something else I can check ? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 do you load class from a sharedUser apk file?
I have also found this: http://yenliangl.blogspot.com/2009/11/dynamic-loading-of-classes-in-your.html which did seem to help, but still can't get to load my class from another apk. any suggestions ? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] database connectivity on real device
Absolutely creating.. Actually its data/data/package_name/database/database_name. is it ok, now.? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Multi-touch with multiple buttons
There are some basic principles in android regarding multi-touch that you should be aware of. Especially, wrt. your code these two come to my mind: 1) If the first finger touches view A, all other touches will be directed to view A as long as the first finger is still there, even if the subsequent touches touch another view. I think, the reason to implement it this way, was to ease implementation of gestures like pinchzoom. 2) The action codes you will typically see during a multitouch gesture are: - ACTION_DOWN: this signals that the first finger touches the display - ACTION_POINTER_DOWN: the second, third, ... finger touches the display - ACTION_POINTER_UP: a finger was lifted, but there are still fingers on the display - ACTION_UP: the last finger was lifted Of course, you may also see ACTION_MOVE events in between and after a POINTER_UP, another POINTER_DOWN event may occur, if another finger touches the display before all fingers are lifted, etc. Regarding your code: 1) means that you have to capture the events at a view that is an ancestor to all the buttons that should be part of the multi-touch. I.e. put both buttons into a common parent and listen for the touch events at the parent. You can then analyze the event to determine the coordinates of the new touch point and use the coordinates to determine the touched button. Be aware though, that some devices have terrible hardware limitations (i.e. problems). See http://androidandme.com/2010/03/news/is-multitouch-broken-on-the-nexus-one/ for an example. I.e. the code has to take some strange behaviour into account. Regarding analyzing the event, don't confuse pointer id's with pointer indizes. That's a problem that can be seen in various code examples online. 2) means, you have to listen for ACTION_POINTER_DOWN and ACTION_POINTER_UP (as well as ACTION_CANCEL) too. On 28 Nov., 15:13, ColletJb collet...@gmail.com wrote: Hi, I'm facing an very simple (and stupid) issue and I hope someone will be able to provide me an explanation... I'm trying to develop an Activity with 2 buttons (let's call them btnA and btnB), they are in my xml layout. My goal is to be able to handle click on both button (easy), even on the same time with multi-touch. First, I retrieve them on the onCreate method and I set them the OnTouchListener to this (my Activity implements OnTouchListener): @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); this.btnA = (ImageButton) this.findViewById(R.id.btnA); this.btnB = (ImageButton) this.findViewById(R.id.btnB); this.btnA.setOnTouchListener(this); this.btnB.setOnTouchListener(this); } I did override the onTouch method that way : @Override public boolean onTouch(View v, MotionEvent event) { int action = event.getAction() MotionEvent.ACTION_MASK; if(v.equals((View)this.btnA)){ if(action == MotionEvent.ACTION_DOWN){ updateAState(true); }else if(action == MotionEvent.ACTION_UP){ updateAState(false); } }else if(v.equals((View)this.btnB)){ if(action == MotionEvent.ACTION_DOWN){ updateBState(true); }else if(action == MotionEvent.ACTION_UP){ updateBState(false); } } return true; } With this implementation, I can capture the DOWN and UP event on both buttons, but not with multi-touch (ex: btnA DOWN, btnB DOWN, btnB UP, btnB DOWN, btnB UP, btnA UP). Who can tell me how I can fix my onTouch method to support such feature ? Thanks a lot. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] database connectivity on real device
On Tue, Nov 29, 2011 at 3:01 PM, Narendra Singh Rathore nsr.curi...@gmail.com wrote: Absolutely creating.. Actually its data/data/package_name/database/database_name. is it ok, now.? I m even unable to open data folder (DDMS-file Explorer - *data*), while using real device. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] how to copy an object?
Hi: I try to copy an object in android with the method of Serializable,but failed. The method and the logcat are following. * Method:* public PPTObject copyObject(PPTObject oldObj){ Log.i(TAG, copyObject); Object obj = null; if (oldObj == null) { return (PPTObject)obj; } try { // Write the object out to a byte array ByteArrayOutputStream bos = new ByteArrayOutputStream(); ObjectOutputStream out = new ObjectOutputStream(bos); out.writeObject(oldObj); out.flush(); out.close(); // Retrieve an input stream from the byte array and read // a copy of the object back in. ByteArrayInputStream bis = new ByteArrayInputStream(bos.toByteArray()); ObjectInputStream in = new ObjectInputStream(bis); obj = in.readObject(); } catch (IOException e) { e.printStackTrace(); } catch (ClassNotFoundException cnfe) { cnfe.printStackTrace(); } return (PPTObject)obj; } *LOGCAT:* I/PPTSurfaceView( 2124): onContextItemSelected I/PPTSurfaceView( 2124): paste I/PPTSurfaceView( 2124): copyObject W/System.err( 2124): java.io.NotSerializableException: android.graphics.Point W/System.err( 2124): at java.io.ObjectOutputStream.writeNewObject(ObjectOutputStream.java:1535) W/System.err( 2124): at java.io.ObjectOutputStream.writeObjectInternal(ObjectOutputStream.java:1847) W/System.err( 2124): at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:1689) W/System.err( 2124): at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:1653) W/System.err( 2124): at java.io.ObjectOutputStream.writeFieldValues(ObjectOutputStream.java:1143) W/System.err( 2124): at java.io.ObjectOutputStream.defaultWriteObject(ObjectOutputStream.java:413) W/System.err( 2124): at java.io.ObjectOutputStream.writeHierarchy(ObjectOutputStream.java:1241) W/System.err( 2124): at java.io.ObjectOutputStream.writeHierarchy(ObjectOutputStream.java:1205) W/System.err( 2124): at java.io.ObjectOutputStream.writeHierarchy(ObjectOutputStream.java:1205) W/System.err( 2124): at java.io.ObjectOutputStream.writeNewObject(ObjectOutputStream.java:1575) W/System.err( 2124): at java.io.ObjectOutputStream.writeObjectInternal(ObjectOutputStream.java:1847) W/System.err( 2124): at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:1689) W/System.err( 2124): at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:1653) W/System.err( 2124): at com.***.powerpoint.PPTSurfaceView.copyObject(PPTSurfaceView.java:905) W/System.err( 2124): at com.***.powerpoint.PPTSurfaceView.paste(PPTSurfaceView.java:961) W/System.err( 2124): at com.***.powerpoint.PPTSurfaceView.onContextItemSelected(PPTSurfaceView.java:853) W/System.err( 2124): at com.***.powerpoint.PPTActivity.onContextItemSelected(PPTActivity.java:1380) W/System.err( 2124): at android.app.Activity.onMenuItemSelected(Activity.java:2209) W/System.err( 2124): at com.android.internal.policy.impl.PhoneWindow$ContextMenuCallback.onMenuItemSelected(PhoneWindow.java:2808) W/System.err( 2124): at com.android.internal.view.menu.MenuItemImpl.invoke(MenuItemImpl.java:143) W/System.err( 2124): at com.android.internal.view.menu.MenuBuilder.performItemAction(MenuBuilder.java:855) W/System.err( 2124): at com.android.internal.view.menu.MenuDialogHelper.onClick(MenuDialogHelper.java:137) W/System.err( 2124): at com.android.internal.app.AlertController$AlertParams$3.onItemClick(AlertController.java:873) W/System.err( 2124): at android.widget.AdapterView.performItemClick(AdapterView.java:284) W/System.err( 2124): at android.widget.ListView.performItemClick(ListView.java:3513) W/System.err( 2124): at android.widget.AbsListView$PerformClick.run(AbsListView.java:1849) W/System.err( 2124): at android.os.Handler.handleCallback(Handler.java:587) W/System.err( 2124): at android.os.Handler.dispatchMessage(Handler.java:92) W/System.err( 2124): at android.os.Looper.loop(Looper.java:130) W/System.err( 2124): at android.app.ActivityThread.main(ActivityThread.java:3835) W/System.err( 2124): at java.lang.reflect.Method.invokeNative(Native Method) W/System.err( 2124): at java.lang.reflect.Method.invoke(Method.java:507) W/System.err( 2124): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:841) W/System.err( 2124): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:599) W/System.err( 2124): at dalvik.system.NativeStart.main(Native Method) D/AndroidRuntime( 2124): Shutting down VM W/dalvikvm( 2124): threadid=1: thread exiting with uncaught exception (group=0x40018560) E/AndroidRuntime( 2124): FATAL EXCEPTION: main E/AndroidRuntime( 2124): java.lang.NullPointerException E/AndroidRuntime( 2124): at com.***.powerpoint.PPTSurfaceView.paste(PPTSurfaceView.java:967) E/AndroidRuntime( 2124): at com.***.powerpoint.PPTSurfaceView.onContextItemSelected(PPTSurfaceView.java:853) E/AndroidRuntime( 2124): at com.***.powerpoint.PPTActivity.onContextItemSelected(PPTActivity.java:1380) E/AndroidRuntime( 2124): at android.app.Activity.onMenuItemSelected(Activity.java:2209) E/AndroidRuntime( 2124): at
[android-developers] Re: How do I get glow effect on a ImageView?
I would override the onTouchEvent method of ImageView and in it change the related picture to a one with glow effect. - Ali Chousein Weather-Buddy http://weatherbuddy.blogspot.com | http://twitter.com/weather_buddy Geo-Filtered Assistant http://geo-filtered-assistant.blogspot.com https://marketplace.cisco.com/apphq/store/products/994 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 move an android market app from an old account to a new account?
I suppose the answer to both of your questions is, you can't. - Ali Chousein Weather-Buddy http://weatherbuddy.blogspot.com | http://twitter.com/weather_buddy Geo-Filtered Assistant http://geo-filtered-assistant.blogspot.com https://marketplace.cisco.com/apphq/store/products/994 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 force Share Intent to open a specific app?
Hi, I like share intent, it is perfect to open sharing apps with image and text parameters. But now i'm researching the way to force share intent to open a specific app from the list, with the paramters given to the share intent. This is my actual code, it shows the list of sharing apps installed on the phone. Please, can somedone tell me what i should add to the code to force for example official twitter app? and official faccebok app? Intent sharingIntent = new Intent(Intent.ACTION_SEND); Uri screenshotUri = Uri.parse(file:///sdcard/test.jpg); sharingIntent.setType(image/*); sharingIntent.putExtra(Intent.EXTRA_TEXT, body text); sharingIntent.putExtra(Intent.EXTRA_STREAM, screenshotUri); startActivity(Intent.createChooser(sharingIntent, Share image using)); 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: Null pointer exception in sending SMS..
Check your logcat. It'll give you very good log information where exactly (e.g. on which exact line) you are getting the null pointer exception. - Ali Chousein Weather-Buddy http://weatherbuddy.blogspot.com | http://twitter.com/weather_buddy Geo-Filtered Assistant http://geo-filtered-assistant.blogspot.com https://marketplace.cisco.com/apphq/store/products/994 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] how to copy an object?
On 29 November 2011 09:41, 杨辉 yanghui1986...@gmail.com wrote: Hi: I try to copy an object in android with the method of Serializable,but failed. Your object that you are trying to 'copy' needs to implement interface Serializeable. It is a place-holder interface marking given class as serialiseable. Have a read here [*], then go to find some examples and see, whether it is achievable, what you are trying to achieve. [*} http://docs.oracle.com/javase/1.5.0/docs/api/java/io/Serializable.html -- Daniel Drozdzewski -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Null pointer exception in sending SMS..
Provide the logcat/error. On Tue, Nov 29, 2011 at 3:18 PM, Ali Chousein ali.chous...@gmail.comwrote: Check your logcat. It'll give you very good log information where exactly (e.g. on which exact line) you are getting the null pointer exception. - Ali Chousein Weather-Buddy http://weatherbuddy.blogspot.com | http://twitter.com/weather_buddy Geo-Filtered Assistant http://geo-filtered-assistant.blogspot.com https://marketplace.cisco.com/apphq/store/products/994 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Thanks Regards Rakesh Kumar Jha Android Developer, Trainer and Mentor Bangalore (O) +918030274295 (R) +919886336619 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 force Share Intent to open a specific app?
saex wrote: Hi, I like share intent, it is perfect to open sharing apps with image and text parameters. But now i'm researching the way to force share intent to open a specific app from the list, with the paramters given to the share intent. This is my actual code, it shows the list of sharing apps installed on the phone. Please, can somedone tell me what i should add to the code to force for example official twitter app? and official faccebok app? Intent sharingIntent = new Intent(Intent.ACTION_SEND); Uri screenshotUri = Uri.parse(file:///sdcard/test.jpg); sharingIntent.setType(image/*); sharingIntent.putExtra(Intent.EXTRA_TEXT, body text); sharingIntent.putExtra(Intent.EXTRA_STREAM, screenshotUri); startActivity(Intent.createChooser(sharingIntent, Share image using)); Thanks See http://developer.android.com/reference/android/content/ComponentName.html pskink -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] how to copy an object?
Thank you for yoir help,i will have a try later. Daniel Drozdzewski daniel.drozdzew...@gmail.com编写: On 29 November 2011 09:41, 杨辉 yanghui1986...@gmail.com wrote: Hi: I try to copy an object in android with the method of Serializable,but failed. Your object that you are trying to 'copy' needs to implement interface Serializeable. It is a place-holder interface marking given class as serialiseable. Have a read here [*], then go to find some examples and see, whether it is achievable, what you are trying to achieve. [*} http://docs.oracle.com/javase/1.5.0/docs/api/java/io/Serializable.html -- Daniel Drozdzewski -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 do you load class from a sharedUser apk file?
gil eichenbaum wrote: Hello Everyone! I am trying to load a class from another .apk which uses the same sharedUser as my apk. No matter what I try, I always get just ClassNotFoundExeption. This is one thing I have tried: classLoader = context.createPackageContext(pInfo.packageName, 0).getClassLoader(); classLoader.loadClass(myClass); Is there any other way to make this work? i just don't believe your class is just myClass and not a.b.c.MyClass pskink -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How to connect to Facebook and publish in the wall
If you Google for oauth tutorial you can find wonderful tutorials as in this link: http://drupal.org/node/349516 . Or you can refer to this also http://developer.linkedin.com/documents/oauth-overview (I used this one to integrate LinkedIn in one of my applications. If you follow the explanation, it should work for you also) - Ali Chousein Weather-Buddy http://weatherbuddy.blogspot.com | http://twitter.com/weather_buddy Geo-Filtered Assistant http://geo-filtered-assistant.blogspot.com https://marketplace.cisco.com/apphq/store/products/994 On Nov 23, 1:19 pm, sam bang bang.sa...@gmail.com wrote: i am facing same problem... but i am building twitter app using jtwitter library if u got any tutorail for* OAUTH *plz,. share with me Regards, sam -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 force Share Intent to open a specific app?
Hi, thanks for your answer, i'm checking your link but i can't understand how can i use that class to achieve my objectives Please can you give me some help to do it? thanks! On Nov 29, 11:13 am, skink psk...@gmail.com wrote: saex wrote: Hi, I like share intent, it is perfect to open sharing apps with image and text parameters. But now i'm researching the way to force share intent to open a specific app from the list, with the paramters given to the share intent. This is my actual code, it shows the list of sharing apps installed on the phone. Please, can somedone tell me what i should add to the code to force for example official twitter app? and official faccebok app? Intent sharingIntent = new Intent(Intent.ACTION_SEND); Uri screenshotUri = Uri.parse(file:///sdcard/test.jpg); sharingIntent.setType(image/*); sharingIntent.putExtra(Intent.EXTRA_TEXT, body text); sharingIntent.putExtra(Intent.EXTRA_STREAM, screenshotUri); startActivity(Intent.createChooser(sharingIntent, Share image using)); Thanks Seehttp://developer.android.com/reference/android/content/ComponentName pskink -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Need Intent Help
Hey guys, I have a problem while using intents. Can you please suggest me the right way. I have an Activity1 which contains some methods ( addData(),deleteData() ). when I use intent to other Activity2 Class.. I am not able to access the methods which are in Activity1. I cant copy paste all the methods in all Activities. I dont think its good practise. Can anybody suggest me. Thanks, KIRANKUMARKENDOLE -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 force Share Intent to open a specific app?
saex wrote: Hi, thanks for your answer, i'm checking your link but i can't understand how can i use that class to achieve my objectives Please can you give me some help to do it? thanks! On Nov 29, 11:13 am, skink psk...@gmail.com wrote: saex wrote: Hi, I like share intent, it is perfect to open sharing apps with image and text parameters. But now i'm researching the way to force share intent to open a specific app from the list, with the paramters given to the share intent. This is my actual code, it shows the list of sharing apps installed on the phone. Please, can somedone tell me what i should add to the code to force for example official twitter app? and official faccebok app? Intent sharingIntent = new Intent(Intent.ACTION_SEND); Uri screenshotUri = Uri.parse(file:///sdcard/test.jpg); sharingIntent.setType(image/*); sharingIntent.putExtra(Intent.EXTRA_TEXT, body text); sharingIntent.putExtra(Intent.EXTRA_STREAM, screenshotUri); startActivity(Intent.createChooser(sharingIntent, Share image using)); Thanks Seehttp://developer.android.com/reference/android/content/ComponentName pskink see Intent docs pskink -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Need Intent Help
h.. Poor architecture of the application.Please follow the MVC Pattern thats helps, just dont write the code blindly. Have a util package of the application and put all your common methods there. Warm Regards, *Mukesh Kumar*, Android Consultant/Freelancer, India,Hyderabad. On Tue, Nov 29, 2011 at 4:04 PM, Kiran Kumar Kendole k.kirankumar1...@gmail.com wrote: Hey guys, I have a problem while using intents. Can you please suggest me the right way. I have an Activity1 which contains some methods ( addData(),deleteData() ). when I use intent to other Activity2 Class.. I am not able to access the methods which are in Activity1. I cant copy paste all the methods in all Activities. I dont think its good practise. Can anybody suggest me. Thanks, KIRANKUMARKENDOLE -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 do you load class from a sharedUser apk file?
Tried that one as well (my.package.myclass), but still get the same result. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: problem parsing the package
above described was 1 way i tried. it was to develop customized camera feature as given in Android guide/ camera... i also tried another way of using existing camera feature but am getting NullPointerException can u tel where am going wrong?? On Nov 29, 10:13 am, rachana govilkar rachana.govil...@gmail.com wrote: hey this is my ImageCapture.java..hope u get idea. package com.privacygram.activity; import android.content.Context; import android.graphics.PixelFormat; import android.hardware.Camera; import android.hardware.Camera.Parameters; import android.hardware.Camera.PictureCallback; import android.hardware.Camera.ShutterCallback; import android.view.SurfaceHolder; import android.view.SurfaceView; public class ImageCapture extends SurfaceView{ SurfaceHolder previewHolder; Camera camera; protected PictureCallback raw; protected ShutterCallback shutter; protected PictureCallback postview; protected PictureCallback jpeg; public ImageCapture(Context context) { super(context); // TODO Auto-generated constructor stub previewHolder = this.getHolder(); previewHolder.setType(SurfaceHolder.SURFACE_TYPE_PUSH_BUFFERS); previewHolder.addCallback(surfaceHolderListener); } SurfaceHolder.Callback surfaceHolderListener = new SurfaceHolder.Callback() { public void surfaceCreated(SurfaceHolder holder) { camera=Camera.open(); try { camera.setPreviewDisplay(previewHolder); }catch (Exception E ){ } } public void surfaceDestroyed(SurfaceHolder arg0) { camera.stopPreview(); camera.release(); } public void surfaceChanged(SurfaceHolder holder, int format, int width, int height) { Parameters params = camera.getParameters(); params.setPreviewSize(width, height); params.setPictureFormat(PixelFormat.JPEG); camera.setParameters(params); camera.startPreview(); camera.takePicture(shutter, raw, postview, jpeg); camera.stopPreview(); camera.release(); } }; } On Nov 28, 6:23 pm, Mark Murphy mmur...@commonsware.com wrote: InstantiationException can mean that the activity class is not public or lacks a public constructor with the appropriate signature. On Mon, Nov 28, 2011 at 8:07 AM, Raghav Sood raghavs...@androidactivist.org wrote: There is a problem in your instantiating your ImageCapture class. Post the first 30 lines or so, and you may get some help. Thanks On Mon, Nov 28, 2011 at 6:13 PM, rachana govilkar rachana.govil...@gmail.com wrote: when i test on emulator it gives me error as Your application has stopped unexpectedly. n LogCat is:- 11-28 18:10:06.265: E/AndroidRuntime(313): FATAL EXCEPTION: main 11-28 18:10:06.265: E/AndroidRuntime(313): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.privacygram.activity/ com.privacygram.activity.ImageCapture}: java.lang.InstantiationException: com.privacygram.activity.ImageCapture 11-28 18:10:06.265: E/AndroidRuntime(313): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java: 2585) 11-28 18:10:06.265: E/AndroidRuntime(313): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java: 2679) 11-28 18:10:06.265: E/AndroidRuntime(313): at android.app.ActivityThread.access$2300(ActivityThread.java:125) 11-28 18:10:06.265: E/AndroidRuntime(313): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033) 11-28 18:10:06.265: E/AndroidRuntime(313): at android.os.Handler.dispatchMessage(Handler.java:99) 11-28 18:10:06.265: E/AndroidRuntime(313): at android.os.Looper.loop(Looper.java:123) 11-28 18:10:06.265: E/AndroidRuntime(313): at android.app.ActivityThread.main(ActivityThread.java:4627) 11-28 18:10:06.265: E/AndroidRuntime(313): at java.lang.reflect.Method.invokeNative(Native Method) 11-28 18:10:06.265: E/AndroidRuntime(313): at java.lang.reflect.Method.invoke(Method.java:521) 11-28 18:10:06.265: E/AndroidRuntime(313): at com.android.internal.os.ZygoteInit $MethodAndArgsCaller.run(ZygoteInit.java:868) 11-28 18:10:06.265: E/AndroidRuntime(313): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626) 11-28
[android-developers] confusion about activity?
Hi, There is one activity class called BaseActivity.java. There are other 2 activities called childactivity1 and childactivity2. Now childActivity1 extends BaseActivity and childActivity2 extends BaseActivity My problem is that i am calling childactivity2 from childactivity1 and finishes childactivity1 so onResume(childactivity2) is called before onDestroy(childactivity1) called and it gives unable to resume activity. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] rooting android phone
hi, I want to execute an application which is having root permission, is it necessary to root my phone to run this application. 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] confusion about activity?
The Design is good. Please remove the onPause,onResume,onDestroy from the ChildActivities and keep it in only parentActivity.Things will work. Warm Regards, *Mukesh Kumar*, Android Consultant/Freelancer, India,Hyderabad. On Tue, Nov 29, 2011 at 4:59 PM, Hitendrasinh Gohil hitendrasin...@gmail.com wrote: Hi, There is one activity class called BaseActivity.java. There are other 2 activities called childactivity1 and childactivity2. Now childActivity1 extends BaseActivity and childActivity2 extends BaseActivity My problem is that i am calling childactivity2 from childactivity1 and finishes childactivity1 so onResume(childactivity2) is called before onDestroy(childactivity1) called and it gives unable to resume activity. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] rooting android phone
Yes. And this list is for SDK related questions. Do not post questions like this here again. On Tue, Nov 29, 2011 at 5:00 PM, Sumedh sumedhjos...@gmail.com wrote: hi, I want to execute an application which is having root permission, is it necessary to root my phone to run this application. 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 -- Raghav Sood http://www.androidactivist.org/ - Author http://www.appaholics.in/ - Founder -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] confusion about activity?
I have some timers in both child activities which must be stopped on onPause. On Tue, Nov 29, 2011 at 5:03 PM, Mukesh Srivastav mukicha...@gmail.comwrote: The Design is good. Please remove the onPause,onResume,onDestroy from the ChildActivities and keep it in only parentActivity.Things will work. Warm Regards, *Mukesh Kumar*, Android Consultant/Freelancer, India,Hyderabad. On Tue, Nov 29, 2011 at 4:59 PM, Hitendrasinh Gohil hitendrasin...@gmail.com wrote: Hi, There is one activity class called BaseActivity.java. There are other 2 activities called childactivity1 and childactivity2. Now childActivity1 extends BaseActivity and childActivity2 extends BaseActivity My problem is that i am calling childactivity2 from childactivity1 and finishes childactivity1 so onResume(childactivity2) is called before onDestroy(childactivity1) called and it gives unable to resume activity. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 -- regards, Hitendrasinh Gohil -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] confusion about activity?
why do u want to extend it from the parentactivity, you have your own extendable activity. Things will work. On Tue, Nov 29, 2011 at 5:10 PM, Hitendrasinh Gohil hitendrasin...@gmail.com wrote: I have some timers in both child activities which must be stopped on onPause. On Tue, Nov 29, 2011 at 5:03 PM, Mukesh Srivastav mukicha...@gmail.comwrote: The Design is good. Please remove the onPause,onResume,onDestroy from the ChildActivities and keep it in only parentActivity.Things will work. Warm Regards, *Mukesh Kumar*, Android Consultant/Freelancer, India,Hyderabad. On Tue, Nov 29, 2011 at 4:59 PM, Hitendrasinh Gohil hitendrasin...@gmail.com wrote: Hi, There is one activity class called BaseActivity.java. There are other 2 activities called childactivity1 and childactivity2. Now childActivity1 extends BaseActivity and childActivity2 extends BaseActivity My problem is that i am calling childactivity2 from childactivity1 and finishes childactivity1 so onResume(childactivity2) is called before onDestroy(childactivity1) called and it gives unable to resume activity. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 -- regards, Hitendrasinh Gohil -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Warm Regards, *Mukesh Kumar*, Android Consultant/Freelancer, India,Hyderabad. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Device Administration API policy prevent change set date time
We are developing an Enterprise App and want to use Device Administration API as it is explained on http://developer.android.com/guide/topics/admin/device-admin.html. This seems to be a good solution for us. We would like to prevent the user of the device to be able to set time settings. In other words. We want to set a policy which defines, that the value in settings - Date time - Automatic Use network-provided values is allways on and the user MUST not change this value. Are there any recommandations to do this? Thanks Anil -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] confusion about activity?
There is a commonview in 2 activities.In both activities the half part is common and half is different. On Tue, Nov 29, 2011 at 5:23 PM, Mukesh Srivastav mukicha...@gmail.comwrote: why do u want to extend it from the parentactivity, you have your own extendable activity. Things will work. On Tue, Nov 29, 2011 at 5:10 PM, Hitendrasinh Gohil hitendrasin...@gmail.com wrote: I have some timers in both child activities which must be stopped on onPause. On Tue, Nov 29, 2011 at 5:03 PM, Mukesh Srivastav mukicha...@gmail.comwrote: The Design is good. Please remove the onPause,onResume,onDestroy from the ChildActivities and keep it in only parentActivity.Things will work. Warm Regards, *Mukesh Kumar*, Android Consultant/Freelancer, India,Hyderabad. On Tue, Nov 29, 2011 at 4:59 PM, Hitendrasinh Gohil hitendrasin...@gmail.com wrote: Hi, There is one activity class called BaseActivity.java. There are other 2 activities called childactivity1 and childactivity2. Now childActivity1 extends BaseActivity and childActivity2 extends BaseActivity My problem is that i am calling childactivity2 from childactivity1 and finishes childactivity1 so onResume(childactivity2) is called before onDestroy(childactivity1) called and it gives unable to resume activity. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 -- regards, Hitendrasinh Gohil -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Warm Regards, *Mukesh Kumar*, Android Consultant/Freelancer, India,Hyderabad. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- regards, Hitendrasinh Gohil -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Fragment Re-instantiation on Activity Restart
Rony, you are correct, but of course if (savedInstanceState != null) then I'd need to use the manager findFragmentByTag call to find these recreated fragments since I need to be able to add them to their container view and also to be able to call custom methods that update the displayed data, etc. Now that I understand how and why it works this way, I might make these changes for the sake of efficiency. On Nov 28, 2:16 pm, Rony Hotimsky rony.hotim...@gmail.com wrote: What exactly you mean with all sorts of bizarre behavior? I've seen a problem with fragments duplicating themselves after each screen rotation, and that could be avoided checking if (savedInstanceState == null) before creating 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: problem parsing the package
Hey Its Working... yaaay! i knw it must hv been very simple for u but for me its a start 1st android program n exception was comingu can guess how sick i was feeling... but no more sick now i just need to focus more on itthnk u for help On Nov 29, 4:08 pm, rachana govilkar rachana.govil...@gmail.com wrote: above described was 1 way i tried. it was to develop customized camera feature as given in Android guide/ camera... i also tried another way of using existing camera feature but am getting NullPointerException can u tel where am going wrong?? On Nov 29, 10:13 am, rachana govilkar rachana.govil...@gmail.com wrote: hey this is my ImageCapture.java..hope u get idea. package com.privacygram.activity; import android.content.Context; import android.graphics.PixelFormat; import android.hardware.Camera; import android.hardware.Camera.Parameters; import android.hardware.Camera.PictureCallback; import android.hardware.Camera.ShutterCallback; import android.view.SurfaceHolder; import android.view.SurfaceView; public class ImageCapture extends SurfaceView{ SurfaceHolder previewHolder; Camera camera; protected PictureCallback raw; protected ShutterCallback shutter; protected PictureCallback postview; protected PictureCallback jpeg; public ImageCapture(Context context) { super(context); // TODO Auto-generated constructor stub previewHolder = this.getHolder(); previewHolder.setType(SurfaceHolder.SURFACE_TYPE_PUSH_BUFFERS); previewHolder.addCallback(surfaceHolderListener); } SurfaceHolder.Callback surfaceHolderListener = new SurfaceHolder.Callback() { public void surfaceCreated(SurfaceHolder holder) { camera=Camera.open(); try { camera.setPreviewDisplay(previewHolder); }catch (Exception E ){ } } public void surfaceDestroyed(SurfaceHolder arg0) { camera.stopPreview(); camera.release(); } public void surfaceChanged(SurfaceHolder holder, int format, int width, int height) { Parameters params = camera.getParameters(); params.setPreviewSize(width, height); params.setPictureFormat(PixelFormat.JPEG); camera.setParameters(params); camera.startPreview(); camera.takePicture(shutter, raw, postview, jpeg); camera.stopPreview(); camera.release(); } }; } On Nov 28, 6:23 pm, Mark Murphy mmur...@commonsware.com wrote: InstantiationException can mean that the activity class is not public or lacks a public constructor with the appropriate signature. On Mon, Nov 28, 2011 at 8:07 AM, Raghav Sood raghavs...@androidactivist.org wrote: There is a problem in your instantiating your ImageCapture class. Post the first 30 lines or so, and you may get some help. Thanks On Mon, Nov 28, 2011 at 6:13 PM, rachana govilkar rachana.govil...@gmail.com wrote: when i test on emulator it gives me error as Your application has stopped unexpectedly. n LogCat is:- 11-28 18:10:06.265: E/AndroidRuntime(313): FATAL EXCEPTION: main 11-28 18:10:06.265: E/AndroidRuntime(313): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.privacygram.activity/ com.privacygram.activity.ImageCapture}: java.lang.InstantiationException: com.privacygram.activity.ImageCapture 11-28 18:10:06.265: E/AndroidRuntime(313): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java: 2585) 11-28 18:10:06.265: E/AndroidRuntime(313): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java: 2679) 11-28 18:10:06.265: E/AndroidRuntime(313): at android.app.ActivityThread.access$2300(ActivityThread.java:125) 11-28 18:10:06.265: E/AndroidRuntime(313): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033) 11-28 18:10:06.265: E/AndroidRuntime(313): at android.os.Handler.dispatchMessage(Handler.java:99) 11-28 18:10:06.265: E/AndroidRuntime(313): at android.os.Looper.loop(Looper.java:123) 11-28 18:10:06.265: E/AndroidRuntime(313): at android.app.ActivityThread.main(ActivityThread.java:4627) 11-28 18:10:06.265: E/AndroidRuntime(313):
Re: [android-developers] Need Intent Help
If you want to access those methods in various activities, why dont you create a simple java class and acess them?? , if you want to share variables across different activities, u can save them in AppPreferences . Please provide me more details if i didnt get u :) On 11/29/2011 04:04 PM, Kiran Kumar Kendole wrote: Hey guys, I have a problem while using intents. Can you please suggest me the right way. I have an Activity1 which contains some methods ( addData(),deleteData() ). when I use intent to other Activity2 Class.. I am not able to access the methods which are in Activity1. I cant copy paste all the methods in all Activities. I dont think its good practise. Can anybody suggest me. Thanks, KIRANKUMARKENDOLE -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] confusion about activity?
u might needs to have some condtion bases, where u can hide the controls, tht is the best solution. On Tue, Nov 29, 2011 at 5:32 PM, Hitendrasinh Gohil hitendrasin...@gmail.com wrote: There is a commonview in 2 activities.In both activities the half part is common and half is different. On Tue, Nov 29, 2011 at 5:23 PM, Mukesh Srivastav mukicha...@gmail.comwrote: why do u want to extend it from the parentactivity, you have your own extendable activity. Things will work. On Tue, Nov 29, 2011 at 5:10 PM, Hitendrasinh Gohil hitendrasin...@gmail.com wrote: I have some timers in both child activities which must be stopped on onPause. On Tue, Nov 29, 2011 at 5:03 PM, Mukesh Srivastav mukicha...@gmail.comwrote: The Design is good. Please remove the onPause,onResume,onDestroy from the ChildActivities and keep it in only parentActivity.Things will work. Warm Regards, *Mukesh Kumar*, Android Consultant/Freelancer, India,Hyderabad. On Tue, Nov 29, 2011 at 4:59 PM, Hitendrasinh Gohil hitendrasin...@gmail.com wrote: Hi, There is one activity class called BaseActivity.java. There are other 2 activities called childactivity1 and childactivity2. Now childActivity1 extends BaseActivity and childActivity2 extends BaseActivity My problem is that i am calling childactivity2 from childactivity1 and finishes childactivity1 so onResume(childactivity2) is called before onDestroy(childactivity1) called and it gives unable to resume activity. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 -- regards, Hitendrasinh Gohil -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Warm Regards, *Mukesh Kumar*, Android Consultant/Freelancer, India,Hyderabad. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- regards, Hitendrasinh Gohil -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Warm Regards, *Mukesh Kumar*, Android Consultant/Freelancer, India,Hyderabad. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Multi-touch with multiple buttons
Thanks for your answer. I tried what you mentioned and put this on my onTouch method: this.aRect = new Rect(); this.aBtn.getLocalVisibleRect(aRect); if(aRect.contains((int)event.getRawX(), (int)event.getRawY())){ Log.i(TAG, inA); if(action == MotionEvent.ACTION_DOWN){ updateAState(true); }else if(action == MotionEvent.ACTION_UP){ updateAState(false); } }else but unfortunately, it seems i got wrong infos from getLocalVisibleRect... Do you have any idea ? On 29 nov, 10:38, al achim.leub...@googlemail.com wrote: There are some basic principles in android regarding multi-touch that you should be aware of. Especially, wrt. your code these two come to my mind: 1) If the first finger touches view A, all other touches will be directed to view A as long as the first finger is still there, even if the subsequent touches touch another view. I think, the reason to implement it this way, was to ease implementation of gestures like pinchzoom. 2) The action codes you will typically see during a multitouch gesture are: - ACTION_DOWN: this signals that the first finger touches the display - ACTION_POINTER_DOWN: the second, third, ... finger touches the display - ACTION_POINTER_UP: a finger was lifted, but there are still fingers on the display - ACTION_UP: the last finger was lifted Of course, you may also see ACTION_MOVE events in between and after a POINTER_UP, another POINTER_DOWN event may occur, if another finger touches the display before all fingers are lifted, etc. Regarding your code: 1) means that you have to capture the events at a view that is an ancestor to all the buttons that should be part of the multi-touch. I.e. put both buttons into a common parent and listen for the touch events at the parent. You can then analyze the event to determine the coordinates of the new touch point and use the coordinates to determine the touched button. Be aware though, that some devices have terrible hardware limitations (i.e. problems). Seehttp://androidandme.com/2010/03/news/is-multitouch-broken-on-the-nexu... for an example. I.e. the code has to take some strange behaviour into account. Regarding analyzing the event, don't confuse pointer id's with pointer indizes. That's a problem that can be seen in various code examples online. 2) means, you have to listen for ACTION_POINTER_DOWN and ACTION_POINTER_UP (as well as ACTION_CANCEL) too. On 28 Nov., 15:13, ColletJb collet...@gmail.com wrote: Hi, I'm facing an very simple (and stupid) issue and I hope someone will be able to provide me an explanation... I'm trying to develop an Activity with 2 buttons (let's call them btnA and btnB), they are in my xml layout. My goal is to be able to handle click on both button (easy), even on the same time with multi-touch. First, I retrieve them on the onCreate method and I set them the OnTouchListener to this (my Activity implements OnTouchListener): @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); this.btnA = (ImageButton) this.findViewById(R.id.btnA); this.btnB = (ImageButton) this.findViewById(R.id.btnB); this.btnA.setOnTouchListener(this); this.btnB.setOnTouchListener(this); } I did override the onTouch method that way : @Override public boolean onTouch(View v, MotionEvent event) { int action = event.getAction() MotionEvent.ACTION_MASK; if(v.equals((View)this.btnA)){ if(action == MotionEvent.ACTION_DOWN){ updateAState(true); }else if(action == MotionEvent.ACTION_UP){ updateAState(false); } }else if(v.equals((View)this.btnB)){ if(action == MotionEvent.ACTION_DOWN){ updateBState(true); }else if(action == MotionEvent.ACTION_UP){ updateBState(false); } } return true; } With this implementation, I can capture the DOWN and UP event on both buttons, but not with multi-touch (ex: btnA DOWN, btnB DOWN, btnB UP, btnB DOWN, btnB UP, btnA UP). Who can tell me how I can fix my onTouch method to support such feature ? Thanks a lot. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at
Re: [android-developers] Re: Start application on System boot without home screen
On Mon, Nov 28, 2011 at 9:27 PM, Goodwin purerain2...@163.com wrote: I have a doubt. if that,there are two home screens,and the user must choose one in the alert dialog. Yes. it is not convenient. To you, perhaps not. To the user, it is, because the user retains control over their device. is there any way to start his application only ? The user can tap the make this the default checkbox, before tapping on one of the home screens in the chooser dialog. They will not be presented with the chooser again -- pressing HOME will take them to their newly-chosen default home screen. The user, of course, can reboot in safe mode and remove the non-firmware home screen if they so choose. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 4.1 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: Galaxy Nexus can't go in USB Host mode, no mouse no usb stick.
Isn't this a google phone? I'm not talking about the volume problem that is samsung related, I'm talking about the USB Host feature that it is a non enabled kernel feature. On Nov 27, 4:21 pm, Christopher Van Kirk christopher.vank...@gmail.com wrote: How many mails from Google do you see in this list on a given day? One? Maybe two? At that rate, it's odd to expect your mail to beat the 1000 to 1 odds that you'll get a reply from Google. I suspect Google views that particular issue as Samsung's problem, rather than theirs. They have gone on record saying that ICS works as intended, and that the Nexus has issues that aren't inherent to the OS. Have you tried the Samsung support boards? You might have better luck there. On 11/27/2011 10:05 PM, sblantipodi wrote: Why? On Nov 27, 8:10 am, Christopher Van Kirk christopher.vank...@gmail.com wrote: It's surprising that you're surprised. On 11/27/2011 9:37 AM, sblantipodi wrote: Something important don't work as expected and google is in silence. On Nov 23, 11:15 pm, sblantipodiperini.dav...@dpsoftware.org wrote: I'm not talking about USB Mass Storage but about the possibility to connect an usb stick or mouse to the phone. This is possible since a modder enabled a kernel options and now it works but a feature like this must be enabled by default without any modding needed. On Nov 23, 5:39 pm, Christopher Van Kirk christopher.vank...@gmail.com wrote: They explained this already. It's because the Galaxy Nexus has no SD card. On 11/24/2011 12:37 AM, sblantipodi wrote: who can explain me why galaxy nexus isn't able to go into u -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Need Intent Help
Hey Siva and Mukhesh, Thanks for the response. The problem which I am forcing to use this unfair architecture is.. I have hard time to show different options menu for different layout XML files.. Can you please give me a quick example how to change the options based on the layout. Thanks, KIRANKUMARKENDOLE On Tue, Nov 29, 2011 at 7:14 AM, siva prakash sivaprakashcs07b...@gmail.com wrote: If you want to access those methods in various activities, why dont you create a simple java class and acess them?? , if you want to share variables across different activities, u can save them in AppPreferences . Please provide me more details if i didnt get u :) On 11/29/2011 04:04 PM, Kiran Kumar Kendole wrote: Hey guys, I have a problem while using intents. Can you please suggest me the right way. I have an Activity1 which contains some methods ( addData(),deleteData() ). when I use intent to other Activity2 Class.. I am not able to access the methods which are in Activity1. I cant copy paste all the methods in all Activities. I dont think its good practise. Can anybody suggest me. Thanks, KIRANKUMARKENDOLE -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@** googlegroups.com android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+**unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/**group/android-developers?hl=enhttp://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@**googlegroups.comandroid-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+**unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/**group/android-developers?hl=enhttp://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Device Administration API policy prevent change set date time
That is not possible. The supported policies are listed in Table 1 on the page you linked to. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Need Intent Help
Why not go with TAB Activity, that helps. On Tue, Nov 29, 2011 at 6:22 PM, Kiran Kumar Kendole k.kirankumar1...@gmail.com wrote: Hey Siva and Mukhesh, Thanks for the response. The problem which I am forcing to use this unfair architecture is.. I have hard time to show different options menu for different layout XML files.. Can you please give me a quick example how to change the options based on the layout. Thanks, KIRANKUMARKENDOLE On Tue, Nov 29, 2011 at 7:14 AM, siva prakash sivaprakashcs07b...@gmail.com wrote: If you want to access those methods in various activities, why dont you create a simple java class and acess them?? , if you want to share variables across different activities, u can save them in AppPreferences . Please provide me more details if i didnt get u :) On 11/29/2011 04:04 PM, Kiran Kumar Kendole wrote: Hey guys, I have a problem while using intents. Can you please suggest me the right way. I have an Activity1 which contains some methods ( addData(),deleteData() ). when I use intent to other Activity2 Class.. I am not able to access the methods which are in Activity1. I cant copy paste all the methods in all Activities. I dont think its good practise. Can anybody suggest me. Thanks, KIRANKUMARKENDOLE -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@** googlegroups.com android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+**unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/**group/android-developers?hl=enhttp://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@** googlegroups.com android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+**unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/**group/android-developers?hl=enhttp://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Warm Regards, *Mukesh Kumar*, Android Consultant/Freelancer, India,Hyderabad. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Need Intent Help
Hello, If you need to use some methods in all your Activities - create a base Activity class with these methods :) And use these methods in dirived Activity A and B. No copy past is needed. Best regards, Yahor On Tue, Nov 29, 2011 at 3:01 PM, Mukesh Srivastav mukicha...@gmail.comwrote: Why not go with TAB Activity, that helps. On Tue, Nov 29, 2011 at 6:22 PM, Kiran Kumar Kendole k.kirankumar1...@gmail.com wrote: Hey Siva and Mukhesh, Thanks for the response. The problem which I am forcing to use this unfair architecture is.. I have hard time to show different options menu for different layout XML files.. Can you please give me a quick example how to change the options based on the layout. Thanks, KIRANKUMARKENDOLE On Tue, Nov 29, 2011 at 7:14 AM, siva prakash sivaprakashcs07b...@gmail.com wrote: If you want to access those methods in various activities, why dont you create a simple java class and acess them?? , if you want to share variables across different activities, u can save them in AppPreferences . Please provide me more details if i didnt get u :) On 11/29/2011 04:04 PM, Kiran Kumar Kendole wrote: Hey guys, I have a problem while using intents. Can you please suggest me the right way. I have an Activity1 which contains some methods ( addData(),deleteData() ). when I use intent to other Activity2 Class.. I am not able to access the methods which are in Activity1. I cant copy paste all the methods in all Activities. I dont think its good practise. Can anybody suggest me. Thanks, KIRANKUMARKENDOLE -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@** googlegroups.com android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+**unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/**group/android-developers?hl=enhttp://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@** googlegroups.com android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+**unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/**group/android-developers?hl=enhttp://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Warm Regards, *Mukesh Kumar*, Android Consultant/Freelancer, India,Hyderabad. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: NFC Secure Element
OK, understood. Now my next question will be about this patch : how can I apply it ? I'm totally new at Android, and I have no idea how to add this patch to my phone. Is there some information on the web somewhere I can follow do perform this ? Thank for your answer. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Slow Down In Android Emulator (AVD)
Hello, I need help to get fast run time of Android AVD. It takes about 3-5 minutes. I can't able to test is fast. I have Window 7 as Operating system with Android SDK 2.3 API 10 Level. 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 move an android market app from an old account to a new account?
You can contact the market team via this support link http://www.google.com/support/androidmarket/developer/bin/request.py?contact_type=contact_policy A thread that's related to your question: http://www.google.com/support/forum/p/Android%20Market/thread?tid=4e3d0dbf24d46167hl=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] Resize VideoView (no picture just audio)
This is an offshoot of Hardware Acceleration, With my new tests I'm not sure that was the problem I have created a new project that is Nothing but the Video Player I'm trying to create this time I did **not** enable any hardware acceleration I still have the same problem video plays , hear the audiono picture So I thought about resizing, I followed http://stackoverflow.com/questions/7031598/resize-video-to-fit-the-videoview and http://clseto.mysinablog.com/index.php?op=ViewArticlearticleId=2992625 No joy still no picture public class MyVideoView extends VideoView { private int mForceHeight = 658; private int mForceWidth = 1170; public MyVideoView(Context context) { super(context); } public MyVideoView(Context context, AttributeSet attrs) { this(context, attrs, 0); } public MyVideoView(Context context, AttributeSet attrs, int defStyle) { super(context, attrs, defStyle); } public void setDimensions(int w, int h) { this.mForceWidth = w; this.mForceHeight = h; getHolder().setFixedSize(w , h); requestLayout(); invalidate(); } @Override protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { Log.i(, onMeasure this : + this.getWidth() + x + this.getHeight() +current : + this.mForceWidth + x + this.mForceHeight + to be : + widthMeasureSpec + x + heightMeasureSpec ); setMeasuredDimension(mForceWidth, mForceHeight); } } Log reports it is called three times onMeasure this :0 x 0current : 1170 x 658to be : 1073742994 x 1073742524 onMeasure this : 1170 x 658current : 1170 x 658to be : 1073742994 x 1073742524 onMeasure this : 1170 x 658current : 1170 x 658to be : 1073742994 x 1073742524 I called this way whether I put setDimensions before of after setVideoPath no change video.setVideoPath(fName); video.setDimensions(1170 , 658); Questions: -- 1) Why three times ? 2) What are the large values of widthMeasureSpec and heightMeasureSpec ? 3) Is this right, what is the correct way to resize the video ? the original video is 1280 x 720 and my viewing size is 1170 x 700 All help greatly appreciated Thanks in advance -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Have an extra $800 lying around for a mobile ESRB rating? Didn't think so.
http://xkcd.com/285/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: I/O date change
Cheers for the alert Mark. Now I just need to convince myself that I have a good reason to fly to SF for it! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: HI,i have a question
What icon are you expecting to see? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 do I get glow effect on a ImageView?
You can use selectors like below ,based on the state of imageview it will show the corresponding image. selector.xml ?xml version=1.0 encoding=utf-8? selector xmlns:android=http://schemas.android.com/apk/res/android; item android:state_focused=true android:state_pressed=true android:drawable=@drawable/home_btn_starred_pressed/ item android:state_focused=false android:state_pressed=true android:drawable=@drawable/home_btn_starred_pressed/ item android:state_focused=true android:drawable=@drawable/home_btn_starred_selected/ item android:state_focused=false android:state_pressed=false android:drawable=@drawable/home_btn_starred_default/ /selector you have to set src of imageview , which you need glow effect to @drawable/selector in the xml . chekout the below link : http://android-journey.blogspot.com/2009/12/android-selectors.html On Tue, Nov 29, 2011 at 3:12 PM, Ali Chousein ali.chous...@gmail.comwrote: I would override the onTouchEvent method of ImageView and in it change the related picture to a one with glow effect. - Ali Chousein Weather-Buddy http://weatherbuddy.blogspot.com | http://twitter.com/weather_buddy Geo-Filtered Assistant http://geo-filtered-assistant.blogspot.com https://marketplace.cisco.com/apphq/store/products/994 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Touch events cross Activities.
Hi All, I'm wondering is it possible to make touch events cross activities. I have 2 activities, Activity A and Activity B. Activity A starts Activity B. User can drag something on Activity B, when Activity B detects a long- press event, it finish itself and back to Activity A. User can continue drag the dragee and inside Activity A. However, I found once Activity B finished, Activity A can't receive any event until up and down agan. Does anyone has experiences about this case? Thanks a lot! Best regards. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] listactvity should not scrooll inmy view can any one tell how to do this
Hi iam useing list actvity should not be scroll can any one tell me for ths guidance package com.android.wt360weather.more; import java.io.UTFDataFormatException; import java.util.HashMap; import android.app.ListActivity; import android.content.Context; import android.content.Intent; import android.content.res.Resources; import android.os.Bundle; import android.util.Log; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.ArrayAdapter; import android.widget.ImageView; import android.widget.ListView; import android.widget.TabHost; import android.widget.TextView; import com.android.wt360weather.R; public class More extends ListActivity { /** Called when the activity is first created. */ int[] imageIds = { R.drawable.maps, R.drawable.severe, R.drawable.settings, R.drawable.swipe, R.drawable.blog, R.drawable.web, R.drawable.feedback, R.drawable.art }; String[] texts; MoreAdapter adapter; Resources res; HashMapObject, Object htMap=new HashMapObject, Object(); @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.more); texts = getResources().getStringArray(R.array.more); adapter = new MoreAdapter(this, android.R.layout.simple_list_item_2, texts); setListAdapter(adapter); } class MoreAdapter extends ArrayAdapter { private LayoutInflater mInflater; public MoreAdapter(Context context, int textViewResourceId, String[] items) { super(context, textViewResourceId, items); mInflater = LayoutInflater.from(context); // TODO Auto-generated constructor stub } @Override public View getView(int position, View convertView, ViewGroup parent) { // TODO Auto-generated method stub View listView; if (convertView == null) { listView = mInflater.inflate(R.layout.moreview, null); } else listView = convertView; TextView label = (TextView) listView.findViewById(R.id.label); label.setText(texts[position]); ImageView icon = (ImageView) listView.findViewById(R.id.icon); icon.setImageResource(imageIds[position]); return listView; } } public void onListItemClick(ListView parent, View v, int position, long id) { if (position == 0) { Intent myintent = new Intent(); myintent.setClass(More.this, InteractiveMaps.class); startActivity(myintent); } if (position == 1) { Intent myintent = new Intent(); myintent.setClass(More.this, ActiveSevereAlerts.class); startActivity(myintent); } if (position == 2) { Intent myintent = new Intent(); myintent.setClass(More.this, Setting.class); startActivity(myintent); } if (position == 3) { Intent myintent = new Intent(); myintent.setClass(More.this, Swipe.class); startActivity(myintent); } if (position == 4) { Intent myintent = new Intent(); myintent.setClass(More.this, Wt360Blog.class); startActivity(myintent); } if (position == 5) { Intent myintent = new Intent(); myintent.setClass(More.this, Wt360comWebsite.class); startActivity(myintent); } if (position == 6) { Intent myintent = new Intent(); myintent.setClass(More.this, Feedback.class); startActivity(myintent); } if (position == 7) { Intent myintent = new Intent(); myintent.setClass(More.this, SetBackgroundImage.class);
Re: [android-developers] Re: Video Conference
I'll say it again, where have you looked already? Otherwise the likely answer you'll get from anyone is that you can refer to Google. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Update notification when user launches app
Hey: I have seen in many apps that it notifies the user of new updates if any when they launch the app. Can someone please guide me as to how to achieve this. I guess we need to add code to the onCreate method which checks the version number on the android market. But how can we achieve this easily? Any help would be appreciated 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: Distribute banned app outside Android Market with donation app in Market
This may be a dumb question, but why not just take donations through Paypal / Google Checkout directly rather than letting Google take a cut through the Market? You can advertise this facility both in your free app and at the locations you provide it for download. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Reusing Views in Custom Adapter
Hi Android Framework Gurus! I am hoping someone out there can answer a question for me about re- using views in my adapters. My understanding, is that for performance reasons this is something I should always always always do. Yet in my experience, doing so always results in the view, whether a grid or list, going wonky once I get very many children in the view. I suspect, I'm just doing something flat out wrong. So I put together a simple straight-forward project to demonstrate both how I attempt to re-use the views in a grid view, and how it goes bonkers if you add a few hundred entries and scroll the list. I've tested on both the cupcake emulator as well as my gingerbread device with the same results. Thanks in advance to anyone who takes the time to respond! ==Layouts== main.xml ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/ android android:layout_width=fill_parent android:layout_height=fill_parent android:orientation=vertical TextView android:layout_width=fill_parent android:layout_height=wrap_content android:text=Reuse Views Demo / GridView android:id=@+id/gridview android:layout_width=fill_parent android:layout_height=fill_parent android:padding=5dp android:verticalSpacing=5dp android:horizontalSpacing=10dp android:numColumns=auto_fit android:columnWidth=60dp android:stretchMode=columnWidth android:gravity=center_horizontal/ /LinearLayout grid_item.xml LinearLayout xmlns:android=http://schemas.android.com/apk/res/ android android:id=@+id/GridItem android:layout_width=fill_parent android:layout_height=wrap_content android:orientation=vertical android:gravity=center_horizontal TextView android:id=@+id/grid_item_text android:layout_width=wrap_content android:layout_height=wrap_content android:gravity=center_horizontal android:layout_marginBottom=4dip/ /LinearLayout ==source== Main.java package com.authorwjf.reuseviews; import java.util.ArrayList; import android.app.Activity; import android.os.Bundle; import android.widget.GridView; public class Main extends Activity { private CustomAdapter mAdapter; private ArrayListString mItems = new ArrayListString(); @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); for (int i = 0; i200; i++) { mItems.add(Integer.toString(i)); } mAdapter = new CustomAdapter(this, mItems); GridView g = (GridView) findViewById(R.id.gridview); g.setAdapter(mAdapter); } } CustomAdapter.java package com.authorwjf.reuseviews; import java.util.ArrayList; import com.authorwjf.reuseviews.R; import android.content.Context; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.BaseAdapter; import android.widget.TextView; public class CustomAdapter extends BaseAdapter { private Context mContext; private ArrayListString mItems; public CustomAdapter(Context c, ArrayListString items) { mContext = c; mItems = items; } @Override public int getCount() { return mItems.size(); } @Override public Object getItem(int position) { return mItems.get(position); } @Override public long getItemId(int position) { return position; } @Override public View getView(int position, View convertView, ViewGroup parent) { View v = convertView; if (v == null) { LayoutInflater li = (LayoutInflater) mContext.getSystemService(Context.LAYOUT_INFLATER_SERVICE); v = li.inflate(R.layout.grid_item, null); TextView tv = (TextView)v.findViewById(R.id.grid_item_text); tv.setText(Item #+mItems.get(position)); } return v; } } -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] iterator blues
I'm looking at the Best Practices section of Beginning Android Games, and it says: Don't use iterators, as they create new objects. Can someone help me understand? The reason I ask is because I'm seeing performance issues with this method: public static void burnfire() { for (final IteratorParticle i = particles.iterator(); i.hasNext();) { final Particle p = i.next(); p.move(); p.timeleft--; if (p.timeleft == 0) { i.remove(); } } } The method just traverses a linked list and moves some particles. Are objects being created there? How can I make that faster? 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: Fragment Re-instantiation on Activity Restart
To wrap this up, I've found that the arguments sent to the fragment with setArguments are preserved when the fragment is reinstantiated by the framework. So what I'm now doing is only creating a new fragment if there is no previous one after a config-change restart. For example: mTabBar = (TabBarFrag) fm.findFragmentByTag(PERS_TAB_TAG); if (mTabBar == null) { mTabBar = TabBarFrag.newInstance(R.id.tab_pers); } ft.add(R.id.tab_bar, mTabBar, PERS_TAB_TAG); And where the newInstance function contains: public static TabBarFrag newInstance(int dsbId) { TabBarFrag frag = new TabBarFrag(); Bundle args = new Bundle(); args.putInt(DISABLE_ID, dsbId); frag.setArguments(args); return frag; } -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 can i specify the position of a videoview? (top left, top right, bottom left… etc )
Hi, i have a VideoView that i know how to center it on the screen, but now i need to specify dinamically (java code, not xml code) the position on the screen. This is my actual code: VideoView vv = new VideoView(this); this.setContentView(vv); LayoutParams vvParams = (LayoutParams) vv.getLayoutParams(); vvParams.gravity=17; //gravity 17 = center horizontal vertical vvParams.width=150; vv.setLayoutParams(vvParams); String fileName = android.resource:// + getPackageName() + / + R.raw.v; vv.setVideoURI(Uri.parse(fileName)); vv.start(); These are the possible positions i want to specify: (vertical/horizontal) top left, top center, top right center left, center center, center right bottom left, bottom center, bottom right How to specify these possitions with java code dinamically? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Touch events cross Activities.
This is not possible. You cannot have two activities on the screen at one time. On Tue, Nov 29, 2011 at 9:53 AM, xamous xam...@gmail.com wrote: Hi All, I'm wondering is it possible to make touch events cross activities. I have 2 activities, Activity A and Activity B. Activity A starts Activity B. User can drag something on Activity B, when Activity B detects a long- press event, it finish itself and back to Activity A. User can continue drag the dragee and inside Activity A. However, I found once Activity B finished, Activity A can't receive any event until up and down agan. Does anyone has experiences about this case? Thanks a lot! Best regards. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 _Android Programming Tutorials_ Version 4.1 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: Reusing Views in Custom Adapter
What exactly is the problem. Bonkers doesn't really tell us much. On Nov 29, 8:12 pm, authorwjf wfran...@softlayer.com wrote: Hi Android Framework Gurus! I am hoping someone out there can answer a question for me about re- using views in my adapters. My understanding, is that for performance reasons this is something I should always always always do. Yet in my experience, doing so always results in the view, whether a grid or list, going wonky once I get very many children in the view. I suspect, I'm just doing something flat out wrong. So I put together a simple straight-forward project to demonstrate both how I attempt to re-use the views in a grid view, and how it goes bonkers if you add a few hundred entries and scroll the list. I've tested on both the cupcake emulator as well as my gingerbread device with the same results. Thanks in advance to anyone who takes the time to respond! ==Layouts== main.xml ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/ android android:layout_width=fill_parent android:layout_height=fill_parent android:orientation=vertical TextView android:layout_width=fill_parent android:layout_height=wrap_content android:text=Reuse Views Demo / GridView android:id=@+id/gridview android:layout_width=fill_parent android:layout_height=fill_parent android:padding=5dp android:verticalSpacing=5dp android:horizontalSpacing=10dp android:numColumns=auto_fit android:columnWidth=60dp android:stretchMode=columnWidth android:gravity=center_horizontal/ /LinearLayout grid_item.xml LinearLayout xmlns:android=http://schemas.android.com/apk/res/ android android:id=@+id/GridItem android:layout_width=fill_parent android:layout_height=wrap_content android:orientation=vertical android:gravity=center_horizontal TextView android:id=@+id/grid_item_text android:layout_width=wrap_content android:layout_height=wrap_content android:gravity=center_horizontal android:layout_marginBottom=4dip/ /LinearLayout ==source== Main.java package com.authorwjf.reuseviews; import java.util.ArrayList; import android.app.Activity; import android.os.Bundle; import android.widget.GridView; public class Main extends Activity { private CustomAdapter mAdapter; private ArrayListString mItems = new ArrayListString(); @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); for (int i = 0; i200; i++) { mItems.add(Integer.toString(i)); } mAdapter = new CustomAdapter(this, mItems); GridView g = (GridView) findViewById(R.id.gridview); g.setAdapter(mAdapter); } } CustomAdapter.java package com.authorwjf.reuseviews; import java.util.ArrayList; import com.authorwjf.reuseviews.R; import android.content.Context; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.BaseAdapter; import android.widget.TextView; public class CustomAdapter extends BaseAdapter { private Context mContext; private ArrayListString mItems; public CustomAdapter(Context c, ArrayListString items) { mContext = c; mItems = items; } @Override public int getCount() { return mItems.size(); } @Override public Object getItem(int position) { return mItems.get(position); } @Override public long getItemId(int position) { return position; } @Override public View getView(int position, View convertView, ViewGroup parent) { View v = convertView; if (v == null) { LayoutInflater li = (LayoutInflater) mContext.getSystemService(Context.LAYOUT_INFLATER_SERVICE); v = li.inflate(R.layout.grid_item, null); TextView tv = (TextView)v.findViewById(R.id.grid_item_text); tv.setText(Item #+mItems.get(position)); } return v; } } -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Update notification when user launches app
On Tue, Nov 29, 2011 at 10:08 AM, Bipin Shashi bi...@lokalty.com wrote: I have seen in many apps that it notifies the user of new updates if any when they launch the app. Can someone please guide me as to how to achieve this. I guess we need to add code to the onCreate method which checks the version number on the android market. I'd fork an AsyncTask from onCreate() that downloads version information from a site that I control. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 4.1 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Need Intent Help
Hey Guys, Thank you all for your Help . Finally I completed my assignment. Finally I have one question. I have created the APK in 2.3.3 . We have different mobiles with different versions.. Its not working on all due to compatibility may be. Can you guys suggest me what I suppose to do so that independent of version , it should work. Thanks, KIRANKUMARKENDOLE On Tue, Nov 29, 2011 at 8:16 AM, Yahor Paulavets ypaulav...@agilefusion.com wrote: Hello, If you need to use some methods in all your Activities - create a base Activity class with these methods :) And use these methods in dirived Activity A and B. No copy past is needed. Best regards, Yahor On Tue, Nov 29, 2011 at 3:01 PM, Mukesh Srivastav mukicha...@gmail.comwrote: Why not go with TAB Activity, that helps. On Tue, Nov 29, 2011 at 6:22 PM, Kiran Kumar Kendole k.kirankumar1...@gmail.com wrote: Hey Siva and Mukhesh, Thanks for the response. The problem which I am forcing to use this unfair architecture is.. I have hard time to show different options menu for different layout XML files.. Can you please give me a quick example how to change the options based on the layout. Thanks, KIRANKUMARKENDOLE On Tue, Nov 29, 2011 at 7:14 AM, siva prakash sivaprakashcs07b...@gmail.com wrote: If you want to access those methods in various activities, why dont you create a simple java class and acess them?? , if you want to share variables across different activities, u can save them in AppPreferences . Please provide me more details if i didnt get u :) On 11/29/2011 04:04 PM, Kiran Kumar Kendole wrote: Hey guys, I have a problem while using intents. Can you please suggest me the right way. I have an Activity1 which contains some methods ( addData(),deleteData() ). when I use intent to other Activity2 Class.. I am not able to access the methods which are in Activity1. I cant copy paste all the methods in all Activities. I dont think its good practise. Can anybody suggest me. Thanks, KIRANKUMARKENDOLE -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@** googlegroups.com android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+**unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/**group/android-developers?hl=enhttp://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@** googlegroups.com android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+**unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/**group/android-developers?hl=enhttp://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Warm Regards, *Mukesh Kumar*, Android Consultant/Freelancer, India,Hyderabad. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Need Intent Help
What is not working? *Thanks and Regards, Kumar Bibek* * http://techdroid.kbeanie.com http://www.kbeanie.com* On Tue, Nov 29, 2011 at 10:04 PM, Kiran Kumar Kendole k.kirankumar1...@gmail.com wrote: Hey Guys, Thank you all for your Help . Finally I completed my assignment. Finally I have one question. I have created the APK in 2.3.3 . We have different mobiles with different versions.. Its not working on all due to compatibility may be. Can you guys suggest me what I suppose to do so that independent of version , it should work. Thanks, KIRANKUMARKENDOLE On Tue, Nov 29, 2011 at 8:16 AM, Yahor Paulavets ypaulav...@agilefusion.com wrote: Hello, If you need to use some methods in all your Activities - create a base Activity class with these methods :) And use these methods in dirived Activity A and B. No copy past is needed. Best regards, Yahor On Tue, Nov 29, 2011 at 3:01 PM, Mukesh Srivastav mukicha...@gmail.comwrote: Why not go with TAB Activity, that helps. On Tue, Nov 29, 2011 at 6:22 PM, Kiran Kumar Kendole k.kirankumar1...@gmail.com wrote: Hey Siva and Mukhesh, Thanks for the response. The problem which I am forcing to use this unfair architecture is.. I have hard time to show different options menu for different layout XML files.. Can you please give me a quick example how to change the options based on the layout. Thanks, KIRANKUMARKENDOLE On Tue, Nov 29, 2011 at 7:14 AM, siva prakash sivaprakashcs07b...@gmail.com wrote: If you want to access those methods in various activities, why dont you create a simple java class and acess them?? , if you want to share variables across different activities, u can save them in AppPreferences . Please provide me more details if i didnt get u :) On 11/29/2011 04:04 PM, Kiran Kumar Kendole wrote: Hey guys, I have a problem while using intents. Can you please suggest me the right way. I have an Activity1 which contains some methods ( addData(),deleteData() ). when I use intent to other Activity2 Class.. I am not able to access the methods which are in Activity1. I cant copy paste all the methods in all Activities. I dont think its good practise. Can anybody suggest me. Thanks, KIRANKUMARKENDOLE -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@** googlegroups.com android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+**unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/**group/android-developers?hl=enhttp://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@** googlegroups.com android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+**unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/**group/android-developers?hl=enhttp://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Warm Regards, *Mukesh Kumar*, Android Consultant/Freelancer, India,Hyderabad. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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
Re: [android-developers] Need Intent Help
Hi, When I install the APK in my mobile (Froyo 2.2) , application is not working. But its working fine in AVD with 2.3.3 version. I want to make my APK in such a way that it should work in all devices. Thanks, KIRANKUMARKENDOLE On Tue, Nov 29, 2011 at 11:42 AM, Kumar Bibek coomar@gmail.com wrote: What is not working? *Thanks and Regards, Kumar Bibek* * http://techdroid.kbeanie.com http://www.kbeanie.com* On Tue, Nov 29, 2011 at 10:04 PM, Kiran Kumar Kendole k.kirankumar1...@gmail.com wrote: Hey Guys, Thank you all for your Help . Finally I completed my assignment. Finally I have one question. I have created the APK in 2.3.3 . We have different mobiles with different versions.. Its not working on all due to compatibility may be. Can you guys suggest me what I suppose to do so that independent of version , it should work. Thanks, KIRANKUMARKENDOLE On Tue, Nov 29, 2011 at 8:16 AM, Yahor Paulavets ypaulav...@agilefusion.com wrote: Hello, If you need to use some methods in all your Activities - create a base Activity class with these methods :) And use these methods in dirived Activity A and B. No copy past is needed. Best regards, Yahor On Tue, Nov 29, 2011 at 3:01 PM, Mukesh Srivastav mukicha...@gmail.comwrote: Why not go with TAB Activity, that helps. On Tue, Nov 29, 2011 at 6:22 PM, Kiran Kumar Kendole k.kirankumar1...@gmail.com wrote: Hey Siva and Mukhesh, Thanks for the response. The problem which I am forcing to use this unfair architecture is.. I have hard time to show different options menu for different layout XML files.. Can you please give me a quick example how to change the options based on the layout. Thanks, KIRANKUMARKENDOLE On Tue, Nov 29, 2011 at 7:14 AM, siva prakash sivaprakashcs07b...@gmail.com wrote: If you want to access those methods in various activities, why dont you create a simple java class and acess them?? , if you want to share variables across different activities, u can save them in AppPreferences . Please provide me more details if i didnt get u :) On 11/29/2011 04:04 PM, Kiran Kumar Kendole wrote: Hey guys, I have a problem while using intents. Can you please suggest me the right way. I have an Activity1 which contains some methods ( addData(),deleteData() ). when I use intent to other Activity2 Class.. I am not able to access the methods which are in Activity1. I cant copy paste all the methods in all Activities. I dont think its good practise. Can anybody suggest me. Thanks, KIRANKUMARKENDOLE -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@** googlegroups.com android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+**unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/**group/android-developers?hl=enhttp://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@** googlegroups.com android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+**unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/**group/android-developers?hl=enhttp://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Warm Regards, *Mukesh Kumar*, Android Consultant/Freelancer, India,Hyderabad. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Re: How to force Share Intent to open a specific app?
You can't unless you know the component name and/or package name of the target activity. On Nov 29, 3:37 pm, skink psk...@gmail.com wrote: saex wrote: Hi, thanks for your answer, i'm checking your link but i can't understand how can i use that class to achieve my objectives Please can you give me some help to do it? thanks! On Nov 29, 11:13 am, skink psk...@gmail.com wrote: saex wrote: Hi, I like share intent, it is perfect to open sharing apps with image and text parameters. But now i'm researching the way to force share intent to open a specific app from the list, with the paramters given to the share intent. This is my actual code, it shows the list of sharing apps installed on the phone. Please, can somedone tell me what i should add to the code to force for example official twitter app? and official faccebok app? Intent sharingIntent = new Intent(Intent.ACTION_SEND); Uri screenshotUri = Uri.parse(file:///sdcard/test.jpg); sharingIntent.setType(image/*); sharingIntent.putExtra(Intent.EXTRA_TEXT, body text); sharingIntent.putExtra(Intent.EXTRA_STREAM, screenshotUri); startActivity(Intent.createChooser(sharingIntent, Share image using)); Thanks Seehttp://developer.android.com/reference/android/content/ComponentName pskink see Intent docs pskink -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Need Intent Help
application not working !! That doesn't say much. *Thanks and Regards, Kumar Bibek* * http://techdroid.kbeanie.com http://www.kbeanie.com* On Tue, Nov 29, 2011 at 10:16 PM, Kiran Kumar Kendole k.kirankumar1...@gmail.com wrote: Hi, When I install the APK in my mobile (Froyo 2.2) , application is not working. But its working fine in AVD with 2.3.3 version. I want to make my APK in such a way that it should work in all devices. Thanks, KIRANKUMARKENDOLE On Tue, Nov 29, 2011 at 11:42 AM, Kumar Bibek coomar@gmail.comwrote: What is not working? *Thanks and Regards, Kumar Bibek* * http://techdroid.kbeanie.com http://www.kbeanie.com* On Tue, Nov 29, 2011 at 10:04 PM, Kiran Kumar Kendole k.kirankumar1...@gmail.com wrote: Hey Guys, Thank you all for your Help . Finally I completed my assignment. Finally I have one question. I have created the APK in 2.3.3 . We have different mobiles with different versions.. Its not working on all due to compatibility may be. Can you guys suggest me what I suppose to do so that independent of version , it should work. Thanks, KIRANKUMARKENDOLE On Tue, Nov 29, 2011 at 8:16 AM, Yahor Paulavets ypaulav...@agilefusion.com wrote: Hello, If you need to use some methods in all your Activities - create a base Activity class with these methods :) And use these methods in dirived Activity A and B. No copy past is needed. Best regards, Yahor On Tue, Nov 29, 2011 at 3:01 PM, Mukesh Srivastav mukicha...@gmail.com wrote: Why not go with TAB Activity, that helps. On Tue, Nov 29, 2011 at 6:22 PM, Kiran Kumar Kendole k.kirankumar1...@gmail.com wrote: Hey Siva and Mukhesh, Thanks for the response. The problem which I am forcing to use this unfair architecture is.. I have hard time to show different options menu for different layout XML files.. Can you please give me a quick example how to change the options based on the layout. Thanks, KIRANKUMARKENDOLE On Tue, Nov 29, 2011 at 7:14 AM, siva prakash sivaprakashcs07b...@gmail.com wrote: If you want to access those methods in various activities, why dont you create a simple java class and acess them?? , if you want to share variables across different activities, u can save them in AppPreferences . Please provide me more details if i didnt get u :) On 11/29/2011 04:04 PM, Kiran Kumar Kendole wrote: Hey guys, I have a problem while using intents. Can you please suggest me the right way. I have an Activity1 which contains some methods ( addData(),deleteData() ). when I use intent to other Activity2 Class.. I am not able to access the methods which are in Activity1. I cant copy paste all the methods in all Activities. I dont think its good practise. Can anybody suggest me. Thanks, KIRANKUMARKENDOLE -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@** googlegroups.com android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+**unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/**group/android-developers?hl=enhttp://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@** googlegroups.com android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+**unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/**group/android-developers?hl=enhttp://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Warm Regards, *Mukesh Kumar*, Android Consultant/Freelancer, India,Hyderabad. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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,
Re: [android-developers] Need Intent Help
Yes. That's all very good. What is not working in your app on 2.2? On Tue, Nov 29, 2011 at 10:16 PM, Kiran Kumar Kendole k.kirankumar1...@gmail.com wrote: Hi, When I install the APK in my mobile (Froyo 2.2) , application is not working. But its working fine in AVD with 2.3.3 version. I want to make my APK in such a way that it should work in all devices. Thanks, KIRANKUMARKENDOLE On Tue, Nov 29, 2011 at 11:42 AM, Kumar Bibek coomar@gmail.comwrote: What is not working? *Thanks and Regards, Kumar Bibek* * http://techdroid.kbeanie.com http://www.kbeanie.com* On Tue, Nov 29, 2011 at 10:04 PM, Kiran Kumar Kendole k.kirankumar1...@gmail.com wrote: Hey Guys, Thank you all for your Help . Finally I completed my assignment. Finally I have one question. I have created the APK in 2.3.3 . We have different mobiles with different versions.. Its not working on all due to compatibility may be. Can you guys suggest me what I suppose to do so that independent of version , it should work. Thanks, KIRANKUMARKENDOLE On Tue, Nov 29, 2011 at 8:16 AM, Yahor Paulavets ypaulav...@agilefusion.com wrote: Hello, If you need to use some methods in all your Activities - create a base Activity class with these methods :) And use these methods in dirived Activity A and B. No copy past is needed. Best regards, Yahor On Tue, Nov 29, 2011 at 3:01 PM, Mukesh Srivastav mukicha...@gmail.com wrote: Why not go with TAB Activity, that helps. On Tue, Nov 29, 2011 at 6:22 PM, Kiran Kumar Kendole k.kirankumar1...@gmail.com wrote: Hey Siva and Mukhesh, Thanks for the response. The problem which I am forcing to use this unfair architecture is.. I have hard time to show different options menu for different layout XML files.. Can you please give me a quick example how to change the options based on the layout. Thanks, KIRANKUMARKENDOLE On Tue, Nov 29, 2011 at 7:14 AM, siva prakash sivaprakashcs07b...@gmail.com wrote: If you want to access those methods in various activities, why dont you create a simple java class and acess them?? , if you want to share variables across different activities, u can save them in AppPreferences . Please provide me more details if i didnt get u :) On 11/29/2011 04:04 PM, Kiran Kumar Kendole wrote: Hey guys, I have a problem while using intents. Can you please suggest me the right way. I have an Activity1 which contains some methods ( addData(),deleteData() ). when I use intent to other Activity2 Class.. I am not able to access the methods which are in Activity1. I cant copy paste all the methods in all Activities. I dont think its good practise. Can anybody suggest me. Thanks, KIRANKUMARKENDOLE -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@** googlegroups.com android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+**unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/**group/android-developers?hl=enhttp://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@** googlegroups.com android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+**unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/**group/android-developers?hl=enhttp://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Warm Regards, *Mukesh Kumar*, Android Consultant/Freelancer, India,Hyderabad. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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
Re: [android-developers] Need Intent Help
When I try to install on the APK on my mobile which have 2.2 versionof android... I see the error Parsing Error. Thanks, KIRANKUMARKENDOLE On Tue, Nov 29, 2011 at 11:48 AM, Raghav Sood raghavs...@androidactivist.org wrote: Yes. That's all very good. What is not working in your app on 2.2? On Tue, Nov 29, 2011 at 10:16 PM, Kiran Kumar Kendole k.kirankumar1...@gmail.com wrote: Hi, When I install the APK in my mobile (Froyo 2.2) , application is not working. But its working fine in AVD with 2.3.3 version. I want to make my APK in such a way that it should work in all devices. Thanks, KIRANKUMARKENDOLE On Tue, Nov 29, 2011 at 11:42 AM, Kumar Bibek coomar@gmail.comwrote: What is not working? *Thanks and Regards, Kumar Bibek* * http://techdroid.kbeanie.com http://www.kbeanie.com* On Tue, Nov 29, 2011 at 10:04 PM, Kiran Kumar Kendole k.kirankumar1...@gmail.com wrote: Hey Guys, Thank you all for your Help . Finally I completed my assignment. Finally I have one question. I have created the APK in 2.3.3 . We have different mobiles with different versions.. Its not working on all due to compatibility may be. Can you guys suggest me what I suppose to do so that independent of version , it should work. Thanks, KIRANKUMARKENDOLE On Tue, Nov 29, 2011 at 8:16 AM, Yahor Paulavets ypaulav...@agilefusion.com wrote: Hello, If you need to use some methods in all your Activities - create a base Activity class with these methods :) And use these methods in dirived Activity A and B. No copy past is needed. Best regards, Yahor On Tue, Nov 29, 2011 at 3:01 PM, Mukesh Srivastav mukicha...@gmail.com wrote: Why not go with TAB Activity, that helps. On Tue, Nov 29, 2011 at 6:22 PM, Kiran Kumar Kendole k.kirankumar1...@gmail.com wrote: Hey Siva and Mukhesh, Thanks for the response. The problem which I am forcing to use this unfair architecture is.. I have hard time to show different options menu for different layout XML files.. Can you please give me a quick example how to change the options based on the layout. Thanks, KIRANKUMARKENDOLE On Tue, Nov 29, 2011 at 7:14 AM, siva prakash sivaprakashcs07b...@gmail.com wrote: If you want to access those methods in various activities, why dont you create a simple java class and acess them?? , if you want to share variables across different activities, u can save them in AppPreferences . Please provide me more details if i didnt get u :) On 11/29/2011 04:04 PM, Kiran Kumar Kendole wrote: Hey guys, I have a problem while using intents. Can you please suggest me the right way. I have an Activity1 which contains some methods ( addData(),deleteData() ). when I use intent to other Activity2 Class.. I am not able to access the methods which are in Activity1. I cant copy paste all the methods in all Activities. I dont think its good practise. Can anybody suggest me. Thanks, KIRANKUMARKENDOLE -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@** googlegroups.com android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+**unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/**group/android-developers?hl=enhttp://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@** googlegroups.com android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+**unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/**group/android-developers?hl=enhttp://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Warm Regards, *Mukesh Kumar*, Android Consultant/Freelancer, India,Hyderabad. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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
Re: [android-developers] Need Intent Help
Ok, So, it doesn't even gets installed. Look at your manifest file and remove stuff which are not available on 2.2 *Thanks and Regards, Kumar Bibek* * http://techdroid.kbeanie.com http://www.kbeanie.com* On Tue, Nov 29, 2011 at 10:30 PM, Kiran Kumar Kendole k.kirankumar1...@gmail.com wrote: When I try to install on the APK on my mobile which have 2.2 versionof android... I see the error Parsing Error. Thanks, KIRANKUMARKENDOLE On Tue, Nov 29, 2011 at 11:48 AM, Raghav Sood raghavs...@androidactivist.org wrote: Yes. That's all very good. What is not working in your app on 2.2? On Tue, Nov 29, 2011 at 10:16 PM, Kiran Kumar Kendole k.kirankumar1...@gmail.com wrote: Hi, When I install the APK in my mobile (Froyo 2.2) , application is not working. But its working fine in AVD with 2.3.3 version. I want to make my APK in such a way that it should work in all devices. Thanks, KIRANKUMARKENDOLE On Tue, Nov 29, 2011 at 11:42 AM, Kumar Bibek coomar@gmail.comwrote: What is not working? *Thanks and Regards, Kumar Bibek* * http://techdroid.kbeanie.com http://www.kbeanie.com* On Tue, Nov 29, 2011 at 10:04 PM, Kiran Kumar Kendole k.kirankumar1...@gmail.com wrote: Hey Guys, Thank you all for your Help . Finally I completed my assignment. Finally I have one question. I have created the APK in 2.3.3 . We have different mobiles with different versions.. Its not working on all due to compatibility may be. Can you guys suggest me what I suppose to do so that independent of version , it should work. Thanks, KIRANKUMARKENDOLE On Tue, Nov 29, 2011 at 8:16 AM, Yahor Paulavets ypaulav...@agilefusion.com wrote: Hello, If you need to use some methods in all your Activities - create a base Activity class with these methods :) And use these methods in dirived Activity A and B. No copy past is needed. Best regards, Yahor On Tue, Nov 29, 2011 at 3:01 PM, Mukesh Srivastav mukicha...@gmail.com wrote: Why not go with TAB Activity, that helps. On Tue, Nov 29, 2011 at 6:22 PM, Kiran Kumar Kendole k.kirankumar1...@gmail.com wrote: Hey Siva and Mukhesh, Thanks for the response. The problem which I am forcing to use this unfair architecture is.. I have hard time to show different options menu for different layout XML files.. Can you please give me a quick example how to change the options based on the layout. Thanks, KIRANKUMARKENDOLE On Tue, Nov 29, 2011 at 7:14 AM, siva prakash sivaprakashcs07b...@gmail.com wrote: If you want to access those methods in various activities, why dont you create a simple java class and acess them?? , if you want to share variables across different activities, u can save them in AppPreferences . Please provide me more details if i didnt get u :) On 11/29/2011 04:04 PM, Kiran Kumar Kendole wrote: Hey guys, I have a problem while using intents. Can you please suggest me the right way. I have an Activity1 which contains some methods ( addData(),deleteData() ). when I use intent to other Activity2 Class.. I am not able to access the methods which are in Activity1. I cant copy paste all the methods in all Activities. I dont think its good practise. Can anybody suggest me. Thanks, KIRANKUMARKENDOLE -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@** googlegroups.com android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+**unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/**group/android-developers?hl=enhttp://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@** googlegroups.com android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+**unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/**group/android-developers?hl=enhttp://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Warm Regards, *Mukesh Kumar*, Android Consultant/Freelancer, India,Hyderabad. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from
Re: [android-developers] Need Intent Help
you need to do the clean build or Delete the bin directory, recompiled it and deploy it, that will help. Warm Regards, *Mukesh Kumar*, Android Consultant/Freelancer, India,Hyderabad. On Tue, Nov 29, 2011 at 10:32 PM, Kumar Bibek coomar@gmail.com wrote: Ok, So, it doesn't even gets installed. Look at your manifest file and remove stuff which are not available on 2.2 *Thanks and Regards, Kumar Bibek* * http://techdroid.kbeanie.com http://www.kbeanie.com* On Tue, Nov 29, 2011 at 10:30 PM, Kiran Kumar Kendole k.kirankumar1...@gmail.com wrote: When I try to install on the APK on my mobile which have 2.2 versionof android... I see the error Parsing Error. Thanks, KIRANKUMARKENDOLE On Tue, Nov 29, 2011 at 11:48 AM, Raghav Sood raghavs...@androidactivist.org wrote: Yes. That's all very good. What is not working in your app on 2.2? On Tue, Nov 29, 2011 at 10:16 PM, Kiran Kumar Kendole k.kirankumar1...@gmail.com wrote: Hi, When I install the APK in my mobile (Froyo 2.2) , application is not working. But its working fine in AVD with 2.3.3 version. I want to make my APK in such a way that it should work in all devices. Thanks, KIRANKUMARKENDOLE On Tue, Nov 29, 2011 at 11:42 AM, Kumar Bibek coomar@gmail.comwrote: What is not working? *Thanks and Regards, Kumar Bibek* * http://techdroid.kbeanie.com http://www.kbeanie.com* On Tue, Nov 29, 2011 at 10:04 PM, Kiran Kumar Kendole k.kirankumar1...@gmail.com wrote: Hey Guys, Thank you all for your Help . Finally I completed my assignment. Finally I have one question. I have created the APK in 2.3.3 . We have different mobiles with different versions.. Its not working on all due to compatibility may be. Can you guys suggest me what I suppose to do so that independent of version , it should work. Thanks, KIRANKUMARKENDOLE On Tue, Nov 29, 2011 at 8:16 AM, Yahor Paulavets ypaulav...@agilefusion.com wrote: Hello, If you need to use some methods in all your Activities - create a base Activity class with these methods :) And use these methods in dirived Activity A and B. No copy past is needed. Best regards, Yahor On Tue, Nov 29, 2011 at 3:01 PM, Mukesh Srivastav mukicha...@gmail.com wrote: Why not go with TAB Activity, that helps. On Tue, Nov 29, 2011 at 6:22 PM, Kiran Kumar Kendole k.kirankumar1...@gmail.com wrote: Hey Siva and Mukhesh, Thanks for the response. The problem which I am forcing to use this unfair architecture is.. I have hard time to show different options menu for different layout XML files.. Can you please give me a quick example how to change the options based on the layout. Thanks, KIRANKUMARKENDOLE On Tue, Nov 29, 2011 at 7:14 AM, siva prakash sivaprakashcs07b...@gmail.com wrote: If you want to access those methods in various activities, why dont you create a simple java class and acess them?? , if you want to share variables across different activities, u can save them in AppPreferences . Please provide me more details if i didnt get u :) On 11/29/2011 04:04 PM, Kiran Kumar Kendole wrote: Hey guys, I have a problem while using intents. Can you please suggest me the right way. I have an Activity1 which contains some methods ( addData(),deleteData() ). when I use intent to other Activity2 Class.. I am not able to access the methods which are in Activity1. I cant copy paste all the methods in all Activities. I dont think its good practise. Can anybody suggest me. Thanks, KIRANKUMARKENDOLE -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@** googlegroups.com android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+**unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/**group/android-developers?hl=enhttp://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@** googlegroups.com android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+**unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/**group/android-developers?hl=enhttp://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Warm
Re: [android-developers] Need Intent Help
I hope I am confusing you guys. I created the app using 2.3.3 . When I install this APK , in Samsung galaxy S2(2.3.3) the application is working good. But the same application is not working in HTC (2.2). Parsing error. I WANT MY APPLICATION TO BE RUN ON ALL DEVICES WHETHER IT MAY BE 2.1 , 2.2 or 2.3. Thanks, KIRANKUMARKENDOLE On Tue, Nov 29, 2011 at 12:15 PM, Mukesh Srivastav mukicha...@gmail.comwrote: you need to do the clean build or Delete the bin directory, recompiled it and deploy it, that will help. Warm Regards, *Mukesh Kumar*, Android Consultant/Freelancer, India,Hyderabad. On Tue, Nov 29, 2011 at 10:32 PM, Kumar Bibek coomar@gmail.comwrote: Ok, So, it doesn't even gets installed. Look at your manifest file and remove stuff which are not available on 2.2 *Thanks and Regards, Kumar Bibek* * http://techdroid.kbeanie.com http://www.kbeanie.com* On Tue, Nov 29, 2011 at 10:30 PM, Kiran Kumar Kendole k.kirankumar1...@gmail.com wrote: When I try to install on the APK on my mobile which have 2.2 versionof android... I see the error Parsing Error. Thanks, KIRANKUMARKENDOLE On Tue, Nov 29, 2011 at 11:48 AM, Raghav Sood raghavs...@androidactivist.org wrote: Yes. That's all very good. What is not working in your app on 2.2? On Tue, Nov 29, 2011 at 10:16 PM, Kiran Kumar Kendole k.kirankumar1...@gmail.com wrote: Hi, When I install the APK in my mobile (Froyo 2.2) , application is not working. But its working fine in AVD with 2.3.3 version. I want to make my APK in such a way that it should work in all devices. Thanks, KIRANKUMARKENDOLE On Tue, Nov 29, 2011 at 11:42 AM, Kumar Bibek coomar@gmail.comwrote: What is not working? *Thanks and Regards, Kumar Bibek* * http://techdroid.kbeanie.com http://www.kbeanie.com* On Tue, Nov 29, 2011 at 10:04 PM, Kiran Kumar Kendole k.kirankumar1...@gmail.com wrote: Hey Guys, Thank you all for your Help . Finally I completed my assignment. Finally I have one question. I have created the APK in 2.3.3 . We have different mobiles with different versions.. Its not working on all due to compatibility may be. Can you guys suggest me what I suppose to do so that independent of version , it should work. Thanks, KIRANKUMARKENDOLE On Tue, Nov 29, 2011 at 8:16 AM, Yahor Paulavets ypaulav...@agilefusion.com wrote: Hello, If you need to use some methods in all your Activities - create a base Activity class with these methods :) And use these methods in dirived Activity A and B. No copy past is needed. Best regards, Yahor On Tue, Nov 29, 2011 at 3:01 PM, Mukesh Srivastav mukicha...@gmail.com wrote: Why not go with TAB Activity, that helps. On Tue, Nov 29, 2011 at 6:22 PM, Kiran Kumar Kendole k.kirankumar1...@gmail.com wrote: Hey Siva and Mukhesh, Thanks for the response. The problem which I am forcing to use this unfair architecture is.. I have hard time to show different options menu for different layout XML files.. Can you please give me a quick example how to change the options based on the layout. Thanks, KIRANKUMARKENDOLE On Tue, Nov 29, 2011 at 7:14 AM, siva prakash sivaprakashcs07b...@gmail.com wrote: If you want to access those methods in various activities, why dont you create a simple java class and acess them?? , if you want to share variables across different activities, u can save them in AppPreferences . Please provide me more details if i didnt get u :) On 11/29/2011 04:04 PM, Kiran Kumar Kendole wrote: Hey guys, I have a problem while using intents. Can you please suggest me the right way. I have an Activity1 which contains some methods ( addData(),deleteData() ). when I use intent to other Activity2 Class.. I am not able to access the methods which are in Activity1. I cant copy paste all the methods in all Activities. I dont think its good practise. Can anybody suggest me. Thanks, KIRANKUMARKENDOLE -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@** googlegroups.com android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+**unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/**group/android-developers?hl=enhttp://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@** googlegroups.com android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+**unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at
Re: [android-developers] Need Intent Help
See my previous answer :) That might help. *Thanks and Regards, Kumar Bibek* * http://techdroid.kbeanie.com http://www.kbeanie.com* On Tue, Nov 29, 2011 at 10:51 PM, Kiran Kumar Kendole k.kirankumar1...@gmail.com wrote: I hope I am confusing you guys. I created the app using 2.3.3 . When I install this APK , in Samsung galaxy S2(2.3.3) the application is working good. But the same application is not working in HTC (2.2). Parsing error. I WANT MY APPLICATION TO BE RUN ON ALL DEVICES WHETHER IT MAY BE 2.1 , 2.2 or 2.3. Thanks, KIRANKUMARKENDOLE On Tue, Nov 29, 2011 at 12:15 PM, Mukesh Srivastav mukicha...@gmail.comwrote: you need to do the clean build or Delete the bin directory, recompiled it and deploy it, that will help. Warm Regards, *Mukesh Kumar*, Android Consultant/Freelancer, India,Hyderabad. On Tue, Nov 29, 2011 at 10:32 PM, Kumar Bibek coomar@gmail.comwrote: Ok, So, it doesn't even gets installed. Look at your manifest file and remove stuff which are not available on 2.2 *Thanks and Regards, Kumar Bibek* * http://techdroid.kbeanie.com http://www.kbeanie.com* On Tue, Nov 29, 2011 at 10:30 PM, Kiran Kumar Kendole k.kirankumar1...@gmail.com wrote: When I try to install on the APK on my mobile which have 2.2 versionof android... I see the error Parsing Error. Thanks, KIRANKUMARKENDOLE On Tue, Nov 29, 2011 at 11:48 AM, Raghav Sood raghavs...@androidactivist.org wrote: Yes. That's all very good. What is not working in your app on 2.2? On Tue, Nov 29, 2011 at 10:16 PM, Kiran Kumar Kendole k.kirankumar1...@gmail.com wrote: Hi, When I install the APK in my mobile (Froyo 2.2) , application is not working. But its working fine in AVD with 2.3.3 version. I want to make my APK in such a way that it should work in all devices. Thanks, KIRANKUMARKENDOLE On Tue, Nov 29, 2011 at 11:42 AM, Kumar Bibek coomar@gmail.comwrote: What is not working? *Thanks and Regards, Kumar Bibek* * http://techdroid.kbeanie.com http://www.kbeanie.com* On Tue, Nov 29, 2011 at 10:04 PM, Kiran Kumar Kendole k.kirankumar1...@gmail.com wrote: Hey Guys, Thank you all for your Help . Finally I completed my assignment. Finally I have one question. I have created the APK in 2.3.3 . We have different mobiles with different versions.. Its not working on all due to compatibility may be. Can you guys suggest me what I suppose to do so that independent of version , it should work. Thanks, KIRANKUMARKENDOLE On Tue, Nov 29, 2011 at 8:16 AM, Yahor Paulavets ypaulav...@agilefusion.com wrote: Hello, If you need to use some methods in all your Activities - create a base Activity class with these methods :) And use these methods in dirived Activity A and B. No copy past is needed. Best regards, Yahor On Tue, Nov 29, 2011 at 3:01 PM, Mukesh Srivastav mukicha...@gmail.com wrote: Why not go with TAB Activity, that helps. On Tue, Nov 29, 2011 at 6:22 PM, Kiran Kumar Kendole k.kirankumar1...@gmail.com wrote: Hey Siva and Mukhesh, Thanks for the response. The problem which I am forcing to use this unfair architecture is.. I have hard time to show different options menu for different layout XML files.. Can you please give me a quick example how to change the options based on the layout. Thanks, KIRANKUMARKENDOLE On Tue, Nov 29, 2011 at 7:14 AM, siva prakash sivaprakashcs07b...@gmail.com wrote: If you want to access those methods in various activities, why dont you create a simple java class and acess them?? , if you want to share variables across different activities, u can save them in AppPreferences . Please provide me more details if i didnt get u :) On 11/29/2011 04:04 PM, Kiran Kumar Kendole wrote: Hey guys, I have a problem while using intents. Can you please suggest me the right way. I have an Activity1 which contains some methods ( addData(),deleteData() ). when I use intent to other Activity2 Class.. I am not able to access the methods which are in Activity1. I cant copy paste all the methods in all Activities. I dont think its good practise. Can anybody suggest me. Thanks, KIRANKUMARKENDOLE -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@** googlegroups.com android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+**unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/**group/android-developers?hl=enhttp://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@** googlegroups.com android-developers@googlegroups.com To unsubscribe from this group,
Re: [android-developers] Need Intent Help
I hope I am confusing you guys. You seem more confused than us right now, I created the app using 2.3.3 . When I install this APK , in Samsung galaxy S2(2.3.3) the application is working good. But the same application is not working in HTC (2.2). Parsing error. I WANT MY APPLICATION TO BE RUN ON ALL DEVICES WHETHER IT MAY BE 2.1 , 2.2 or 2.3. Okay. So there is something in your app that won't let you install the app on devices under 2.3. Could you at least post the content of AndroidManifest.xml so that we can help you? Thanks P.S Don't quote the entire thread in your replies. It's bad netiquette and wastes data usage on mobile connections. -- Raghav Sood http://www.androidactivist.org/ - Author http://www.appaholics.in/ - Founder -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Need Intent Help
Application always would be back to forward compatibility , not from forward to backward. You create your apps on 2.1 and deploy it in 2.1 and above. Warm Regards, *Mukesh Kumar*, Android Consultant/Freelancer, India,Hyderabad. On Tue, Nov 29, 2011 at 10:51 PM, Kiran Kumar Kendole k.kirankumar1...@gmail.com wrote: I hope I am confusing you guys. I created the app using 2.3.3 . When I install this APK , in Samsung galaxy S2(2.3.3) the application is working good. But the same application is not working in HTC (2.2). Parsing error. I WANT MY APPLICATION TO BE RUN ON ALL DEVICES WHETHER IT MAY BE 2.1 , 2.2 or 2.3. Thanks, KIRANKUMARKENDOLE On Tue, Nov 29, 2011 at 12:15 PM, Mukesh Srivastav mukicha...@gmail.comwrote: you need to do the clean build or Delete the bin directory, recompiled it and deploy it, that will help. Warm Regards, *Mukesh Kumar*, Android Consultant/Freelancer, India,Hyderabad. On Tue, Nov 29, 2011 at 10:32 PM, Kumar Bibek coomar@gmail.comwrote: Ok, So, it doesn't even gets installed. Look at your manifest file and remove stuff which are not available on 2.2 *Thanks and Regards, Kumar Bibek* * http://techdroid.kbeanie.com http://www.kbeanie.com* On Tue, Nov 29, 2011 at 10:30 PM, Kiran Kumar Kendole k.kirankumar1...@gmail.com wrote: When I try to install on the APK on my mobile which have 2.2 versionof android... I see the error Parsing Error. Thanks, KIRANKUMARKENDOLE On Tue, Nov 29, 2011 at 11:48 AM, Raghav Sood raghavs...@androidactivist.org wrote: Yes. That's all very good. What is not working in your app on 2.2? On Tue, Nov 29, 2011 at 10:16 PM, Kiran Kumar Kendole k.kirankumar1...@gmail.com wrote: Hi, When I install the APK in my mobile (Froyo 2.2) , application is not working. But its working fine in AVD with 2.3.3 version. I want to make my APK in such a way that it should work in all devices. Thanks, KIRANKUMARKENDOLE On Tue, Nov 29, 2011 at 11:42 AM, Kumar Bibek coomar@gmail.comwrote: What is not working? *Thanks and Regards, Kumar Bibek* * http://techdroid.kbeanie.com http://www.kbeanie.com* On Tue, Nov 29, 2011 at 10:04 PM, Kiran Kumar Kendole k.kirankumar1...@gmail.com wrote: Hey Guys, Thank you all for your Help . Finally I completed my assignment. Finally I have one question. I have created the APK in 2.3.3 . We have different mobiles with different versions.. Its not working on all due to compatibility may be. Can you guys suggest me what I suppose to do so that independent of version , it should work. Thanks, KIRANKUMARKENDOLE On Tue, Nov 29, 2011 at 8:16 AM, Yahor Paulavets ypaulav...@agilefusion.com wrote: Hello, If you need to use some methods in all your Activities - create a base Activity class with these methods :) And use these methods in dirived Activity A and B. No copy past is needed. Best regards, Yahor On Tue, Nov 29, 2011 at 3:01 PM, Mukesh Srivastav mukicha...@gmail.com wrote: Why not go with TAB Activity, that helps. On Tue, Nov 29, 2011 at 6:22 PM, Kiran Kumar Kendole k.kirankumar1...@gmail.com wrote: Hey Siva and Mukhesh, Thanks for the response. The problem which I am forcing to use this unfair architecture is.. I have hard time to show different options menu for different layout XML files.. Can you please give me a quick example how to change the options based on the layout. Thanks, KIRANKUMARKENDOLE On Tue, Nov 29, 2011 at 7:14 AM, siva prakash sivaprakashcs07b...@gmail.com wrote: If you want to access those methods in various activities, why dont you create a simple java class and acess them?? , if you want to share variables across different activities, u can save them in AppPreferences . Please provide me more details if i didnt get u :) On 11/29/2011 04:04 PM, Kiran Kumar Kendole wrote: Hey guys, I have a problem while using intents. Can you please suggest me the right way. I have an Activity1 which contains some methods ( addData(),deleteData() ). when I use intent to other Activity2 Class.. I am not able to access the methods which are in Activity1. I cant copy paste all the methods in all Activities. I dont think its good practise. Can anybody suggest me. Thanks, KIRANKUMARKENDOLE -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@** googlegroups.com android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+**unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/**group/android-developers?hl=enhttp://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to
[android-developers] Re: How to force Share Intent to open a specific app?
Kumar Bibek wrote: You can't unless you know the component name and/or package name of the target activity. On Nov 29, 3:37 pm, skink psk...@gmail.com wrote: saex wrote: Hi, thanks for your answer, i'm checking your link but i can't understand how can i use that class to achieve my objectives Please can you give me some help to do it? thanks! On Nov 29, 11:13 am, skink psk...@gmail.com wrote: saex wrote: Hi, I like share intent, it is perfect to open sharing apps with image and text parameters. But now i'm researching the way to force share intent to open a specific app from the list, with the paramters given to the share intent. This is my actual code, it shows the list of sharing apps installed on the phone. Please, can somedone tell me what i should add to the code to force for example official twitter app? and official faccebok app? Intent sharingIntent = new Intent(Intent.ACTION_SEND); Uri screenshotUri = Uri.parse(file:///sdcard/test.jpg); sharingIntent.setType(image/*); sharingIntent.putExtra(Intent.EXTRA_TEXT, body text); sharingIntent.putExtra(Intent.EXTRA_STREAM, screenshotUri); startActivity(Intent.createChooser(sharingIntent, Share image using)); Thanks Seehttp://developer.android.com/reference/android/content/ComponentName pskink see Intent docs pskink this is what ComponentName is for pskink -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] iterator blues
On Tue, Nov 29, 2011 at 10:31 AM, bob b...@coolgroups.com wrote: I'm looking at the Best Practices section of Beginning Android Games, and it says: Don't use iterators, as they create new objects. Can someone help me understand? Using iterators creates new heap allocated Iterator objects, where you can sometimes use indices as integers to iterate through arrays, etc... Dan Bornstien's talk dalvik vm internals contains an explanation of this and a scale from good to bad in terms of this, you can google for the video / slides. The reason I ask is because I'm seeing performance issues with this method: public static void burnfire() { for (final IteratorParticle i = particles.iterator(); i.hasNext();) { final Particle p = i.next(); p.move(); p.timeleft--; if (p.timeleft == 0) { i.remove(); } } } The method just traverses a linked list and moves some particles. Are objects being created there? yup. An Iterator object. How can I make that faster? You can use an int instead, if it's an array. kris -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] help me!! MediaRecorder record video and send to server?is it possible??
Hi, I am succeed to record video through Mediarecorder on SD card but i want to send this video to pc server without writing to SD card. I search it and i found the parcelFileDescriptor is the way to send video to TCP socket but i don't know how to receive it on server side please explain it. here is my client side code socket = new Socket(192.168.15.220, ); ParcelFileDescriptor pfd = ParcelFileDescriptor.fromSocket(socket); recorder = new MediaRecorder(); recorder.setVideoSource(MediaRecorder.VideoSource.DEFAULT); recorder.setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP); recorder.setOutputFile(pfd.getFileDescriptor()); recorder.setVideoEncoder(MediaRecorder.VideoEncoder.MPEG_4_SP); mPreview = new Preview(VideoRecorder.this,recorder); setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE); setContentView(mPreview); I want to receive it on server side and save it to file.Is it possible? Please help me. I want a server side code. Thanks and Regards Umer -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Update notification when user launches app
Hey mark: thanks for your reply. If its a site that i control - then i will have to update the version numbers on the site everytime i make an update to the app? Is there a way to get this info from the android market? Thanks On Nov 29, 11:17 am, Mark Murphy mmur...@commonsware.com wrote: On Tue, Nov 29, 2011 at 10:08 AM, Bipin Shashi bi...@lokalty.com wrote: I have seen in many apps that it notifies the user of new updates if any when they launch the app. Can someone please guide me as to how to achieve this. I guess we need to add code to the onCreate method which checks the version number on the android market. I'd fork an AsyncTask from onCreate() that downloads version information from a site that I control. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy _Android Programming Tutorials_ Version 4.1 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Hiding a nested PreferenceScreen
On Mon, Nov 28, 2011 at 3:16 PM, dashman erjdri...@gmail.com wrote: the PreferenceScreen is found - but note removed. You're certain ot_cat is a sub-preference of the root? And you're doing this *before* you set the preference hierarchy on the activity? - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Update notification when user launches app
Nope. You cant get this info from the market from within your app. *Thanks and Regards, Kumar Bibek* * http://techdroid.kbeanie.com http://www.kbeanie.com* On Tue, Nov 29, 2011 at 11:31 PM, Bipin Shashi bi...@lokalty.com wrote: Hey mark: thanks for your reply. If its a site that i control - then i will have to update the version numbers on the site everytime i make an update to the app? Is there a way to get this info from the android market? Thanks On Nov 29, 11:17 am, Mark Murphy mmur...@commonsware.com wrote: On Tue, Nov 29, 2011 at 10:08 AM, Bipin Shashi bi...@lokalty.com wrote: I have seen in many apps that it notifies the user of new updates if any when they launch the app. Can someone please guide me as to how to achieve this. I guess we need to add code to the onCreate method which checks the version number on the android market. I'd fork an AsyncTask from onCreate() that downloads version information from a site that I control. -- Mark Murphy (a Commons Guy)http://commonsware.com| http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy _Android Programming Tutorials_ Version 4.1 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 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 Alternate Backgrounds for items in listview
On Wed, Nov 23, 2011 at 4:17 AM, Akshay Patil akszdr...@gmail.com wrote: Can you please tell me what i should be looking for ? getView() of the adapter that backs the ListView. or any sample code Try the documentation. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] issue with table row not showing up in table layout
On Sun, Nov 27, 2011 at 9:05 AM, therekz aditya15...@gmail.com wrote: Any suggestions? Few people are going to look through and debug your code. Fewer people would be able to tell you what's wrong simply from looking at it. Comment out all of your code and add back bit by bit of the core functionality that should do what you expect. If it doesn't, debug it. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] How can I use android transition effects in web view?
On Wed, Nov 23, 2011 at 1:46 PM, Alex Georgantas alexgeor...@gmail.comwrote: I call the effect in my main java activity but it only applies to the first page. If you call the effect once, it probably will only work once. The thing that I want is the effect to apply in every page that links loads in webview. Then find the point that every page loads and call the animation there. Should onpagestarted() will help me? I don't know - read the docs and experiment. See what happens. - 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] Docs: TestSuite - createTest
Can anyone else make sense of this description for the createTest method? http://developer.android.com/reference/junit/framework/TestSuite.html#createTest(java.lang.Class,%20java.lang.String) I was trying to figure out how to dynamically create test suites and cases at runtime (data driven tests), and this documentation threw me for a loop. -Mike Ellery -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Does the mediaplayer keep running even in orientation change ?
hi All, I'm working on a small app where I'm trying to play one mp3 media using the default mediaplayer (android.media.MediaPlayer). In this regard, I wanted to know, does the mediaplayer keep running even when the orientation changes? I think, since the mediaplayer runs as a service, it must be running until we manually release the mediaplayer using something like: mMediaPlayer.release(). Would appreciate if someone can point me in the right direction. Actually, I'm trying to understand how to save states and what all I've to save during orientation change. As a sample I'm able to save the state of a continuously updating seekbar during orientation change and wanted to implement the same feature for media player as well. I don't think we'll have to stop and restart the mediaplayer during orientation changes. I even tried the default player on my android device and I did not notice any such lag during orientation changes, it just plays smoothly. Appreciate your time. Thanks, KK -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] How to restart the Android AVD????
On Sat, Nov 26, 2011 at 1:26 AM, Caleb Prince liuyanga...@gmail.com wrote: when i select power off the AVD,it displays shuttind down for a long time , has not any change. Close it, then restart it. That's restarting. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Get Alternate Backgrounds for items in listview
I was working on a similar project and found a great tutorial at http://dustinbreese.blogspot.com/2009/12/creating-listview-with-alternating.html Carol On Wed, Nov 23, 2011 at 5:17 AM, Akshay Patil akszdr...@gmail.com wrote: Hi guyz... I just started android development yesterday I have made a complete application with 2 activitys both having listviews and i want to customize the listview of 2nd activity by having alternate background for listview items.. like white , black, white, black Can you please tell me what i should be looking for ? or any sample code Thanx... -- Akki -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@**googlegroups.comandroid-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+**unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/**group/android-developers?hl=enhttp://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Distribute banned app outside Android Market with donation app in Market
On Tue, Nov 29, 2011 at 10:10 AM, Oli Wright oli.wri...@gmail.com wrote: This may be a dumb question, but why not just take donations through Paypal / Google Checkout directly rather than letting Google take a cut through the Market? You can advertise this facility both in your free app and at the locations you provide it for download. I think this is explicitly against the rules of the Android market. kris -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Null pointer exception in sending SMS..
0. Read the docs: http://developer.android.com/reference/android/telephony/gsm/SmsManager.html 1. Check the official example: http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/os/index.html 2.Set the second argument to null in sms.sendTextMessage(phoneNumber, , msg, sentPI, deliveredPI);3. Be sure that msg is not empty. (TextUtils.isEmpty is helpfull) 4. Be sure you have the android.permission.SEND_SMS permission 4. How would you like to unregister that broadcast receiver? 5. Improve your skills Yeah and you can not live without logcat in the android world: http://developer.android.com/guide/developing/tools/logcat.html On 29 November 2011 11:00, Rocky rkjhaw1...@gmail.com wrote: Provide the logcat/error. On Tue, Nov 29, 2011 at 3:18 PM, Ali Chousein ali.chous...@gmail.com wrote: Check your logcat. It'll give you very good log information where exactly (e.g. on which exact line) you are getting the null pointer exception. - Ali Chousein Weather-Buddy http://weatherbuddy.blogspot.com | http://twitter.com/weather_buddy Geo-Filtered Assistant http://geo-filtered-assistant.blogspot.com https://marketplace.cisco.com/apphq/store/products/994 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Thanks Regards Rakesh Kumar Jha Android Developer, Trainer and Mentor Bangalore (O) +918030274295 (R) +919886336619 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Informations about Dev Phone 1 characteristics (for Wikitude use)
Thank you ver much for the info Mark. On Nov 20, 1:00 pm, Mark Murphy mmur...@commonsware.com wrote: ADP1, IIRC, was the HTC Dream/T-Mobile G1. That does not support either of your requirements AFAIK. Though you might find a modded ROM that could offer 2.2. I'm fairly certain the Dream only offered OpenGL ES 1.1, though, and I'll be surprised if a ROM can fix that. On Sun, Nov 20, 2011 at 7:01 AM, Pedro Teixeira pedroteixeir...@gmail.com wrote: Hi, Is anyone familiar with wikitude? I'm trying to build a simple AR mode activity and I would like to try Wikitude ARchitect since it has the feature I'd like to implement: An overlaid picture instead of an overlaid icon. This are the requirements they say I need: Android 2.2 or higher support for OpenGL ES 2.0 The only mobile I have available from the university is an Android Dev Phone 1. Will this work or is it too much outdated? -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://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
Re: [android-developers] Query
On Sun, Nov 27, 2011 at 2:10 PM, Megz megzwo...@gmail.com wrote: can you help me in making database for it ( means what fields should i take etc), and should i place my database in server side . Help you how? The answers to these questions depend on your app's purpose and functionality which only you know so only you can answer. - 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: Fail to connect to camera service
Yes, actually my application is using the camera when I'm calling another intent. I'll take a look on it and try to stop the camera before starting the new intent. Thank you very much for the input, always helpful. On Nov 28, 12:40 am, Mark Murphy mmur...@commonsware.com wrote: One place I have encountered that error is if the Camera is already in use (by you or another app on the device). On Sun, Nov 27, 2011 at 7:33 PM, Pedro Teixeira pedroteixeir...@gmail.com wrote: Hi, I have a location based application that depending on the position of the use relating to a certain spot it turns on the camera. In layman terms, when there's proximity to a place it triggers the camera. If I'm already near the sport when it's suppose to trigger ( I've build a proximity algorithm based on user position (lat,long) and the spot position) the camera mode opens just fine trough an intent that calls the activity where the camera access is implemented. But if I'm walking towards the spot and the trigger is set I get an error. This is the logcat: 11-2720:03:42.451:E/AndroidRuntime(1380): Uncaught handler: thread main exiting due to uncaught exception 11-2720:03:42.541:E/AndroidRuntime(1380): java.lang.RuntimeException: Fail to connect to camera service 11-2720:03:42.541:E/AndroidRuntime(1380): at android.hardware.Camera.native_setup(NativeMethod) 11-2720:03:42.541:E/AndroidRuntime(1380): at android.hardware.Camera.init(Camera.java:85) 11-2720:03:42.541:E/AndroidRuntime(1380): at android.hardware.Camera.open(Camera.java:67) 11-2720:03:42.541:E/AndroidRuntime(1380): at com.pedroteixeira.thennnow.thenNnowMode.surfaceCreated(thenNnowMode.java: 229) 11-2720:03:42.541:E/AndroidRuntime(1380): at android.view.SurfaceView.updateWindow(SurfaceView.java:392) 11-2720:03:42.541:E/AndroidRuntime(1380): at android.view.SurfaceView.dispatchDraw(SurfaceView.java:264) 11-2720:03:42.541:E/AndroidRuntime(1380): at android.view.ViewGroup.drawChild(ViewGroup.java:1524) 11-2720:03:42.541:E/AndroidRuntime(1380): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1256) 11-2720:03:42.541:E/AndroidRuntime(1380): at android.view.ViewGroup.drawChild(ViewGroup.java:1524) 11-2720:03:42.541:E/AndroidRuntime(1380): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1256) 11-2720:03:42.541:E/AndroidRuntime(1380): at android.view.View.draw(View.java:6277) 11-2720:03:42.541:E/AndroidRuntime(1380): at android.widget.FrameLayout.draw(FrameLayout.java:352) 11-2720:03:42.541:E/AndroidRuntime(1380): at android.view.ViewGroup.drawChild(ViewGroup.java:1526) 11-2720:03:42.541:E/AndroidRuntime(1380): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1256) 11-2720:03:42.541:E/AndroidRuntime(1380): at android.view.View.draw(View.java:6277) 11-2720:03:42.541:E/AndroidRuntime(1380): at android.widget.FrameLayout.draw(FrameLayout.java:352) 11-2720:03:42.541:E/AndroidRuntime(1380): at com.android.internal.policy.impl.PhoneWindow $DecorView.draw(PhoneWindow.java:1883) 11-2720:03:42.541:E/AndroidRuntime(1380): at android.view.ViewRoot.draw(ViewRoot.java:1332) 11-2720:03:42.541:E/AndroidRuntime(1380): at android.view.ViewRoot.performTraversals(ViewRoot.java:1097) 11-2720:03:42.541:E/AndroidRuntime(1380): at android.view.ViewRoot.handleMessage(ViewRoot.java:1613) 11-2720:03:42.541:E/AndroidRuntime(1380): at android.os.Handler.dispatchMessage(Handler.java:99) 11-2720:03:42.541:E/AndroidRuntime(1380): at android.os.Looper.loop(Looper.java:123) 11-2720:03:42.541:E/AndroidRuntime(1380): at android.app.ActivityThread.main(ActivityThread.java:4203) 11-2720:03:42.541:E/AndroidRuntime(1380): at java.lang.reflect.Method.invokeNative(NativeMethod) 11-2720:03:42.541:E/AndroidRuntime(1380): at java.lang.reflect.Method.invoke(Method.java:521) 11-2720:03:42.541:E/AndroidRuntime(1380): at com.android.internal.os.ZygoteInit $MethodAndArgsCaller.run(ZygoteInit.java:791) 11-2720:03:42.541:E/AndroidRuntime(1380): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:549) 11-2720:03:42.541:E/AndroidRuntime(1380): at dalvik.system.NativeStart.main(NativeMethod) Does anyone have any idea what can it be? I'm stuck with this issue. Thank you so much in advance. All help and tips are highly appreciated. Pedro -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy Android 3.2
Re: [android-developers] Get Button Coordinates
On Wed, Nov 23, 2011 at 3:57 PM, andry mktplace@gmail.com wrote: In my case however I will not know the screen layout of the app before hand so I was wondering if there is a way to generically do it irrespective of what app is installed. I'm not clear what you're getting at, but determining if a button was clicked is what button click handlers are for. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Reusing Views in Custom Adapter
You should always set the whole content of the layout in getView(). When v is not null right now you are returning that view without setting your text. Something like this: public View getView(int position, View convertView, ViewGroup parent) { View v = convertView; if (v == null) { LayoutInflater li = (LayoutInflater) mContext.getSystemService(Context.LAYOUT_INFLATER_SERVICE); v = li.inflate(R.layout.grid_item, null); } TextView tv = (TextView)v.findViewById(R.id.grid_item_text); tv.setText(Item #+mItems.get(position)); return v; } On Tue, Nov 29, 2011 at 5:17 PM, Kumar Bibek coomar@gmail.com wrote: What exactly is the problem. Bonkers doesn't really tell us much. On Nov 29, 8:12 pm, authorwjf wfran...@softlayer.com wrote: Hi Android Framework Gurus! I am hoping someone out there can answer a question for me about re- using views in my adapters. My understanding, is that for performance reasons this is something I should always always always do. Yet in my experience, doing so always results in the view, whether a grid or list, going wonky once I get very many children in the view. I suspect, I'm just doing something flat out wrong. So I put together a simple straight-forward project to demonstrate both how I attempt to re-use the views in a grid view, and how it goes bonkers if you add a few hundred entries and scroll the list. I've tested on both the cupcake emulator as well as my gingerbread device with the same results. Thanks in advance to anyone who takes the time to respond! ==Layouts== main.xml ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/ android android:layout_width=fill_parent android:layout_height=fill_parent android:orientation=vertical TextView android:layout_width=fill_parent android:layout_height=wrap_content android:text=Reuse Views Demo / GridView android:id=@+id/gridview android:layout_width=fill_parent android:layout_height=fill_parent android:padding=5dp android:verticalSpacing=5dp android:horizontalSpacing=10dp android:numColumns=auto_fit android:columnWidth=60dp android:stretchMode=columnWidth android:gravity=center_horizontal/ /LinearLayout grid_item.xml LinearLayout xmlns:android=http://schemas.android.com/apk/res/ android android:id=@+id/GridItem android:layout_width=fill_parent android:layout_height=wrap_content android:orientation=vertical android:gravity=center_horizontal TextView android:id=@+id/grid_item_text android:layout_width=wrap_content android:layout_height=wrap_content android:gravity=center_horizontal android:layout_marginBottom=4dip/ /LinearLayout ==source== Main.java package com.authorwjf.reuseviews; import java.util.ArrayList; import android.app.Activity; import android.os.Bundle; import android.widget.GridView; public class Main extends Activity { private CustomAdapter mAdapter; private ArrayListString mItems = new ArrayListString(); @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); for (int i = 0; i200; i++) { mItems.add(Integer.toString(i)); } mAdapter = new CustomAdapter(this, mItems); GridView g = (GridView) findViewById(R.id.gridview); g.setAdapter(mAdapter); } } CustomAdapter.java package com.authorwjf.reuseviews; import java.util.ArrayList; import com.authorwjf.reuseviews.R; import android.content.Context; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.BaseAdapter; import android.widget.TextView; public class CustomAdapter extends BaseAdapter { private Context mContext; private ArrayListString mItems; public CustomAdapter(Context c, ArrayListString items) { mContext = c; mItems = items; } @Override public int getCount() { return mItems.size(); } @Override public Object getItem(int position) { return mItems.get(position); } @Override public long getItemId(int position) { return position; } @Override public View getView(int position, View convertView, ViewGroup parent) { View v = convertView; if (v == null) { LayoutInflater li =