[android-developers] maps navigation example
Hi Guys, Need help regarding android maps navigation like how uber is displaying maps with navigation. If any one knows then please share the info or lins. Thanks in advance. Thanks, S.Seshu Hyderabad. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. To post to this group, send email to android-developers@googlegroups.com. Visit this group at http://groups.google.com/group/android-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/android-developers/14d3530d-5f92-4325-9f96-a1aaa7fbfd25%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[android-developers] Get the background Running app list.
Hi All, How can we retrieve the list of background runnings apps list in android. currently i am using public ListActivityManager.RunningTaskInfo getRunningTasks (int maxNum). But this method is deprecated in API level 21 i.e., from Lollipop onwards. is there any alternative method to get the running apps list. please try to help me guys Thanks S.Seshu. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[android-developers] Getting exception while cropping the image.
Hi All, I am cropping my image which is selected from my gallery or captured from my device is getting exception and i am using moto g as well as moto e i.e., !!! FAILED BINDER TRANSACTION !!! Exception in new application when starting activity net.londatiga.android/.MainActivity android.os.TransactionTooLargeException at android.os.BinderProxy.transact(Native Method) at android.app.ApplicationThreadProxy.scheduleLaunchActivity(ApplicationThreadNative.java:758) at com.android.server.am.ActivityStackSupervisor.realStartActivityLocked(ActivityStackSupervisor.java:1007) at com.android.server.am.ActivityStackSupervisor.attachApplicationLocked(ActivityStackSupervisor.java:412) at com.android.server.am.ActivityManagerService.attachApplicationLocked(ActivityManagerService.java:5104) at com.android.server.am.ActivityManagerService.attachApplication(ActivityManagerService.java:5178) at android.app.ActivityManagerNative.onTransact(ActivityManagerNative.java:405) at com.android.server.am.ActivityManagerService.onTransact(ActivityManagerService.java:2140) at android.os.Binder.execTransact(Binder.java:404) at dalvik.system.NativeStart.run(Native Method) Force removing ActivityRecord{42d72cf0 u0 net.londatiga.android/.MainActivity t470}: app died, no saved state Calling a method in the system process without a qualified user: android.app.ContextImpl.sendBroadcast:1252 android.content.ContextWrapper.sendBroadcast:365 com.motorola.motocare.util.TriggerHelper$TriggerBuilder.send:76 com.motorola.motocare.internal.frameworkevents.PauseResumeTrigger.handleFrameworkEvent:53 com.motorola.motocare.internal.frameworkevents.FwEventMonitor$FrameworkListener.processFrameworkEvent:114 if any body knows then please let me know. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[android-developers] Need help for Developing the app using Google Glass SDK.
Hi Developers, I am new to Google glass SDK. can any one please help me how to start developing the app for google glass sdk. Thanks and Regards, S.Seshu -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Re: passing data from service to activity continously
Use local broadcast manager for sending data from service to activity... On Friday, January 31, 2014 3:20:06 AM UTC+5:30, Goutom wrote: For this, you can use a BroadcastReceiverhttp://developer.android.com/reference/android/content/BroadcastReceiver.html in your Activity. Here is a great example I usehttp://www.vogella.com/articles/AndroidBroadcastReceiver/article.html to communicate continuously between Service Activity using BroadcastReceivers. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Get Current Location
Hi developers, I am doing project on maps in which i need to get the current location. if both network provider and gps provider disabled means then i am opening the locations in setting menu and then user ll select either any one and after selecting any one option i need to get the current location. now my app was minimized and then changed the network provider and now opened my application again and then i need to check which network provider available based on the condition i ll updated the location. i used dynamic broadcast receivers in my activity class but i am not unable to fetch the data. if any one knows then plz provide solutions and links etc., Thanks and Regards, S.Seshu. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [android-developers] App is crashing and showing android.view.WindowManager$BadTokenException: Unable to add window -- token android.os.BinderProxy@4298f298 is not valid; is your activity running?
Hi pankaj, Thanks for reply, i kept progress dialog in onpreexcute method only but not in do in back ground. On Tuesday, July 23, 2013 1:31:17 PM UTC+5:30, Pankaj wrote: Hi, you can't call UI activity like (showing toast or dialog) in doInBackground method of Asyncro thread. put toast or dialog it in 'onPreExcute()' or postExcute() methods as per your need. On Tue, Jul 23, 2013 at 10:19 AM, Seshu s.ses...@gmail.com javascript:wrote: Hi All, In my application am using webservices, the user is sign in the login page using facebook so user ll giving his/her credentails, after grant access page in facebook came back to main screen and then am calling the user request data i.e., firstname, lastname and email id. for this one i used async task with progress dialog showing. after completion of webservices downloading i am navigating to 2nd screen here 1st screen is going to finishing. now in 2nd screen i have logout option, when the user selected the logout option the facebook logout and application logout is calling. again i am calling first screen by startactivity method. now again user wants to login the app using facebook after grant access page, came back to first screen here calling webservice again i.e., calling async task with progress dialog. on preexecute method i wrote progress dialog. there app is crashing and showing this below log. FATAL EXCEPTION: main android.view.WindowManager$BadTokenException: Unable to add window -- token android.os.BinderProxy@4298f298 is not valid; is your activity running? at android.view.ViewRootImpl.setView(ViewRootImpl.java:665) at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:328) at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:226) at android.view.WindowManagerImpl$CompatModeWrapper.addView(WindowManagerImpl.java:151) at android.view.Window$LocalWindowManager.addView(Window.java:547) at android.app.Dialog.show(Dialog.java:277) at android.app.ProgressDialog.show(ProgressDialog.java:116) at android.app.ProgressDialog.show(ProgressDialog.java:99) at android.app.ProgressDialog.show(ProgressDialog.java:94) at com.satyaseshu.MainActivity$UserData.onPreExecute(MainActivity.java:209) at android.os.AsyncTask.executeOnExecutor(AsyncTask.java:586) at android.os.AsyncTask.execute(AsyncTask.java:534) at com.satyaseshu.MainActivity.requestUserData(MainActivity.java:191) at com.satyaseshu.MainActivity$FbAPIsAuthListener.onAuthSucceed(MainActivity.java:146) at com.satyaseshu.SessionEvents.onLoginSuccess(SessionEvents.java:76) at com.satyaseshu.LoginButton$LoginDialogListener.onComplete(LoginButton.java:81) at com.satyaseshu.Facebook$1.onComplete(Facebook.java:310) at com.satyaseshu.FbDialog$FbWebViewClient.shouldOverrideUrlLoading(FbDialog.java:131) at android.webkit.CallbackProxy.uiOverrideUrlLoading(CallbackProxy.java:274) at android.webkit.CallbackProxy.handleMessage(CallbackProxy.java:376) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:153) at android.app.ActivityThread.main(ActivityThread.java:5000) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:511) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:821) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:584) at dalvik.system.NativeStart.main(Native Method) if any body knows then please let me know once. i am facing this issue. due to this i am unable to show any other popup dialogs and also toast message. Thanks for all, S.Seshu -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-d...@googlegroups.comjavascript: To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com javascript: For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com javascript:. For more options, visit https://groups.google.com/groups/opt_out. -- Thanks Regards Pankaj Pandey -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups
Re: [android-developers] App is crashing and showing android.view.WindowManager$BadTokenException: Unable to add window -- token android.os.BinderProxy@4298f298 is not valid; is your activity running?
please send test mail to this mail id sdotseshu143atgmaildotcom. i ll share code to ur mail id. On Tuesday, July 23, 2013 2:30:06 PM UTC+5:30, Pankaj wrote: Could you share your code? On Tue, Jul 23, 2013 at 2:01 PM, Seshu s.ses...@gmail.com javascript:wrote: Hi pankaj, Thanks for reply, i kept progress dialog in onpreexcute method only but not in do in back ground. On Tuesday, July 23, 2013 1:31:17 PM UTC+5:30, Pankaj wrote: Hi, you can't call UI activity like (showing toast or dialog) in doInBackground method of Asyncro thread. put toast or dialog it in 'onPreExcute()' or postExcute() methods as per your need. On Tue, Jul 23, 2013 at 10:19 AM, Seshu s.ses...@gmail.com wrote: Hi All, In my application am using webservices, the user is sign in the login page using facebook so user ll giving his/her credentails, after grant access page in facebook came back to main screen and then am calling the user request data i.e., firstname, lastname and email id. for this one i used async task with progress dialog showing. after completion of webservices downloading i am navigating to 2nd screen here 1st screen is going to finishing. now in 2nd screen i have logout option, when the user selected the logout option the facebook logout and application logout is calling. again i am calling first screen by startactivity method. now again user wants to login the app using facebook after grant access page, came back to first screen here calling webservice again i.e., calling async task with progress dialog. on preexecute method i wrote progress dialog. there app is crashing and showing this below log. FATAL EXCEPTION: main android.view.WindowManager$**BadTokenException: Unable to add window -- token android.os.BinderProxy@**4298f298 is not valid; is your activity running? at android.view.ViewRootImpl.**setView(ViewRootImpl.java:665) at android.view.**WindowManagerImpl.addView(** WindowManagerImpl.java:328) at android.view.**WindowManagerImpl.addView(** WindowManagerImpl.java:226) at android.view.**WindowManagerImpl$**CompatModeWrapper.addView(** WindowManagerImpl.java:151) at android.view.Window$**LocalWindowManager.addView(** Window.java:547) at android.app.Dialog.show(**Dialog.java:277) at android.app.ProgressDialog.**show(ProgressDialog.java:116) at android.app.ProgressDialog.**show(ProgressDialog.java:99) at android.app.ProgressDialog.**show(ProgressDialog.java:94) at com.satyaseshu.MainActivity$**UserData.onPreExecute(** MainActivity.java:209) at android.os.AsyncTask.**executeOnExecutor(AsyncTask.**java:586) at android.os.AsyncTask.execute(**AsyncTask.java:534) at com.satyaseshu.MainActivity.**requestUserData(MainActivity.** java:191) at com.satyaseshu.MainActivity$**FbAPIsAuthListener.** onAuthSucceed(MainActivity.**java:146) at com.satyaseshu.SessionEvents.**onLoginSuccess(SessionEvents.** java:76) at com.satyaseshu.LoginButton$**LoginDialogListener.** onComplete(LoginButton.java:**81) at com.satyaseshu.Facebook$1.**onComplete(Facebook.java:310) at com.satyaseshu.FbDialog$**FbWebViewClient.** shouldOverrideUrlLoading(**FbDialog.java:131) at android.webkit.CallbackProxy.**uiOverrideUrlLoading(** CallbackProxy.java:274) at android.webkit.CallbackProxy.**handleMessage(CallbackProxy.** java:376) at android.os.Handler.**dispatchMessage(Handler.java:**99) at android.os.Looper.loop(Looper.**java:153) at android.app.ActivityThread.**main(ActivityThread.java:5000) at java.lang.reflect.Method.**invokeNative(Native Method) at java.lang.reflect.Method.**invoke(Method.java:511) at com.android.internal.os.**ZygoteInit$**MethodAndArgsCaller.run(* *ZygoteInit.java:821) at com.android.internal.os.**ZygoteInit.main(ZygoteInit.**java:584) at dalvik.system.NativeStart.**main(Native Method) if any body knows then please let me know once. i am facing this issue. due to this i am unable to show any other popup dialogs and also toast message. Thanks for all, S.Seshu -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-d...@**googlegroups.com To unsubscribe from this group, send email to android-developers+**unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/**group/android-developers?hl=enhttp://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+**unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/**groups/opt_outhttps://groups.google.com/groups/opt_out . -- Thanks Regards Pankaj Pandey
[android-developers] App is crashing and showing android.view.WindowManager$BadTokenException: Unable to add window -- token android.os.BinderProxy@4298f298 is not valid; is your activity running?
Hi All, In my application am using webservices, the user is sign in the login page using facebook so user ll giving his/her credentails, after grant access page in facebook came back to main screen and then am calling the user request data i.e., firstname, lastname and email id. for this one i used async task with progress dialog showing. after completion of webservices downloading i am navigating to 2nd screen here 1st screen is going to finishing. now in 2nd screen i have logout option, when the user selected the logout option the facebook logout and application logout is calling. again i am calling first screen by startactivity method. now again user wants to login the app using facebook after grant access page, came back to first screen here calling webservice again i.e., calling async task with progress dialog. on preexecute method i wrote progress dialog. there app is crashing and showing this below log. FATAL EXCEPTION: main android.view.WindowManager$BadTokenException: Unable to add window -- token android.os.BinderProxy@4298f298 is not valid; is your activity running? at android.view.ViewRootImpl.setView(ViewRootImpl.java:665) at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:328) at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:226) at android.view.WindowManagerImpl$CompatModeWrapper.addView(WindowManagerImpl.java:151) at android.view.Window$LocalWindowManager.addView(Window.java:547) at android.app.Dialog.show(Dialog.java:277) at android.app.ProgressDialog.show(ProgressDialog.java:116) at android.app.ProgressDialog.show(ProgressDialog.java:99) at android.app.ProgressDialog.show(ProgressDialog.java:94) at com.satyaseshu.MainActivity$UserData.onPreExecute(MainActivity.java:209) at android.os.AsyncTask.executeOnExecutor(AsyncTask.java:586) at android.os.AsyncTask.execute(AsyncTask.java:534) at com.satyaseshu.MainActivity.requestUserData(MainActivity.java:191) at com.satyaseshu.MainActivity$FbAPIsAuthListener.onAuthSucceed(MainActivity.java:146) at com.satyaseshu.SessionEvents.onLoginSuccess(SessionEvents.java:76) at com.satyaseshu.LoginButton$LoginDialogListener.onComplete(LoginButton.java:81) at com.satyaseshu.Facebook$1.onComplete(Facebook.java:310) at com.satyaseshu.FbDialog$FbWebViewClient.shouldOverrideUrlLoading(FbDialog.java:131) at android.webkit.CallbackProxy.uiOverrideUrlLoading(CallbackProxy.java:274) at android.webkit.CallbackProxy.handleMessage(CallbackProxy.java:376) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:153) at android.app.ActivityThread.main(ActivityThread.java:5000) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:511) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:821) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:584) at dalvik.system.NativeStart.main(Native Method) if any body knows then please let me know once. i am facing this issue. due to this i am unable to show any other popup dialogs and also toast message. Thanks for all, S.Seshu -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Custom Base Adapter.
Hi All, My requirements is i have a multiple listviews. i used base adapter class for each listview. Now i want to display this listview like contacts screen i.e., alphabetic order for example: A Ant Apple B Bat Boy C Camel Cat etc. for above requirement i need to change in all adapter classes. for above problem i created one class i.e., MainBaseAdapter which extends baseadapter. Now for all adapter classes i extends MainBaseAdapter class instead of BaseAdapter class. In MainBaseAdapter the above alphabetic sorter is implemented. Now i need 2 show both own adapter data with the above alphabetic sorder order for all adapters. I ll use MainBaseAdapter class for all adapers to show the data. i am facing here. how to combine that my own adapter with above alphabetic sorting. this alphabetic sorting i.e., MainBaseAdapter is common class extending to all my adapter class. How to acheive this task in android. if any one knows then please provide solution. Thanks Regards, S.Seshu. -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Fwd: How to Fetch user name in twitter with out authentication.
Hi, How can we fetch the public data like username, profile pic in twitter with out autentication. please help if any one knows? Thanks and Regards, S.Seshu. -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] How to Fetch Public Data about People Using Email Addresses or name.
Hi Developers, I have a requirement where the user wants to fetch the public data from user email address and the data is from different social sites. for example i have facebook, twitter, linkedin etc.., for each one i have a basic information like profile picture, display name etc., when i search with email id in my application the coresponding data will be retreive. how to do in android applications. please help me how to do??? Thanks and Regards, S.Seshu -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] How to retreive edittext and spinner data added dynamically for a linear layout.
when i press the plus image the view should added dynamically for the linearlayout which i defined in xml file. the views contains edittext and spinner and one checkbox button. when the user pressed the nxt btn the checkbox selected and corresponding the user entered the data must be saved. here how to retreive the edittext data and also which spinner the user selected the corressponding check box. how to acheive this?? Please help how to do?? Thanks and Regards, S.Seshu -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Retreive Special characters from sqlite files.
Hi All, I am doing a small dictionary app and the data is in sq-lite file. when i search the keyword then corresponding words ll showing in a list view. in my database i have special characters i.e., ábaco, ábaco psicométrico when i entered keyword a then above words also i want. Any body know how to retrieve such type of special characters. -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Re: Retreive Special characters from sqlite files.
Hi, Thanks for the reply. i searched in Google regarding select statement for retrieving uni-code characters but unfortunately i didnt got any query. can u post a sample query how to retrieve such type of unicode characters.. Thanks and Regards, S.Seshu. On Mar 22, 1:25 am, lbendlin l...@bendlin.us wrote: have you tried searching the web for sqlite unicode? On Thursday, March 21, 2013 8:45:29 AM UTC-4, Seshu wrote: Hi All, I am doing a small dictionary app and the data is in sq-lite file. when i search the keyword then corresponding words ll showing in a list view. in my database i have special characters i.e., ábaco, ábaco psicométrico when i entered keyword a then above words also i want. Any body know how to retrieve such type of special characters. -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Disable or Enable Applications through our Application.
Hi All, Is there option Disable or Enable other Android Applications through our Application? If means then please provide steps for how to do?? -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Edit Text searching using Filters.
Hi all, I am developing a small dictionary application in which the user can search the word. here i am using sqlite file for getting data. everything is working fine for me but i am getting the issue while searching the keyword i.e., when i entered some key word say wall then i need to display all keywords contains wall keyword in listview with first row is wall and second row onwards keywords starting with wall and after the contains the keyword anywhere in the string for example: i entered wall the list should become wall wall paper wall putty wall street India china Wall.. etc.. If any one knows the solutions means then please provide solutions. Thanks for All. Regards, S.Seshu -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Re: I have problem working with SHARED PREFERENCES, I think is project specific... i used the same before without errors but now get error
Hi, If u r creating sharedpreferences in our activity class means then it wont show any error other wise if u r creating shared preferences in other java class then it ll shows errors. in that case u need to pass the context or activity object. this is the sample code public class SharedPrefEx { public void saveData(Context context, String value) { SharedPreferences prefs = context.getSharedPreferences(MyPrefs, Context.MODE_PRIVATE); SharedPreferences.Editor editor = prefs.edit(); editor.putString(One, value); editor.commit(); } } u can call this method by creating object in our activity class i.e. SharedPrefEx sharedPrefs = new SharedPrefs(); sharedPrefs.saveData(Seshu); On Mar 11, 9:03 am, Deepa M deepam8...@gmail.com wrote: SharedPreferences myPrefs = youractivityname.this.getSharedPreferences(myPrefs, MODE_WORLD_READABLE); SharedPreferences.Editor prefsEditor = myPrefs.edit(); On Sun, Mar 10, 2013 at 12:15 AM, Jonathan S xfsuno...@gmail.com wrote: in Shared1, Context.MODE_PRIVATE in Shared2, getContext().getSharedPreferenceshttp://developer.android.com/reference/android/content/Context.html#g...(top5, Context.MODE_PRIVATE) On Saturday, March 9, 2013 4:43:08 AM UTC-5, lselwd wrote: I have problem working with SHARED PREFERENCES, I think is project specific... i used the same before without errors but now get error see attachments, well? -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visithttps://groups.google.com/groups/opt_out. -- Thanks Regards Deepa M -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] ArrayAdapter Vs BaseAdapter.
Hi All, I want to show some students information i.e. id, name, address and contact number in listview. Which Adapter should i use here i.e, ArrayAdapter or BaseAdapter. What's the major difference between them. Thanks and Regards, S.Seshu. -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Re: TextView vs Button
Thanks to all. Now my doubt was cleared. On Feb 27, 8:28 am, Nobu Games dev.nobu.ga...@gmail.com wrote: Well, a look at the source code reveals that Seshu has a point. There is virtually no difference between a Button and a TextView: public class Button extends TextView { public Button(Context context) { this(context, null); } public Button(Context context, AttributeSet attrs) { this(context, attrs, com.android.internal.R.attr.buttonStyle); } public Button(Context context, AttributeSet attrs, int defStyle) { super(context, attrs, defStyle); } } On Tuesday, February 26, 2013 8:24:53 PM UTC-6, Lew wrote: skink wrote: Seshu wrote: I have one textview [sic] and one button [sic]. i [sic] know the purpose of both views but if i [sic] used background image and displayed text on both then both r [sic] looking same only. Is there any particular point which differentiate them. you'll answer your question by yourself when you see the source code of Button.java, just use good, old uncle Google Never mind the source. You shouldn't have to read source to figure out how to use an API. From the Javadocs: http://developer.android.com/reference/android/widget/Button.html Represents a push-button widget. Push-buttons can be pressed, or clicked, by the user to perform an action. ... instead of applying an OnClickListenerhttp://developer.android.com/reference/android/view/View.OnClickListe... to the button in your activity, you can assign a method to your button in the XML layout, using the android:onClickhttp://developer.android.com/reference/android/R.attr.html#onClick attribute. http://developer.android.com/reference/android/widget/TextView.html Displays text to the user and optionally allows them to edit it. Seems like points to differentiate them are already revealed. -- Lew -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] TextView vs Button
Hi All, I have one textview and one button. i know the purpose of both views but if i used background image and displayed text on both then both r looking same only. Is there any particular point which differentiate them. Thanks for all, Thanks and Regards, S.Seshu -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Re: An idea for Google Now!
Lol:-) On Feb 21, 2:14 pm, Parthi K parthisof...@gmail.com wrote: :) Thanks Regards, Parthiban.k Software Engineer Mode FinServer Pvt. Ltd. Cell: +7204205850 Email: parthisof...@gmail.com shoaibj...@gmail.com |parthiban.k @modefinserver.com shoai...@modefinserver.com On Tue, Feb 19, 2013 at 11:24 AM, Abhishrant Majhi abhishran...@gmail.comwrote: Hey Google, I am Android user for 2 years. After buying a android phone my view of phones has totally changed. Everything in android is easy. One day me and my friend who has a Nexus 7 (Imported from USA to India from his relative) were out for our school. But due to some reason our school opening was delayed by 5 hours. As we cant go home and come again so we decided to go somewhere else. As we are not a explorer we did not any place near our school. So we tried to ask Google Now in different ways but nothing came out. Then this idea came to my mind. So idea is simple. If someone has some free time then he/she can ask Google Now Give me some places were I can pass my time. or some thing like that and Google Now will out a list of near places of interests to the user. Like Movies, Park, Game Shows, Club etc. To be more clear here is a Example. There is John who is the CEO of Tech Company Now John has to attend a meeting at 10am. His office is 20 miles away from his house so Google Now reminds him of the meeting 1 or 2 hours before. Now while getting near to office he gets a phone call that the meeting is delayed by 4 hours. Now as he will say that the meeting is delayed by 4 hours to Google Now. It will pull the places where he can pass his time. And again It will remind to attend meeting after 3 hours. Hope you like this idea. And you put this feature in Google Now. If you can donate me to buy a Android Tablet (Nexus 10 is my dream) for developing android apps would be very nice of you. You can donate how much you want. Donate to majhi.abhis...@gmail.com (Brother's Paypal account) Thank you Abhishrant Majhi -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visithttps://groups.google.com/groups/opt_out. -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Re: Pass Object between Fragments
Hi Sree, U need interface for sending data between two fragments. http://manishkpr.webheavens.com/android-passing-data-between-fragments/ see this example.. it ll helps u... On Feb 15, 10:11 am, sree android android.sreeni...@gmail.com wrote: Hi friends, I have a dout on Fragments.How can i pass object from fragment to fragment. Here My Code, /*/Sending Object.* CityData tname = lcd.get(position);//Here lcd is ArrayList Object and CityData is POJO class. CityFragment f2=new CityFragment();//Fragment Class Bundle b=new Bundle(); b.putSerializable(TNAME,tname); Log.i(,Passed Data:+b.size());//Here Bundle length is 1. f2.setArguments(b);//this length is Zero. * //Retriveing Object* Bundle bun =getArguments(); CityData cd=(CityData) bun.getSerializable(TNAME);//Here Value Null. cityid=cd.getID(); tv.setText(cd.getNameEnglish()) Please any Body solve my problum.How i pass Data between Fragments. Thank you in Advance. -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Android App is installed twice in Android Device.
Hi All, I downloaded the android project from internet and i renamed the package name and then i done small modifications to that code. If i installed the app in the android real device showing two apps. if i removed the app using command prompt both apps are deleting at a time. how to solve this problem??? Thanks to all, Regards, S.Seshu. -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Re: Custom array adapter
Which problem u r facing in above code?? On Feb 6, 10:35 am, arunkuma...@npcompete.net wrote: Hi, I m create a list-view sample.i have one problem.i want to display item in list view...my code is given below public class Sliding_listview extends ListActivity { private static final String[] items={lorem, ipsum, dolor, sit, amet,consectetuer, adipiscing, elit, morbi, vel, ligula, vitae, arcu, aliquet, mollis, etiam, vel, erat, placerat, ante, porttitor, sodales, pellentesque, augue, purus}; @Override public void onCreate(Bundle icicle) { super.onCreate(icicle); setListAdapter(new IconicAdapter()); // Till here working fineBut i want to display this items into my listview how can i do ... ListView l=(ListView)findViewById(R.id.listView1);// This is my list-view i want to display the items in this list only } class IconicAdapter extends ArrayAdapterString { IconicAdapter() { super(Sliding_listview.this, R.layout.sliding_listview, R.id.label, items); } @Override public View getView(int position, View convertView,ViewGroup parent) { View row=super.getView(position, convertView, parent); ImageView icon=(ImageView)row.findViewById(R.id.icon); icon.setImageResource(R.drawable.ok); return(row); } } } My Layout file is : ?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=wrap_content android:orientation=horizontal ImageView android:id=@+id/icon android:layout_width=wrap_content android:layout_height=wrap_content android:layout_gravity=center_vertical android:padding=2dip android:src=@drawable/ic_launcher android:contentDescription=icon/ ListView android:id=@+id/listView1 android:layout_width=match_parent android:layout_height=wrap_content android:layout_weight=1 /ListView LinearLayout android:layout_width=fill_parent android:layout_height=wrap_content android:orientation=vertical TextView android:id=@+id/label android:layout_width=wrap_content android:layout_height=wrap_content android:textSize=25sp android:textStyle=bold/ /LinearLayout /LinearLayout pls help me fast i need it very urgent for my project -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] SIP Demo Connection using LinPhone
Hi All, I downloaded sip demo example using http://www.linphone.org/eng/download/ for android devices. I am not understanding how to run the code with out any errors.. Can u plz guide me how to do??? -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Re: Java knowledge
Core java is enough but in some cases Collections are also required for Android Applications. On Dec 7, 12:53 pm, Awdhesh Jha awdheshkumar@gmail.com wrote: You should be know only core java for it. On Friday, December 7, 2012 12:32:01 PM UTC+5:30, Sadhna Upadhyay wrote: i everybody, haw much java knowledge is required for android, actually i have very little knowledge about java. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Orientation issue in Tablet and Devices.
Thanks bob for providing support. On Dec 5, 9:34 pm, bob b...@coolfone.comze.com wrote: Please see http://www.techrepublic.com/blog/app-builder/handling-orientation-cha... You should make a folder called layout-land, I think. On Tuesday, December 4, 2012 1:10:31 AM UTC-6, Seshu wrote: Hi All, Currently i am developing an application for Android Devices with Portrait mode orientation. Now i need same Application for Android Tablets with both Portrait and Landscape orientation with single APK file. If anybody knows then plz provide the solution how to implement to do.. Thanks for All, S.Seshu.. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Orientation issue in Tablet and Devices.
Can u give any solution for my Question??? On Dec 4, 7:41 pm, Piren gpi...@gmail.com wrote: How about actually reading google's tutorials and documentation? On Tuesday, December 4, 2012 2:10:31 AM UTC-5, Seshu wrote: Hi All, Currently i am developing an application for Android Devices with Portrait mode orientation. Now i need same Application for Android Tablets with both Portrait and Landscape orientation with single APK file. If anybody knows then plz provide the solution how to implement to do.. Thanks for All, S.Seshu.. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Orientation issue in Tablet and Devices.
Hi All, Currently i am developing an application for Android Devices with Portrait mode orientation. Now i need same Application for Android Tablets with both Portrait and Landscape orientation with single APK file. If anybody knows then plz provide the solution how to implement to do.. Thanks for All, S.Seshu.. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Messages are not receiving using GCM
Hi all, I implemented GCM i.e., Google Cloud Messaging in my application. I got registration id and i sent to backend team.our backend team sending msg's to device. but i am not able to receive those messages. sday i received 2 messages out of 10. but 2day i didn't receive single message also. If any body knows the reason then plz tell 2 me... Please see my code attached here.. public class GCMIntentService extends GCMBaseIntentService{ public GCMIntentService(){ super(Utils.GCMSenderId); } @Override protected void onError(Context context, String regId) { Log.e(, error registration id : +regId); } @Override protected void onMessage(Context context, Intent intent) { String message = intent.getStringExtra(message); Log.e(message is, +message); } @Override protected void onRegistered(Context context, String regId) { handleRegistration(context, regId); } @Override protected void onUnregistered(Context context, String regId) { } } -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Receive GCM messages when App is force closed.
Hi All, In my application i integrated GCM(Google Cloud Messaging). I got RegisterID and based on registerID my backend team were sending messages to the device. Some times i am getting messages when my app is not force closed. Now i am not getting any messages when my app is force closed. Is it possible in Android if means then can u please how to implement to this one. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Receive GCM messages when App is force closed.
Hi Richard, Thanks for the reply, Right now i deployed my application in android v 2.3.5. Can i get the GCM Messages now or not?? On Oct 17, 6:54 pm, RichardC richard.crit...@googlemail.com wrote: On the later versions of Android if your App has been forced closed by the end-user it will NOT run again (for any reason) until the end-user launches it again. See the *Launch controls on stopped applications* section in the link below:http://developer.android.com/about/versions/android-3.1.html On Wednesday, October 17, 2012 2:44:59 PM UTC+1, Seshu wrote: Hi All, In my application i integrated GCM(Google Cloud Messaging). I got RegisterID and based on registerID my backend team were sending messages to the device. Some times i am getting messages when my app is not force closed. Now i am not getting any messages when my app is force closed. Is it possible in Android if means then can u please how to implement to this one. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Run the Service continuously even force close the app.
Hi All, I have a requirement that i need to run the service continuously even if the user force close the app. i.e., i am calling a webservice for every 15 mins or half an hour. I used Timer Concept but when i force close the app then service is not calling.. Anybody have idea on these then plz provide any links or samples etc., Thanks and Regards, Seshu.. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Run the Service continuously even force close the app.
Wat about the lower versions i.e., from Android 1.1 to Android 2.3.4. Will it work??? On Oct 15, 3:57 pm, Mark Murphy mmur...@commonsware.com wrote: On Mon, Oct 15, 2012 at 6:49 AM, Seshu s.seshu...@gmail.com wrote: I have a requirement that i need to run the service continuously even if the user force close the app Fortunately, as of Android 3.1, this is not possible. If the user goes into Settings and clicks the Force Close button, nothing of your app will ever run again, until (and unless) the user manually launches an activity or other component of your app. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 4.2 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How to upload videos in YouTube.
Hi All, How to upload videos in YouTube. If anyone knows then please reply me.. Thanks and Regards, S.Seshu -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 upload videos in YouTube.
Thanks for the reply Asheesh Arya, I downloaded the code from the above url, and i deployed in the device. When i opened the app, i got this toast message Request made to TODO-appname.appspot.com failed. Please make sure you have correct domain. On Oct 3, 11:54 am, Asheesh Arya asheesharya...@gmail.com wrote: please check this linkhttp://code.google.com/p/ytd-android/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: import a jar file ?
Right click on ur project... u ll find Build Path.. In Build Path again u ll find configure build path.. select configure build path.. now u ll get a another window. In Right side of the window.. go to second button i.e., Add External JARS. click on that buttons.. now u need 2 add ur jars files there and then click open button and then OK button... On Sep 27, 10:50 am, mohammed Nuhail nuhail...@gmail.com wrote: How to import a jar file in libs folder ? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 Can I pass an ArrayList do another Activity?
hi, R u passing String Array List or Custom Array List.. On Sep 5, 5:10 am, Guilherme Bernardi gui.bernard...@gmail.com wrote: Funny... How did I not find it? That's the point, that is not my answer. I searched before coming to ask. I asked for help, no one is obliged to respond... To do what I asked. I need to implements my class Parcelable, extends the BaseAdapter to work and pass my ArrayListObject. If it were only putStringArrayListExtra, I wouldn't have come to ask. But... thanks for the help. Em sábado, 1 de setembro de 2012 13h03min07s UTC-3, Fred Niggle escreveu: a quick google search found this: http://stackoverflow.com/questions/4030115/how-to-pass-arraylist-usin... How did you NOT find it? On 1 September 2012 16:51, dnkoutso dnko...@gmail.com javascript:wrote: Typically when you are dealing with the same process it seems useless and slow to serialize (or parcel) your ArrayList between activities.I would use a singleton where I put the data in there and grab it from the next Activity. On Friday, August 31, 2012 12:59:51 PM UTC-7, Guilherme Bernardi wrote: Hi everyone. I'm developing an application that have a composition case. In the first activity there is an ListView, some fields and a button that call another activity. This activity will set an ArrayList and then pass to first activity the array it appears in the listview... Can anyone help me? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-d...@googlegroups.comjavascript: To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com javascript: For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Ubuntu Speech inputhttps://play.google.com/store/apps/details?id=com.nds.ubuntuspeechinputis now available on Google Play, along with Magnetic Door Alarm apphttps://play.google.com/store/apps/details?id=com.nds.magneticdooralarm . -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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-Start new activity with also current activity running
Hi HK, U cannot overlap another activity in main activity. still if u want means then use fragments. On Sep 4, 11:34 am, HK android.out.th...@gmail.com wrote: I think you mean: popup.getWindow().setBackgroundDrawable(new ColorDrawable(android.graphics.Color.TRANSPARENT)); I have tried this, but it doesn't work. thanks. On Tuesday, September 4, 2012 3:18:37 PM UTC+9, MagouyaWare wrote: I have activity A running. I want to start my new activity B so that activity A is also running. Is this possible ? Normally, when activity B is started, activity A is put on hold and onPause is called. I don't want this to happen. But instead I want activity A running normally and on top activity B running. I don't have control over activity A. And activity B is only for displaying Alert dialogs. Is this possible in Android ? Sorry, I don't think this is possible... Actually I just thought of a scenario where it might be possible. If you make Activity B have a trasparent (or semi-transparent) background then onPause() might not get called. I have not verified that is the case, but you could try it and see. Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Mon, Sep 3, 2012 at 11:59 PM, HK android@gmail.com javascript:wrote: Hi Jugni, Yes, I know. That's the reason I am asking if its possible. As I mentioned, I don't have control over Activity A, only B. Activity A doesn't belong to me. My activity is activity B. I didn't understand 'use class file'. Can you please explain in detail ? thanks. On Tuesday, September 4, 2012 2:33:33 PM UTC+9, jugni wrote: Hello HK, If you know the android life cycle then you may know that when we go to next activity then first activity should be on pause.So if you want the alert dialog then you can also show in the same activity.So why you create the new activity.Or if you want to handle different dialog thenuse the class file and then just call the class file from activity so activity will be running and alert dialog also popup. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-d...@googlegroups.comjavascript: To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com javascript: For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How to set X Axis Label Text vertically..
Hi All, I am drawing bar charts using Google Charts API. I displayed the x Axis Label text as horizontally. now i need to display the these x Axis Label text as vertically.. how to achieve these one???. see these url.. http://chart.apis.google.com/chart?cht=bvgchs=350x300chd=t:20,35,10chxr=1,0,40chds=0,40chco=ff|ffa000|00ff00chbh=65,0,35chxt=x,y,xchxl=0:|High|Medium|Low|2:||Task+Priority||chxs=2,00,12chtt=Tasks+on+my+To+Do+listchts=00,20chg=0,25,5,5 in these above url x aA xis labels are high, medium and low and these labels are displaying as horizontally, now i need to display vertically.. Reference URL is: http://psychopyko.com/tutorial/how-to-use-google-charts/ Thanks and Regards, S.Seshu.. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 Getting the first and last day of current week.
Hi All, I am using Calendar objects in my application and based on the current date i am retrieving first and last date of current week. In emulator o/p is coming as week starting from Sunday to Saturday correct and in some device the o/p is showing as Monday to Sunday. I used same code in java. there also o/p is showing from Sunday to Saturday only. i need the output as Sunday to Saturday only. I used these code.. Calendar cal = Calendar.getInstance(); int weekOfYear = cal.get(Calendar.WEEK_OF_YEAR); cal.set(Calendar.WEEK_OF_YEAR, weekOfYear); SimpleDateFormat formatter = new SimpleDateFormat(MM/dd/); Calendar first = (Calendar) cal.clone(); first.add(Calendar.DAY_OF_WEEK, first.getFirstDayOfWeek() - first.get(Calendar.DAY_OF_WEEK)); Calendar last = (Calendar) first.clone(); last.add(Calendar.DAY_OF_YEAR, 6); String fromDate = formatter.format(first.getTime()); String toDate = formatter.format(last.getTime()); If anybody knows the reason means then plz tell me the solution. if these method is wrong means then plz send the code Thanks for All, S.Seshu -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Android Bar Graphs and Line Graphs.
Hi All, I need to integrate Bar Charts Graphs and Line Graphs in my application. I use aiChartEngine and afree charts. but both these graphs are not look and feel. Any body knows how to implement these graphs using canvas in android. Thanks for ur support. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Please go to the link (Android questions) and give ur suggestions
Hi Siva, Did u connected any device or virtual device. if means then only log file will create otherwise it will show -waiting for the device... Thanks Regards, S.Seshu On Aug 1, 11:22 am, Siva Kumar j.sivakumar...@gmail.com wrote: Dear All, Please access the link (android question) and give ur ideas http://stackoverflow.com/q/11753551/385138 -- *Thanks Regards, Sivakumar.J* -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 capturing images.
HI all, I am facing a issue regarding the camera i.e., i captured the image from camera now i ll take the image path and converted to bitmap format and then pushed to some array list. now i want to delete the image from the gallery. i used these concept Bitmap bmp = null; String[] projection = { MediaStore.Images.ImageColumns.SIZE, MediaStore.Images.ImageColumns.DISPLAY_NAME, MediaStore.Images.ImageColumns.DATA, BaseColumns._ID, }; Cursor c = null; Uri u = MediaStore.Images.Media.EXTERNAL_CONTENT_URI; try { if (u != null) { c = managedQuery(u, projection, null, null, null); } if ((c != null) (c.moveToLast())) { bmp = getBitMap(c.getString(2), 3); ContentResolver cr = getContentResolver(); cr.delete( MediaStore.Images.Media.EXTERNAL_CONTENT_URI, BaseColumns._ID + = + c.getString(3), null); } } catch (Exception e) { e.printStackTrace(); //bmp = null; } finally { if (c != null) { c.close(); } } but the problem is sometimes i am getting another images path which is in gallery folder. how to solve these problem. Thanks and Regards, S.Seshu -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 SQLite File
Hi All, I have SQLite url i.e., https://sample.sqlite. I downloaded the these sqlite file and these file was saved in /data/data/+ myContext.getApplicationContext().getPackageName()+ / files/ + DB_NAME; but i want to change the files into database folder??? i.e., /data/data/+ myContext.getApplicationContext().getPackageName()+ / databases/ + DB_NAME;. How can i achieve these one?? Thanks, SatyaSeshu.. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Removing an item from ListView
Hi radhakrishna, if u want to delete the list row in the list view. protected void onListItemClick(ListView l, View v, int position, long id) { super.onListItemClick(l, v, position, id); Toast.makeText(this, Click- + String.valueOf(position), Toast.LENGTH_SHORT).show(); dataValues..remove(position); } Thanks and Regards, S.Seshu On Mar 20, 2:41 am, radhakrishna radhakrishna.kotako...@gmail.com wrote: Hi All, I am trying to remove an item from listview, My Listview contains Text and Delete button in each row, when I click on delete button its removing Last row from List view, not the actual one which I clicked Here is the Activity Class: - public class TestListItemsView1Activity extends ListActivity { /** Called when the activity is first created. */ private EfficientAdapter efficientAdapter; private static String[] data = new String[] { BBC, Yahoo, CNN, Eenadu, Hindu }; private static ListString dataValues = Arrays.asList(data); @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); requestWindowFeature(Window.FEATURE_NO_TITLE); setContentView(R.layout.main); efficientAdapter = new EfficientAdapter(this, dataValues); setListAdapter(efficientAdapter); } @Override protected void onListItemClick(ListView l, View v, int position, long id) { super.onListItemClick(l, v, position, id); Toast.makeText(this, Click- + String.valueOf(position), Toast.LENGTH_SHORT).show(); } Here is the Adapter class - public class EfficientAdapter extends BaseAdapter implements Filterable{ private LayoutInflater mInflater; private Context context; final private ListString data= new ArrayListString(); private HashMapString,EfficientAdapter.ViewHolder holders= new HashMapString, EfficientAdapter.ViewHolder(); public EfficientAdapter(Context context,ListString data) { //super(context, R.layout.main, values); mInflater = LayoutInflater.from(context); this.context=context; this.data.addAll(data); } public View getView(final int position, View convertView, ViewGroup parent) { ViewHolder holder; if(convertView == null){ convertView = mInflater.inflate(R.layout.adaptor_content, null); holder = new ViewHolder(); holder.textLine = (TextView) convertView.findViewById(R.id.textLine); holder.buttonLine =(Button) convertView.findViewById(R.id.buttonLine); holder.textLine.setText(this.data.get(position)); convertView.setOnClickListener(new OnClickListener() { private int pos= position; public void onClick(View v) { Toast.makeText(context, Click- + String.valueOf(pos), Toast.LENGTH_SHORT).show(); } }); holder.buttonLine.setOnClickListener(new OnClickListener() { private int pos= position; public void onClick(View v) { ViewHolder deleteHolder = (ViewHolder)v.getTag(); int delPosition=deleteHolder.position; holders.remove(delPosition); ViewHolder currentHolder; for(int i=pos+1;igetCount();i++){ currentHolder = holders.get(delPosition); currentHolder.position=i-1; } data.remove(delPosition); notifyDataSetChanged(); Toast.makeText(context, Delete- + String.valueOf(pos), Toast.LENGTH_SHORT).show(); } }); holder.position=position; holders.put(Integer.toString(position), holder); convertView.setTag(holder); } else { holder =(ViewHolder) convertView.getTag(); } return convertView; } advance Thanx, Krishna -- You received this message because you are
[android-developers] Re: Removing an item from ListView
dataValues..remove(position); will deletes the entire row only... On Mar 20, 6:58 pm, radhakrishna radhakrishna.kotako...@gmail.com wrote: Thank you for your response Seshu, But I would like to delete list row, when I click on delete button from List view. On Mar 20, 1:12 pm, Seshu s.seshu...@gmail.com wrote: Hi radhakrishna, if u want to delete the list row in the list view. protected void onListItemClick(ListView l, View v, int position, long id) { super.onListItemClick(l, v, position, id); Toast.makeText(this, Click- + String.valueOf(position), Toast.LENGTH_SHORT).show(); dataValues..remove(position); } Thanks and Regards, S.Seshu On Mar 20, 2:41 am, radhakrishna radhakrishna.kotako...@gmail.com wrote: Hi All, I am trying to remove an item from listview, My Listview contains Text and Delete button in each row, when I click on delete button its removing Last row from List view, not the actual one which I clicked Here is the Activity Class: --- -- public class TestListItemsView1Activity extends ListActivity { /** Called when the activity is first created. */ private EfficientAdapter efficientAdapter; private static String[] data = new String[] { BBC, Yahoo, CNN, Eenadu, Hindu }; private static ListString dataValues = Arrays.asList(data); @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); requestWindowFeature(Window.FEATURE_NO_TITLE); setContentView(R.layout.main); efficientAdapter = new EfficientAdapter(this, dataValues); setListAdapter(efficientAdapter); } @Override protected void onListItemClick(ListView l, View v, int position, long id) { super.onListItemClick(l, v, position, id); Toast.makeText(this, Click- + String.valueOf(position), Toast.LENGTH_SHORT).show(); } Here is the Adapter class --- -- public class EfficientAdapter extends BaseAdapter implements Filterable{ private LayoutInflater mInflater; private Context context; final private ListString data= new ArrayListString(); private HashMapString,EfficientAdapter.ViewHolder holders= new HashMapString, EfficientAdapter.ViewHolder(); public EfficientAdapter(Context context,ListString data) { //super(context, R.layout.main, values); mInflater = LayoutInflater.from(context); this.context=context; this.data.addAll(data); } public View getView(final int position, View convertView, ViewGroup parent) { ViewHolder holder; if(convertView == null){ convertView = mInflater.inflate(R.layout.adaptor_content, null); holder = new ViewHolder(); holder.textLine = (TextView) convertView.findViewById(R.id.textLine); holder.buttonLine =(Button) convertView.findViewById(R.id.buttonLine); holder.textLine.setText(this.data.get(position)); convertView.setOnClickListener(new OnClickListener() { private int pos= position; public void onClick(View v) { Toast.makeText(context, Click- + String.valueOf(pos), Toast.LENGTH_SHORT).show(); } }); holder.buttonLine.setOnClickListener(new OnClickListener() { private int pos= position; public void onClick(View v) { ViewHolder deleteHolder = (ViewHolder)v.getTag(); int delPosition=deleteHolder.position; holders.remove(delPosition); ViewHolder currentHolder; for(int i=pos+1;igetCount();i++){ currentHolder = holders.get(delPosition); currentHolder.position=i-1; } data.remove(delPosition); notifyDataSetChanged(); Toast.makeText(context, Delete
[android-developers] Re: Re : spinner from HttpPost
Hi Vivek, Open this link and see this example.. http://www.vogella.de/articles/AndroidJSON/article.html Thanks Regards, S.Seshu. On Mar 8, 10:33 am, vivek elangovan elangovan.vi...@gmail.com wrote: Hi members, Using HttpPost i am able to retrieve the following data in my response cities name stateID=01 cityID=01Chennai/name name stateID=01 cityID=02Trichy/name name stateID=01 cityID=03Madurai/name /cities Now i need to pass these values into my spinner i m getting the following error The method createFromResource(Context, int, int) in the type ArrayAdapter is not applicable for the arguments (HelloSpinner, String, int) How to change my string value obtained from my response to int ? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: if condition not working in intent activity
Hi Jai, Below this sample it ll work f9 now. go though once.. u ll understand. package com.self; import android.app.Activity; import android.os.Bundle; import android.util.Log; import android.view.View; import android.widget.EditText; public class DummyActivity extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); } public void buttonClicked(View v) { EditText pin = (EditText) findViewById(R.id.edittext1); Log.v(EditText, pin.getText().toString()); // int pinno = Integer.parseInt(pin.getText().toString()); if (pinno != 0) { Log.d(TAG, +pinno); // } else Log.d(TAG, +pinno); // } } ?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:layout_width=fill_parent android:layout_height=wrap_content android:text=button1 android:id=@+id/imagebutton1 android:onClick=buttonClicked / EditText android:layout_width=fill_parent android:layout_height=wrap_content android:id=@+id/edittext1 android:inputType=number / /LinearLayout Thanks and Regards, S.Seshu. s.seshu143(at)gmail(dot)com On Mar 6, 12:15 am, ~JAI~ jayakarthik2...@gmail.com wrote: hi friends, i'm new to android. i'm using the code below to create a new intent activity based on if condition validation.. but it doesn't work... pls help me.. CODE package com.example.helloandroid; public class Main extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); ImageButton next2 = (ImageButton) findViewById(R.id.imageButton1); next2.setOnClickListener(new View.OnClickListener() { public void onClick(View view) { EditText pin = (EditText)findViewById(R.id.editText1); //value from edit text Log.v(EditText, pin.getText().toString()); // this works in log if (pin.equals()){ Intent myIntent = new Intent(view.getContext(), home.class); startActivityForResult(myIntent, 1); } } }); } @Override public void onBackPressed() { return; } } the log file gets the value from text box, but the if condition does not work.. pls help 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] Re: Help me on selecting a name to a game..
Devilfish On Mar 8, 7:36 pm, Mohit kumawat mohit.kumawat1...@gmail.com wrote: Sea arcade On Mar 7, 7:01 am, Fred fredrisch...@gmail.com wrote: Hi Everybody, I'm developing a android game and i'm urgently needing to define a name to this game.. can you help on choosing the name? If you have 1 minute to check it up, please just choose the wanted names here: https://docs.google.com/spreadsheet/viewform?formkey=dGIwSUU2alJqSnVk... Thanks a lot, Fred -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Need 2 Show Multiple Progress Dialog in same activity.
; imageView = i; } } class PhotosLoader implements Runnable { PhotoToLoad photoToLoad; PhotosLoader(PhotoToLoad photoToLoad) { this.photoToLoad = photoToLoad; } @Override public void run() { if (imageViewReused(photoToLoad)) return; Bitmap bmp = getBitmap(photoToLoad.url); memoryCache.put(photoToLoad.url, bmp); if (imageViewReused(photoToLoad)) return; BitmapDisplayer bd = new BitmapDisplayer(bmp, photoToLoad); Activity a = (Activity) photoToLoad.imageView.getContext(); a.runOnUiThread(bd); } } boolean imageViewReused(PhotoToLoad photoToLoad) { String tag = imageViews.get(photoToLoad.imageView); if (tag == null || !tag.equals(photoToLoad.url)) return true; return false; } // Used to display bitmap in the UI thread class BitmapDisplayer implements Runnable { Bitmap bitmap; PhotoToLoad photoToLoad; public BitmapDisplayer(Bitmap b, PhotoToLoad p) { bitmap = b; photoToLoad = p; } public void run() { if (imageViewReused(photoToLoad)) return; if (bitmap != null) { progDialog.setVisibility(View.GONE); photoToLoad.imageView.setImageBitmap(bitmap); } else photoToLoad.imageView.setImageResource(stub_id); } } public void clearCache() { memoryCache.clear(); fileCache.clear(); } } can u please tell how to do... On Mar 5, 5:52 pm, ANKUR GOEL ankur1...@gmail.com wrote: just put progress bar before imageView in xml and hide the progress bar as the image downloads ProgressBar progressBar = (ProgressBar) layout.findViewById(R.id.progressbar_default); if(bitmap != null){ imageView.setImageBitmap(bitmap); imageView.setVisibility(View.VISIBLE); progressBar.setVisibility(View.GONE); }else{ imageView.setVisibility(View.GONE); progressBar.setVisibility(View.VISIBLE); } On Mon, Mar 5, 2012 at 6:17 PM, Seshu s.seshu...@gmail.com wrote: Hi all, I am using grid view and i am downloading the images from internet and need to place in gridview. when images are downloading means i need to show the progress dialog for each photo downloading in gridview. for reference i am attached the image. Can any one help me how to achieve this task. Thanks and Regards, S.Seshu. s.seshu143(at)gmail(dot)com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: switching views
Hi Vani, Better 2 use GestureDetectors so that u can fling the multiple views... Thanks and Regards, S.Seshu On Feb 27, 4:32 pm, moktarul anam mokta...@gmail.com wrote: Hi Vani , better u create separate activity for display attach file and make that activity android:theme=@android:style/Theme.Dialog Moktarul anam On Feb 27, 3:49 pm, vani reddy vani.reddy.bl...@gmail.com wrote: Hi friends,, How to create switching views in android ,like in the attached snapshot from the iPad. -- Regards, Vani Reddy photo.PNG 454KViewDownload -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: when internet connection don't exists, show me massage. please help!!
Hi Umer, Check the network in 1st Activity only, if network is not available means then call the finish() method. On Feb 23, 1:06 pm, Muhammad UMER muhammad.ume...@hotmail.com wrote: hi kris, Now i am using socket connection, and it give the message The application video (process com.tcp.video) has stopped unexpectedly. please try again. so the user will not under stand whats going wrong. so i want to first check for internet connection first and if it is not connected then display the message that user can understand. try { socket = new Socket(IP, ); } catch (UnknownHostException e) { // TODO Auto-generated catch block e.printStackTrace();try } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } Thanks and Regards, umer Date: Thu, 23 Feb 2012 02:37:01 -0500 Subject: Re: [android-developers] when internet connection don't exists, show me massage. please help!! From: krismicin...@gmail.com To: android-developers@googlegroups.com On Thu, Feb 23, 2012 at 2:26 AM, muhammad.ume...@hotmail.com muhammad.ume...@hotmail.com wrote: Hi, My app is depends on internet, so I want that if the mobile is not connected to internet then my app show the message to the user that internet not connected and exit the application. give me any suggestion. Why do you want to do this? Why not gracefully handle a connection error and instead display some helpful output, rather than killing off your app so eagerly? kris -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: when internet connection don't exists, show me massage. please help!!
then show the alert box dialog. i.e., AlertDialog.Builder alertbox = new AlertDialog.Builder(this); alertbox.setMessage(Alert); alertbox.setTitle(Network Connection not found); alertbox.setNeutralButton(OK, new DialogInterface.OnClickListener() { public void onClick(DialogInterface arg0, int arg1) { } }); alertbox.show(); On Feb 23, 2:45 pm, Muhammad UMER muhammad.ume...@hotmail.com wrote: hi s.seshu, But i want to show message when internet connection not found before closing the app. Regards, umer -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Image Button Onclik view
Hi kholif, in xml file for imageview add this one android:onclick=imageBtnClicked and in corresponding java file add this method: public void imageBtnClicked(View v) { // add your code here } On Feb 22, 1:58 pm, moktarul anam mokta...@gmail.com wrote: Hi kholif, u can use ImageView.setOnclickListener(new setOnclick(){ Onclick(view){ /// user hide/display code here } } Moktarul On Feb 21, 5:33 pm, kholif adig adig...@gmail.com wrote: hi I have some problems in image button I have some image button that when clicked on the button will display the same image. the problem is if the image double click the botton on the button will display the same image on the first and second positions. please give me a solution thank you -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Re : Save output data as XML
Hi Vivek, U no need 2 mention any xml format while saving the file. by default shared preference ll save the data in xml format. u can see this file in fileexplorer i.e., open ddms and then file explorer. now u ll get 3 options i.e., data, mnt and system. Go to data and then select data again and then select package name of ur application. now u ll see the Shared Preferences. Click on it. u ll find ur filename.xml. Thanks and Regards, S.Seshu On Feb 22, 2:57 pm, vivek elangovan elangovan.vi...@gmail.com wrote: Hi Seshu, i checked the link u referred and its working fine, but in that sample no xml part is defined what i need is (for eg : in the same example after login i want to save the username and password as XML files in my sdcard ) - Vivek On Feb 22, 12:30 pm, Seshu s.seshu...@gmail.com wrote: Hi Vivek, Used Shared Preferences so that the output data will be saved in xml format only. https://github.com/junal/Android-SharedPreferences/tree/master/Shared... http://www.tutorials-android.com/learn/How_to_store_and_retrieve_pref... Thanks and Regards, S.Seshu On Feb 22, 9:55 am, vivek elangovan elangovan.vi...@gmail.com wrote: Hi members, I want to develope an application where after entering the required input fields i want to save the output data as XML in my local (eg : memory card) . Is there any sample available ? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Re : Save output data as XML
Hi vivek, U can save the file in sdcard also but u need to integrate sdcard storage code and shared preferences and then u can save the file in sdcard. On Feb 22, 3:16 pm, vivek elangovan elangovan.vi...@gmail.com wrote: Hi Seshu, Thanks for the suggestion,i got the file from DDMS but is there any possible that i can save that xml file in sdcard - vivek On Feb 22, 3:03 pm, Seshu s.seshu...@gmail.com wrote: Hi Vivek, U no need 2 mention any xml format while saving the file. by default shared preference ll save the data in xml format. u can see this file in fileexplorer i.e., open ddms and then file explorer. now u ll get 3 options i.e., data, mnt and system. Go to data and then select data again and then select package name of ur application. now u ll see the Shared Preferences. Click on it. u ll find ur filename.xml. Thanks and Regards, S.Seshu On Feb 22, 2:57 pm, vivek elangovan elangovan.vi...@gmail.com wrote: Hi Seshu, i checked the link u referred and its working fine, but in that sample no xml part is defined what i need is (for eg : in the same example after login i want to save the username and password as XML files in my sdcard ) - Vivek On Feb 22, 12:30 pm, Seshu s.seshu...@gmail.com wrote: Hi Vivek, Used Shared Preferences so that the output data will be saved in xml format only. https://github.com/junal/Android-SharedPreferences/tree/master/Shared... http://www.tutorials-android.com/learn/How_to_store_and_retrieve_pref... Thanks and Regards, S.Seshu On Feb 22, 9:55 am, vivek elangovan elangovan.vi...@gmail.com wrote: Hi members, I want to develope an application where after entering the required input fields i want to save the output data as XML in my local (eg : memory card) . Is there any sample available ? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: when internet connection don't exists, show me massage. please help!!
Hi Umer, Use this method private boolean isNetworkAvailable() { ConnectivityManager connectivityManager = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE); NetworkInfo activeNetworkInfo = connectivityManager.getActiveNetworkInfo(); return activeNetworkInfo != null; } and add this one in manifest file uses-permission android:name=android.permission.ACCESS_NETWORK_STATE / Thanks and Regards, S.Seshu On Feb 23, 12:26 pm, muhammad.ume...@hotmail.com muhammad.ume...@hotmail.com wrote: Hi, My app is depends on internet, so I want that if the mobile is not connected to internet then my app show the message to the user that internet not connected and exit the application. give me any suggestion. Thanks and Regards, umer -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Android App label:how to make android app label invisible???
Hi divyateja, android:theme=@android:style/Theme.NoTitleBar so that u can hide the label name for corresponding activity. Thanks and Regards, S.Seshu On Feb 20, 6:51 pm, divya teja loud.te...@gmail.com wrote: Hi everyone, How to make app label invisible when app is running??.That is, for example some XYZ is app label name which is written in android maifest xml as string resource,then i need to make label name bar invisible or unlockable after app gets started. Thank you DivyaTeja -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Re : Save output data as XML
Hi Vivek, Used Shared Preferences so that the output data will be saved in xml format only. https://github.com/junal/Android-SharedPreferences/tree/master/SharedPreferences http://www.tutorials-android.com/learn/How_to_store_and_retrieve_preferences_in_an_Android_app.rhtml Thanks and Regards, S.Seshu On Feb 22, 9:55 am, vivek elangovan elangovan.vi...@gmail.com wrote: Hi members, I want to develope an application where after entering the required input fields i want to save the output data as XML in my local (eg : memory card) . Is there any sample available ? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: ProgressDialog with Thread
Hi, Use this code, new Thread(new Runnable() { @Override public void run() { //GetWts(); //processes some action try { sleep(3000); } catch (Exception e) { // TODO: handle exception } handler.sendEmptyMessage(0); progressBar.dismiss(); } }).start(); progressBar.dismiss(); Handler handle=new Handler(){ @Override public void handleMessage(Message msg) { super.handleMessage(msg); if(msg.what == 0) { //perform some action here } } }; On Feb 17, 3:59 pm, RLScott fixthatpi...@yahoo.com wrote: I don't think progressBar.dismiss is appropriate when executed by a thread other than the main UI thread. Use a handler to signal from the worker thread to the main UI thread and let the main UI thread do the actual messing with the UI. The same goes for any other action that touches the UI directly. On Feb 16, 5:13 pm, dc dcone1...@gmail.com wrote: I am attempting to show a progress dialog while I am performing some actions. I am having troubles getting it to perform the way I would like. Here is what I want to do: click event of a button pop up a progress dialog showing a busy message. perform some action then once the action is complete, inflate a new layout into my main layout. (changing screens) It works fine except either I inflate the layout while the other actions are still processing (layout change is outside the thread) or if I put the layout change in the thread, it forces a close of the app, at the layout.removeallviews; line. private OnClickListener feeAcceptListener = new OnClickListener() { @Override public void onClick(View v) { progressBar = ProgressDialog.show(v.getContext(), Please Wait...,Communicating,true); new Thread(new Runnable() { @Override public void run() { GetWts(); //processes some action progressBar.dismiss(); } }).start(); Handler handle=new Handler(){ @Override public void handleMessage(Message msg) { super.handleMessage(msg); } }; LinearLayout layout = (LinearLayout)findViewById(R.id.main_view); layout.removeAllViews(); LayoutInflater inflater = getLayoutInflater(); layout.addView(inflater.inflate(R.layout.wts, null)); Button print = (Button)findViewById(R.id.btnPrintTic); Button done= (Button)findViewById(R.id.btnDone); print.setOnClickListener(wtsPrintListener); done.setOnClickListener(wtsDoneListener); } }; -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: hi
Hi Naveen, See this code and pass the parameters bitmap and round i.e., by how much rounded u want... private static Bitmap getRoundedCornerImage(Bitmap src, float round) { // TODO Auto-generated method stub int width = src.getWidth(); int height = src.getHeight(); // create bitmap output Bitmap result = Bitmap.createBitmap(width, height, Config.ARGB_); // set canvas for painting Canvas canvas = new Canvas(result); canvas.drawARGB(0, 0, 0, 0); // config paint final Paint paint = new Paint(); paint.setAntiAlias(true); paint.setColor(Color.BLACK); // config rectangle for embedding final Rect rect = new Rect(0, 0, width, height); final RectF rectF = new RectF(rect); // draw rect to canvas canvas.drawRoundRect(rectF, round, round, paint); // create Xfer mode paint.setXfermode(new PorterDuffXfermode(Mode.SRC_IN)); // draw source image to canvas canvas.drawBitmap(src, rect, rect, paint); // return final image return result; } On Feb 16, 1:58 pm, chowdary nani naveenneeli...@gmail.com wrote: Hi all, I am working on displaying the image in rounded corner image view when i used to drag the image the image is coming out of the borders and displaying in rectangle please help me Thanks Naveen. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: The screen size of galaxy nexus (ICS )
Hi... u ll get the device width and height by using Display.. check this one.. Display display = getWindowManager().getDefaultDisplay(); int targetWidth = display.getWidth(); int targetHeight = display.getHeight(); Thanks and Regards, S.Seshu On Feb 15, 12:55 pm, chen ji chenjihz...@gmail.com wrote: Hi All, If I use DisplayMetrics to get galaxy nexus (ICS )'s screen's width Height, I found a very strange thing. It is 1184x720 if I set miniSDK = 8 and it is 1196*720 if I set miniSDK =7. And actually I think it should be 1960*720. Anyone can give some advices? Thanks, Ji -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 can I get the actual screen height ?
Hi.. Use this function u ll get the width and height of the screens. Display display = getWindowManager().getDefaultDisplay(); int width = display.getWidth(); int height = display.getHeight(); Thanks and Regards, S.Seshu On Feb 10, 8:59 am, Wenshan renws1...@gmail.com wrote: Hi, I'm trying to get the screen height, which is the DeviceScreenHeight - NavigationBarHeight - TitleBarHeight The code below always give me a 752, but the real screen height is 800. DisplayMetrics metrics = new DisplayMetrics(); getWindowManager().getDefaultDisplay().getMetrics(metrics); mHeight = metrics.heightPixels; And if I use onLayoutChange() to get the height of a vertically match_parent view, the height is 696. This is the value I need. But I want to know how to get this value dynamically so I can get the proper height on different devices. Android 3.2 Cheers, Wenshan -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 save application data in SD card/External storage device
Hi Srinivas, Which type of data u want to save. if the data is textdata means check this link http://www.java-samples.com/showtutorial.php?tutorialid=1523 Thanks and Regards, S.Seshu On Feb 10, 2:24 pm, aparna rani indela@gmail.com wrote: in your AndroidManifest.xml gile change the location. android:installLocation=preferExternal On Fri, Feb 10, 2012 at 2:49 PM, srinivasa reddy srinivasa.andr...@gmail.com wrote: Hi, I want my application shall be installed in phone memory and the data which i am storing through this application shall be in External storage device. Please help me to solve this problem. BR, Srinivasa -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Re : Grid View
Hi Vivek, See this example, i ll helps u... http://android-er.blogspot.in/2011/03/custom-gridview.html Thanks and Regards, S.Seshu. On Feb 9, 4:51 pm, vivek elangovan elangovan.vi...@gmail.com wrote: Hi, i tried defining a layout with image and text and when i m using getLayoutInflater() function in my ImageAdapter and when i run the application it crashes.If you members have any sample pls let me know. -Vivek On Feb 8, 12:21 pm, Farhan Tariq farhan@gmail.com wrote: define a layout with image and text, inflate it and replace a grid cell with it. On Wed, Feb 8, 2012 at 12:06 PM, vivek elangovan elangovan.vi...@gmail.comwrote: Hi Ratheesh, My point is i want to display image with text and on clicking the image i want to display the corresponding text in another class. - Vivek On Feb 8, 11:42 am, Ratheesh Valamchuzhy android...@gmail.com wrote: for passing a data to the next activity you can use putextra function.. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Starting Android
use http://saigeethamn.blogspot.in/ (or) http://www.vogella.de/android.html Thanks Regards, S.Seshu On Feb 8, 1:39 pm, Bhaumik Thaker bgtha...@gmail.com wrote: Use androiddevelopers and use stack overflow On Wed, Feb 8, 2012 at 2:04 PM, Murali Krishna pmural...@gmail.com wrote: Thanks On Wed, Feb 8, 2012 at 1:13 PM, ji fei ufo22940...@gmail.com wrote: developer.android.com On Wed, Feb 8, 2012 at 10:46 AM, Murali Kryshna Pendyala pmural...@gmail.com wrote: Hi, I am very much interested in learning Android Apps development. Can you please share some docs or links useful to start with . Thanks in advance -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Regards, Murali Krishna -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Bhaumik Thaker -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Grid View with text
Hi, See this example.. http://android-er.blogspot.in/2011/03/custom-gridview.html thanks and regards, S.Seshu, On Feb 9, 11:58 am, chumki ghosh ghoshanindi...@gmail.com wrote: Hello all, How to display grid view with text? need sample code for it. Thanks -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Sending SMS to mobile using wifi.
Hi, I want to Send SMS from mobile to mobile using wifi with free of cost for the network.. Is it possible to send sms like that. If means can u send source code 2 me and my id s(dot)seshu143atgmaildotcom. Thanks in advance. Thanks and Regards, S.Seshu. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 open the ms word documents in android mobile through programming
Hi All, I want to open the ms-word/ms-excel sheet documents in my application. and i implemented reading of pdf files and text files but i am unable to open the ms-word/ms-excel sheet documents. Can anyone tell how to implemented?? Thanks in advance?? and my mail id is s.seshu...@gmail.com Thanks and Regards, S.Seshu, Android Developer, -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: My First android programming
Hi Sahar, U can install the android apk files in 2 ways, 1) Connect the device to System. Now Open the command prompt then do these steps: a) Locate the android SDK folder i.e., where did u copied the android- sdk-windows. For example: D:\ cd android-sdk-windows.. enter D:\ cd android-sdk-windows\ cd platform-tools --- enter Now D:\ cd android-sdk-windows\ cd platform-tools adb install -r sample.apkenter, here sample.apk should give the complete path where is located exactly. Here we need to close all the emulators. 2) Connect the device to System and install the corresponding software i.e., given by the handset manufacturer, then go the application right click on it Select Run as, in that choose Run Configurations. u ll get window. and u ll find 3 options i.e., Android, Target, Common, Select Target, In Target select manual and then select Run Button. After that u ll get another Window i..e, Android Device Chooser there u ll find list of devices connected.. choose ur mobile here i..e, displays with the name of device ID. On Jan 26, 6:44 pm, Sahar Harati saharati2...@gmail.com wrote: Hi! I'm new in android programming. I've developed a program that works perfectly on android emulator but I don't know how can I install it on my android device. thank you in advanced :) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 about passing intent between two activities
Hi which method r u using 2 call the camera using intent i.e., startActivity or StartActivityforResult(intent, REQUEST_CODE_TAKE_IMAGE); so use 2nd function it ll calls onactivityresult if it captures the image. On Dec 12 2011, 9:52 am, SH sung...@identityhive.com wrote: Hi all. I have an app and fixing errors/bugs. But I have problem when NewPictureNote.java calls PhotoTaker.java using startActivityForResult() to take a photo and save. My code uses callback and put binary data into Intent to return to previous activity. Here is the code: //PhotoTaker.java public class PhotoTaker extends BetterDefaultActivity implements SurfaceHolder.Callback{ //.. public void clickHandler(view v){ //. Intent returningIntent = new Intent(); returningIntent.putExtra(EXTRA_IMAGE_DATA, jpegPictureData); setResult(RESULT_OK,returningIntent); finish(); break; } } //NewPictureNote.java public class NewPictureNote extends BetterDefaultActivity { // protected void onActivityResult(int requestCode, int resultCode, Intent data) { super.onActivityResult(requestCode, resultCode, data); try { //If we are getting a response from our picture taking activity if(requestCode ==REQUEST_CODE_TAKE_IMAGE) { //If it was successful if(resultCode == Activity.RESULT_OK) { //do something } else { //The user cancelled or an error occured setResult(Activity.RESULT_CANCELED); finish(); } } else { //... } } catch (Throwable e) { //... } } When I debug code, clickHandler() method in PhotoTaker.java works well. It calls till the end of the clickHanlder() but the Activity won't close and onActivityResult() does not work. Please let me know what problem is? 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] Custom List View is not Click-able when scrolling the list.
Hi Every Body, I am using custom list view in my app. first time if i clicked the custom list view means it's going 2 activity, and if i scrolled the list and then click is not responding. i am not getting where the problem is coming. I wrote the list view like that LinearLayout android:layout_width=fill_parent android:layout_height=fill_parent android:orientation=vertical android:id=@+id/commonlistlayout android:background=@drawable/ transparent1_bg android:layout_margin=10dp ListView android:layout_height=fill_parent android:id=@+id/ commonlistview android:layout_width=fill_parent android:scrollingCache=false android:scrollbars=none android:fadingEdge=none android:layout_below=@+id/commonlistheadtext android:layout_margin=10dp / /LinearLayout and in activity class i wrote like that. class myactivity extends Activity { ListClass listclass; ListView list oncreate() { list = (listView) listclass = new ListClass(); list.setAdapter(list); list.setonItemClickListnent() { event triggered.. } can any one solve 2 this problem, Thanks in advance, S.Seshu, s.seshu...@gmail.com } } -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Need Help
Hi All, I am developing a small application which requires listview with images, textImage and icon. i,e., icon image and icon text is on background button like that and background button is look like steps type i.e., incrementing width. can anyone tell me how to implement this problem -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: how to be a game developers in android
Hi Nomikhan, Its very difficult to develop a game using Android SDK. Still we can develop by using either Android SDK with OpenGL ES1.0 or Android NDK(Native Development Kit). By Using these both options we can develop but its very difficult to develop a game. Better try to do a application. On Jan 11, 7:18 pm, TreKing treking...@gmail.com wrote: On Wed, Jan 11, 2012 at 8:15 AM, cellurl gpscru...@gmail.com wrote: use appinventor in a few wks when it resurfaces. http://info.appinventor.mit.edu/ I wrote a game in it in 1hr. No Java required. Would you share? Please. I would love to know what kind of game you can make with app inventor in one hour. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Closing new window in android using webservices.
Hi Friends, I am using Android Web Services. while opening my app a new window is opening along wih my ap using websettings setJavaScriptCanOpenWindowsAutomatically(true). now i want to close this window. but i didn't found how to close the window. can any one tell how to solve my problem and my mail id is s.seshu...@gmail.com. thanks S.Seshu -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en