[android-developers] Problem with map overlay
Hi All, i want to create map oveylays with information window(when user tap overlay) which is clickable and stick with overlay when user panning the map. i am added the map in a tab view, created overlays using itamizedoverlays and information window using Popupwindow, when user panning the map i am updating the popup window positing using popup.update() method. The problem here is when the user panning with popup window on map towards up, the pop up window showing above the tab bar. i dont know how to fix this. here i have given sample code for popup window display and on draw method. CODE: SELECT ALL LayoutInflater inflater = LayoutInflater.from(mContext); View mView = inflater.inflate(R.layout.map_popup, null); mView.setOnClickListener(clickListener); mPopupWindow = new PopupWindow(mView, LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT, false); mPopupWindow.setAnimationStyle(android.R.style.Animation_Dialog); mPopupWindow.showAsDropDown(mView, 20, 200); On draw method CODE: SELECT ALL mPopupWindow.update(center.x , center.y , -1, -1); i want it to be like the same in directions popups in google maps application. please advise me. Thanks in advance -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Gallery View Customization
Hi All, i want to customize the Gallery widget like a conveyer belt having icons. Please note that this icons conveyer chain is of circular nature that is if there are 5 icons and user is navigating towards left side so icons which gets disappeared at right side, again appears back on left side of chain… just think of a circular ring. Please see the link below [url]http://101bestandroidapps.com/app/UltimateFavesPRO/556/[/url] how can create that.. please suggest me.. Thanks Giri -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 with Finding with Geo Coordinates
Hi All, I am developing an application which uses the current location of the user to do some operations. i have used LocationManager and LocationListener to receive the latitude and longitude values in onLocationChanged() method. it is perfectly working when i am testing using emulator control in eclipse. when its accessing from the real device its not functioning properly. its will give 0, 0 for latitude ad longitude. Here is my code which used to get the current location. /*Code*/ public GeoLocationManger(Activity activity) { LocationManager locationManager = (LocationManager) activity .getSystemService(Context.LOCATION_SERVICE); Criteria criteria = new Criteria(); criteria.setAccuracy(Criteria.ACCURACY_FINE); List providers = locationManager.getProviders(criteria,true); if(providers != null providers.size() 0){ LocationProvider pro =locationManager.getProvider(providers.get (0).toString()); locationManager.requestLocationUpdates(pro.getName(), 0, 0, this); } else { Messages.displayMessageOnUI(GasBuddyConstants.INFO, GPS Not Enabled – Update your settings., activity); } } public void onLocationChanged(Location location) { this.latitude = location.getLatitude(); this.longitude = location.getLongitude(); } /*Code*/ is there any settings need to do with phone? Please help me to resolve this. Thanks in advance. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Eficient way to call an Activity
Hi All, I am developing a android application with more than four activities. i am starting a activity using startActrivity() method wherever i need to go for other activity. i feel this degrade my application performance.. please advice me on this Thanks, Giri --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 with Finding with Geo Coordinates
Hi All, i want to find the latitude and longitude of the current location for that i have followed as per the link below http://groups.google.com/group/android-developers/browse_thread/thread/2500ad71054ec64/885bbb7e6362b760?lnk=gstq=finding+geo+locations+using+intents#885bbb7e6362b760 But now i am using android sdk 1.5 r2, it does not contain the methods specified in above link. Please help me to get the geo coordinates. Thanks , Giri --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: why i cant connect to the internet,i have added the permission.
uses-permission android:name=android.permission.INTERNET / Uses Permission should be added in your manifest file under the manifest tag On Jun 16, 1:57 pm, hencechen...@gmail.com hencechen...@gmail.com wrote: here is my code: it always interrupt at conn.connect(); try { url+=input.getText().toString(); myFileUrl = new URL(url); } catch (MalformedURLException e) { e.printStackTrace(); } try { HttpURLConnection conn = (HttpURLConnection) myFileUrl .openConnection(); conn.setDoInput(true); conn.connect(); InputStream is = conn.getInputStream(); val=inputStreamToString(is); is.close(); } catch (IOException e) { e.printStackTrace(); } --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 with adding contents with Tab
Hi All, i am creating an application with two tabs i want to add contents for each tab with Text View and Buttons.here is my layout xml definition - ?xml version=1.0 encoding=utf-8? TabHost xmlns:android=http://schemas.android.com/apk/res/android; android:id=@+id/th_set_menu_tabhost android:layout_width=fill_parent android:layout_height=fill_parent TabWidget android:id=@android:id/tabs android:layout_width=fill_parent android:layout_height=fill_parent/ FrameLayout android:id=@android:id/tabcontent android:layout_width=fill_parent android:layout_height=fill_parent android:paddingTop=65px LinearLayout android:id=@+id/grid_set_menu_page1 android:orientation=horizontal android:layout_width=fill_parent android:layout_height=fill_parent ImageButton android:id=@+id/ibtn_settings_audio android:layout_width=wrap_content android:layout_height=wrap_content / ImageButton android:id=@+id/ibtn_settings_close_page1 android:layout_width=wrap_content android:layout_height=wrap_content / /LinearLayout LinearLayout android:id=@+id/grid_set_menu_page2 android:orientation=horizontal android:layout_width=fill_parent android:layout_height=fill_parent ImageButton android:id=@+id/ibtn_settings_favorites android:layout_width=wrap_content android:layout_height=wrap_content / ImageButton android:id=@+id/ibtn_settings_close_page2 android:layout_width=wrap_content android:layout_height=wrap_content android:gravity=right / /LinearLayout /FrameLayout /TabHost - In java file i have added this.myTabHost = (TabHost)this.findViewById (R.id.th_set_menu_tabhost); this.myTabHost.setup(); its not working.i am getting an exception in emulator(application stopped unexpectely). please help me on this.. please suggest me the best way to do this. Thanks in advance --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Problem with adding contents with Tab
Hi All, i am creating an application with two tabs i want to add contents for each tab with Text View and Buttons.here is my layout xml definition - ?xml version=1.0 encoding=utf-8? TabHost xmlns:android=http://schemas.android.com/apk/res/android; android:id=@+id/th_set_menu_tabhost android:layout_width=fill_parent android:layout_height=fill_parent TabWidget android:id=@android:id/tabs android:layout_width=fill_parent android:layout_height=fill_parent/ FrameLayout android:id=@android:id/tabcontent android:layout_width=fill_parent android:layout_height=fill_parent android:paddingTop=65px LinearLayout android:id=@+id/grid_set_menu_page1 android:orientation=horizontal android:layout_width=fill_parent android:layout_height=fill_parent ImageButton android:id=@+id/ibtn_settings_audio android:layout_width=wrap_content android:layout_height=wrap_content / ImageButton android:id=@+id/ibtn_settings_close_page1 android:layout_width=wrap_content android:layout_height=wrap_content / /LinearLayout LinearLayout android:id=@+id/grid_set_menu_page2 android:orientation=horizontal android:layout_width=fill_parent android:layout_height=fill_parent ImageButton android:id=@+id/ibtn_settings_favorites android:layout_width=wrap_content android:layout_height=wrap_content / ImageButton android:id=@+id/ibtn_settings_close_page2 android:layout_width=wrap_content android:layout_height=wrap_content android:gravity=right / /LinearLayout /FrameLayout /TabHost - In java file i have added this.myTabHost = (TabHost)this.findViewById (R.id.th_set_menu_tabhost); this.myTabHost.setup(); its not working.i am getting an exception in emulator(application stopped unexpectely). please help me on this.. please suggest me the best way to do this. Thanks in advance --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Problem with adding contents with Tab
Hi All, i am creating an application with two tabs i want to add contents for each tab with Text View and Buttons.here is my layout xml definition - ?xml version=1.0 encoding=utf-8? TabHost xmlns:android=http://schemas.android.com/apk/res/android; android:id=@+id/th_set_menu_tabhost android:layout_width=fill_parent android:layout_height=fill_parent TabWidget android:id=@android:id/tabs android:layout_width=fill_parent android:layout_height=fill_parent/ FrameLayout android:id=@android:id/tabcontent android:layout_width=fill_parent android:layout_height=fill_parent android:paddingTop=65px LinearLayout android:id=@+id/grid_set_menu_page1 android:orientation=horizontal android:layout_width=fill_parent android:layout_height=fill_parent ImageButton android:id=@+id/ibtn_settings_audio android:layout_width=wrap_content android:layout_height=wrap_content / ImageButton android:id=@+id/ibtn_settings_close_page1 android:layout_width=wrap_content android:layout_height=wrap_content / /LinearLayout LinearLayout android:id=@+id/grid_set_menu_page2 android:orientation=horizontal android:layout_width=fill_parent android:layout_height=fill_parent ImageButton android:id=@+id/ibtn_settings_favorites android:layout_width=wrap_content android:layout_height=wrap_content / ImageButton android:id=@+id/ibtn_settings_close_page2 android:layout_width=wrap_content android:layout_height=wrap_content android:gravity=right / /LinearLayout /FrameLayout /TabHost - In java file i have added this.myTabHost = (TabHost)this.findViewById (R.id.th_set_menu_tabhost); this.myTabHost.setup(); its not working.i am getting an exception in emulator(application stopped unexpectely). please help me on this.. please suggest me the best way to do this. Thanks in advance --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Web service calling from andriod
Hi all, i want to call a web service call, for that i used ksoap(j2me).when i do a service call i am getting the folliwing exception java.lang.NoClassDefFoundError: javax/microedition/io/Connector Please help me solve this issue --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---