[android-developers] Simple XML Error
Could someone please tell me why i get this error. error: Error parsing XML: junk after document element I am attempting to include ads at the bottom of my app and I can't figure out this problem. LinearLayout android:layout_width=fill_parent android:id=@+id/ad_layout android:layout_height=wrap_content android:gravity=bottom android:layout_alightParentBottom=true com.google.ads.AdView android:id=@+id/ad android:layout_width=fill_parent android:layout_height=wrap_content googleads:adSize=BANNER googleads:adUnitId=@string/admob_id android:gravity=bottom / /LinearLayout 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
Re: [android-developers] Please can i have source codes for tictactoe game for android?
I just mean to say,that forum is not for asking a whole code. Absolutly,we help for algorithm not for code. On Mar 17, 2012 2:02 AM, Lew lewbl...@gmail.com wrote: Bhavin wrote: Dear Jane. Please see the rule [sic] of this forum. U [sic] can't ask for code here... Of course you can. You can ask for all kinds of Android application-programming help. You can discuss all kinds of Android application-programming issues. I don't find any such rule as you describe anywhere, and I looked after reacting in shocked surprise to your post. Can you cite where you found this rule, please? Jane, tic-tac-toe is a standard student problem, and is well documented. Find an algorithm and translate it to Java, then build it into an APK and mount it on your device. -- 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 post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] ایران رتبه اول رشد علمی در مقالات علمی
ENGLISH 2012/3/18 lbendlin l...@bendlin.us прелесть On Saturday, March 17, 2012 10:22:09 AM UTC-4, Hyunseok Lee wrote: 씹세 모야 이거 2012. 3. 17. 오전 5:29에 hosein bitaraf hobby@gmail.com님이 작성: بسم الله الرحمن الرحیم بسیاری از ما در باره ی ایران و وضعیت علمی و فرهنگی آن بسیار بدبین هستیم. ومیپنداریم که کشور در زمینه ها علمی و فرهنگی بسیار ضعیف است. ولی با دیدن این اینفو گرافی میتوانیم دید واقع بینانه تری نسبت به ایران داشته باشیم. و این دید اشتباه را کمی تصحیح کنیم. این که اشکالات را ببینیم خوب است و لی این که نکات مثبت را نبینیم خیلی بد است و باعث میشود که نکات قوت کم کم کمرنگ شود و در نهایت از بین برود. به امید پیشرفت روز افزون ایران اسلامی. http://infographic.ir/**infographic/#t=loadf=0l=18**i=1216http://infographic.ir/infographic/#t=loadf=0l=18i=1216 منبع : http://www.nature.com/news/**365-days-2011-in-review-1.9684http://www.nature.com/news/365-days-2011-in-review-1.9684 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@** googlegroups.com android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+**unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/**group/android-developers?hl=enhttp://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Thank you Anirudh Loya | Android Developer** Desk: +9140-30681824 | Mobile: +91*9246561265* *Love your Job but don't Love your company, Because you may not know when your company stops loving you.-- Voice Of Love* -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: How to copy files from Android to PC?
You can use ftp. Steps 1. Install wireless file transfer from market to your phone. Its free. 2.connect your WFT to access point. It will provide you one IP From cuteftp (installed on PCS )or some other ftp access your android phone On Mar 16, 2012 8:44 PM, Ali Chousein ali.chous...@gmail.com wrote: Hhhmmm, send your files to the PC through bluetooth maybe? I guess you have to use one of the standard protocols. - Ali Chousein http://www.codeproject.com/KB/android/PayGol-Android.aspx http://weatherbuddy.blogspot.com | http://twitter.com/weather_buddy http://geo-filtered-assistant.blogspot.com https://marketplace.cisco.com/apphq/products/994 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Please can i have source codes for tictactoe game for android?
dear friend i want to fetch ma contact inbox with name and number as simple as possible it's urgent i m going threw below code but i can able to find only name not number plz it's urgent to get help u frnds public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); String[] projection = new String[] { People._ID, People.NAME }; Cursor cursor = managedQuery(People.CONTENT_URI, projection, null, null, People.NAME + ASC); ListAdapter adapter = new SimpleCursorAdapter( this, android.R.layout.two_line_list_item, cursor, new String[] { People._ID, People.NAME }, new int[] { android.R.id.text1, android.R.id.text2 } ); setListAdapter(adapter); getListView().setOnItemClickListener(this); } public void onItemClick(AdapterView? adapterView, View view, int position, long id) { Uri contactUri = ContentUris.withAppendedId(People.CONTENT_URI, id); Intent intent = new Intent(this, ContactDetails.class); intent.setData(contactUri); startActivity(intent); } } Ever+ Never- @kh!l R@v@l (+91-96388-66691) (+91-74052-63600) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] fetch contact with number
i want to fetch all contacts with number it;s too urgent for me to complete it today only plz need help -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 copy files from Android to PC?
Doesn't this work only with files in the external memory (SD card)? What if you want to copy files from your app's private documents folder? On Mar 18, 3:03 am, Save My Life! alertsavemyl...@gmail.com wrote: You can use ftp. Steps 1. Install wireless file transfer from market to your phone. Its free. 2.connect your WFT to access point. It will provide you one IP From cuteftp (installed on PCS )or some other ftp access your android phone On Mar 16, 2012 8:44 PM, Ali Chousein ali.chous...@gmail.com wrote: Hhhmmm, send your files to the PC through bluetooth maybe? I guess you have to use one of the standard protocols. - Ali Chousein http://www.codeproject.com/KB/android/PayGol-Android.aspx http://weatherbuddy.blogspot.com|http://twitter.com/weather_buddy http://geo-filtered-assistant.blogspot.com https://marketplace.cisco.com/apphq/products/994 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] facepreview20120218.apk does not install with adb
i tried with the -r switch. i got this C:\Program Files (x86)\Android\android-sdk\platform-toolsadb install -r facep eview-20120218.apk 102 KB/s (3814528 bytes in 36.336s) pkg: /data/local/tmp/facepreview-20120218.apk Failure [INSTALL_PARSE_FAILED_INCONSISTENT_CERTIFICATES] On Saturday, March 17, 2012 9:23:24 PM UTC+5:30, Kostya Vasilyev wrote: adb install -r filename 17.03.2012 19:50 пользователь Ralph Bergmann | the4thFloor.eu ra...@the4thfloor.eu написал: Am 17.03.12 16:41, schrieb karan hans: Failure [INSTALL_FAILED_ALREADY_EXISTS] ^^ Ralph -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Simple XML Error
googleads:adSize 2012/3/18 CaRRtel Industres carrtelindustr...@gmail.com Could someone please tell me why i get this error. error: Error parsing XML: junk after document element I am attempting to include ads at the bottom of my app and I can't figure out this problem. LinearLayout android:layout_width=fill_parent android:id=@+id/ad_layout android:layout_height=wrap_content android:gravity=bottom android:layout_alightParentBottom=true com.google.ads.AdView android:id=@+id/ad android:layout_width=fill_parent android:layout_height=wrap_content googleads:adSize=BANNER googleads:adUnitId=@string/admob_id android:gravity=bottom / /LinearLayout 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
Re: [android-developers] facepreview20120218.apk does not install with adb
Am 18.03.12 10:57, schrieb karan hans: Failure [INSTALL_PARSE_FAILED_INCONSISTENT_CERTIFICATES] Is it really so difficult to read, understand and/or to google the error message? http://stackoverflow.com/questions/3185444/how-to-deal-with-install-parse-failed-inconsistent-certificates-without-uninstal Ralph -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: How to copy files from Android to PC?
The application I'm making is made for users who are not familiar with software. They do not know how to configure FTP, bluetooth and manage memory card. One idea is to provide them a super easy desktop application, in order to get the files from an Android device. What do you think? Thanks. 2012/3/18 RLScott fixthatpi...@yahoo.com Doesn't this work only with files in the external memory (SD card)? What if you want to copy files from your app's private documents folder? On Mar 18, 3:03 am, Save My Life! alertsavemyl...@gmail.com wrote: You can use ftp. Steps 1. Install wireless file transfer from market to your phone. Its free. 2.connect your WFT to access point. It will provide you one IP From cuteftp (installed on PCS )or some other ftp access your android phone On Mar 16, 2012 8:44 PM, Ali Chousein ali.chous...@gmail.com wrote: Hhhmmm, send your files to the PC through bluetooth maybe? I guess you have to use one of the standard protocols. - Ali Chousein http://www.codeproject.com/KB/android/PayGol-Android.aspx http://weatherbuddy.blogspot.com|http://twitter.com/weather_buddy http://geo-filtered-assistant.blogspot.com https://marketplace.cisco.com/apphq/products/994 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: How to copy files from Android to PC?
2012/3/18 Italo Mendonça Rocha ital...@gmail.com: The application I'm making is made for users who are not familiar with software. They do not know how to configure FTP, bluetooth and manage memory card. One idea is to provide them a super easy desktop application, in order to get the files from an Android device. What do you think? Step #1: User plugs in USB cable, and external storage becomes a Windows drive letter That is one step. That is as simple as it is going to get. Anything else will require: -- installing software on the device -- installing software on the PC -- configuring one or both pieces of software -- possible configuring other software (e.g., antivirus to allow the PC to open a port) -- possible other hardware setup (e.g., installing a wireless access point, installing a Bluetooth receiver) -- possible per-usage configuration (e.g., passwords, switching device WiFi on, setting up IP addresses if they change) Please note that this list is not Android-specific. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 4.1 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] ListFragment fails on setContentView
Ive been trying to get a listview working within a fragment all day. I dont know why but for some reason the way Im trying to do it, it just never wants to inflate the view. Im using actionbarsherlock if that makes a difference but I dont think so. Heres the class where my layout fails: public class GraffSearch extends FragmentActivity implements ActionBar.TabListener{ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.searchlayout);//-fails here final ActionBar ab = getSupportActionBar(); for (int i = 1; i 4; i++) { ab.addTab(ab.newTab().setText(Tab + i).setTabListener(this)); } ab.show(); if (ab.getNavigationMode() != ActionBar.NAVIGATION_MODE_TABS) { ab.setNavigationMode(ActionBar.NAVIGATION_MODE_TABS); } } @Override public void onTabReselected(Tab tab, FragmentTransaction ft) { // TODO Auto-generated method stub } @Override public void onTabSelected(Tab tab, FragmentTransaction ft) { //Toast.makeText(this, tabs work +tab.getPosition()+ user id is +avrid, Toast.LENGTH_LONG).show(); SearchListFrag fragment = (SearchListFrag) getSupportFragmentManager().findFragmentById(R.id.searchfrag); //fragment.updateUrl(tab.getPosition(), avrid); } @Override public void onTabUnselected(Tab tab, FragmentTransaction ft) { // TODO Auto-generated method stub } } and heres the layout were I call my fragment. ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/android; android:layout_width=match_parent android:layout_height=match_parent android:orientation=vertical ListFragment android:id=@+id/searchfrag android:layout_width=0dip android:layout_height=match_parent android:name=graffit.main.SearchListFrag android:layout_weight=1/ListFragment /LinearLayout Ive tried a few different setups going back and forth from using a regular fragment and a listfragment with the same result. Heres the logcat. 03-18 03:38:49.363: E/AndroidRuntime(8385): FATAL EXCEPTION: main 03-18 03:38:49.363: E/AndroidRuntime(8385): java.lang.RuntimeException: Unable to start activity ComponentInfo{graffit.main/graffit.main.GraffSearch}: android.view.InflateException: Binary XML file line #9: Error inflating class ListFragment 03-18 03:38:49.363: E/AndroidRuntime(8385): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1696) 03-18 03:38:49.363: E/AndroidRuntime(8385): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1716) 03-18 03:38:49.363: E/AndroidRuntime(8385): at android.app.ActivityThread.access$1500(ActivityThread.java:124) 03-18 03:38:49.363: E/AndroidRuntime(8385): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:968) 03-18 03:38:49.363: E/AndroidRuntime(8385): at android.os.Handler.dispatchMessage(Handler.java:99) 03-18 03:38:49.363: E/AndroidRuntime(8385): at android.os.Looper.loop(Looper.java:130) 03-18 03:38:49.363: E/AndroidRuntime(8385): at android.app.ActivityThread.main(ActivityThread.java:3806) 03-18 03:38:49.363: E/AndroidRuntime(8385): at java.lang.reflect.Method.invokeNative(Native Method) 03-18 03:38:49.363: E/AndroidRuntime(8385): at java.lang.reflect.Method.invoke(Method.java:507) 03-18 03:38:49.363: E/AndroidRuntime(8385): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839) 03-18 03:38:49.363: E/AndroidRuntime(8385): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597) 03-18 03:38:49.363: E/AndroidRuntime(8385): at dalvik.system.NativeStart.main(Native Method) 03-18 03:38:49.363: E/AndroidRuntime(8385): Caused by: android.view.InflateException: Binary XML file line #9: Error inflating class ListFragment 03-18 03:38:49.363: E/AndroidRuntime(8385): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:581) 03-18 03:38:49.363: E/AndroidRuntime(8385): at android.view.LayoutInflater.rInflate(LayoutInflater.java:623) 03-18 03:38:49.363: E/AndroidRuntime(8385): at android.view.LayoutInflater.inflate(LayoutInflater.java:408) 03-18 03:38:49.363: E/AndroidRuntime(8385): at android.view.LayoutInflater.inflate(LayoutInflater.java:320) 03-18 03:38:49.363: E/AndroidRuntime(8385): at android.view.LayoutInflater.inflate(LayoutInflater.java:276) 03-18 03:38:49.363: E/AndroidRuntime(8385): at android.support.v4.app.FragmentActivity.setContentView(FragmentActivity.java:421) 03-18 03:38:49.363: E/AndroidRuntime(8385): at graffit.main.GraffSearch.onCreate(GraffSearch.java:16) 03-18 03:38:49.363: E/AndroidRuntime(8385): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047) 03-18 03:38:49.363: E/AndroidRuntime(8385): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1660)
Re: [android-developers] ListFragment fails on setContentView
ListFragment is not a valid element. That says hey, go find android.view.ListFragment and use it here, and there is no such class. You add fragments to a layout via fragment: http://developer.android.com/guide/topics/fundamentals/fragments.html#Adding On Sun, Mar 18, 2012 at 7:29 AM, Jim Andresakis jimandresa...@gmail.com wrote: Ive been trying to get a listview working within a fragment all day. I dont know why but for some reason the way Im trying to do it, it just never wants to inflate the view. Im using actionbarsherlock if that makes a difference but I dont think so. Heres the class where my layout fails: public class GraffSearch extends FragmentActivity implements ActionBar.TabListener{ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.searchlayout);//-fails here final ActionBar ab = getSupportActionBar(); for (int i = 1; i 4; i++) { ab.addTab(ab.newTab().setText(Tab + i).setTabListener(this)); } ab.show(); if (ab.getNavigationMode() != ActionBar.NAVIGATION_MODE_TABS) { ab.setNavigationMode(ActionBar.NAVIGATION_MODE_TABS); } } @Override public void onTabReselected(Tab tab, FragmentTransaction ft) { // TODO Auto-generated method stub } @Override public void onTabSelected(Tab tab, FragmentTransaction ft) { //Toast.makeText(this, tabs work +tab.getPosition()+ user id is +avrid, Toast.LENGTH_LONG).show(); SearchListFrag fragment = (SearchListFrag) getSupportFragmentManager().findFragmentById(R.id.searchfrag); //fragment.updateUrl(tab.getPosition(), avrid); } @Override public void onTabUnselected(Tab tab, FragmentTransaction ft) { // TODO Auto-generated method stub } } and heres the layout were I call my fragment. ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/android; android:layout_width=match_parent android:layout_height=match_parent android:orientation=vertical ListFragment android:id=@+id/searchfrag android:layout_width=0dip android:layout_height=match_parent android:name=graffit.main.SearchListFrag android:layout_weight=1/ListFragment /LinearLayout Ive tried a few different setups going back and forth from using a regular fragment and a listfragment with the same result. Heres the logcat. 03-18 03:38:49.363: E/AndroidRuntime(8385): FATAL EXCEPTION: main 03-18 03:38:49.363: E/AndroidRuntime(8385): java.lang.RuntimeException: Unable to start activity ComponentInfo{graffit.main/graffit.main.GraffSearch}: android.view.InflateException: Binary XML file line #9: Error inflating class ListFragment 03-18 03:38:49.363: E/AndroidRuntime(8385): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1696) 03-18 03:38:49.363: E/AndroidRuntime(8385): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1716) 03-18 03:38:49.363: E/AndroidRuntime(8385): at android.app.ActivityThread.access$1500(ActivityThread.java:124) 03-18 03:38:49.363: E/AndroidRuntime(8385): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:968) 03-18 03:38:49.363: E/AndroidRuntime(8385): at android.os.Handler.dispatchMessage(Handler.java:99) 03-18 03:38:49.363: E/AndroidRuntime(8385): at android.os.Looper.loop(Looper.java:130) 03-18 03:38:49.363: E/AndroidRuntime(8385): at android.app.ActivityThread.main(ActivityThread.java:3806) 03-18 03:38:49.363: E/AndroidRuntime(8385): at java.lang.reflect.Method.invokeNative(Native Method) 03-18 03:38:49.363: E/AndroidRuntime(8385): at java.lang.reflect.Method.invoke(Method.java:507) 03-18 03:38:49.363: E/AndroidRuntime(8385): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839) 03-18 03:38:49.363: E/AndroidRuntime(8385): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597) 03-18 03:38:49.363: E/AndroidRuntime(8385): at dalvik.system.NativeStart.main(Native Method) 03-18 03:38:49.363: E/AndroidRuntime(8385): Caused by: android.view.InflateException: Binary XML file line #9: Error inflating class ListFragment 03-18 03:38:49.363: E/AndroidRuntime(8385): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:581) 03-18 03:38:49.363: E/AndroidRuntime(8385): at android.view.LayoutInflater.rInflate(LayoutInflater.java:623) 03-18 03:38:49.363: E/AndroidRuntime(8385): at android.view.LayoutInflater.inflate(LayoutInflater.java:408) 03-18 03:38:49.363: E/AndroidRuntime(8385): at android.view.LayoutInflater.inflate(LayoutInflater.java:320) 03-18 03:38:49.363: E/AndroidRuntime(8385): at android.view.LayoutInflater.inflate(LayoutInflater.java:276) 03-18 03:38:49.363: E/AndroidRuntime(8385): at android.support.v4.app.FragmentActivity.setContentView(FragmentActivity.java:421) 03-18
Re: [android-developers] ListFragment fails on setContentView
Am 18.03.12 12:29, schrieb Jim Andresakis: and heres the layout were I call my fragment. ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/android; android:layout_width=match_parent android:layout_height=match_parent android:orientation=vertical ListFragment android:id=@+id/searchfrag android:layout_width=0dip android:layout_height=match_parent android:name=graffit.main.SearchListFrag android:layout_weight=1/ListFragment /LinearLayout java.lang.RuntimeException: Unable to start activity ComponentInfo{graffit.main/graffit.main.GraffSearch}: android.view.InflateException: Binary XML file line #9: Error inflating class ListFragment ListFragment is not a subclass of View so it can't inflated. You have to use ListView in your layout xml file. http://android-developers.blogspot.de/2011/02/android-30-fragments-api.html http://developer.android.com/resources/samples/Support4Demos/src/com/example/android/supportv4/app/FragmentListArraySupport.html Ralph -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] facepreview20120218.apk does not install with adb
Since you did it for him, it was worth it. I'd just ignore such a question. On Sunday, March 18, 2012 6:27:56 PM UTC+8, Ralph Bergmann wrote: Am 18.03.12 10:57, schrieb karan hans: Failure [INSTALL_PARSE_FAILED_INCONSISTENT_CERTIFICATES] Is it really so difficult to read, understand and/or to google the error message? http://stackoverflow.com/questions/3185444/how-to-deal-with-install-parse-failed-inconsistent-certificates-without-uninstal Ralph -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Please can i have source codes for tictactoe game for android?
On Sun, Mar 18, 2012 at 12:37:18PM +0530, akhil raval wrote: i want to fetch ma contact inbox with name and number as simple as possible it's urgent i m going threw below code but i can able to find only name not number plz it's urgent to get help u frnds First, what have YOU done to debug your code? If you don't specify that, the general assumption is that you haven't done anything except post here (and that does NOT help you get helpful responses here). Second, in this group, saying that something is urgent is going to reduce your chances of getting a reply (rather severely, in fact). If it's that urgent, you need to pay someone local (to you) to help. And either way, what's urgent to you isn't urgent to anyone here...sorry. As a side note, as many others have said in responses to similar posts, in this group, please take the time to use proper English. The following letter groups from your post are not words, and have no meaning: i[1], plz, ma[2], i m, u, and frnds. These are meaningless. And threw in the context above should be through. Unless you meant you were planning to throw the code away, or something along those lines. Try a better translation program, and you'll probably get more/better responses. Later, --jim [1] ...unless capitalized, in which case you are referring to yourself in the first person. [2] ma is a slang reference to one's mother. I'm guessing that's not what you meant. :-) -- THE SCORE: ME: 2 CANCER: 0 73 DE N5IAL (/4)| Tux (E Cat): DS B+Wd Y 6 Y L+++ W+ C++/C++ I+++ spooky1...@gmail.com| T++ A E H+ S V- F++ Q+++ P/P+ B++ PA+ PL SC--- Running FreeBSD 7.0 | ICBM / Hurricane: | Tiggerbelle: DS W+S+Bts % 1.5 X L W C+++/C+ 30.44406N 86.59909W | I+++ T A E++ H S++ V+++ Q+++ P B++ PA++ PL+ SC Android Apps Listing at http://www.jstrack.org/barcodes.html -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] javax.crypto.BadPaddingException: pad block corrupted
2012/3/18 Italo Mendonça Rocha ital...@gmail.com: I'm trying to encrypt and decrypt a file using a key that the user typed. All these operations are done in Android. At the moment I decrypt I get a javax.crypto.BadPaddingException: pad block corrupted. The same code works normally on Windows PC. Why? Your code looks mostly OK. Check the encrypted file size, and compare to what you get on Windows. 'Pad block corrupted' usually means you are missing a few bytes. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Intent.Createchooser Does Not Work
Does anyone have further thoughts on this? After update to 2.3.6, createChooser does not work at all and mail intent works only when program stops, not immediately in response to button press. On Mar 13, 11:28 am, JFS j...@sheagermain.com wrote: Sorry, I used the wrong language. The mail intent works in response to a user button press. When the button is pressed, the entries are supposed to be mailed immediately. That is the way it previously worked. Now, when the button is pressed, the code (withcreateChooserand without) runs through the mail intent with no error; but the e-mail accounts do not come up and nothing is sent. When I replacecreateChooserwith the mail intent, the code still runs without error and no e-mails accounts come up; however, when I shut the entire program down, then the e-mail accounts come up and the information can be e-mailed as intended. It is as though the email intent is somehow saved and does not function until the entire program is stopped. On Mar 13, 10:50 am, Mark Murphy mmur...@commonsware.com wrote: On Tue, Mar 13, 2012 at 10:47 AM, JFS j...@sheagermain.com wrote: When I dropcreateChooserand replace it with the emailintent (ACTION_SEND), nothing happens immediately. But when the service stops, I am then prompted with the expected set of e-mail accounts and can send the message. Why is a service using ACTION_SEND? That seems unusual. After all, you have no idea if the user is even around to handle the ACTION_SEND request. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy Android Training...At Your Office:http://commonsware.com/training -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] What is the best API to start with in the SDK
That was in 1.6, iirc based on an official blog post. 17.03.2012 9:27 пользователь Zsolt Vasvari zvasv...@gmail.com написал: When was forward declaration of rules added? API Level 4 or 7? On Friday, March 16, 2012 9:54:11 PM UTC+8, Mark Murphy (a Commons Guy) wrote: RelativeLayout has not changed much since API Level 4. On Wed, Mar 14, 2012 at 8:07 PM, redhoodtech redhoodt...@gmail.com wrote: I am currently starting to develop android applications with Eclipse and the Android SDK. What is the best API to start with, and do I have to create an individual app for each API? I've noticed that the Relative Layout function works better in API 15 rather than API 8. When I try using the relative layout function in API 8 it doesn't seem to function properly. Thanks, John R. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@** googlegroups.com android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+**unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/**group/android-developers?hl=enhttp://groups.google.com/group/android-developers?hl=en -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, One Low Price! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Market device-filtering question
Thanks for responding. Here's my permission list: uses-permission android:name=android.permission.INTERNET / uses-permission android:name=android.permission.ACCESS_FINE_LOCATION / uses-permission android:name=android.permission.WAKE_LOCK / uses-permission android:name=android.permission.WRITE_EXTERNAL_STORAGE / uses-permission android:name=android.permission.CALL_PHONE / Hmmm, your followup question concerns me. My manifest doesn't have the uses-feature tag at all (the app goes back to 2009 and as I have upgraded it I haven't added extraneous stuff that was unnecessary; I have only made changes that new SDKs require in order to build and run the app). At the very least I would expect that leaving the filter wide open (by specifying no required features) would make it maximally visible. Why wouldn't someone with a Galaxy Tab be able to see the app as a result of the uses-feature tag? It seems to me like the uses- feature tag could only make an app *less* visible (by indicating a feature which someone's device lacks). If I indicate no features at all, doesn't that prevent it from being filtered on anyone's device? I think I misunderstand how this tag works. Thank you. On Mar 17, 11:50 am, Mark Murphy mmur...@commonsware.com wrote: What permissions are you requesting? And, did you add the appropriate uses-feature elements as needed for things the permissions imply that you do not actually need? http://developer.android.com/guide/topics/manifest/uses-feature-eleme... On Sat, Mar 17, 2012 at 2:12 PM, Keith Wiley kbwi...@gmail.com wrote: I realize this question is more about the market than android code development, but by Google's own admission they have completely shut down the market forums coincident with the switch to Google Play, and my question *is* about how to properly configure an app for the market, so that's sort of a developer question. My problem is that a potential customer with a 10.1 Galaxy Tab says he can't see my app in the market (or Play or whatever stupid name they recently gave it that makes it seem like Google only sells silly games and not serious business software!), but he *can* see it from his phone...so it isn't excluded for his region or some currency issue. Rather, it would appear that the market is filter-excluding my app specifically on his tablet. I have the following entry in my manifest, which I would have expected to avoid this kind of problem: supports-screens android:xlargeScreens=true android:largeScreens=true android:normalScreens=true android:smallScreens=true android:anyDensity=true / Is there something else I need to put in the manifest to make the app appear on tablets? At a higher level of abstraction, is there a general way of knowing precisely why an app is being excluded for certain devices so that developers can readily solve these kinds of problems? Thank you. Cheers! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy Android Training in DC:http://marakana.com/training/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
Re: [android-developers] Re: Market device-filtering question
On Sun, Mar 18, 2012 at 11:27 AM, Keith Wiley kbwi...@gmail.com wrote: Thanks for responding. Here's my permission list: uses-permission android:name=android.permission.INTERNET / uses-permission android:name=android.permission.ACCESS_FINE_LOCATION / uses-permission android:name=android.permission.WAKE_LOCK / uses-permission android:name=android.permission.WRITE_EXTERNAL_STORAGE / uses-permission android:name=android.permission.CALL_PHONE / Hmmm, your followup question concerns me. My manifest doesn't have the uses-feature tag at all And therein lies your problem. Tablets are not phones, and CALL_PHONE implies android.hardware.telephony. At the very least I would expect that leaving the filter wide open (by specifying no required features) would make it maximally visible. You did not read the page I linked to: http://developer.android.com/guide/topics/manifest/uses-feature-element.html#permissions Here is a year-old blog post on the same topic: http://commonsware.com/blog/2011/02/25/xoom-permissions-android-market.html Here is an Android Developers Blog post on the same topic: http://android-developers.blogspot.com/2011/02/best-practices-for-honeycomb-and.html -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 4.1 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Market device-filtering question
On Mar 18, 8:48 am, Mark Murphy mmur...@commonsware.com wrote: On Sun, Mar 18, 2012 at 11:27 AM, Keith Wiley kbwi...@gmail.com wrote: Thanks for responding. Here's my permission list: uses-permission android:name=android.permission.INTERNET / uses-permission android:name=android.permission.ACCESS_FINE_LOCATION / uses-permission android:name=android.permission.WAKE_LOCK / uses-permission android:name=android.permission.WRITE_EXTERNAL_STORAGE / uses-permission android:name=android.permission.CALL_PHONE / Hmmm, your followup question concerns me. My manifest doesn't have the uses-feature tag at all And therein lies your problem. Tablets are not phones, and CALL_PHONE implies android.hardware.telephony. At the very least I would expect that leaving the filter wide open (by specifying no required features) would make it maximally visible. You did not read the page I linked to: http://developer.android.com/guide/topics/manifest/uses-feature-eleme... Yes I did. Thank you. I simply missed the reference to cell-phones. I don't think of my app as requiring cell-phone capability (it's a spread sheet), so I tend to completely forget about it and not consciously reference any cell-phone aspect of a webpage or discussion since it's barely relevant to my app. The app only needs the associated permission because it's possible to dial a phone number directly from a spreadsheet in my app, but obviously, by no means does that extra capability prevent the app from being useful on android nonphone devices (and it's such a tiny inconsequential feature I totally forget it's even in there). I'll look into how to make that permission or feature optional so it still appears in the market on nonphone devices. Thanks. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Market device-filtering question
Looks like this is the trick: uses-feature android:name=android.hardware.telephony android:required=false / ...plus a few related entries for location access, etc. Thanks again. Cheers! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Is it possible to open an Audio Recorder by more than one app using OpenSL?
Hi, I am writing an application that runs as a background service recording and analyzing audio samples. I have noticed that it is impossible to use the SDK's AudioRecord class for accessing the microphone simultaneously by more than one application. I was wondering whether it would be possible to do that using the Native Audio API, i.e. OpenSL ES. Can anyone provide insight on why this may or may not work? Micha -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Simple XML Error
what's wrong with the ads size? My current code still has the same error LinearLayout android:layout_width=fill_parent android:id=@+id/ad_layout android:layout_height=wrap_content android:gravity=bottom android:layout_alightParentBottom=true com.google.ads.AdView xmlns:ads= http://schemas.android.com/apk/res/com.carrtelind.truecolors; android:id=@+id/ad android:layout_width=fill_parent android:layout_height=wrap_content ads:adUnitId=a14dbba084368db android:gravity=bottom / /LinearLayout On Sunday, March 18, 2012 5:10:49 AM UTC-5, oldnew wrote: googleads:adSize 2012/3/18 CaRRtel Industres carrtelindustr...@gmail.com Could someone please tell me why i get this error. error: Error parsing XML: junk after document element I am attempting to include ads at the bottom of my app and I can't figure out this problem. LinearLayout android:layout_width=fill_parent android:id=@+id/ad_layout android:layout_height=wrap_content android:gravity=bottom android:layout_alightParentBottom=true com.google.ads.AdView android:id=@+id/ad android:layout_width=fill_parent android:layout_height=wrap_content googleads:adSize=BANNER googleads:adUnitId=@string/admob_id android:gravity=bottom / /LinearLayout Thanks in advance -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: CalendarContract on Samsung's ICS update
Thanks for the answer. I created a sample APK with the code taken directly from Google's documentation (copy-paste). Result was the same as before. How can I send it to Samsung? All I could find is customer support. On Mar 17, 8:04 am, Zsolt Vasvari zvasv...@gmail.com wrote: Here's the relevant section from the CTS that applies to the Contact Provider: Areas Covered The unit test cases cover the following areas to ensure compatibility: AreaDescription Platform Data ModelThe CTS tests the core platform data model as exposed to application developers through content providers, as documented in the SDK android.providerhttp://code.google.com/android/reference/android/provider/package-sum... package: contacts, browser, settings, etc. On Saturday, March 17, 2012 1:31:19 PM UTC+8, Zsolt Vasvari wrote: No, this should work as it's a public API even with their own Calendar implementation. If it doesn't, is a big issue for many apps. This error should have been caught during the CTS run. ( http://source.android.com/compatibility/cts-intro.html). I'd suggest you create the smallest app that demos this issue and: a) Send it to Samsung b) Create a bug report with the same app on b.android.com and ask Google to update the CTS to add test cases for these new APIs. On Saturday, March 17, 2012 9:49:32 AM UTC+8, Ralph Bergmann wrote: Am 16.03.12 13:51, schrieb roee88: It works fine on Galaxy Nexus and other ICS devices and ROMs. On Samsung SGSII with their recent ICS update it simply doesn't do anything. I think this happens because the SGS2 does not have the Google calendar app. Samsung use their own calendar app which does not use this new calendar api. So you can use this api but you can't see the results because there is no calendar which shows you the results. Ralph -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 using Ksoap2
I'm trying to see if it is feasible to access .Net WCF SOAP services from an android client. I found a post at http://naveenbalani.com/index.php/2011/01/invoke-webservices-from-android/comment-page-1/#comment-13485 That shows how to accomplish this using a library named Ksoap2. I'm pretty sure I followed all of the instructions however I end up with the following error: java.net.UnknownHostException: naveenbalani.com Any Idea what might be wrong? a jpg of my run config is at http://dl.dropbox.com/u/39662979/run config.jpg a zip of the project is at http://dl.dropbox.com/u/39662979/AndroidClientService.zip The source code is pasted below along with the console log (much of which I don't understand) thanks, Gary Blakely package org.android.webservice.client.samples; import org.ksoap2.SoapEnvelope; import org.ksoap2.serialization.SoapObject; import org.ksoap2.serialization.SoapSerializationEnvelope; import org.ksoap2.transport.HttpTransportSE; import android.app.Activity; import android.os.Bundle; import android.widget.TextView; public class AndroidClientService extends Activity { private static final String SOAP_ACTION = http://www.naveenbalani.com/ webservices/WassupAndroidService/todaysMessage; private static final String OPERATION_NAME = todaysMessage; private static final String WSDL_TARGET_NAMESPACE = http:// www.naveenbalani.com/webservices/WassupAndroidService/; private static final String SOAP_ADDRESS = http://naveenbalani.com/ WassupAndroid.asmx; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); TextView textView = new TextView(this); setContentView(textView); SoapObject request = new SoapObject(WSDL_TARGET_NAMESPACE, OPERATION_NAME); SoapSerializationEnvelope envelope = new SoapSerializationEnvelope( SoapEnvelope.VER11); envelope.dotNet = true; envelope.setOutputSoapObject(request); HttpTransportSE httpTransport = new HttpTransportSE(SOAP_ADDRESS); try { httpTransport.call(SOAP_ACTION, envelope); Object response = envelope.getResponse(); textView.setText(response.toString()); } catch (Exception exception) { textView.setText(exception.toString()); } } } [2012-03-18 10:45:41 - AndroidClientService] Dx warning: Ignoring InnerClasses attribute for an anonymous inner class (org.ksoap2.transport.KeepAliveHttpsTransportSE$1) that doesn't come with an associated EnclosingMethod attribute. This class was probably produced by a compiler that did not target the modern .class file format. The recommended solution is to recompile the class from source, using an up-to-date compiler and without specifying any -target type options. The consequence of ignoring this warning is that reflective operations on this class will incorrectly indicate that it is *not* an inner class. [2012-03-18 10:45:45 - AndroidClientService] -- [2012-03-18 10:45:45 - AndroidClientService] Android Launch! [2012-03-18 10:45:45 - AndroidClientService] adb is running normally. [2012-03-18 10:45:45 - AndroidClientService] Performing org.android.webservice.client.samples.AndroidClientService activity launch [2012-03-18 10:45:45 - AndroidClientService] Automatic Target Mode: Preferred AVD '233_avd' is not available. Launching new emulator. [2012-03-18 10:45:45 - AndroidClientService] Launching a new emulator with Virtual Device '233_avd' [2012-03-18 10:45:48 - Emulator] DNS server name 'ns15.unitechost.in' resolved to 69.10.57.50:55 [2012-03-18 10:45:51 - Emulator] emulator: WARNING: Unable to create sensors port: Unknown error [2012-03-18 10:45:51 - AndroidClientService] New emulator found: emulator-5554 [2012-03-18 10:45:51 - AndroidClientService] Waiting for HOME ('android.process.acore') to be launched... [2012-03-18 10:46:35 - AndroidClientService] HOME is up on device 'emulator-5554' [2012-03-18 10:46:35 - AndroidClientService] Uploading AndroidClientService.apk onto device 'emulator-5554' [2012-03-18 10:46:35 - AndroidClientService] Installing AndroidClientService.apk... [2012-03-18 10:46:53 - AndroidClientService] Success! [2012-03-18 10:46:53 - AndroidClientService] Starting activity org.android.webservice.client.samples.AndroidClientService on device emulator-5554 [2012-03-18 10:46:55 - AndroidClientService] ActivityManager: Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=org.android.webservice.client.samples/.AndroidClientService } -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Eclipse packages and package explorer
I don't have any problem Java - I read a comparison doc and it's on a par with C#. I'm not looking forward to JavaScript being the new world standard language though. Gary On Mar 16, 1:34 pm, Lew lewbl...@gmail.com wrote: ga...@deanblakely.com wrote: Lew, thanks for responding. after reading the docs some more I see it's all about workspaces so that makes sense. Yea, being used to C#, I expect not to like Java. Unfortunately, I'm afraid both our futures will be with HTML5 and (for crissake) 15 year old JavaSCRIPT Platform prejudice is career suicide for a professional programmer. What's not to like about Java? Why would you expect not to like it before you even learn it? That's crazy talk! -- 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
Re: [android-developers] Re: Eclipse packages and package explorer
On 3/18/2012 11:17 AM, g...@deanblakely.com wrote: I don't have any problem Java - I read a comparison doc and it's on a par with C#. I'm not looking forward to JavaScript being the new world standard language though. Gary We survived Y2K in a world of COBOL. I'm sure we can get along with JavaScript. My first computer language was machine code in 1961. I've always welcomed the opportunity to learn new languages. Gives me new ways to look at how to approach problem solving. It also served me well in my career. --Bob -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Simple XML Error
On Sun, Mar 18, 2012 at 1:44 AM, CaRRtel Industres carrtelindustr...@gmail.com wrote: Could someone please tell me why i get this error. error: Error parsing XML: junk after document element I am attempting to include ads at the bottom of my app and I can't figure out this problem. adSize is a property of ads not googleads, for one. See here: https://developers.google.com/mobile-ads-sdk/docs/android/fundamentals - 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] facebook
I cannot recieve messages on facebbok or do anything.I keep getting this link...HELP,please!! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Icons - Recommended size, format, etc?
see official reccomandations here http://developer.android.com/guide/practices/ui_guidelines/icon_design_menu.html Am Freitag, 7. November 2008 15:23:52 UTC+1 schrieb g1bb: Hello, Is there a recommended size or format for an application's icon? I've been using .PNG at 190x141 px, but I can never seem to get them as 'cool' looking as the other applications I've seen. 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] Bluetooth (BT) Hardware keyboard custom layout and special keys service
https://lh3.googleusercontent.com/-junDMI1xOCI/T2XUzN_5f5I/AqE/y1_FhThZjh8/s1600/IMG_3119.JPG *Good day to all developers!* I have a Bluetooth (BT) Hardware keyboard RAPOO E6300, working on my SGSII with Android 2.3.5. It is working fine, but some special keys is not mapped as expected or may not work at all, like Ctrl in Putty. For example, VolumeUp/VolumeDown keys is working, but Mute key is don't. *With help of dev.android.com I get keymap:* D:\android-sdks\platform-toolsadb shell getevent -p add device 1: /dev/input/event9 name: Broadcom Bluetooth HID events: SYN (): 0001 0004 0014 KEY (0001): 0001 0002 0003 0004 0005 0006 0007 0008 0009 000a 000b 000c 000d 000e 000f 0010 0011 0012 0013 0014 0015 0016 0017 0018 0019 001a 001b 001c 001d 001e 001f 0020 0021 0022 0023 0024 0025 0026 0027 0028 0029 002a 002b 002c 002d 002e 002f 0030 0031 0032 0033 0034 0035 0036 0037 0038 0039 003a 003b 003c 003d 003e 003f 0040 0041 0042 0043 0044 0045 0046 0047 0048 0049 004a 004b 004c 004d 004e 004f 0050 0051 0052 0053 0055 0056 0057 0058 0059 005a 005b 005c 005d 005e 005f 0060 0061 0062 0063 0064 0066 0067 0068 0069 006a 006b 006c 006d 006e 006f 0071 0072 0073 0074 0075 0077 0079 007a 007b 007c 007d 007e 007f 0080 0081 0082 0083 0084 0085 0086 0087 0088 0089 008a 008c 008e 0096 0098 009e 009f 00a1 00a3 00a4 00a5 00a6 00ac 00ad 00b0 00b1 00b2 00b3 00b4 00b7 00b8 00b9 00ba 00bb 00bc 00bd 00be 00bf 00c0 00c1 00c2 00d9 00f0 MSC (0004): 0004 I think, that half of solution of this problem is to develop new keylayout file and put it to */system/usr/keychars*. And the othe half of solution is to develop android service app, that will cover othe virtual keys, like changing tracks of media/radio player etc. And this service must start or will enabled new functions only when keyboard is connected with device. Who can help me with advice? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] ENABLED ON LOAD CHECKBOX IN EXPANDABLELIST
I'm doing an expandable list in android with checkbox, I did correctly this, but now I'd like that some checkbox appear checked (on true). I did something, but it isn't right becouse the findviewbyid return null. I follow this example http://mylifewithandroid.blogspot.com/2010/02/expandable-lists-and-check-boxes.html I did it : private List createChildList() { ArrayList result = new ArrayList(); // /* each group need each HashMap-Here for each group we have 3 // subgroups */ secList = new ArrayList(); for (UserDetail user : userList) { HashMap child = new HashMap(); child.put(Sub Item, user.getName()); Log.e(ScrumConstants.TAG, + user.getName()); chekbox = (CheckBox) findViewById(R.id.check1); chekbox.toggle() secList.add(child); } Can someone 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-developers@googlegroups.com To unsubscribe from this group, 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] serverSocket.accept();
Why, in my android code ServerSocket ss=new ServerSocket(8085); //works till here Socket s=ss.accept(); // block here why my code get blocked here at accept() call, can any one gave me a solution, When i make my android device as client my Java code as Server it works, but does not work in reverse way. please 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-developers@googlegroups.com To unsubscribe from this group, 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] ExpandableListView and hiding the indicator on empty groups
I struggled with this as I see others have done. I ended up getting around it by doing this: Defining a custom drawable for setGroupIndicator(): ?xml version=1.0 encoding=utf-8? selector xmlns:android=http://schemas.android.com/apk/res/android; item android:drawable=@android:color/transparent android:state_expanded=true android:state_empty=true / item android:drawable=@drawable/expander_ic_maximized android:state_expanded=true/ item android:drawable=@drawable/expander_ic_minimized/ /selector Those expander_ic_ images are from the Android source. Now all I have to do is set the empty group item as expanded, even they it doesn't have children, and the indicator is gone. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Zoom Gallery Element
I was catching Events based on the Action (for example: getAction() == MotionEvent.ACTION_DOWN) and passing event to gallery by return super.onTouchEvent(event); or passing event to the ImageView by just getting selected item and pass the specific event like ACTION_UP On Saturday, July 23, 2011 5:06:50 PM UTC+6, Süleyman Çalık wrote: Hi, I want to pinch zoom images in a galley view. But when i handle onTouchEvent method, it prevents gallery scroll. I tried ImageView and Webview but both prevents gallery scroll if i override on touchEvent methods for zooming. What must i do? Thank you for your help. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Internal Memory unmounted every time the device starts problem
I've recently bought a JXD S601 device. It worked properly for a few days while I was adding some games and apps for it. CPU HARDWARE: AMLOGIC MESON3 8726M SKT SH AML8726-M3 REF F 02 (specific board in use) CPU MODEL: ARM v7 (VFPv3, NEON) CPU FREQUENCY 300.0 ~ 600.0 MHz Display: 480-272px GPU ARM Mali-400 MP 1GB NAND 397.5 MB RAM, ~220 MB Available 2GB internal Android 2.3.4 build: MID_PSP.wifi.20120105 kernel: 2.6.34 That is what benchmark showed while it was working. Both 1GB of a faster internal NAND, and some 2 GB of additional internal memory. When the device is plugged into the USB, I used to be able to access the device memory + my micro SD card. Now, once I start Android, I get a notice Internal storage safe to remove. Internal storage safely stopped.. If I try to start File Manager, for example, it only shows SD Card which is my Micro SD card. If I take out the micro sd, it only shows SD Card but the folder is completely empty. When it was working normally it showed: Internal Memory SD Card As folder structure. Now the first is missing. If I go to android settings storage It shows the SD card properly if I put one in. It shows Internal NAND flash Total space Unavailable Available space Unavailable Erase internal NAND flash (tried this, it did not make any changes at all, probably because the NAND flash is unmounted and there's no option to mount it back). Internal storage Available space 374 This internal storage is not accessible except with ADB software. But I tried this tutorial: (can't post links so please Google Missing internal flash memory and SD card does not mount and check the first result on android.stackexchange site) and it did not solve the problem. mkdosfs -F 32 /dev/block/vold/31:8/ I don't have 31:8 but some 200:32 and etc, I tried to use the command for any (all) of the 4, but all returned an error in ADB: This is not a folder. The manufacturer, JXD, has given an update. This would be useful, after flashing the system I could again have access to the normal function, as whatever the error is, 99% the error is in system, possibly corrupted after some program (I'm new to the Android systems, not sure). I downloaded the update from the JXD site Download section (filename S601 0229en.rar) But it is missing some files. All I have is the 2 docx documents, update.zip and uImage_recovery. The tutorial (upgrade method docx document) shows clearly that I need to have factory update aml, uboot aml, and uImage files as well. I don't have them in my update so I can't follow the instructions and put them on SD Card. I tried to follow the instruction anyways, but it says that those files are missing and cannot proceed. I've contacted the manufacturer by E-mail and asked them to send me those files, but I'm not sure if I will ever get a reply. So now if I plugin the device to the computer without SD card, there are 2 drives, but I can't access any of them. With SD card, the first drive is my SD card and I can only access it, but not the internal storage. Any helpful answers would be utmost appreciated. Thanks for reading the post. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] extracting wifi frames
hello everybody. I need to extract some fields from wifi frames. I`m using wifimanager class and it only supplies SSID, BSSID and RSSI. Is there any class to obtain a raw frame from a Wifi access point? 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] source of Runkeeper api
well im interesed on know the source of that api. i may pay something for that -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Simple XML Error
Not sure why but below is my layout to get ads at the bottom of my mapview via positionview. It took a bit of fiddling to get it to work and I moved the zoom buttons to the top. ?xml version=1.0 encoding=utf-8? RelativeLayout xmlns:android=http://schemas.android.com/apk/res/android; android:id=@+id/map_layout android:layout_width=match_parent android:layout_height=match_parent android:orientation=vertical LinearLayout android:id=@+id/home_layout android:layout_width=fill_parent android:layout_height=wrap_content android:orientation=vertical com.gook.main.PositionView android:id=@+id/map style=@style/mapView android:layout_width=fill_parent android:layout_height=match_parent android:apiKey=@string/google_map_key android:clickable=true android:longClickable=true /com.gook.main.PositionView ZoomControls android:id=@+id/zoomControlz android:layout_width=wrap_content android:layout_height=wrap_content / /LinearLayout LinearLayout android:id=@+id/ad_layout android:layout_width=fill_parent android:layout_height=wrap_content android:layout_alignBottom=@+id/home_layout android:layout_alignParentBottom=true android:gravity=bottom com.google.ads.AdView xmlns:googleads= http://schemas.android.com/apk/lib/com.google.ads; xmlns:ads=http://schemas.android.com/apk/res/com.gook.main.Gook android:id=@+id/ad android:layout_width=0dip android:layout_height=wrap_content android:layout_weight=1 googleads:adSize=BANNER googleads:adUnitId=@string/admob_id android:gravity=bottom / /LinearLayout /RelativeLayout Peter On Sun, Mar 18, 2012 at 1:21 PM, CaRRtel Industres carrtelindustr...@gmail.com wrote: what's wrong with the ads size? My current code still has the same error LinearLayout android:layout_width=fill_parent android:id=@+id/ad_layout android:layout_height=wrap_content android:gravity=bottom android:layout_alightParentBottom=true com.google.ads.AdView xmlns:ads= http://schemas.android.com/apk/res/com.carrtelind.truecolors; android:id=@+id/ad android:layout_width=fill_parent android:layout_height=wrap_content ads:adUnitId=a14dbba084368db android:gravity=bottom / /LinearLayout On Sunday, March 18, 2012 5:10:49 AM UTC-5, oldnew wrote: googleads:adSize 2012/3/18 CaRRtel Industres carrtelindustr...@gmail.com Could someone please tell me why i get this error. error: Error parsing XML: junk after document element I am attempting to include ads at the bottom of my app and I can't figure out this problem. LinearLayout android:layout_width=fill_**parent android:id=@+id/ad_layout android:layout_height=wrap_**content android:gravity=bottom android:layout_**alightParentBottom=true com.google.ads.AdView android:id=@+id/ad android:layout_width=fill_**parent android:layout_height=wrap_**content googleads:adSize=BANNER googleads:adUnitId=@string/**admob_id android:gravity=bottom / /LinearLayout 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 android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+**unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/**group/android-developers?hl=enhttp://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] MultiThreadSQLiteOpenHelper
Hello, I have written MultiThreadSQLiteOpenHelper which is an enhanced SQLiteOpenHelper for Android applications where several threads might open and close the same sqlite database. Instead of calling close method, threads ask for closing the database, thus preventing a thread from performing a query on a closed database. If each thread asked for closing, then a close is actually performed. Each activity or thread (ui-thread and user-threads) performs an open call on database when resuming, and asks for closing the database when pausing or finishing. Source code and samples available here: https://github.com/d4rxh4wx/MultiThreadSQLiteOpenHelper ref: http://stackoverflow.com/questions/530/ok-to-have-one-instance-of-sqliteopenhelper-shared-by-all-activities-in-an-andro I would be glad to have your feedbacks. d4rxh4wx -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How can we get the width and height of a android.graphics.Path object
How can we get the width and height of a android.graphics.Path object -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Recording High Frequencies
Hi Aledis, I assume that data path of your use-case is like following: MediaRecoder = AMR_WB encoder = AudioFlinger = Codec on plarform = Mic; Now, I get some question for you: 1). Does AMR_WB support samplerate above 34kHz (17 x 2 kHz)? 2). Does AudioFlinger apply the samplerate above 34kHz (17 x 2 kHz)? 3). Does Codec Chip apply the samplerate above 34kHz for recording? In a word, you must ensure the samplerate of all data path is above 34kHz, in order to get what you want. Then some suggestion: 1). Use the format of PCM (RAW audio data) to check if you can get data above 34kHz; Remember set the samplerate to 44.1kHz if you can set. 2). Check if AMR_WB support above 34kHz or not? (I'm don't know AMR, sorry for this :) ) Good Luck! Libin Luo On 3月13日, 下午4时06分, Aledis lucilu@gmail.com wrote: Hello, I need to record frequencies about 17kHz. I'm using MediaRecorder like this: recorder = new MediaRecorder(); recorder.setAudioSource(MediaRecorder.AudioSource.MIC); recorder.setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP); recorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_WB); When I analyze the recorded sound, 17kHz frequencies aren't there, its like the phone has a low pass filter that eliminates these frequencies. I think is not a problem of the frequency response of the microphone. Anybody knows how can I record these high frequencies?? How can I 'deactivate' the filters or whatever that cuts off high frequencies?? Note that there is a project called Zoosh (http://venturebeat.com/ 2011/06/19/narattes-zoosh-enables-nfc-with-just-a-speaker-and- microphone/) where any two mobile phones can comunicate via ultrasounds, so I'm supposing any mobile phone can record ultrasounds. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 using Ksoap2
looks like you forgot to add Internet permission in the manifest On Sunday, March 18, 2012 7:03:08 PM UTC+1, ga...@deanblakely.com wrote: I'm trying to see if it is feasible to access .Net WCF SOAP services from an android client. I found a post at http://naveenbalani.com/index.php/2011/01/invoke-webservices-from-android/comment-page-1/#comment-13485 That shows how to accomplish this using a library named Ksoap2. I'm pretty sure I followed all of the instructions however I end up with the following error: java.net.UnknownHostException: naveenbalani.com Any Idea what might be wrong? a jpg of my run config is at http://dl.dropbox.com/u/39662979/run config.jpg http://dl.dropbox.com/u/39662979/runconfig.jpg a zip of the project is at http://dl.dropbox.com/u/39662979/AndroidClientService.zip The source code is pasted below along with the console log (much of which I don't understand) thanks, Gary Blakely package org.android.webservice.client.samples; import org.ksoap2.SoapEnvelope; import org.ksoap2.serialization.SoapObject; import org.ksoap2.serialization.SoapSerializationEnvelope; import org.ksoap2.transport.HttpTransportSE; import android.app.Activity; import android.os.Bundle; import android.widget.TextView; public class AndroidClientService extends Activity { private static final String SOAP_ACTION = http://www.naveenbalani.com/ webservices/WassupAndroidService/todaysMessagehttp://www.naveenbalani.com/webservices/WassupAndroidService/todaysMessage; private static final String OPERATION_NAME = todaysMessage; private static final String WSDL_TARGET_NAMESPACE = http:// www.naveenbalani.com/webservices/WassupAndroidService/; private static final String SOAP_ADDRESS = http://naveenbalani.com/ WassupAndroid.asmx; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); TextView textView = new TextView(this); setContentView(textView); SoapObject request = new SoapObject(WSDL_TARGET_NAMESPACE, OPERATION_NAME); SoapSerializationEnvelope envelope = new SoapSerializationEnvelope( SoapEnvelope.VER11); envelope.dotNet = true; envelope.setOutputSoapObject(request); HttpTransportSE httpTransport = new HttpTransportSE(SOAP_ADDRESS); try { httpTransport.call(SOAP_ACTION, envelope); Object response = envelope.getResponse(); textView.setText(response.toString()); } catch (Exception exception) { textView.setText(exception.toString()); } } } [2012-03-18 10:45:41 - AndroidClientService] Dx warning: Ignoring InnerClasses attribute for an anonymous inner class (org.ksoap2.transport.KeepAliveHttpsTransportSE$1) that doesn't come with an associated EnclosingMethod attribute. This class was probably produced by a compiler that did not target the modern .class file format. The recommended solution is to recompile the class from source, using an up-to-date compiler and without specifying any -target type options. The consequence of ignoring this warning is that reflective operations on this class will incorrectly indicate that it is *not* an inner class. [2012-03-18 10:45:45 - AndroidClientService] -- [2012-03-18 10:45:45 - AndroidClientService] Android Launch! [2012-03-18 10:45:45 - AndroidClientService] adb is running normally. [2012-03-18 10:45:45 - AndroidClientService] Performing org.android.webservice.client.samples.AndroidClientService activity launch [2012-03-18 10:45:45 - AndroidClientService] Automatic Target Mode: Preferred AVD '233_avd' is not available. Launching new emulator. [2012-03-18 10:45:45 - AndroidClientService] Launching a new emulator with Virtual Device '233_avd' [2012-03-18 10:45:48 - Emulator] DNS server name 'ns15.unitechost.in' resolved to 69.10.57.50:55 [2012-03-18 10:45:51 - Emulator] emulator: WARNING: Unable to create sensors port: Unknown error [2012-03-18 10:45:51 - AndroidClientService] New emulator found: emulator-5554 [2012-03-18 10:45:51 - AndroidClientService] Waiting for HOME ('android.process.acore') to be launched... [2012-03-18 10:46:35 - AndroidClientService] HOME is up on device 'emulator-5554' [2012-03-18 10:46:35 - AndroidClientService] Uploading AndroidClientService.apk onto device 'emulator-5554' [2012-03-18 10:46:35 - AndroidClientService] Installing AndroidClientService.apk... [2012-03-18 10:46:53 - AndroidClientService] Success! [2012-03-18 10:46:53 - AndroidClientService] Starting activity org.android.webservice.client.samples.AndroidClientService on device emulator-5554 [2012-03-18 10:46:55 - AndroidClientService] ActivityManager: Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=org.android.webservice.client.samples/.AndroidClientService } -- You received this message because you are subscribed to the Google Groups
[android-developers] onTouchEvent never called within a thread
Hello everyone ! I'm experiencing some issue with a game I'm working on. I'm using a SurfaceView linked with a thread to draw on it but when using a thread as follows, my view onTouchEvent method never gets called. public void run() { Canvas c; while(_run) { c = null; c = _surfaceHolder.lockCanvas(); if(c != null) { _view.onDraw(c); _surfaceHolder.unlockCanvasAndPost(c); } } } I've no idea how to fix that anyway… I've tried not using a thread and using a View instead but then I couldn't find something convenient to refresh regularly my canvas. Calling invalidate() in onTouchEvent() does not render very well (remember that I'm working on a game so…) and using postDelayed worked but then onTouchEvent seem to be called only once. Hope you can help me. Thanks a lot ! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Want to pick it from ListPreference but cant
i want to pick an item into an intent ive tried. i.putExtra(Intent.EXTRA_TEXT, (settings).getStringArray(Problem,getStringArray(R.array.situations))); but that does not work. any ideas/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Null exception: No authentication header information - even setting .setUserToken(auth_token)
I have the below method: public String tryGoogleAuthentication(String auth_token){ ContactsService contactsService = new ContactsService(.); contactsService.setUserToken(auth_token); IFeed feed = null; try { feed = contactsService.getFeed(new URL(https://www.google.com/m8/feeds/ contacts/default/full?max-results=1), ContactFeed.class); } catch (IOException e) { e.printStackTrace(); return CONST.GOOGLE_AUTH_INVALID_TOKEN; } catch (ServiceException e) { e.printStackTrace(); return CONST.GOOGLE_AUTH_INVALID_TOKEN; } catch (NullPointerException e) { e.printStackTrace(); return CONST.GOOGLE_AUTH_INVALID_TOKEN; } if (feed == null) return ; String externalId = feed.getId(); IPerson person = feed.getAuthors().get(0); String email = person.getEmail(); String name = person.getName(); String nameLang = person.getNameLang(); System.out.println(externalId: + externalId); System.out.println(email: + email); System.out.println(name: + name); System.out.println(nameLang: + nameLang); return CONST.STATUS_OK; } and I get the error: java.lang.NullPointerException: No authentication header information at com.google.gdata.util.AuthenticationException.initFromAuthHeader(AuthenticationException.java:96) at com.google.gdata.util.AuthenticationException.init(AuthenticationException.java:67) at com.google.gdata.client.http.HttpGDataRequest.handleErrorResponse(HttpGDataRequest.java:600) at com.google.gdata.client.http.GoogleGDataRequest.handleErrorResponse(GoogleGDataRequest.java:563) at com.google.gdata.client.http.HttpGDataRequest.checkResponse(HttpGDataRequest.java:552) at com.google.gdata.client.http.HttpGDataRequest.execute(HttpGDataRequest.java:530) at com.google.gdata.client.http.GoogleGDataRequest.execute(GoogleGDataRequest.java:535) at com.google.gdata.client.Service.getFeed(Service.java:1135) at com.google.gdata.client.Service.getFeed(Service.java:998) at com.google.gdata.client.GoogleService.getFeed(GoogleService.java:631) at com.google.gdata.client.Service.getFeed(Service.java:1017) at ro.servlet.data.ClientAuthenticator.tryGoogleAuthentication(ClientAuthenticator.java:96) Please tell what shoud I set to contactsService(except setUserToken) in order to work proper? I really need to finish this task, so please, if anyone knows how this can be fixed, help me ! Thank you, Bogdan -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] OnTouchListener with multiple views problem
Hi, I have a problem I can't solve. I've dynamically configured multiple views with the same OnTouchListener After I finish moving one view (ACTION_UP and return false), and trying to touch and move other view, the OnTouch method is called with the same first view as parameter, and that view is jumping to where my finger is How can I tell android I've finished with this view when the ACTION_UP is called? Thanks a lot! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Fragment not resumed when reappearing on top of a back stack
Hi, I have an issue with fragment lifecycle and the fragment back stack. I'm pushing two fragments A and B onto the stack, both display a view of the underlying data model. Fragment B will alter the model, and will then be popped from the stack, causing A to reappear. What I expected is that at this point, fragment A will receive an onResume lifecycle callback, similar to an activity that is being resumed after another one disappears. However, this does not seem to be the case. What I'm trying to achieve is to refresh controls in fragment A pertinent to parts of the model that fragment B altered, like for instance a ListAdapter. As a workaround, I can create a callback interface for fragment B, which would allow the hosting activity to manually call some kind of refresh method on my fragment A, however I don't much like it, since I have to find the fragment by ID and typecast the fragment to the fragment A class. Also introducing an extra method for something that should IMHO be covered by the lifecycle is rather unappealing. Am I overlooking something here? Would love some input from Dianne or Romain, if possible. :-) Regards, Alex -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Thread started inside Service is killed?
Hi, I created a service to read information from the serial port. I start a thread that actually does all the reading from the serial port. It runs for about 10 minutes and then it just stops. No exceptions thrown, no errors on logcat. The question is - how i can make sure that the thread keeps running? Another solution was to do it with a handler and run the read from serial port every second. Unfortunately that blocked the whole application and it was hanging. I do create a WakeLock on service create, so it doesnt stop because of device being locked. If someone has any idea how to make it work Id be very greatful. So basically i need to make service that constantly reads from serial port. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] documentBuilder.parse fails under android 4.0.3
Hello, I'm new to android but not to java and now facing an odd problem. Parsing of the same xml document works fine on jdk but fails on android. I need to find a solution to build a Document object, any workaround is appreciated. BR toki - This throws a SAXException - int rID = getResources().getIdentifier(tki.andro:raw/hbciplus, null, null); InputStream syntaxStream = getResources().openRawResource(rID); DocumentBuilderFactory dbf=DocumentBuilderFactory.newInstance(); dbf.setIgnoringComments(true); dbf.setNamespaceAware(true); dbf.setValidating(false); DocumentBuilder db = dbf.newDocumentBuilder(); //final AssetManager assetManager = ActivitySingleton.getInstance().currentActivity.getAssets(); Document syntax = db.parse(syntaxStream); // -- here the exception is thrown syntaxStream.close(); - This test works: jdk 1.6 - public class ParserTest { public static void main(String args[]) throws ParserConfigurationException, SAXException, IOException { InputStream syntaxStream = new FileInputStream(new File(/Users/ toki/Workspace/AndroidTest/res/raw/hbciplus.xml)); DocumentBuilderFactory dbf=DocumentBuilderFactory.newInstance(); dbf.setIgnoringComments(true); dbf.setNamespaceAware(true); dbf.setValidating(false); DocumentBuilder db = dbf.newDocumentBuilder(); //final AssetManager assetManager = ActivitySingleton.getInstance().currentActivity.getAssets(); Document syntax = db.parse(syntaxStream); syntaxStream.close(); System.out.println(success); } } -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] spinner
Dear All, Let me know how to change the spinner list color when i click the spinner list. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] What's the pros for using webview instead of native client UI?
Hi, I'm quite confused with the usage of webview. You could implement the same UI either by just a webview or xml + native client UI widgets. So what's the pros and cons for web view? When to use it? The only benefit I could see about webview is that you can save some time when doing cross-platform developing. Thx -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] hello for all
i thank android for all thing in android but i'm looking for android with arabic language ,i mean i can read and write arabic ,becouse i see all language in android but ARABIC i dont fond it. WHY i hope you answer me 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] Multiple views in a tab - how?
Hello! I´m making a web browser application for Android and I´m having some serious problems with the views. My aim is to have 3 tabs with identical content but independant from each other (so that you can visit three different web sites at the same time, one per tab). Screenshot: imgur: the simple image sharer Below the TabHost, I want it to be a small panel with a EditText (searchfield) and a few buttons to the left and the right of the searchfield. Below the panel I want it to be a WebView. As it is now, I have three tabs with three independant WebViews, but I can´t solve adding the panel above the WebView. The Panel is made in xml and the WebView is created in java. As you may notice in the following code I´m thinking about making my own CustomView but I don´t really now if it´s a good idea and how to do it properly. And then where do I put my OnClicks for the panelbuttons? Please help me with at least some directions! Code: setupTab(new WebView(this), 1); setupTab(new WebView(this), 2); setupTab(new WebView(this), 3); private void setupTab(final View view, final String tag) { View tabview = createTabView(mTabHost.getContext(), tag); TabSpec ourSpec = mTabHost.newTabSpec(tag).setIndicator(tabview) .setContent(new TabContentFactory() { public View createTabContent(String tag) { return new CustomView(ExampleActivity.this); } }); mTabHost.addTab(ourSpec); } private static View createTabView(final Context context, final String text) { View view = LayoutInflater.from(context) .inflate(R.layout.tabs_bg, null); return view; } -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Global touch events listener
Did you ever find a way to do this? On Friday, March 27, 2009 5:16:34 PM UTC-4, el Nino wrote: What I want to achieve is either to register a system-wide touch listener service or draw a window to capture touch events , handle them and dispatch to the underlying windows. Is there a way to forward a touch event to the underlying window, say, if the top window is transparent ? Something like FLAG_NOT_TOUCH_MODAL in WindowManager.LayoutParams but when the window is fullscreen. 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] Same permission defined in multiple applications
I am developing two applications that will share functionality via their activities. I would like to only allow applications signed with the same certificate to start these activities. My plan is to create a custom permission with protection level of signature and apply that permission to exported activities in both applications. Either application can be installed first, so I will define the permission in both application manifests. Are there problems with defining the same permission in multiple applications? I plan to release both applications on the Android market. Thank you, Ryan -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Handlers and Timers never works for 24 hours task
I have a requirement to run a task periodically after 24 hours and made use of *postDelayed **(Runnablehttp://developer.android.com/reference/java/lang/Runnable.html r, long delayMillis) *. But this seems to fail since it never worked even for 4 hours. Now I have made use of Timer and TimerTask and used the api *schedule (TimerTask task, long delay). *This worked fine if the task was posted for 8 hours. My next experiment was to schedule the task after 16 hours but even this seems to fail. Is there any delay constraints in Android OS for scheduling a task? Thanks, Tarak -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Accessing computer filesystem from Android application
Is there any way in which I can write a file on my PC filesystem from an Android application when the Android mobile device is connected to the PC by USB connection . ie : My mobile device is connected to the PC via a USB cable . I run my application on my mobile and it creates a file on my PC -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Requsition
How to get the international maritime boundary line between India and Srilanka.I have gotten the google map in my project. How I measure the distance from Tamilnadu to its maritime cross line. Kindly give the instructions!.. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 repeat the control
Hi fellas, im new to android developing . im using app inventor... in that blocks editor is it possible to repeat the control block or any action for certain period of time.. for example if i want alert the user for every five minutes? if there is a way plz explain it...! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Same permission defined in multiple applications
On Sun, Mar 18, 2012 at 5:50 PM, Ryan Reeves rreeves...@gmail.com wrote: I am developing two applications that will share functionality via their activities. I would like to only allow applications signed with the same certificate to start these activities. My plan is to create a custom permission with protection level of signature and apply that permission to exported activities in both applications. Either application can be installed first, so I will define the permission in both application manifests. Are there problems with defining the same permission in multiple applications? I plan to release both applications on the Android market. AFAIK, that should work fine. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 4.1 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Handlers and Timers never works for 24 hours task
On Sun, Mar 18, 2012 at 3:07 PM, Tarak tsri...@ipass.com wrote: I have a requirement to run a task periodically after 24 hours and made use of postDelayed (Runnable r, long delayMillis) . Do not do that. Use AlarmManager for periodic tasks like this. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 4.1 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Accessing computer filesystem from Android application
On Sat, Mar 17, 2012 at 1:39 AM, urbanboy92 urbanbo...@gmail.com wrote: Is there any way in which I can write a file on my PC filesystem from an Android application when the Android mobile device is connected to the PC by USB connection . No, sorry. The PC is the host, not the Android device. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 4.1 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Internal Memory unmounted every time the device starts problem
This list is for developing applications with the Android SDK. Please contact your device manufacturer for technical support with their device. On Sun, Mar 18, 2012 at 1:22 PM, MistrJohn ivdo...@gmail.com wrote: I've recently bought a JXD S601 device. It worked properly for a few days while I was adding some games and apps for it. CPU HARDWARE: AMLOGIC MESON3 8726M SKT SH AML8726-M3 REF F 02 (specific board in use) CPU MODEL: ARM v7 (VFPv3, NEON) CPU FREQUENCY 300.0 ~ 600.0 MHz Display: 480-272px GPU ARM Mali-400 MP 1GB NAND 397.5 MB RAM, ~220 MB Available 2GB internal Android 2.3.4 build: MID_PSP.wifi.20120105 kernel: 2.6.34 That is what benchmark showed while it was working. Both 1GB of a faster internal NAND, and some 2 GB of additional internal memory. When the device is plugged into the USB, I used to be able to access the device memory + my micro SD card. Now, once I start Android, I get a notice Internal storage safe to remove. Internal storage safely stopped.. If I try to start File Manager, for example, it only shows SD Card which is my Micro SD card. If I take out the micro sd, it only shows SD Card but the folder is completely empty. When it was working normally it showed: Internal Memory SD Card As folder structure. Now the first is missing. If I go to android settings storage It shows the SD card properly if I put one in. It shows Internal NAND flash Total space Unavailable Available space Unavailable Erase internal NAND flash (tried this, it did not make any changes at all, probably because the NAND flash is unmounted and there's no option to mount it back). Internal storage Available space 374 This internal storage is not accessible except with ADB software. But I tried this tutorial: (can't post links so please Google Missing internal flash memory and SD card does not mount and check the first result on android.stackexchange site) and it did not solve the problem. mkdosfs -F 32 /dev/block/vold/31:8/ I don't have 31:8 but some 200:32 and etc, I tried to use the command for any (all) of the 4, but all returned an error in ADB: This is not a folder. The manufacturer, JXD, has given an update. This would be useful, after flashing the system I could again have access to the normal function, as whatever the error is, 99% the error is in system, possibly corrupted after some program (I'm new to the Android systems, not sure). I downloaded the update from the JXD site Download section (filename S601 0229en.rar) But it is missing some files. All I have is the 2 docx documents, update.zip and uImage_recovery. The tutorial (upgrade method docx document) shows clearly that I need to have factory update aml, uboot aml, and uImage files as well. I don't have them in my update so I can't follow the instructions and put them on SD Card. I tried to follow the instruction anyways, but it says that those files are missing and cannot proceed. I've contacted the manufacturer by E-mail and asked them to send me those files, but I'm not sure if I will ever get a reply. So now if I plugin the device to the computer without SD card, there are 2 drives, but I can't access any of them. With SD card, the first drive is my SD card and I can only access it, but not the internal storage. Any helpful answers would be utmost appreciated. Thanks for reading the post. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 4.1 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] what will happen when android (application layer) is crushed and modem (firmware ) layer is still alive
Dear Experts: When android framework is not response to user and it hangs. does this considered it is crashing on android and modem part is alive ( there are two layers- modem which is called firmware and android - application layer ). Thanks 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
Re: [android-developers] Application Recycling
Thank you all for your replies. I have tested each of my activities and their state saving using the rotate approach. But what I'm trying to test is the state of my entire application, not my activities. For example: If in activity 1 I initialize a static field to a value. Then lock the device on activity 5, I then return to my application 4 hours later, during which time the device reclaimed my application for memory. I then restore my app and am looking at activity 5, I then tap something and navigate to activity 6, once there the activity attempts to access the field initialized in activity 1, but since activity 1 hasn't ran since the application was restored I get a null reference exception. I realize this is a bad technique--and I want to be able to recreate application recycling in order to diagnose a similar issue, so that I may resolve it, but am unable to. Any ideas on how I can for application recycling, so that I can test this without having to wait 4 hours in between each test? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Simple XML Error
Special thanks too Peter and TreKing. I got mine fixed. On Sunday, March 18, 2012 1:44:30 AM UTC-5, CaRRtel Industres wrote: Could someone please tell me why i get this error. error: Error parsing XML: junk after document element I am attempting to include ads at the bottom of my app and I can't figure out this problem. LinearLayout android:layout_width=fill_parent android:id=@+id/ad_layout android:layout_height=wrap_content android:gravity=bottom android:layout_alightParentBottom=true com.google.ads.AdView android:id=@+id/ad android:layout_width=fill_parent android:layout_height=wrap_content googleads:adSize=BANNER googleads:adUnitId=@string/admob_id android:gravity=bottom / /LinearLayout 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] Google Maps are very old on Android
I'm going through some of the tutorials and just finished HelloGoogleMaps tutorial. It works alright but I notice that the map is very old - much older than on Google.com. Looking where I live it's at least 7 years old. On Google.com it's no more than 2 years old. Why would this be? the main.xml is... com.google.android.maps.MapView xmlns:android=http://schemas.android.com/apk/res/android; android:id=@+id/mapview android:layout_width=fill_parent android:layout_height=fill_parent android:clickable=true android:apiKey=removedmyapikey/ thanks, Gary -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] ListFragment fails on setContentView
Hey thanks for jumping in Mark. So no matter what subclass of fragment Im using I always call it from xml using just fragment ? I switched my code up using that but now I get an error in my logcat complaining about a resource exception resource not found on my listview. On Sunday, March 18, 2012 4:56:24 AM UTC-7, Mark Murphy (a Commons Guy) wrote: ListFragment is not a valid element. That says hey, go find android.view.ListFragment and use it here, and there is no such class. You add fragments to a layout via fragment: http://developer.android.com/guide/topics/fundamentals/fragments.html#Adding On Sun, Mar 18, 2012 at 7:29 AM, Jim Andresakis jimandresa...@gmail.com wrote: Ive been trying to get a listview working within a fragment all day. I dont know why but for some reason the way Im trying to do it, it just never wants to inflate the view. Im using actionbarsherlock if that makes a difference but I dont think so. Heres the class where my layout fails: public class GraffSearch extends FragmentActivity implements ActionBar.TabListener{ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.searchlayout);//-fails here final ActionBar ab = getSupportActionBar(); for (int i = 1; i 4; i++) { ab.addTab(ab.newTab().setText(Tab + i).setTabListener(this)); } ab.show(); if (ab.getNavigationMode() != ActionBar.NAVIGATION_MODE_TABS) { ab.setNavigationMode(ActionBar.NAVIGATION_MODE_TABS); } } @Override public void onTabReselected(Tab tab, FragmentTransaction ft) { // TODO Auto-generated method stub } @Override public void onTabSelected(Tab tab, FragmentTransaction ft) { //Toast.makeText(this, tabs work +tab.getPosition()+ user id is +avrid, Toast.LENGTH_LONG).show(); SearchListFrag fragment = (SearchListFrag) getSupportFragmentManager().findFragmentById(R.id.searchfrag); //fragment.updateUrl(tab.getPosition(), avrid); } @Override public void onTabUnselected(Tab tab, FragmentTransaction ft) { // TODO Auto-generated method stub } } and heres the layout were I call my fragment. ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android= http://schemas.android.com/apk/res/android; android:layout_width=match_parent android:layout_height=match_parent android:orientation=vertical ListFragment android:id=@+id/searchfrag android:layout_width=0dip android:layout_height=match_parent android:name=graffit.main.SearchListFrag android:layout_weight=1/ListFragment /LinearLayout Ive tried a few different setups going back and forth from using a regular fragment and a listfragment with the same result. Heres the logcat. 03-18 03:38:49.363: E/AndroidRuntime(8385): FATAL EXCEPTION: main 03-18 03:38:49.363: E/AndroidRuntime(8385): java.lang.RuntimeException: Unable to start activity ComponentInfo{graffit.main/graffit.main.GraffSearch}: android.view.InflateException: Binary XML file line #9: Error inflating class ListFragment 03-18 03:38:49.363: E/AndroidRuntime(8385): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1696) 03-18 03:38:49.363: E/AndroidRuntime(8385): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1716) 03-18 03:38:49.363: E/AndroidRuntime(8385): at android.app.ActivityThread.access$1500(ActivityThread.java:124) 03-18 03:38:49.363: E/AndroidRuntime(8385): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:968) 03-18 03:38:49.363: E/AndroidRuntime(8385): at android.os.Handler.dispatchMessage(Handler.java:99) 03-18 03:38:49.363: E/AndroidRuntime(8385): at android.os.Looper.loop(Looper.java:130) 03-18 03:38:49.363: E/AndroidRuntime(8385): at android.app.ActivityThread.main(ActivityThread.java:3806) 03-18 03:38:49.363: E/AndroidRuntime(8385): at java.lang.reflect.Method.invokeNative(Native Method) 03-18 03:38:49.363: E/AndroidRuntime(8385): at java.lang.reflect.Method.invoke(Method.java:507) 03-18 03:38:49.363: E/AndroidRuntime(8385): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839) 03-18 03:38:49.363: E/AndroidRuntime(8385): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597) 03-18 03:38:49.363: E/AndroidRuntime(8385): at dalvik.system.NativeStart.main(Native Method) 03-18 03:38:49.363: E/AndroidRuntime(8385): Caused by: android.view.InflateException: Binary XML file line #9: Error inflating class ListFragment 03-18 03:38:49.363: E/AndroidRuntime(8385): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:581) 03-18 03:38:49.363: E/AndroidRuntime(8385): at android.view.LayoutInflater.rInflate(LayoutInflater.java:623)
[android-developers] Window, WindowManager, PolicyManager classes - or - implementing a custom overlay
I'm creating a component that needs to appear above (and separate from) the existing UI, similar to the Dialog, PopupWindow and ContextMenu widgets. I'd like it to be modular and portable (again like those widgets I just mentioned), so pre-supposing a particular type of layout for the Activity's contentView isn't realistic. The component is similar in function to iOS's ActionSheet (I should stress similiar - I'm not trying for a direct port or emulation). Using the PopupWindow class I got close, but haven't found a way to animate outside of setAnimationStyle which requires an XML animation resource (which I'd like to avoid). I figured it wouldn't take a direction startAnimation invocation, but did think that I could use programmatic animations on the contentView or child views, but those fail without errors as well. In looking at the source for the Dialog and PopupWindow classes, it looks like they accomplish this using the Window and WindowManager classes, but I'm not able to find much in the way of documentation on them. In trying to clone Dialog and PopupWindow as a jumping-off point, I get errors - specifically as regards com.android.internal.policy.PolicyManager (which seems to be a core requirement, as the window is provided by the makeNewWindow method), which is entirely absent from the docs. Is there a way to leverage the approach used in those classes to accomplish what I'm describing? If not, is there another way? TYIA. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: CalendarContract on Samsung's ICS update
Perhaps one of these? http://innovator.samsungmobile.com/bbs/discussion/forum.list.do?platformId=1parentCategoryId=4categoryId=800nacode=uk On Monday, March 19, 2012 1:41:45 AM UTC+8, roee88 wrote: Thanks for the answer. I created a sample APK with the code taken directly from Google's documentation (copy-paste). Result was the same as before. How can I send it to Samsung? All I could find is customer support. On Mar 17, 8:04 am, Zsolt Vasvari zvasv...@gmail.com wrote: Here's the relevant section from the CTS that applies to the Contact Provider: Areas Covered The unit test cases cover the following areas to ensure compatibility: AreaDescription Platform Data ModelThe CTS tests the core platform data model as exposed to application developers through content providers, as documented in the SDK android.provider http://code.google.com/android/reference/android/provider/package-sum... package: contacts, browser, settings, etc. On Saturday, March 17, 2012 1:31:19 PM UTC+8, Zsolt Vasvari wrote: No, this should work as it's a public API even with their own Calendar implementation. If it doesn't, is a big issue for many apps. This error should have been caught during the CTS run. ( http://source.android.com/compatibility/cts-intro.html). I'd suggest you create the smallest app that demos this issue and: a) Send it to Samsung b) Create a bug report with the same app on b.android.com and ask Google to update the CTS to add test cases for these new APIs. On Saturday, March 17, 2012 9:49:32 AM UTC+8, Ralph Bergmann wrote: Am 16.03.12 13:51, schrieb roee88: It works fine on Galaxy Nexus and other ICS devices and ROMs. On Samsung SGSII with their recent ICS update it simply doesn't do anything. I think this happens because the SGS2 does not have the Google calendar app. Samsung use their own calendar app which does not use this new calendar api. So you can use this api but you can't see the results because there is no calendar which shows you the results. Ralph -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Bluetooth (BT) Hardware keyboard custom layout and special keys service
Hi There, The CNTL key is not existed in Android 2.x series. You'll have to dig into the OS keymap, like what you mentioned, to open these to the underlined applications. My app, 9420 Tablet keyboard (and 9420 Thai Keyboard), handls the key inputs from the HW keyboard as well beside the on-screen one. It emulates Cntl-A, Cntl-X/C/V and even overrides the sticky behavier of the SHIFT key to non-sticky. On the 9420 Thai Keyboard, it also suppots multi-tap and long-press from the HW keyboard (just to mention to show how far the customization can be done without rooting the phone) It is on the market, you can check it out, maybe it serves your purposes more or less. Frankly speaking, 9420 Thai/Tablet Keyboard is designed to be able to re-map the HW keys to any Android keyCode as long as the HW keyboard is sending out the key inputs. Best Regards, Solutikn 9420 www.solution9420.com On Mar 18, 7:30 pm, Никита Траторов nikita.win...@gmail.com wrote: https://lh3.googleusercontent.com/-junDMI1xOCI/T2XUzN_5f5I/Aq... *Good day to all developers!* I have a Bluetooth (BT) Hardware keyboard RAPOO E6300, working on my SGSII with Android 2.3.5. It is working fine, but some special keys is not mapped as expected or may not work at all, like Ctrl in Putty. For example, VolumeUp/VolumeDown keys is working, but Mute key is don't. *With help of dev.android.com I get keymap:* D:\android-sdks\platform-toolsadb shell getevent -p add device 1: /dev/input/event9 name: Broadcom Bluetooth HID events: SYN (): 0001 0004 0014 KEY (0001): 0001 0002 0003 0004 0005 0006 0007 0008 0009 000a 000b 000c 000d 000e 000f 0010 0011 0012 0013 0014 0015 0016 0017 0018 0019 001a 001b 001c 001d 001e 001f 0020 0021 0022 0023 0024 0025 0026 0027 0028 0029 002a 002b 002c 002d 002e 002f 0030 0031 0032 0033 0034 0035 0036 0037 0038 0039 003a 003b 003c 003d 003e 003f 0040 0041 0042 0043 0044 0045 0046 0047 0048 0049 004a 004b 004c 004d 004e 004f 0050 0051 0052 0053 0055 0056 0057 0058 0059 005a 005b 005c 005d 005e 005f 0060 0061 0062 0063 0064 0066 0067 0068 0069 006a 006b 006c 006d 006e 006f 0071 0072 0073 0074 0075 0077 0079 007a 007b 007c 007d 007e 007f 0080 0081 0082 0083 0084 0085 0086 0087 0088 0089 008a 008c 008e 0096 0098 009e 009f 00a1 00a3 00a4 00a5 00a6 00ac 00ad 00b0 00b1 00b2 00b3 00b4 00b7 00b8 00b9 00ba 00bb 00bc 00bd 00be 00bf 00c0 00c1 00c2 00d9 00f0 MSC (0004): 0004 I think, that half of solution of this problem is to develop new keylayout file and put it to */system/usr/keychars*. And the othe half of solution is to develop android service app, that will cover othe virtual keys, like changing tracks of media/radio player etc. And this service must start or will enabled new functions only when keyboard is connected with device. Who can help me with advice? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Google Maps are very old on Android
You didn't specify: android:giveMeLatestMaps=true On Monday, March 19, 2012 8:07:06 AM UTC+8, ga...@deanblakely.com wrote: I'm going through some of the tutorials and just finished HelloGoogleMaps tutorial. It works alright but I notice that the map is very old - much older than on Google.com. Looking where I live it's at least 7 years old. On Google.com it's no more than 2 years old. Why would this be? the main.xml is... com.google.android.maps.MapView xmlns:android=http://schemas.android.com/apk/res/android; android:id=@+id/mapview android:layout_width=fill_parent android:layout_height=fill_parent android:clickable=true android:apiKey=removedmyapikey/ thanks, Gary -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] webview transitions using viewflipper
So I have been working on using transitions with my webapp using viewfipper. I am using two webview called mWebView and mWebView2. I also have a viewFipper called flip. I have mWebView loading the first webpage. My code looks like this: mWebView.setWebViewClient(new FWebViewClient()); mWebView2.setWebViewClient(new SWebViewClient()); public class FWebViewClient extends WebViewClient { //Tell mWebview how to handle URL loading. @Override public boolean shouldOverrideUrlLoading(WebView view, String url) { mWebView2.loadUrl(url); return true; } @Override public void onLoadResource(WebView view, String url){ if(pg == null){ pg = new ProgressDialog(activity); pg.setMessage(Loading ); } pg.show(); } @Override public void onPageFinished(WebView view, String url){ if(pg.isShowing()) pg.dismiss(); flip.setInAnimation(slide_in); flip.setOutAnimation(slide_out); flip.setDisplayedChild(1); } } public class SWebViewClient extends WebViewClient { //Tell mWebView2 how to hand URL loading. @Override public boolean shouldOverrideUrlLoading(WebView view, String url) { mWebView.loadUrl(url); return true; } @Override public void onLoadResource(WebView view, String url){ if(pg == null){ pg = new ProgressDialog(activity); pg.setMessage(Loading ); } pg.show(); } @Override public void onPageFinished(WebView view, String url){ if(pg.isShowing()) pg.dismiss(); flip.setInAnimation(slide_in); flip.setOutAnimation(slide_out); flip.setDisplayedChild(0); } } I am thinking that when mWebView is shown and a link is clicked it will load the url on mWebView2 and then flip with switch the view to mWebView2. Then it should do the same thing to get back to mWebView. However, this is not the case. When i click a link from view mWebView it loads the url to mWebView then switches to mWebView2. Can anyone explain why this may be happening? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: documentBuilder.parse fails under android 4.0.3
You may not be new to Java, but you sure don't know how to ask a proper question. How is anyone supposed to be able to help you based on what you wrote? On Monday, March 19, 2012 2:56:47 AM UTC+8, toki wrote: Hello, I'm new to android but not to java and now facing an odd problem. Parsing of the same xml document works fine on jdk but fails on android. I need to find a solution to build a Document object, any workaround is appreciated. BR toki - This throws a SAXException - int rID = getResources().getIdentifier(tki.andro:raw/hbciplus, null, null); InputStream syntaxStream = getResources().openRawResource(rID); DocumentBuilderFactory dbf=DocumentBuilderFactory.newInstance(); dbf.setIgnoringComments(true); dbf.setNamespaceAware(true); dbf.setValidating(false); DocumentBuilder db = dbf.newDocumentBuilder(); //final AssetManager assetManager = ActivitySingleton.getInstance().currentActivity.getAssets(); Document syntax = db.parse(syntaxStream); // -- here the exception is thrown syntaxStream.close(); - This test works: jdk 1.6 - public class ParserTest { public static void main(String args[]) throws ParserConfigurationException, SAXException, IOException { InputStream syntaxStream = new FileInputStream(new File(/Users/ toki/Workspace/AndroidTest/res/raw/hbciplus.xml)); DocumentBuilderFactory dbf=DocumentBuilderFactory.newInstance(); dbf.setIgnoringComments(true); dbf.setNamespaceAware(true); dbf.setValidating(false); DocumentBuilder db = dbf.newDocumentBuilder(); //final AssetManager assetManager = ActivitySingleton.getInstance().currentActivity.getAssets(); Document syntax = db.parse(syntaxStream); syntaxStream.close(); System.out.println(success); } } -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: CalendarContract on Samsung's ICS update
This forum seems to have lots of generic topics: http://innovator.samsungmobile.com/bbs/discussion/thread.list.do?boardId=1132boardName=AndroidBoardmessageCategoryId=1categoryId=800parentCategoryId=4platformId=1nacode=uk On Monday, March 19, 2012 9:47:13 AM UTC+8, Zsolt Vasvari wrote: Perhaps one of these? http://innovator.samsungmobile.com/bbs/discussion/forum.list.do?platformId=1parentCategoryId=4categoryId=800nacode=uk On Monday, March 19, 2012 1:41:45 AM UTC+8, roee88 wrote: Thanks for the answer. I created a sample APK with the code taken directly from Google's documentation (copy-paste). Result was the same as before. How can I send it to Samsung? All I could find is customer support. On Mar 17, 8:04 am, Zsolt Vasvari zvasv...@gmail.com wrote: Here's the relevant section from the CTS that applies to the Contact Provider: Areas Covered The unit test cases cover the following areas to ensure compatibility: AreaDescription Platform Data ModelThe CTS tests the core platform data model as exposed to application developers through content providers, as documented in the SDK android.provider http://code.google.com/android/reference/android/provider/package-sum... package: contacts, browser, settings, etc. On Saturday, March 17, 2012 1:31:19 PM UTC+8, Zsolt Vasvari wrote: No, this should work as it's a public API even with their own Calendar implementation. If it doesn't, is a big issue for many apps. This error should have been caught during the CTS run. ( http://source.android.com/compatibility/cts-intro.html). I'd suggest you create the smallest app that demos this issue and: a) Send it to Samsung b) Create a bug report with the same app on b.android.com and ask Google to update the CTS to add test cases for these new APIs. On Saturday, March 17, 2012 9:49:32 AM UTC+8, Ralph Bergmann wrote: Am 16.03.12 13:51, schrieb roee88: It works fine on Galaxy Nexus and other ICS devices and ROMs. On Samsung SGSII with their recent ICS update it simply doesn't do anything. I think this happens because the SGS2 does not have the Google calendar app. Samsung use their own calendar app which does not use this new calendar api. So you can use this api but you can't see the results because there is no calendar which shows you the results. Ralph -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Handlers and Timers never works for 24 hours task
Thanks Mark. Why can't timers or handlers be used ?. There is nothing in the documentation of why timers or handlers cant be used to run tasks after 24 hours. AlarmManager is more heavy weight on the OS. The documentation says that you must acquire a WAKE lock when processing the alarm, since the device can go to sleep as soon as the Intent is processed. This behavior is also not what we really want for the application. The application has a simple requirement to run a task every 24 hours. - Tarak On Sunday, March 18, 2012 3:27:16 PM UTC-7, Mark Murphy (a Commons Guy) wrote: On Sun, Mar 18, 2012 at 3:07 PM, Tarak tsri...@ipass.com wrote: I have a requirement to run a task periodically after 24 hours and made use of postDelayed (Runnable r, long delayMillis) . Do not do that. Use AlarmManager for periodic tasks like this. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 4.1 Available! On Sunday, March 18, 2012 3:27:16 PM UTC-7, Mark Murphy (a Commons Guy) wrote: On Sun, Mar 18, 2012 at 3:07 PM, Tarak tsri...@ipass.com wrote: I have a requirement to run a task periodically after 24 hours and made use of postDelayed (Runnable r, long delayMillis) . Do not do that. Use AlarmManager for periodic tasks like this. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 4.1 Available! On Sunday, March 18, 2012 3:27:16 PM UTC-7, Mark Murphy (a Commons Guy) wrote: On Sun, Mar 18, 2012 at 3:07 PM, Tarak tsri...@ipass.com wrote: I have a requirement to run a task periodically after 24 hours and made use of postDelayed (Runnable r, long delayMillis) . Do not do that. Use AlarmManager for periodic tasks like this. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 4.1 Available! On Sunday, March 18, 2012 3:27:16 PM UTC-7, Mark Murphy (a Commons Guy) wrote: On Sun, Mar 18, 2012 at 3:07 PM, Tarak tsri...@ipass.com wrote: I have a requirement to run a task periodically after 24 hours and made use of postDelayed (Runnable r, long delayMillis) . Do not do that. Use AlarmManager for periodic tasks like this. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 4.1 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Handlers and Timers never works for 24 hours task
You might want to read up on the lifecycle of an Android app and how the system can kill it any time for any reason. On Monday, March 19, 2012 10:58:16 AM UTC+8, Tarak wrote: Thanks Mark. Why can't timers or handlers be used ?. There is nothing in the documentation of why timers or handlers cant be used to run tasks after 24 hours. AlarmManager is more heavy weight on the OS. The documentation says that you must acquire a WAKE lock when processing the alarm, since the device can go to sleep as soon as the Intent is processed. This behavior is also not what we really want for the application. The application has a simple requirement to run a task every 24 hours. - Tarak On Sunday, March 18, 2012 3:27:16 PM UTC-7, Mark Murphy (a Commons Guy) wrote: On Sun, Mar 18, 2012 at 3:07 PM, Tarak tsri...@ipass.com wrote: I have a requirement to run a task periodically after 24 hours and made use of postDelayed (Runnable r, long delayMillis) . Do not do that. Use AlarmManager for periodic tasks like this. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 4.1 Available! On Sunday, March 18, 2012 3:27:16 PM UTC-7, Mark Murphy (a Commons Guy) wrote: On Sun, Mar 18, 2012 at 3:07 PM, Tarak tsri...@ipass.com wrote: I have a requirement to run a task periodically after 24 hours and made use of postDelayed (Runnable r, long delayMillis) . Do not do that. Use AlarmManager for periodic tasks like this. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 4.1 Available! On Sunday, March 18, 2012 3:27:16 PM UTC-7, Mark Murphy (a Commons Guy) wrote: On Sun, Mar 18, 2012 at 3:07 PM, Tarak tsri...@ipass.com wrote: I have a requirement to run a task periodically after 24 hours and made use of postDelayed (Runnable r, long delayMillis) . Do not do that. Use AlarmManager for periodic tasks like this. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 4.1 Available! On Sunday, March 18, 2012 3:27:16 PM UTC-7, Mark Murphy (a Commons Guy) wrote: On Sun, Mar 18, 2012 at 3:07 PM, Tarak tsri...@ipass.com wrote: I have a requirement to run a task periodically after 24 hours and made use of postDelayed (Runnable r, long delayMillis) . Do not do that. Use AlarmManager for periodic tasks like this. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 4.1 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Handlers and Timers never works for 24 hours task
On Sun, Mar 18, 2012 at 10:58 PM, Tarak tsri...@ipass.com wrote: Thanks Mark. Why can't timers or handlers be used ?. There is nothing in the documentation of why timers or handlers cant be used to run tasks after 24 hours. AlarmManager is more heavy weight on the OS. The documentation says that you must acquire a WAKE lock when processing the alarm, since the device can go to sleep as soon as the Intent is processed. This behavior is also not what we really want for the application. The application has a simple requirement to run a task every 24 hours. Wait... this is just flat false. An alarm manager, which allows your app to safely be killed off and put away to be restarted later, that is lighter weight on the OS, than expecting that your app will constantly reside in memory on the device? This is *exactly* what an AlarmManager is for.. kris -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] extracting wifi frames
There is nothing in the SDK to do this, iirc. kris On Sun, Mar 18, 2012 at 3:18 PM, edu mas edu@gmail.com wrote: hello everybody. I need to extract some fields from wifi frames. I`m using wifimanager class and it only supplies SSID, BSSID and RSSI. Is there any class to obtain a raw frame from a Wifi access point? 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 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Layouts and Animation
I need to setup an Activity that when a certain button is pressed, a widget will be animated (slide in from bottom) onto the screen. I haven't been able to find an example of how you setup a layout to have the widget off-screen before the animation, and stay on-screen after the animation. Anyone know of an example? -- CasaDelGato Sensible Email package: https://sourceforge.net/projects/sensibleemail/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Layouts and Animation
You don't have it physically off-screen before the animation. You make it invisible when it's off screen, then make it visible when you want it to slide-in AND start the slide-in animation at the SAME TIME. Animation inAnimation = AnimationUtils.loadAnimation(this, R.anim.slide_in); inView.setVisibility(View.VISIBLE); inView.startAnimation(inAnimation); And you animation can be something like this: translate xmlns:android=http://schemas.android.com/apk/res/android; android:fromYDelta=100%p android:toYDelta=0 android:duration=@android:integer/config_longAnimTime/ On Monday, March 19, 2012 12:03:09 PM UTC+8, CasaDelGato wrote: I need to setup an Activity that when a certain button is pressed, a widget will be animated (slide in from bottom) onto the screen. I haven't been able to find an example of how you setup a layout to have the widget off-screen before the animation, and stay on-screen after the animation. Anyone know of an example? -- CasaDelGato Sensible Email package: https://sourceforge.net/projects/sensibleemail/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 using Ksoap2
FWIW I've tried using ksoap2 with wcf and it works until you get to complex classes and then it falls over on the namespaces. The best bet (if you can) is enable JSON on WCF and use GSON. Cheers, Ed On Mar 19, 4:03 am, g...@deanblakely.com g...@deanblakely.com wrote: I'm trying to see if it is feasible to access .Net WCF SOAP services from an android client. I found a post at http://naveenbalani.com/index.php/2011/01/invoke-webservices-from-and... That shows how to accomplish this using a library named Ksoap2. I'm pretty sure I followed all of the instructions however I end up with the following error: java.net.UnknownHostException: naveenbalani.com Any Idea what might be wrong? a jpg of my run config is athttp://dl.dropbox.com/u/39662979/run config.jpg a zip of the project is athttp://dl.dropbox.com/u/39662979/AndroidClientService.zip The source code is pasted below along with the console log (much of which I don't understand) thanks, Gary Blakely package org.android.webservice.client.samples; import org.ksoap2.SoapEnvelope; import org.ksoap2.serialization.SoapObject; import org.ksoap2.serialization.SoapSerializationEnvelope; import org.ksoap2.transport.HttpTransportSE; import android.app.Activity; import android.os.Bundle; import android.widget.TextView; public class AndroidClientService extends Activity { private static final String SOAP_ACTION = http://www.naveenbalani.com/ webservices/WassupAndroidService/todaysMessage; private static final String OPERATION_NAME = todaysMessage; private static final String WSDL_TARGET_NAMESPACE = http://www.naveenbalani.com/webservices/WassupAndroidService/;; private static final String SOAP_ADDRESS = http://naveenbalani.com/ WassupAndroid.asmx; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); TextView textView = new TextView(this); setContentView(textView); SoapObject request = new SoapObject(WSDL_TARGET_NAMESPACE, OPERATION_NAME); SoapSerializationEnvelope envelope = new SoapSerializationEnvelope( SoapEnvelope.VER11); envelope.dotNet = true; envelope.setOutputSoapObject(request); HttpTransportSE httpTransport = new HttpTransportSE(SOAP_ADDRESS); try { httpTransport.call(SOAP_ACTION, envelope); Object response = envelope.getResponse(); textView.setText(response.toString()); } catch (Exception exception) { textView.setText(exception.toString()); } } } [2012-03-18 10:45:41 - AndroidClientService] Dx warning: Ignoring InnerClasses attribute for an anonymous inner class (org.ksoap2.transport.KeepAliveHttpsTransportSE$1) that doesn't come with an associated EnclosingMethod attribute. This class was probably produced by a compiler that did not target the modern .class file format. The recommended solution is to recompile the class from source, using an up-to-date compiler and without specifying any -target type options. The consequence of ignoring this warning is that reflective operations on this class will incorrectly indicate that it is *not* an inner class. [2012-03-18 10:45:45 - AndroidClientService] -- [2012-03-18 10:45:45 - AndroidClientService] Android Launch! [2012-03-18 10:45:45 - AndroidClientService] adb is running normally. [2012-03-18 10:45:45 - AndroidClientService] Performing org.android.webservice.client.samples.AndroidClientService activity launch [2012-03-18 10:45:45 - AndroidClientService] Automatic Target Mode: Preferred AVD '233_avd' is not available. Launching new emulator. [2012-03-18 10:45:45 - AndroidClientService] Launching a new emulator with Virtual Device '233_avd' [2012-03-18 10:45:48 - Emulator] DNS server name 'ns15.unitechost.in' resolved to 69.10.57.50:55 [2012-03-18 10:45:51 - Emulator] emulator: WARNING: Unable to create sensors port: Unknown error [2012-03-18 10:45:51 - AndroidClientService] New emulator found: emulator-5554 [2012-03-18 10:45:51 - AndroidClientService] Waiting for HOME ('android.process.acore') to be launched... [2012-03-18 10:46:35 - AndroidClientService] HOME is up on device 'emulator-5554' [2012-03-18 10:46:35 - AndroidClientService] Uploading AndroidClientService.apk onto device 'emulator-5554' [2012-03-18 10:46:35 - AndroidClientService] Installing AndroidClientService.apk... [2012-03-18 10:46:53 - AndroidClientService] Success! [2012-03-18 10:46:53 - AndroidClientService] Starting activity org.android.webservice.client.samples.AndroidClientService on device emulator-5554 [2012-03-18 10:46:55 - AndroidClientService] ActivityManager: Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=org.android.webservice.client.samples/.AndroidClientService } -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send
[android-developers] Re: documentBuilder.parse fails under android 4.0.3
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance(); DocumentBuilder builder = factory.newDocumentBuilder(); Document doc = builder.parse(new File(fileName)); doc.getDocumentElement().normalize(); try this and use NodeList to extract data. this will works fine in 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: hello for all
android 4.0 is supporting arabic... try 4.0 devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Handlers and Timers never works for 24 hours task
Yes, the system kills the app at any time. But i have this condition being handled by rescheduling the timer after being restarted. The app was killed after 8 hours and then restarted. A timer was scheduled for the remaining 16 hours which didn't go off. The process id was the same. On Sunday, March 18, 2012 8:10:31 PM UTC-7, Zsolt Vasvari wrote: You might want to read up on the lifecycle of an Android app and how the system can kill it any time for any reason. On Monday, March 19, 2012 10:58:16 AM UTC+8, Tarak wrote: Thanks Mark. Why can't timers or handlers be used ?. There is nothing in the documentation of why timers or handlers cant be used to run tasks after 24 hours. AlarmManager is more heavy weight on the OS. The documentation says that you must acquire a WAKE lock when processing the alarm, since the device can go to sleep as soon as the Intent is processed. This behavior is also not what we really want for the application. The application has a simple requirement to run a task every 24 hours. - Tarak On Sunday, March 18, 2012 3:27:16 PM UTC-7, Mark Murphy (a Commons Guy) wrote: On Sun, Mar 18, 2012 at 3:07 PM, Tarak tsri...@ipass.com wrote: I have a requirement to run a task periodically after 24 hours and made use of postDelayed (Runnable r, long delayMillis) . Do not do that. Use AlarmManager for periodic tasks like this. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 4.1 Available! On Sunday, March 18, 2012 3:27:16 PM UTC-7, Mark Murphy (a Commons Guy) wrote: On Sun, Mar 18, 2012 at 3:07 PM, Tarak tsri...@ipass.com wrote: I have a requirement to run a task periodically after 24 hours and made use of postDelayed (Runnable r, long delayMillis) . Do not do that. Use AlarmManager for periodic tasks like this. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 4.1 Available! On Sunday, March 18, 2012 3:27:16 PM UTC-7, Mark Murphy (a Commons Guy) wrote: On Sun, Mar 18, 2012 at 3:07 PM, Tarak tsri...@ipass.com wrote: I have a requirement to run a task periodically after 24 hours and made use of postDelayed (Runnable r, long delayMillis) . Do not do that. Use AlarmManager for periodic tasks like this. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 4.1 Available! On Sunday, March 18, 2012 3:27:16 PM UTC-7, Mark Murphy (a Commons Guy) wrote: On Sun, Mar 18, 2012 at 3:07 PM, Tarak tsri...@ipass.com wrote: I have a requirement to run a task periodically after 24 hours and made use of postDelayed (Runnable r, long delayMillis) . Do not do that. Use AlarmManager for periodic tasks like this. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 4.1 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Handlers and Timers never works for 24 hours task
That doesn't change things, this is exactly the use case for an alarm manager. kris On Mon, Mar 19, 2012 at 1:02 AM, Tarak tsri...@ipass.com wrote: Yes, the system kills the app at any time. But i have this condition being handled by rescheduling the timer after being restarted. The app was killed after 8 hours and then restarted. A timer was scheduled for the remaining 16 hours which didn't go off. The process id was the same. On Sunday, March 18, 2012 8:10:31 PM UTC-7, Zsolt Vasvari wrote: You might want to read up on the lifecycle of an Android app and how the system can kill it any time for any reason. On Monday, March 19, 2012 10:58:16 AM UTC+8, Tarak wrote: Thanks Mark. Why can't timers or handlers be used ?. There is nothing in the documentation of why timers or handlers cant be used to run tasks after 24 hours. AlarmManager is more heavy weight on the OS. The documentation says that you must acquire a WAKE lock when processing the alarm, since the device can go to sleep as soon as the Intent is processed. This behavior is also not what we really want for the application. The application has a simple requirement to run a task every 24 hours. - Tarak On Sunday, March 18, 2012 3:27:16 PM UTC-7, Mark Murphy (a Commons Guy) wrote: On Sun, Mar 18, 2012 at 3:07 PM, Tarak tsri...@ipass.com wrote: I have a requirement to run a task periodically after 24 hours and made use of postDelayed (Runnable r, long delayMillis) . Do not do that. Use AlarmManager for periodic tasks like this. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 4.1 Available! On Sunday, March 18, 2012 3:27:16 PM UTC-7, Mark Murphy (a Commons Guy) wrote: On Sun, Mar 18, 2012 at 3:07 PM, Tarak tsri...@ipass.com wrote: I have a requirement to run a task periodically after 24 hours and made use of postDelayed (Runnable r, long delayMillis) . Do not do that. Use AlarmManager for periodic tasks like this. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 4.1 Available! On Sunday, March 18, 2012 3:27:16 PM UTC-7, Mark Murphy (a Commons Guy) wrote: On Sun, Mar 18, 2012 at 3:07 PM, Tarak tsri...@ipass.com wrote: I have a requirement to run a task periodically after 24 hours and made use of postDelayed (Runnable r, long delayMillis) . Do not do that. Use AlarmManager for periodic tasks like this. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 4.1 Available! On Sunday, March 18, 2012 3:27:16 PM UTC-7, Mark Murphy (a Commons Guy) wrote: On Sun, Mar 18, 2012 at 3:07 PM, Tarak tsri...@ipass.com wrote: I have a requirement to run a task periodically after 24 hours and made use of postDelayed (Runnable r, long delayMillis) . Do not do that. Use AlarmManager for periodic tasks like this. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 4.1 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Google Maps are very old on Android
On Sun, Mar 18, 2012 at 7:07 PM, g...@deanblakely.com g...@deanblakely.comwrote: Why would this be? The Google Maps add-on has essentially been abandoned. It has not received an update of any sort in several years now. I would think that the tiles would be updated server-side, but apparently that is also not a concern for Google at this time. Not much you can do about this. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] spinner
On Sun, Mar 18, 2012 at 12:29 PM, sri kanth sritullimi...@gmail.com wrote: Let me know how to change the spinner list color when i click the spinner list. Set your custom adapter for the Spinner, override getView to give you the View you desire with your custom color. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] What's the pros for using webview instead of native client UI?
On Sat, Mar 17, 2012 at 4:40 PM, Sean Wang seanwan...@gmail.com wrote: So what's the pros and cons for web view? When to use it? I just did a Google search for native vs web app and found lots of information. Try that. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Thread started inside Service is killed?
On Sun, Mar 18, 2012 at 3:44 PM, svl s.i.vladimi...@googlemail.com wrote: The question is - how i can make sure that the thread keeps running? You can't, not without any guarantee. Another solution was to do it with a handler and run the read from serial port every second. Unfortunately that blocked the whole application and it was hanging. Were you running in the UI thread? So basically i need to make service that constantly reads from serial port. Use IntentService and don't try to run for 10 minutes straight. Or set it up such that you can recover and continue from where you were if you are killed (the OS will try to restart your Service to let it run to completion if it had to kill it, if you return the correct STICKY flag). - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Handlers and Timers never works for 24 hours task
Restarted? If the system kills your app, it doesn't restart it until a) User starts it b) an Intent comes in to start it c) an Alarm goes off It won't just get magically restarted for you. On Monday, March 19, 2012 1:02:54 PM UTC+8, Tarak wrote: Yes, the system kills the app at any time. But i have this condition being handled by rescheduling the timer after being restarted. The app was killed after 8 hours and then restarted. A timer was scheduled for the remaining 16 hours which didn't go off. The process id was the same. On Sunday, March 18, 2012 8:10:31 PM UTC-7, Zsolt Vasvari wrote: You might want to read up on the lifecycle of an Android app and how the system can kill it any time for any reason. On Monday, March 19, 2012 10:58:16 AM UTC+8, Tarak wrote: Thanks Mark. Why can't timers or handlers be used ?. There is nothing in the documentation of why timers or handlers cant be used to run tasks after 24 hours. AlarmManager is more heavy weight on the OS. The documentation says that you must acquire a WAKE lock when processing the alarm, since the device can go to sleep as soon as the Intent is processed. This behavior is also not what we really want for the application. The application has a simple requirement to run a task every 24 hours. - Tarak On Sunday, March 18, 2012 3:27:16 PM UTC-7, Mark Murphy (a Commons Guy) wrote: On Sun, Mar 18, 2012 at 3:07 PM, Tarak tsri...@ipass.com wrote: I have a requirement to run a task periodically after 24 hours and made use of postDelayed (Runnable r, long delayMillis) . Do not do that. Use AlarmManager for periodic tasks like this. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 4.1 Available! On Sunday, March 18, 2012 3:27:16 PM UTC-7, Mark Murphy (a Commons Guy) wrote: On Sun, Mar 18, 2012 at 3:07 PM, Tarak tsri...@ipass.com wrote: I have a requirement to run a task periodically after 24 hours and made use of postDelayed (Runnable r, long delayMillis) . Do not do that. Use AlarmManager for periodic tasks like this. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 4.1 Available! On Sunday, March 18, 2012 3:27:16 PM UTC-7, Mark Murphy (a Commons Guy) wrote: On Sun, Mar 18, 2012 at 3:07 PM, Tarak tsri...@ipass.com wrote: I have a requirement to run a task periodically after 24 hours and made use of postDelayed (Runnable r, long delayMillis) . Do not do that. Use AlarmManager for periodic tasks like this. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 4.1 Available! On Sunday, March 18, 2012 3:27:16 PM UTC-7, Mark Murphy (a Commons Guy) wrote: On Sun, Mar 18, 2012 at 3:07 PM, Tarak tsri...@ipass.com wrote: I have a requirement to run a task periodically after 24 hours and made use of postDelayed (Runnable r, long delayMillis) . Do not do that. Use AlarmManager for periodic tasks like this. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 4.1 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] facebook
On Sat, Mar 17, 2012 at 4:27 PM, Amanda Croxton amandacroxto...@live.comwrote: I cannot recieve messages on facebbok or do anything.I keep getting this link...HELP,please!! What exactly does this have to do with Android development? - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] On Reciving SMS Calling Web Service.
Hello Marcin Orlowski, Thanks for reply. This is my following code that sends sms and that sms receive the destination mobile.it works well. It display the msg on destination mobile.But I dont understand where do i write code that read message on receviers mobile and determine particular word like abc that will call webservice. plz help ...Thanks in advanced. public class SmswithwebserviceActivity extends Activity {/** Called when the activity is first created. */ Button btnSendSMS; EditText txtPhoneNo; EditText txtMessage; Pattern pattern; Matcher matcher; Context c; // smsreceiveandcallwebservice srcws=new smsreceiveandcallwebservice(); /** Called when the activity is first created. */ //@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); btnSendSMS = (Button) findViewById(R.id.bt1); txtPhoneNo = (EditText) findViewById(R.id.etp1); txtMessage = (EditText) findViewById(R.id.etm1); btnSendSMS.setOnClickListener(new View.OnClickListener() { public void onClick(View v) { String phoneNo = txtPhoneNo.getText().toString(); String message = txtMessage.getText().toString(); if (phoneNo.length()0 message.length()0) sendSMS(phoneNo, message); else Toast.makeText(getBaseContext(), Please enter both phone number and message., Toast.LENGTH_SHORT).show(); } }); } private void sendSMS(String phoneNumber, String message) { String SENT = SMS_SENT; String DELIVERED = SMS_DELIVERED; // SmsManager sms = SmsManager.getDefault(); // sms.sendTextMessage(phoneNumber, null, message, null, null); Toast.makeText(getBaseContext(), SMS sent, Toast.LENGTH_SHORT).show(); PendingIntent sentPI = PendingIntent.getBroadcast(this, 0, new Intent(SENT), 0); PendingIntent deliveredPI = PendingIntent.getBroadcast(this, 0, new Intent(DELIVERED), 0); // ---when the SMS has been sent---// registerReceiver(new BroadcastReceiver(){ @Override public void onReceive(Context arg0, Intent arg1) { switch (getResultCode()) { case Activity.RESULT_OK: Toast.makeText(getBaseContext(), SMS sent, Toast.LENGTH_SHORT).show(); break; case SmsManager.RESULT_ERROR_GENERIC_FAILURE: Toast.makeText(getBaseContext(), Generic failure, Toast.LENGTH_SHORT).show(); break; case SmsManager.RESULT_ERROR_NO_SERVICE: Toast.makeText(getBaseContext(), No service, Toast.LENGTH_SHORT).show(); break; case SmsManager.RESULT_ERROR_NULL_PDU: Toast.makeText(getBaseContext(), Null PDU, Toast.LENGTH_SHORT).show(); break; case SmsManager.RESULT_ERROR_RADIO_OFF: Toast.makeText(getBaseContext(), Radio off, Toast.LENGTH_SHORT).show(); break; } } }, new IntentFilter(SENT)); //---when the SMS has been delivered--- registerReceiver(new BroadcastReceiver(){ @Override public void onReceive(Context arg0, Intent arg1) { switch (getResultCode()) { case Activity.RESULT_OK: Toast.makeText(getBaseContext(), SMS delivered, Toast.LENGTH_SHORT).show(); break; case Activity.RESULT_CANCELED: Toast.makeText(getBaseContext(), SMS not delivered, Toast.LENGTH_SHORT).show(); break; } } }, new IntentFilter(DELIVERED)); SmsManager sms = SmsManager.getDefault(); sms.sendTextMessage(phoneNumber, null, message, sentPI, deliveredPI); } } On Sunday, 18 March 2012 00:03:11 UTC+5:30, Marcin Orlowski wrote: Register for SMS broadcasts. Once you got SMS, get the mesaage body and parse its content. if you wind what you look for, then
[android-developers] Re : Spinner calling in OnItemSelect
Hi members, I want to display the second spinner if i only select some values in my first spinner and also i want to create the spinner in my class directly without declaring in my main.xml is it possible? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en