[android-developers] How to create Insecure RFCOMM Socket in Android?
Hi, I am looking at way of connecting over rfcomm socket insecurely. I was able to find the way mentioned below Method m = device.getClass().getMethod(createInsecureRfcommSocket, new Class[] {int.class}); tmp = (BluetoothSocket) m.invoke(device, 1); This for the time being is doing what I want. Even the documentation over here says that we need to use createInsecureRfcommSocketToServiceRecord for insecure connections. But there is no such method. The only way I found out was using reflection as shown above. And even in that the method that is passed in createInsecureRfcommSocket and not createInsecureRfcommSocketToServiceRecord. I just wanted to know how reliable is this way. If I mention createInsecureRfcommSocketToServiceRecord in method the connection never happens. Anyone with experience in Bluetooth Communication in Android please help me out with this. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Version code being displayed instead of Version Name in Samsung Galaxy S - GT I9000 device?
Hi, I do not know what is the reason of this but I just installed one Android app in Samsung Galaxy S - GT I9000 device and its displaying Version code in App info screen. Whereas the Nexus One is displaying the proper Version Name and not Version code. Has anyone faced a similar issue and is there any solution to this? Regards Sunil -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 change the divider height of listview dynamically?
Hi, Can you let me know how can one return two different views from getView method? I am able to return the row from the getView method but have no idea about how to return the listview height. Let me know how to do that in case you know it. Thanks Regards Sunil -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Customize the lock screen or customizing its functionalites?
Hi, I will like to develop an App which modifies LockScreen of Android. I have read in some forums that it is not supported as yet in the SDK but there are some applications available that does exactly that. One can surf http://www.androidzoom.com/android_applications/tools/ advanced-lock_gfrr.html?nav=relatedp=10. There are many more application which implement the same thing. So, how does they do that. Can someone let me know is it actually possible to customize LockScreen and implement our own way of Lock Screen? Can I start my application after BOOT_COMPLETED broadcast receiver and display my lock screen app? But in this case how to bypass the native lock screen application. Hope to get a quick reply. Thanks Regards Sunil -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Porting MAME on Android?
Hi, I will like to know how can one port MAME on Android? MAME is a Multi Arcade Machine Emulator and it does support ROM based games. There is already one application called Android Arcade similar to this one. Can someone tell me how to go about porting it to Android? Thanks Regards Sunil -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Toast on Top of ListView?
Hi, I have a listview in my Android Application. Now, when the user presses Next Button other contents will be loaded into the listview. What I want is that if there are no more contents available then there should be a toast displayed indicating that there are no more data available. Say, for example I have a total of 55 data available and I am displaying only 30 of them in one listview. So, when the user presses Next for the first time next 25 records will be visible. If the user again presses the Next button then a toast should be displayed on top of the last listview that had last 25 records. Currently I get an error as IndexOutOfBoundException : Invalid location 15 size is 1. Can someone suggest how is it possible? Regards Sunil -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 change the divider height of listview dynamically?
Hi, I have a listview in which there should be different divider height between different rows. So, how can we set the divider height dynamically? Suppose, I have 10 rows and there should be a divider height of 5 between first 2 rows and then there should be a divider height of 1 between next 5 rows and so on. Can someone let me know the way of doing this? Regards Sunil -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 change the divider height of listview dynamically?
Hi, How do I implement it? Is it actually possible? Please let me know if you know the way of implementing it in an Adapter. Regards Sunil -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Listview background image changes on Scroll?
Hi, I am developing an android application where I need to manipulate the background image of the rows in listview on certain conditions. Initially when the listview is loaded all works properly. But when I scroll down to the listview and come up again the background image changes. Can someone tell me the reason why its happening so? Hope to get the reply soon. Regards Sunil -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: MapView does not work in HTC Hero
Hi, Did you signed your application? MapView won't even display in another simulator on other system if its not signed in the release mode. I am not sure but please make sure that it is signed and check whether it helps. Regards Sunil -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Listview background image changes on Scroll?
Hi, The reason for this type of behavior is probably the conditions that have been put up to display the listview. Since, I need to change the background image on certain conditions. Now, after scrolling those conditions are not satisfied as it should be. I think this will need to be checked by me only since only I have the source code. Regards Sunil -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Highlighting Text Color using Html.fromHtml()?
Hi, I am developing an application in which there will be a search screen where user can search for specific keywords and that keyword should be highlighted. I have found Html.fromHtml method. But I will like to know whether its the proper way of doing it or not. Please let me know your views on this. Regards Sunil -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] ListView inside a listview?
Hi, I am loading a listview dynamically. It is kind of a thread view in a social networking application. Now there can be reply of reply. So, I want to show reply of reply all together. So, for this purpose can we load listview inside a listview. And how can this be done. If anyone have any idea then please let me know. Hope to get a reply soon. Thanks Regards Sunil -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 custom option menu style?
Hi, I don't think it is actually possible. If I understand your question properly then you want option menu where 2 menu option are displayed at the top and the one below it. But as far as I know option menu has default nature of keeping all 3 in one row and if it has more than 3 then it will be 2 rows of 2 option menu in each row. http://developer.android.com/intl/fr/guide/topics/ui/menus.html Please go through the above URL for a better understanding. If this is not what you want to do then please let us know what exactly you will like to do. Hope this helps you out. Regards Sunil -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Dynamically extend the height of the ListView row background image?
Hi, I am loading a listview dynamically. I have set a .9.png image as row background image. The main purpose of using .9.png image was to extend the height of the image dynamically according to the contents of the listview. But, the image is not getting extended. The contents which can be displayed within the height of the row are being displayed and the rest are being cut. Can someone let me know a proper way of doing this? Regards Sunil -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Dynamically extend the height of the ListView row background image?
Hi, Just to make it more clear, I want to have some text displayed at the bottom of the image. An example of the view that I want is as below. --- | Certain content goes here | | | | | | some text| What I want is that image should extend itself if the content is more than the height of the image. For this reason, I have used .9.png image but no success. Also, the text at the bottom should always be at the bottom. First I was using ?android:attr/listPreferredItemHeight this to set the height of listview row. When I tried with wrap_content then the height is increasing according to the contents but then the content that I wish to have at the bottom don't remain at the bottom. Can someone now let me know what may be the issue? Regards Sunil -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Layout not displayed properly while loading Listview dynamically?
Hi, I am trying to laod the listview dynamically. There are three textviews inside a listview. The text to be set in the textview is fetched from the server. All this is working fine. I am able to fetch the text and am able to display it inside the listview. The only problem is the position of the textview. The xml layout file is as under : ?xml version=1.0 encoding=utf-8? RelativeLayout xmlns:android=http://schemas.android.com/apk/res/ android android:id=@+id/listViewShow android:layout_width=fill_parent android:layout_height=?android:attr/listPreferredItemHeight android:background=@drawable/brown_bg android:padding = 3dip TextView android:id = @+id/txtBabbleListTitle android:layout_width = wrap_content android:layout_height = wrap_content android:textColor = #00 android:text = Hello /TextView RelativeLayout android:layout_width = wrap_content android:layout_height = wrap_content TextView android:id = @+id/txtBabbleDateTime android:layout_width = wrap_content android:layout_height = wrap_content android:layout_alignParentBottom = true android:textColor = #00 android:text = Hello /TextView /RelativeLayout TextView android:id = @+id/txtBabbleTotalReplies android:layout_width = wrap_content android:layout_height = wrap_content android:layout_alignParentRight = true android:textColor = #00 android:text = (7) /TextView /RelativeLayout If I look at this xml layout in the eclipse layout tab then it is displayed properly. Problem occurs only when the text is fetched dynamically. Can some one let me know the issue? Thanks Regards Sunil -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Layout not displayed properly while loading Listview dynamically?
Hi, It is solved now. I was inflating the row.xml in a wrong way. Regards Sunil -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 add a View in Gallery?
Hi, I have multiple listviews and would like to add those to Gallery View. I tried by using addView method but that is not supported in Gallery since its AdapterView. Can someone suggest me how to add views to Gallery? Regards Sunil -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Exception in setDrawingCache in Android 1.5?
Hi, I am developing an application where I am using setDrawingCache and then once I get the Bitmap I destroy the cache by using destroyDrawingCache(). The application has been developed with Android SDK 1.6. When testing the application in emulator with Android 1.5 the application throws NullPointerException when try to manipulate the Bitmap returned by getDrawingCache(). It probably gives error since getDrawingCache returns null. The interesting thing in this is that the NullPointerException comes only after I run the application twice or thrice. It means I am able to get the Bitmap for two times and then it throws this exception. The error that I am getting is as below java.lang.NullPointerException E/AndroidRuntime( 1036):at com.babbleville.HomeScreenActivity.resizeBitmap(HomeScreenActivity.java: 394) E/AndroidRuntime( 1036):at com.babbleville.HomeScreenActivity.access $0(HomeScreenActivity.java:392) E/AndroidRuntime( 1036):at com.babbleville.HomeScreenActivity $1.handleMessage(HomeScreenActivity.java:327) E/AndroidRuntime( 1036):at android.os.Handler.dispatchMessage(Handler.java:99) E/AndroidRuntime( 1036):at android.os.Looper.loop(Looper.java:123) E/AndroidRuntime( 1036):at android.app.ActivityThread.main(ActivityThread.java:3948) E/AndroidRuntime( 1036):at java.lang.reflect.Method.invokeNative(Native Method) E/AndroidRuntime( 1036):at java.lang.reflect.Method.invoke(Method.java:521) E/AndroidRuntime( 1036):at com.android.internal.os.ZygoteInit $MethodAndArgsCaller.run(ZygoteInit.java:782) E/AndroidRuntime( 1036):at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:540) E/AndroidRuntime( 1036):at dalvik.system.NativeStart.main(Native Method) Can someone please let me know the problem? Regards Sunil -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Android on Symbian
Hi, Android is a Mobile operating System and Symbian is also Mobile Operating System. I don't think you will be able to install Android in Symbian. Android is completely linux based. I hope this helps you out. Regards Sunil -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Moving to the next ImageView in HorizontalScrollview?
Hi, I have a horizontal scroll view and there are four images in it. Now what I want is the way to detect which image is focused currently. I mean, is there any way that we can distinguish between the image that is focused and other images. Currently all the images look quite similar. One more thing, how to move only to the next image on every swipe or fling. Moreover, I have tried the same thing with Gallery, but I didn't found anything in the Gallery that let me move to the next view only. In Gallery, I have tried overriding the onfling method with hardcoded value for veloctiyX but with no success. Can someone let me know how to do this? Doing the same thing with either Gallery view or HorizontalScrollview will solve my issue. Hope to get the quick response. Regards Sunil -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 use the lib(.jar) which android sdk didn't contain
Hi, Android has Dalvik Virtual Machine and not Java Virtual Machine. So, I don't think you will be able to use this class in Android. In case, you want to try adding external jar to Android project you can definitely do that. For that, keep the jar in the assets folder and then add that jar to the build path. Regards Sunil -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Map app with GPS is not working in Nexus One
Hi, Avoid using getLastKnownLocation and try to use requestLocationUpdates instead. I think it is not finding any last known location and so its returning null. This method will behave differently in different methods. So, its better to use requestLocationUpdates. Regards Sunil -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 provide animation when calling another activity in Android?
Hi, I have two Activities A and B. I want to have the shrink Animation when Activity A calls B and maximize animation when Activity B calls A. I don't need the animation xml files for this. When we call another Activity in Android it gives its default animation and then it calls shrink animation. What I want is that the default animation should not occur and the animation that I want should occur. Can we actually give the animation when calling another Activity? Hope to get a quick response. Regards Sunil -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Moving the Gallery view to the next image on one swipe in Android?
Hi All, I have four images in the Gallery View. When we do swipe from left to right or right to left the Gallery View moves all the images i.e if I swipe from left to right from the first image then it will move to all the four images. What I want is that when I swipe it should only move to the next image. Can someone let me know how is this possible? Hope to get a reply soon. Regards Sunil -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe, reply using remove me as the subject.
[android-developers] How to resize the RelativeLayout or any other Layout in Android ?
Hi, I have a RelativeLayout defined in xml and I call the setContentView(R.layout.relativeLAyout) for displaying in Activity. Now, if I want to resize this RelativeLayout then can it be done and if yes, then can someone let me know how? The inner components can be resized relatively to the parent. Is this actually possible? Regards Sunil -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe, reply using remove me as the subject.
[android-developers] Re: How to resize the RelativeLayout or any other Layout in Android ?
HI, I know it can be done by giving height and width in xml layout file. But, I want it to be done by the Java Code. For example, I have a Layout file A.xml. In this, I have RelativeLayout with layout_width = fill_parent and layout_height=fill_parent. Now this layout should be resized to specific width and height on some event such as button click. Can we do this? I think we can, but I am not getting how is this possible. Can someone let me know the way of doing it? Thanks Regards Sunil -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe, reply using remove me as the subject.
[android-developers] Re: How to resize the RelativeLayout or any other Layout in Android ?
Hi, Thanks a lot. It worked out. But the inner views are not resized with this. Do we need to resize each and every component. I mean RelativeLayout has TextViews or Buttons as its child. Now, on button click event the view is resized but then TextView and Buttons just disappears. How can we resize the layout and its components as well? Regards Sunil -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe, reply using remove me as the subject.
[android-developers] Re: Android Phones
Hi, You will need to purchase either the Android developer phone or you will need some other device by HTC or some other manufacturer. If you still think that its way too expensive then you can with Remote Device testing from sites such as http://www.deviceanywhere.com Hope this helps youp out. Regards Sunil -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe, reply using remove me as the subject.
[android-developers] What should be the image resolution for Nexus One or Droid?
Hi, As Android supports multiple devices from different manufacturers there are different screen resolutions supported. The table that is available at http://developer.android.com/intl/fr/guide/practices/screens_support.html#screen-independence is not very clear to me. It shows WVGA and FWVGA in MDPI for Large Screens and HDPI for Normal screens. So, if the image is kept in drawable-mdpi and its resolution is 320 * 480 then which image will be taken by Large Screens device of MDPI. Moreover, there are two screen resolutions for HDPI i.e. 480 * 800 and 480 * 854. So, with what screen resolution the image should be built. I want to place the background image which looks distorted in WVGA emulator since its resolution is 320 * 480. I have read about nine patchable images but I think they are better for button images and edittext images so that they can stretch according to the data in it. Can someone please guide me in this? Regards Sunil -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe, reply using remove me as the subject.
[android-developers] Writing text on icon of Menu in Android?
Hi, Can we set Title for a Menu Item in Android if it has an icon from drawable? I have a icon for a Menu Item and if I set the icon then the title that is set for that Menu item is not visible. Is this possible or not? Hope to get a reply soon. Regards Sunil -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe, reply using remove me as the subject.
[android-developers] Re: Writing text on icon of Menu in Android?
Hi, I have looked into that tutorial. I have four menu items and each having an icon of 320*68. The problem is that the icon is 320*68 so it occupies all the space of a menu item and the text is not displayed. If I remove the icon then the text is displayed. Probably I am not able to write on top of Menu icon. Can we write on top of Menu icon? Regards Sunil -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe, reply using remove me as the subject.
[android-developers] Re: Writing text on icon of Menu in Android?
Hi, Thanks for replying fast. Can we change the background color of Menu items and then write on top of it? Thanks Regards Sunil -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe, reply using remove me as the subject.
[android-developers] Same Title bar but different view below it?
Hi, In one of my Android Application I need to keep the title bar same but the view that is shown in the rest of the screen changes. So, I have taken different Activity for all the views that I need to show and set the title bar in every Activities onCreate method. Now, the problem is that I have a button in the title bar and need to perform certain action on its click event. Writing the same event handling code in every Activity class is very cumbersome. Is there any other way out that whenever there is a click event on that button of the title bar then we can have the same functionality without writing the same code in all the Activity classes. Can we use ViewGroup for that? I don't have much idea about ViewGroup. Is that possible with ViewGroup? If anyone knows the solution then please let me know. Thanks Regards Sunil -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe, reply using remove me as the subject.
[android-developers] Re: Same Title bar but different view below it?
Hi, Thanks for your fast response. I am just a bit confused by what you said. Suppose I have a Class A that has my button logic, then according to what I understood I need to 1. Create a subclass of A such as Class B extends A 2. Other activities subclass B such as Class C extends B If that's correct then why can't Class C directly extends A such as Class C extends A Please correct me if I am wrong. Thanks Regards Sunil -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe, reply using remove me as the subject.
[android-developers] Re: Same Title bar but different view below it?
Hi, One more thing then when I need to display this subclasses, will they be displayed as we normally display one activity from another activity i.e. startActivity(intentObj). Please reply if anyone knows the solutions. Thanks regards Sunil -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Same Title bar but different view below it?
Hi, I have been able to extend the class and get the button click event in the same Activity. But now there is another issue. I want to display images in Gallery from that button click but its not happening so if I click on that button from another activity. The onclick method is being called but its not changing the view to Gallery. If I click on that button from the main Activity in which there is the button logic then the Gallery view is being displayed. Can anyone let me know what is the problem? Thanks regards Sunil -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe, reply using remove me as the subject.
[android-developers] Re: Multiple Listviews in single Activity?
Hi, Well, I never knew so many people have replied to this post. The issue has been solved. Someone pointed out that the code had no context, Can I know what is it and where should it be? Thanks Regards Sunil -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe, reply using remove me as the subject.
[android-developers] Re: Getting Bitmap of all the Views in ViewFlipper?
Hi, solved it by setting the visibility of all the views to visible. Regards Sunil -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe, reply using remove me as the subject.
[android-developers] How can I test ACTION_POWER_CONNECTED event?
Hi, I would like to do certain action on the Broadcast Receiver for ACTION_POWER_CONNECTED. Can someone let me know the way of testing this on emulator. Thanks Regards Sunil -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe, reply using remove me as the subject.
[android-developers] Re: How can I test ACTION_POWER_CONNECTED event?
Hi, Thanks a lot for your quick response Mark. Well, this broadcast will let me know when the Power Adapter is attached to it. Correct me if I am wrong? Moreover, Can we start Bluetooth automatically? Thanks Regards Sunil On Apr 7, 4:13Â pm, Mark Murphy mmur...@commonsware.com wrote: I would like to do certain action on the Broadcast Receiver for ACTION_POWER_CONNECTED. Can someone let me know the way of testing this on emulator. http://developer.android.com/guide/developing/tools/emulator.html#lim... The emulator does not emulate determining battery charge level and AC charging state. Hence, I believe you will need to test this on your device. -- Mark Murphy (a Commons Guy)http://commonsware.com Android App Developer Books:http://commonsware.com/books.html -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe, reply using remove me as the subject.
[android-developers] Getting Bitmap of all the Views in ViewFlipper?
Hi, I need to take the Bitmap of all the Views in ViewFlipper. But it gives me the Bitmap of only the current content on the screen. Is there any way of getting Bitmap of all the Views in the ViewFlipper. Or is there any other way around to get the Bitmap of all the Views. I have four views and need to load them at the same time and get their Bitmap so that I can resize it and later display with Gallery. I hope to get a quick response this time around. Thanks Regards Sunil -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe, reply using remove me as the subject.
[android-developers] Re: Multiple Listviews in single Activity?
Hi, I have used mostly the same way of showing multiple listviews as you suggested i.e. using setvisibility. But now what I want is to have the Bitmap image of all the four listviews. Suppose, my activity starts and the data are loaded into all the four listviews by binding them to their respective adapters. Now, when I am trying to fetch the Bitmap using getDrawingCache() it always returns null to me. So, can you let me know how can I fetch the Bitmap of all the four listviews? public class HomeScreenActivity extends Activity { private ImageView imgBabble = null; private ListView listBabble = null; private ListView listVille = null; private ListView listPrivateMsgs = null; private ListView listBookmarks = null; private ListString tempBabble = null; private ListString tempVille = null; private ListString tempPrivateMsgs = null; private ListString tempBookmarks = null; //RelativeLayouts private RelativeLayout babbleLayout = null; private RelativeLayout villeLayout = null; private RelativeLayout privateMsgsLayout = null; private RelativeLayout bookmarksLayout = null; //Bitmap private Bitmap babbleShrunkView = null; private Bitmap villeShrunkView = null; private Bitmap privateMsgsShrunkView = null; private Bitmap bookmarksShrunkView = null; /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); requestWindowFeature(Window.FEATURE_CUSTOM_TITLE); setContentView(R.layout.homescreen); getWindow().setFeatureInt(Window.FEATURE_CUSTOM_TITLE, R.layout.customtitle); imgBabble = (ImageView) findViewById(R.id.imgBtnBabble); Bitmap bitmapOrg = BitmapFactory.decodeResource(getResources(),R.drawable.babble_top_logo); BitmapDrawable bmpDrawable = new BitmapDrawable(bitmapOrg); imgBabble.setBackgroundDrawable(bmpDrawable); //Initialize the layouts for Babble, Ville, Private Messages and Bookmarks babbleLayout = (RelativeLayout) findViewById(R.id.babbleLayout); babbleLayout.setDrawingCacheEnabled(true); villeLayout = (RelativeLayout) findViewById(R.id.villeLayout); villeLayout.setDrawingCacheEnabled(true); privateMsgsLayout = (RelativeLayout) findViewById(R.id.privatemsgsLayout); privateMsgsLayout.setDrawingCacheEnabled(true); bookmarksLayout = (RelativeLayout) findViewById(R.id.bookmarksLayout); bookmarksLayout.setDrawingCacheEnabled(true); //Babble tempBabble = new ArrayListString(); tempBabble.add(First Babble); tempBabble.add(Second Babble); tempBabble.add(Third Babble); listBabble = (ListView) findViewById(R.id.listBabble); listBabble.setAdapter(new ArrayAdapterString(this, android.R.layout.simple_list_item_multiple_choice, tempBabble)); //babbleShrunkView = babbleLayout.getDrawingCache(); //babbleLayout = (RelativeLayout) findViewById(R.id.listLayout); if(babbleShrunkView == null) { System.out.println(Babble View is null); } //Ville tempVille = new ArrayListString(); tempVille.add(First Ville); tempVille.add(Second Ville); tempVille.add(Third Ville); listVille = (ListView) findViewById(R.id.listVille); //listVille.setDrawingCacheEnabled(true); listVille.setAdapter(new ArrayAdapterString(this, android.R.layout.simple_list_item_multiple_choice, tempVille)); //villeShrunkView = villeLayout.getDrawingCache(); if(villeShrunkView == null) { System.out.println(Ville View is null); } //listVille.setVisibility(View.GONE); //Private Messages tempPrivateMsgs = new ArrayListString(); tempPrivateMsgs.add(First PM); tempPrivateMsgs.add(Second PM); tempPrivateMsgs.add(Third PM); listPrivateMsgs = (ListView) findViewById(R.id.listPrivateMessages); //listPrivateMsgs.setDrawingCacheEnabled(true); listPrivateMsgs.setAdapter(new ArrayAdapterString(this, android.R.layout.simple_list_item_multiple_choice, tempPrivateMsgs)); //privateMsgsShrunkView = privateMsgsLayout.getDrawingCache(); if(privateMsgsShrunkView == null) { System.out.println(Private Messages View is null); } //listPrivateMsgs.setVisibility(View.GONE); //Bookmarks tempBookmarks = new ArrayListString(); tempBookmarks.add(First Bookmarks); tempBookmarks.add(Second Bookmarks); tempBookmarks.add(Third Bookmarks); listBookmarks = (ListView) findViewById(R.id.listBookmarks); //listBookmarks.setDrawingCacheEnabled(true); listBookmarks.setAdapter(new
[android-developers] Re: Multiple Listviews in single Activity?
Hi, In case someone needs the reference of xml layout file, I have posted that below too. ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/android; android:orientation = vertical android:layout_width=fill_parent android:layout_height=fill_parent android:background = @drawable/bg RelativeLayout android:id = @+id/babbleLayout android:layout_width = fill_parent android:layout_height = wrap_content android:paddingTop = 10dip ListView android:id = @+id/listBabble android:layout_width = fill_parent android:layout_height =wrap_content android:layout_weight = 1 android:paddingTop = 5dip android:background = @drawable/brown_bg /ListView /RelativeLayout RelativeLayout android:id = @+id/villeLayout android:layout_width = fill_parent android:layout_height = wrap_content android:paddingTop = 10dip ListView android:id = @+id/listVille android:layout_width = fill_parent android:layout_height =wrap_content android:layout_weight = 1 android:paddingTop = 5dip android:background = @drawable/brown_bg /ListView /RelativeLayout RelativeLayout android:id = @+id/privatemsgsLayout android:layout_width = fill_parent android:layout_height = wrap_content android:paddingTop = 10dip ListView android:id = @+id/listPrivateMessages android:layout_width = fill_parent android:layout_height = wrap_content android:layout_weight = 1 android:paddingTop = 5dip android:background = @drawable/brown_bg /ListView /RelativeLayout RelativeLayout android:id = @+id/bookmarksLayout android:layout_width = fill_parent android:layout_height = wrap_content android:paddingTop = 10dip ListView android:id = @+id/listBookmarks android:layout_width = fill_parent android:layout_height = wrap_content android:layout_weight = 1 android:paddingTop = 5dip android:background = @drawable/brown_bg /ListView /RelativeLayout /LinearLayout Anyone please help me out in this. Thanks Regards Sunil -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe, reply using remove me as the subject.
[android-developers] Re: Multiple Listviews in single Activity?
Hi, Is there anyone who can let me know whats the issue with the code above? Thanks Regards Sunil -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe, reply using remove me as the subject.
[android-developers] Multiple Listviews in single Activity?
Hi, I want to have multiple listviews in single activity. But only one listview should be displayed at one time. The listviews will be loaded dynamically. So, how can I fill all the four listviews at the same time and display only one. If anyone knows the solution then please share it over here. I hope to get a quick response. Thanks Regards Sunil -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe, reply using remove me as the subject.
[android-developers] Re: Integrate IPhone Safari like view in Android?
Hello Everyone, Thanks a lot to everyone who tried to understand this question and took the time to reply. I have managed to do this by using View.draw and View.getDrawingCache methods. It returns the Bitmap of the View and then I can pass those bitmaps to Gallery so that it can be displayed as images are displayed in Gallery. Thanks Regards Sunil -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe, reply using remove me as the subject.
[android-developers] Re: Weird Thing with my posts
Hi, Just to join you guys and let you know that even I am receiving this mails. Its really annoying that we cannot do anything in this regard. Hope it gets sorted out quickly. Regards Sunil -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe, reply using remove me as the subject.
[android-developers] Google Checkout or Paypal Integration into Android using its Web Services?
Hi, I have already asked this question regarding Payment Gateway Integration into Android, but didn't got any satisfactory answers. Can someone let me know is it actually possible to integrate any of the above mentioned Payment Gateways into Android? Mostly I think we can call their Web Services and then consume those services which will be in XML. I will like to know if someone has done the same thing or is absolutely sure about this. I want to develop a shopping cart type application where the user needs to purchase the products from the list of products. Once the user selects the product, the payment should be made directly from the same application only and not by opening Google Checkout or Paypal mobile website. Please let me know what you people think about this. Hope to get the answer quickly. Thanks Regards Sunil -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Integrate IPhone Safari like view in Android?
Hi, I have been able to minimize the View using animation. I have set the animation for 500 duration, so the animation disappear after that period. Can someone let me know is it possible to have that shrunken view permanently till someone clicks on it? Please reply so that I can sort this User Interface as soon as possible. Also, let me know if its difficult to understand what I want. Hope to get a quick reply. Thanks Regards Sunil -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe, reply using remove me as the subject.
[android-developers] Re: Integrate IPhone Safari like view in Android?
Hi, I am trying to mimic the view of IPhone Safari. And also, if you have looked at the TweetDeck Application in IPhone. It is quite similar to Anrdoid Browser, since it has minimized window. What I have been able to do is minimize the view using Animation as below : ?xml version=1.0 encoding=utf-8? set xmlns:android=http://schemas.android.com/apk/res/android; android:shareInterpolator=false scale android:interpolator=@android:anim/ accelerate_decelerate_interpolator android:fromXScale=1.0 android:toXScale=0.8 android:fromYScale=1.0 android:toYScale=0.6 android:pivotX=50% android:pivotY=50% android:fillAfter=false android:keepScreenOn = true android:duration = 500 / /set The source code for the Activity goes like this : import android.app.Activity; import android.content.Intent; import android.graphics.Bitmap; import android.graphics.Canvas; import android.graphics.Matrix; import android.os.Bundle; import android.view.View; import android.view.animation.Animation; import android.view.animation.AnimationUtils; import android.widget.Button; import android.widget.LinearLayout; public class ShrinkAnimation extends Activity { private Button btnShrink = null; private LinearLayout ll = null; private Animation shrinkAnimation = null; private Bitmap shrunkview = null; /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); shrinkAnimation = AnimationUtils.loadAnimation(ShrinkAnimation.this,R.anim.shrink); btnShrink = (Button) findViewById(R.id.btnShrink); ll = (LinearLayout) findViewById(R.id.mainLayout); btnShrink.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { ll.startAnimation(shrinkAnimation); } }); } } And the layout is like this : ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/ android android:orientation=vertical android:layout_width=fill_parent android:layout_height=fill_parent Button android:id = @+id/btnShrink android:layout_width=fill_parent android:layout_height=wrap_content android:text=Shrink / LinearLayout xmlns:android=http://schemas.android.com/apk/res/ android android:id=@+id/mainLayout android:orientation=vertical android:layout_width=fill_parent android:layout_height=fill_parent android:baselineAligned=true android:background=#FF LinearLayout xmlns:android=http://schemas.android.com/apk/res/ android android:orientation=horizontal android:layout_height=wrap_content android:layout_marginLeft=5dip android:layout_marginRight=5dip android:layout_marginTop=25dip android:layout_width=wrap_content android:layout_gravity=center TextView android:text=Name : android:id=@+id/NameLable android:layout_height=wrap_content android:layout_width=wrap_content android:minWidth=70dip/ EditText android:text= android:id=@+id/name android:layout_width=wrap_content android:layout_height=wrap_content android:maxWidth=400dip android:gravity=top android:minWidth=230dip/EditText /LinearLayout LinearLayout xmlns:android=http://schemas.android.com/apk/res/ android android:orientation=horizontal android:layout_height=wrap_content android:layout_marginLeft=5dip android:layout_marginRight=5dip android:layout_gravity=center android:layout_width=wrap_content TextView android:text=Location : android:id=@+id/locationLabel android:layout_width=wrap_content android:layout_height=wrap_content android:minWidth=70dip/ EditText android:text= android:id=@+id/location
[android-developers] Re: Integrate IPhone Safari like view in Android?
hi, Can anyone let me know of doing this? Or Can someone tell me the way of adding Listview in Gallery? I need to add multiple Listview in Gallery. Hope to get a reply soon. Thanks Regards Sunil -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-developers] Re: Integrate IPhone Safari like view in Android?
Hi, Thanks for replying. I appreciate your idea of using Webview but the problem is that Webview will give me the image of on the Listview that is displayed on the screen. There will be other listviews too which needs to minimized. It is similar to TweetDeck application UI for Iphone. The main concept goes like this. I have four listviews with its own data loaded at the same time. Only one listview will be visible to the user. Now, when the user presses a button, not only the current listview but also other three listviews should be minimized and then user can just scroll just as in Gallery and select the listview that one wants to open. I hope you have understood what I want. Let me know if you have some idea of implementing such a User Interface. Thanks Regards Sunil -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-developers] Integrate IPhone Safari like view in Android?
Hi All, I want to implement IPhone safari like view in Android. The scrolling can be done using Gallery I think. But how to minimize the views as done in the IPhone Safari. The Android Browser also have minimized view, can anyone tell me how to implement it? Any help in this regard would be really appreciable. Hope to get a quick reply. Thanks Regards Sunil -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-developers] Re: Avoid Black Screen on starting application?
Hi, Thanks a lot Mark. That was really helpful. Thanks Regards Sunil -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-developers] Avoid Black Screen on starting application?
Hi, Whenever I start any Android Application, initially a black screen comes to the foreground for a split of a second and then the splash screen comes up of the Application. Can anyone let me know the way of avoiding it? Hope to get a reply soon. Thanks Regards Sunil -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-developers] Re: Avoid Black Screen on starting application?
Hi, Below is the code that I am using in onCreate() method. /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); /* New Handler to start the Menu-Activity * and close this Splash-Screen after some seconds.*/ new Handler().postDelayed(new Runnable() { @Override public void run() { /* Create an Intent that will start the Toodalu Main Screen-Activity. */ Intent mainIntent = new Intent(Main.this, Login.class); Main.this.startActivity(mainIntent); Main.this.finish(); } },3000); } I don't think its lot of work in this method but still the black screen does appears for a split of a second. Isn't there any way of stopping this? Anyways thanks a lot for your reply. Thanks Regards Sunil -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-developers] Re: Changing Textview dynamically in the same activity/
Hi, Is there anyone who has developed such an application before? I just want to make a Quiz Application where Questions will be fetched from the database. So, I don't want to have a separate Activity for each question, just to replace the questions and answers which will be in checkbox. Can anyone let me know how to do this or give me some idea of doing this then it will really helpful. Hope to get a reply soon. Thanks Regards Sunil -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Changing Textview dynamically in the same activity/
Hi, I am trying to develop a simple application where users need to answer certain questions. I want that the textview should be changed dynamically in the same activity with sliding to left or right animation. Can someone let me know how to do this? Regards Sunil -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Changing Textview dynamically in the same activity/
Hi, Thanks a lot for replying. I will look into TextSwitcher. Can we use ViewSwitcher to switch between entire views. Actually I am developing a Quiz like game. And I don't want to have another views for every question. So, what could we do for just replacing the question that will be in Textview and the multiple answers that will be in checkbox or radiogroup. Just the contents of this should get changed with animation. Can someone suggests me something on this? Thanks Regards Sunil -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: MultiScreen Support in Android?
Hi, I am trying to use Resource Qualifier for layout as layout-large. But when the application is starting in the emulator its reading the same file from default layout folder. The res folder structure is as below : res/ layout/login.xml layout-large/login.xml What I want is when there is large screen the layout-large/login.xml file should be read but its not. What is wrong over here? Any help would be appreciated? Thanks Regards Sunil -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: MultiScreen Support in Android?
Hi, Yes, obviously I have read that. The problem is currently being solved by using different layout for different screen. I have created layout-hdpi folder under res and specified the layout file over there for high resolution screen. But I still think there can be a better solution for this since if the application was created using Android 1.5 then the application would be going for compatibility mode and in that User interface was not getting displayed properly. Anyways thanks everybody for their valuable support. Thanks Regards Sunil -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Scroll Position in BaseAdapter?
Hi, I am using BaseAdapter for displaying the list. This list is fetched by calling a Web Service. At a time only 20 records are returned. Now, when the scroll of the BaseAdapter reaches the last record then the application should fetch more records from the server. So, what I want to know is how to know the scroll position or some other way of knowing that the last record has been reached so fetch more records from the server. I don't want to implement the next and previous button on the screen.and so am trying to implement it in this manner. Let me know if someone knows the way of implementing it. Hope to get a reply soon. Thanks Regards Sunil -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] MultiScreen Support in Android?
Hi, I want to support most of the Android Devices for the application. The problem that I am facing is the positioning of the EditText fields. The User Interface gets displayed properly in HVGA Emulator but not in WVGA emulator. The HVGA emulator is 320 * 480 screen resolution and the WVGA is 480 * 800. I have inserted the support-screens tag in the manifest file, but still it remains the same. I have used RelativeLayout and specified layout_marginTop = 220dip for the EditText. I am using a background image on top of which I want this EditText field. The background image has a box into which this EditText filed should come. By specifying 220dip as the top margin it is displayed appropriately in HVGA but slightly above the box in WVGA. Can some one point what may be the problem or suggest something that may sort out this issue? Thanks Regards Sunil -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: MultiScreen Support in Android?
Hi, By using dip it should get displayed properly on all the screens. But its not happening, so I think there may be some problem or may be I am doing something wrong. It would be nice if someone can point out that. Do we need to create a separate layout file for each screen type? This will increase the work load considerably. I hope there's another solution to this. Thanks Regards Sunil -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Problem in developing application for multiple screen support?
Hi, I want to develop UI of the application which looks similar on all screen sizes. I have gone through the Android developer article regarding this. I am using supports-screen tag but then also the screen is displayed not displayed properly in the larger screens. The screen is displayed properly in HVGA and not in WVGA. I have developed the application using Android 1.6 and set the minimum SDK version as 4. The application is running properly on HVGA avd but not on WVGA avd. Can I know the reason for it? Is there any solution for this? I want that the user interface of the application should look uniform in all the handsets. Hope to get a reply soon. Thanks Regards Sunil -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 in developing application for multiple screen support?
Hi, I forgot to say that the issue is only the top margin. I am specifying RelativeLayout and in that I am using EditText to which I have assigned layout_marginTop=220dip. This edittext needs to displayed inside an image. Its getting displayed properly in HVGA but not in WVGA which has resolution of 480 * 800. Can anyone point the reason behind this problem? Thanks Regards Sunil -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Problem in nesting LinearLayout?
Hi, I am facing a problem in designing LinearLayout. What I want is the Textbox at the top and button bar at the bottom. But the top Textbox just don't appear. The xml file looks like this : ?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 android:background = #ff LinearLayout android:id=@+id/button_bar android:layout_width=320dip android:layout_height=50dip android:orientation=horizontal android:gravity = bottom android:padding=0dip android:background = #FF style=@android:style/ButtonBar Button android:id=@+id/mapbtn android:layout_width=80dip android:layout_height=50dip android:layout_weight=1 android:background = @drawable/mapbtn/ Button android:id=@+id/mebtn android:layout_width=80dip android:layout_height=50dip android:layout_weight=1 android:background=@drawable/mebtn/ Button android:id=@+id/friends android:layout_width=80dip android:layout_height=50dip android:layout_weight=1 android:background=@drawable/friendsbtn/ Button android:id=@+id/privacy android:layout_width=80dip android:layout_height=50dip android:layout_weight=1 android:background=@drawable/privacybtn/ /LinearLayout LinearLayout android:id=@+id/searchbox android:layout_width=320dip android:layout_height=44dip android:orientation = vertical android:gravity = top android:background = #96A2B5 EditText android:id = @+id/searchtxt android:layout_width = 260dip android:layout_height = 31dip android:lines = 1 android:maxLines = 1 android:layout_marginLeft = 5dip android:layout_marginTop = 8dip /EditText /LinearLayout /LinearLayout I just don't understand what is the issue over here. I think its something to do with android:orientation parameter, but I don't what is it. Can someone here please point out the mistake in this and let me know the solution for this.? Hope to get a quick reply. Regards Sunil -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 in nesting LinearLayout?
Hi Sreehari, I already tried that, but now the button bar doesn't come at the bottom of the screen. It stays at the top of the screen below the the edittext. I want the EditText to be at the top of the screen and the button bar at the bottom of the screen. Thanks for replying though. Can you let me know what may be wrong over here that the button bar is not getting displayed at the bottom of the screen? Thanks Regards Sunil -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 in nesting LinearLayout?
Hi, Atlast I managed to solve it. The issue was the LinearLayout's layout_height attribute. I was specifying the height to be 50dip and the image was also of the same height. Just specifying the height as fill_parent solved the issue for me. Thanks anyways. Thanks Regards Sunil -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Search Box in Activity?
Hi, I want to display the Search Box in an activity. But I am not able to get it implemented it properly. Can anyone provide me with a simple demo of implementing it. I have tried using API Demos example but the Search box just dont appear. I don't know what is the problem. What I want is the Searchbox at the top of the screen and below is the other UI needed for that Activity. Can someone help me out? Regards Sunil -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Search Box in Activity?
Hi, I have been successful in implementing Search box. But this search box comes when Search button is pressed. Is it possible to make this Search visible on the screen whether button pressed or not. Currently, whenever I press the Search button on the device the Search pops-up and the back activity is hidden or goes blank. Can we implement the Search box in the same activity. If anyone knows the answer then please let me know. Regards Sunil -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Pinwheel or progress indicator while loading screen
Hello, Is there anyone who can let me know how to achieve this? I want that once the login button is clicked a ProgressDialog is displayed and it should be dismissed only when the data from the server has been completely loaded. Can anyone guide how to accomplish this? Thanks Regards Sunil -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Pinwheel or progress indicator while loading screen
Hi Everybody, Can someone let me know the way of utilising the pinwheel or progress indicator while loading the screen? Hope to get a reply soon. Regards Sunil -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Pinwheel or progress indicator while loading screen
Hi, I have seen ProgressDialog for this and seems it is what I require. But now what I want is that ProgressDialog should be visible till the next screen is loaded it means while loading the next screen. The application involves user authentication. Once, the user enters username and password and on pressing login button the application will try to fetch the data from the server. So, till the data is fetched from the server it should display ProgressDialog. Any ideas of how to do this. Please let me know if anyone has any idea of achieving this. Thanks Regards Sunil -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Payment Gateway Integration with Android?
Hi, I will like to know how to integrate Payment Gateway like Paypal and Google Checkout with Android Application? Is there any particular API for Android or we can use API provided by Paypal or Google Checkout directly. Is there any code sample or link where there is information is provided regarding this? Hope to get a reply soon. Thanks Regards Sunil -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] TouchEvent on Chart in Android?
Hi, I want to implement chart in Android. I have gone through Achartengine and deployed it in Android Emulator. Now can someone let me know whether we can manipulate that Chart on touchevent. I don't have much experience in Android chart so any help would be appreciated. Hope to get a reply soon. Thanks Regards Sunil -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] jar is unsigned (signatures missing or not parceable)
Hi, I have signed an application with a private key. Everything works fine, just when I verify .apk file with jarsigner - verify filename.apk. But that results in jar is unsigned (signature missing or not parceable). Thanks Regards Sunil -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Application developed in 1.5 r 3 not working in Motorola Droid
Hi, Can someone tell me if there's any reason behind application developed in Android SDK 1.5 r 3 is not working in Motorola Droid which has Android 2.0. While installing the application it gives error as Package parser error. Are Android applications forward compatible? Will application developed in current SDK work on future SDK releases. Hope to get a reply soon. Thanks Regards Sunil -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Application developed in 1.5 r 3 not working in Motorola Droid
Hi, I have kept the minimum SDK version to 3. Doesn't it mean that application will work in any handset with Android 1.5 r 3 or higher. Or will I have to upgrade to Android 2.0 and then again compile the application. Thanks Regards Sunil -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Application developed in 1.5 r 3 not working in Motorola Droid
Hi, I said that its giving me Package Parser error while installing the application only. I am trying to run Intent Receiver which listens for incoming message and if the message is Locate me then it replies with Location information such as cellid, lac, mnc, mcc and latitude and longitude. It also deletes the message from inbox. Will this functionality cause any sort of problem in Android 2.0 Thanks Regards Sunil Dianne Hackborn wrote: Maintaining backwards compatibility with the official SDK is a strong goal, but of course in some cases not met. You haven't said what you are doing or what the error you are getting (or even where it is happening), though, so we can't give you much help. On Thu, Dec 10, 2009 at 9:11 PM, javame_android su...@saltriver.com wrote: Hi, Can someone tell me if there's any reason behind application developed in Android SDK 1.5 r 3 is not working in Motorola Droid which has Android 2.0. While installing the application it gives error as Package parser error. Are Android applications forward compatible? Will application developed in current SDK work on future SDK releases. Hope to get a reply soon. Thanks Regards Sunil -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Google Maps - Traffic View
Hi, I would like to know how to use Traffic View or how to get the traffic details from GPS. Have I to use Traffic View only or is their any other way that can let me know about Traffic in my route. Thanks Regards Sunil -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Disturbance in playing sound file in Android.
Hi, I want to play sound data which would be streamed from the site. Actually the data would be embeded in zip file which would be .q3z which is our own format for embedding 3d data with sound. Now everything is working fine. I am able to parse the sound data from that file and write it to file. When I am playing that file, the file gets played but the sound quality is not good. Whereas the same thing if I am implementing in Java then the sound gets played absolutely fine. Can anyone suggest how to stream the sound file without disturbance or any kind of distortion. In java player there are some kind of operations done on the sound data such as PCM encoding. I have uploaded the file on http://www.saltriver.com/download/qed.wav Thanks Regards Sunil -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Fetch IMSI or detect SIM change?
Hi, I want to fetch the IMSI number so that I could keep it in memory and detect whenever SIM card changes. Is it actually possible? Is there anyone who can guide me a bit? Hope to get a positive reply soon. Regards Sunil --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Javascript in Standalone Application?
Hi, I want to use Javascript engine in Android Application but that application is not Browser based. Can we use javascript in application? The function of javascript would be to execute certain methods and pass on the values to Android Applications and then that application will perform certain tasks based on that returned values. Thanks Regards Sunil --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Zipalign utility not available in android 1.5_r3
Hi, Is there anyone who can reply to this? Regards Sunil On Sep 23, 6:37 pm, javame_android su...@saltriver.com wrote: Hi, I have developed an application and want to sign it. After signing the application when I try to Align the final package with zipalign. But there's no file called zipalign in tools directory. Can someone guide me regarding this? Moreover, after signing the application when I try to install the application it gave me com.satloc signatures do not match the previously installed version; ignoring!. To remove this error I tried -wipe_data. After doing this I again tried to load the application with adb install SatLoc.apk but it again gave me an error this time it DDM dispatch reg wait timeout Can't dispatch DDM chunk 52454151: no handler defined Can't dispatch DDM chunk 48454c4f: no handler defined pkg: /data/local/tmp/SatLoc.apk Failure [-12] Now can anyone suggest me what is this and how to remove this? I want to load the signed application in emulator. Is zipalign necessay for this purpose? If yes then from where can I get zipalign utility. Thanks Regards Sunil --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] InstantiationException while starting Service
Hi All, I have developed an application which listens for the incoming message. When the message arrives, I am reading that message then invoking the service to delete that message. But when invoking the service I get an error as unhandled exception InstantiationException: Cannot instantiate the service. Can anyone let me know what may be the problem? Below is the manifest file application android:icon=@drawable/icon android:label=@string/ app_name receiver android:name=.SMSIntentReceiver android:enabled=true intent-filter action android:name = android.provider.Telephony.SMS_RECEIVED / /intent-filter /receiver service android:name=.utils.SMSEraser intent-filter action android:name=com.utils.utils.SMSEraser/ /intent-filter /service /application The code that calls the service is as under : //Start the Service. con is Context object Intent intent = new Intent(); intent.setAction(com.satloc.utils.SMSEraser); con.startService(intent); Hope to get a reply soon. Thanks Regards Sunil --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Is there any Android Handset which CDMA based?
Hi, The API that you pointed out has not been included in Android SDK 1.5_r3. Will the current handsets be able to use this API if I include this in my project. Anyways thanx a lot for replying. Regards Sunil --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Is there any Android Handset which CDMA based?
Hi, Will the GsmCellLocation give me the proper result in CDMA network. If my application uses GsmCellLocation, then will I be able to get CellId and Lac value? If not then how to get those values on CDMA network. Regards Sunil --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 in acceing sent message from BroaddcastReceiver
Hi, I really didn't get you what you want to say. Please be specific and let us know what error do you get and when actually does it occur. What are you trying to do? If you want to listen for the message then you can do that using Broadcast Receiver and registering that receiver in AndroidManfest file with receiver tag. Moreover, dont forget to include the appropriate permissions for the same. Regards Sunil --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Is there any Android Handset which CDMA based?
Hi, I would like to know whether Android handsets support CDMA network also. Are there any handset which currently supports CDMA or every handset has support for that. Actually I want to retrieve the location information such as Cellid, LAC, MCC, MNC. But if the network is of CDMA type then will there be any difference in the API. Since API for fetching cellid is GsmCellLocation. This class will give the cellid and lac of the current network. If in some cases the network is of CDMA type then how would location information be fetched in that.. Can we use TelephonyManager class methods for any kind of device? In this class there is no method which gives the LAC of the current network. I hope to get the reply soon. Regards Sunil --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Running Application as Service
Hi, I want to continuously listen for incoming messages in background. So what would be the best way of doing it? Shall I make that application as Service or just registering it as BroadCast Receiver would do. If I register the listener then will it keep on running continuously. This receiver should be able to receive all the incoming messages. Hope to get the reply soon. Regards Sunil --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Running Application as Service
Hi, I am currently just registering Broadcast Receiver for reading incoming messages. And this also works in Background which is what I required. Now is that Broadcast Receiver unregistered by Android Application Manager automatically or will it be able to process every incoming message. I just want to read incoming message process it and if it contains a specific content then send the current location of that to the number from which the message arrived. Will just extending Broadcast Receiver do the work or will I need to implement it as Service so that it runs forever. I have checked the Broadcast Receiver it works for now. One more question when will this Broadcast Receiver be called. Suppose the mobile is switched on then will this receiver be registered automatically. Regards Sunil --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Running Application as Service
Hi, I want the application to run in background. This application should run continuously and should never get killed. Will running application as Service solve this issue? The application should get started automatically on start up. I don't need any GUI for this application. The main issue is Service getting Killed. Does service get killed ? and in what conditions will that happen? Hope to get a reply soon. Regards Sunil --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: easy way to synchronize data between phone and server
Hi, For synching with the server you can either use Web Services or have a look at the Funambol Server. It is SyncML Server and is open source. Hope this helps you out. Regards Sunil --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: OpenGL ES application on WebView
Hi, Can we use onDraw(Canvas canvas) method for drawing opengl es application? Will rendering take place on Canvas object? Hope to get a quick reply soon. Regards Sunil --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] OpenGL ES application on WebView
Hi, I want to implement OpenGL ES application on WebView. Can the application be ported that way? I have an Applet Player which uses JOGL for rendering purpose and JavaScript for event handling. Now to port that application on Android I have completed rendering on GLSurfaceView. For event handling I need to replace the code of Javascript with something else. Can I call Javascript and parse it from my standalone application. Or I would have to use WebView class to use it. In case I need to use WebView for calling Javascript then can I draw opengl es on WebView. Any guidance would be of great help. Regards Sunil --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Is there any alternative of ImageIO class in Android?
Hi, I want to port Java Application to Android. The application is based on JOGL. For implementing Texture part I need to find out an alternative to ImageIO class. I have read about Bitmap class. Moreover, can someone let me know how to load texture from Inputstream which is not in the resource folder. I mean to say that the image will be fetched from a URL. Hope to get a reply soon. Thanks Regards Sunil --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] SurfaceFlinger and SurfaceComposerClient problem.
Hi, Can anyone let me know when this problems comes. I am trying to download a file and then render it on the screen. I am able to download the file this problem occurs when parsing and rendering of that file should be started. Hope to get a quick reply. Thanks Regards Sunil --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---