[android-developers] SSO for android app
Hi, Currently, I've a web-based application which is communicating to an existing IdP (Identity Provider on the server side) that does the authentication authorization through SAML. These are implemented in Java. Now i want to extend this solution and have a native android app which should do exactly the same as my current web based application i.e. communicate with the existing server side IdP through SAML and maintain sessions of the logged in user. What i'm not sure of is how can i achieve this in an android app (2.3.3 platform) that will maintain the sessions of the current logged-in user in such scenario? _Sanjit -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] location based app
Hi guys ! My name is Jon and I m new in android and in java :-( Please I need your help! I want to develop a location based application which shows my location and the nearest places e exp. the nearest hotels or restaurants or sth else. Also I want to draw the data from wikimapia or a similar site. So far in my application I have signed up for the google map api key. What should I do in order to develop my project? Please could someone help me? Thank you very much!!! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 extract only number
Ok first things first. 1) As I develop, always use try/catch on these kind of operations, so they only show warnings, but wouldn't force-quit program. 2) Try putting a number only format in youre EditText. (I dont remember correctly but that's android:inputType:number or android:inputMethod:number. That will prevent user from entering symbols, only numbers. 3) Try parsing options, here is a nice and simple examples to start to. http://pages.cs.wisc.edu/~hasti/cs302/examples/Parsing/parseString.html Have fun :) On Tuesday, March 6, 2012 7:36:54 AM UTC+2, Jagruti Sangani wrote: Hello, I have textbox in that some time i will enter the onlu number like 96350254 or 5002 those are not in fix length.and sometimes if select from contact then in text box number will be with the name like 5002 jagruti.when i press the button then i want to pass only the number to the other page so how can i send only number from textbox value.I made the function and in that str=txt.getText().toString(); int space1=str.indexOf( ); s=str.substring(0, space1); this work perfectly if in tye textbox 5002 jagruti but when i enter only 5002 then it will crash the application.so can anybody know how to do successfully pass the number. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Performatic way to create a Bitmap?
Hello everybody, I want to get four image files and join then to create one big image file. Is there a performatic way to do it? Thank you. Regards, Guilherme -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Does the encryption function in Android 4.0 encrypt external storage
hey guys, I have a enquiry about security concern in Android 4.0. Can anyone tell me that is the encryption in Android 4.0 for both internal and external storage? or just internal storage only? Thanks! Victor -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] UI design
One ListView ,include a imageView and two textview . usually give the listview set a Adapter ,which is inherit BaseAdapter . you can get you need in getView() method. for example class ListItemAdapter extends BaseAdapter { public int getCount() { return defualt_account.length; } public Object getItem(int position) { return position ; } public long getItemId(int position) { return position; } public View getView(int position, View contentView, ViewGroup parent) { TextView textView = new TextView(EditcodeviewActivity.this); textView.setText(defualt_account[position]); // 设置字体大小 textView.setTextSize(24); AbsListView.LayoutParams layoutParams = new AbsListView.LayoutParams( LayoutParams.FILL_PARENT, LayoutParams.WRAP_CONTENT); textView.setBackgroundColor(Color.argb(200, 33, 33, 33)); textView.setLayoutParams(layoutParams); // 设置水平方向上居中 textView.setGravity(android.view.Gravity.CENTER_VERTICAL); textView.setMinHeight(45); // 设置文字颜色 textView.setTextColor(Color.WHITE); // 设置图标在文字的左边 textView.setCompoundDrawablesWithIntrinsicBounds( default_account_icons[position], 0, 0, 0); // 设置textView的左上右下的padding大小 textView.setPadding(15, 0, 15, 0); // 设置文字和图标之间的padding大小 textView.setCompoundDrawablePadding(15); return textView; } } 在 2012年3月7日 下午2:07,megha agrawal megha14.2...@gmail.com写道: Hello All, I want to create a UI for my app as shown in image attached with this mail. I am not getting what type of widget they have used?? Can somebody explain, how to go for this type of design? 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: Any API to send FAX from Android Application?
Did you find any documentation? I too would like to know how to make this possible. On Wednesday, November 18, 2009 3:58:27 AM UTC-6, Moon Technolabs wrote: Anybody knows any way to send FAX from Android Application ?? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Help please,I encountered this problemCouldn't init cursor window
I'm receiving the following error(s): java.lang.RuntimeException: An error occured while executing doInBackground() at android.os.AsyncTask$3.done(AsyncTask.java:200) at java.util.concurrent.FutureTask $Sync.innerSetException(FutureTask.java:274) at java.util.concurrent.FutureTask.setException(FutureTask.java:125) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:308) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java: 1088) at java.util.concurrent.ThreadPoolExecutor $Worker.run(ThreadPoolExecutor.java:581) at java.lang.Thread.run(Thread.java:1027) Caused by: java.lang.IllegalStateException: Couldn't init cursor window at android.database.CursorWindow.native_init(Native Method) at android.database.CursorWindow.init(CursorWindow.java:41) at android.content.ContentProviderProxy.query(ContentProviderNative.java: 412) at android.content.ContentResolver.query(ContentResolver.java:264) at com.vluckyut.vmusict.oldvtwo.task.CategoryTask.doInBackground(CategoryTask.java: 70) at com.vluckyut.vmusict.oldvtwo.task.CategoryTask.doInBackground(CategoryTask.java: 15) at android.os.AsyncTask$2.call(AsyncTask.java:185) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:306) ... 4 more I can't seem to find much online about this and don't know what it really means. Regards, jack -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Adjust Screen Size When Soft Keyboard Shown
Please say it clearly On Mar 5, 7:02 am, Mark Murphy mmur...@commonsware.com wrote: On Sun, Mar 4, 2012 at 5:57 PM, Matt Clark mrclark32...@gmail.com wrote: Right now in my app, when the soft keyboard is shown, it does not resize my activity to the upper half of the screen that is not being covered by the keyboard, higing some important elements. How would I detect that the soft keyboard has been shown, and then change my layout to fit? Consider wrapping your layout in a ScrollView, then setting android:windowSoftInputMode to adjustResize. http://developer.android.com/resources/articles/on-screen-inputs.html -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy Android Training in NYC: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] need help on adding custom view to XML file
To debug, find the null object . 在 2012年3月6日 下午2:09,chowdary nani naveenneeli...@gmail.com写道: Typeface.create(arial, Typeface.NORMAL); -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: using custom views in xml layouts
maybe you try this , in you custonm view xml : net.pocketmagic.customangletext.CustomTextView.view android:id=@+id/yourID android:layout_width=wrap_content android:layout_height=wrap_content android:layout_margin=10dp / 在 2012年3月6日星期二UTC+8下午5时07分28秒,chowdary nani写道: Hi All, i am working with custom views using in xml layouts Following is my custom view code: public class CustomTextView extends View { private int m_nColor; private Typeface m_tTypeface; private int m_nSize; private int m_nRotationAngle, m_nRotationW, m_nRotationH; private String m_szText; public CustomTextView(Context context) { super(context); // set default parameters Log.d(dghgfhf, dfghgfh); m_nColor = Color.WHITE; m_nSize = 14; m_nRotationAngle = 0; m_nRotationW = 0; m_nRotationH = 0; m_tTypeface = Typeface.create(arial, Typeface.NORMAL); } public CustomTextView(Context context, AttributeSet attrs) { super(context, attrs); } public void SetColor(int newcolor) { m_nColor = newcolor; this.invalidate(); } public void SetTextSize(int newsize) { m_nSize = newsize; this.invalidate(); } // style: normal-0,bold-1,italic-2,bold-italic-3, public void SetFont(String newfontface, int style) { m_tTypeface = Typeface.create(newfontface, style); this.invalidate(); } public void SetRotation(int newangle, int neww, int newh) { m_nRotationAngle = newangle; m_nRotationW = neww; m_nRotationH = newh; this.invalidate(); } public void SetText(String newtext) { m_szText = newtext; this.invalidate(); } @Override protected void onDraw(Canvas canvas) { super.onDraw(canvas); Paint paint = new Paint(); paint.setTypeface(m_tTypeface); paint.setStyle(Paint.Style.FILL); paint.setColor(m_nColor); // paint.setShadowLayer(1, 0, 1, Color.parseColor(#00)); paint.setTextSize(m_nSize); canvas.rotate(m_nRotationAngle, m_nRotationW, m_nRotationH); canvas.drawText(m_szText, 0, 0, paint); } } Following is my layout: ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/android; xmlns:GUI= http://schemas.android.com/apk/res/net.pocketmagic.customangletext; android:layout_width=fill_parent android:layout_height=fill_parent android:orientation=vertical view android:id=@+id/yourID android:layout_width=wrap_content android:layout_height=wrap_content android:layout_margin=10dp class=net.pocketmagic.customangletext.CustomTextView / /LinearLayout i am getting null pointer exception i am unable find where i am going wrong please help me Thanks Naveen. 在 2012年3月6日星期二UTC+8下午5时07分28秒,chowdary nani写道: Hi All, i am working with custom views using in xml layouts Following is my custom view code: public class CustomTextView extends View { private int m_nColor; private Typeface m_tTypeface; private int m_nSize; private int m_nRotationAngle, m_nRotationW, m_nRotationH; private String m_szText; public CustomTextView(Context context) { super(context); // set default parameters Log.d(dghgfhf, dfghgfh); m_nColor = Color.WHITE; m_nSize = 14; m_nRotationAngle = 0; m_nRotationW = 0; m_nRotationH = 0; m_tTypeface = Typeface.create(arial, Typeface.NORMAL); } public CustomTextView(Context context, AttributeSet attrs) { super(context, attrs); } public void SetColor(int newcolor) { m_nColor = newcolor; this.invalidate(); } public void SetTextSize(int newsize) { m_nSize = newsize; this.invalidate(); } // style: normal-0,bold-1,italic-2,bold-italic-3, public void SetFont(String newfontface, int style) { m_tTypeface = Typeface.create(newfontface, style); this.invalidate(); } public void SetRotation(int newangle, int neww, int newh) { m_nRotationAngle = newangle; m_nRotationW = neww; m_nRotationH = newh; this.invalidate(); } public void SetText(String newtext) { m_szText = newtext; this.invalidate(); } @Override protected void onDraw(Canvas canvas) { super.onDraw(canvas); Paint paint = new Paint(); paint.setTypeface(m_tTypeface); paint.setStyle(Paint.Style.FILL); paint.setColor(m_nColor); // paint.setShadowLayer(1, 0, 1, Color.parseColor(#00)); paint.setTextSize(m_nSize); canvas.rotate(m_nRotationAngle, m_nRotationW, m_nRotationH);
[android-developers] mono for android-How's it?
i want to know if any one has ever used mono for android.They say one can make android apps on VS after installing mono for android.But i don't know whether it would works same as apps made in eclipse.I am a c# developer and i don't want to learn a new language just to make android apps -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Android Sound Verification
Hi, I would like to create an app which recognize the sound coming from MIC. I want to differentiate whether coming sound is of Clap or Whistle. Please share your thoughts. -- Thanks and Regards, Tapan D. Thakkar (M:09714324778) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: What is the cause of the RemoteException sending setActive(false) notification?
Haven't found a solution for the issue, but a lead into it. It turns out that my activity crashes when flinging AND the app service running in background crashes (just before it). Em quarta-feira, 7 de março de 2012 12h33min15s UTC-3, Aramaki escreveu: Hello, I have in my application, a custom View that draws a calendar. Everything is working fine except that, when I am flipping right or left the calendar, I often get the message bellow from logcat: 03-07 12:27:45.843: W/InputManagerService(1652): Got RemoteException sending setActive(false) notification to pid 2660 uid 10074 I found that some other people got that same issue, but I couldn't get why this exception happens. Thank you, Aramaki -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Switch from physical to software keyboard
iid, I have the same problem. Were you able to find a solution? Thanks, Eddie On Saturday, February 11, 2012 5:39:38 PM UTC-5, iid wrote: Hi all, I'm developing an application that will run on a tablet with Android 3.2. I attached a physical keyboard to tablet then the software keyboard disappear. Now I need to use the software keyboard in some activities, but I don't figure out how I can do that. I tried different ways: http://stackoverflow.com/questions/2403632/android-show-soft-keyboard-automatically-when-focus-is-on-an-edittext http://dev.bostone.us/2009/11/04/android-show-and-hide-soft-keyboard-programmaticaly/#awp::2009/11/04/android-show-and-hide-soft-keyboard-programmaticaly/ http://plainoldstan.blogspot.com/2010/09/android-set-focus-and-show-soft.html All these don't work if the physical keyboard is connected. Someone know how can I achieve this goal? Thanks -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Any API to send FAX from Android Application?
There is certainly nothing built into Android for this. You would send a fax from an Android app the same way you send a fax from a Web app -- by means of some Internet-based fax service with an API. On Wed, Mar 7, 2012 at 7:56 PM, Tim Rubel timothyru...@gmail.com wrote: Did you find any documentation? I too would like to know how to make this possible. On Wednesday, November 18, 2009 3:58:27 AM UTC-6, Moon Technolabs wrote: Anybody knows any way to send FAX from Android Application ?? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 _The Busy Coder's Guide to *Advanced* Android Development_ Version 2.5 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How to read the large sized text file
Hi all, I am willing to know how to *read large (2.5 MB) sized text file*, that I put in assets folder of my app. I am able to read small text files as shown here http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/content/ReadAsset.html So, what should I do to read large sized text files? I will be very happy if someone can suggest me the proper way to do this. Regards, -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Does the encryption function in Android 4.0 encrypt external storage
You might try the [android-security-discuss] list archives, or ask a fresh question there if your concern has not been asked and answered yet. On Tue, Mar 6, 2012 at 1:21 PM, Vic Hui victorhui...@gmail.com wrote: hey guys, I have a enquiry about security concern in Android 4.0. Can anyone tell me that is the encryption in Android 4.0 for both internal and external storage? or just internal storage only? Thanks! Victor -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 _The Busy Coder's Guide to *Advanced* Android Development_ Version 2.5 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] How do I change the SDK version used in an application?
Install it on a different device that runs a different version of Android. If you mean how do you control the build target, in Eclipse, you will find this in the Android area of project properties . On Tue, Mar 6, 2012 at 2:09 AM, R Keith Beal rkeithb...@gmail.com wrote: How do I change the SDK version used in an application? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 _The Busy Coder's Guide to *Advanced* Android Development_ Version 2.5 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] Trying to reduce BOOT TIME
Questions regarding the firmware belong on http://source.android.com, not here. On Thu, Mar 8, 2012 at 1:21 AM, Ratul Roy ratulro...@gmail.com wrote: Hi all, I am very new to this android development, in order to reduce boot time on OMAP 3 , I have taken care of kernel which is taking 7 sec to come up, but from android side it is taking 25 sec Total 32 sec it takes to show boot complete in android logcat later on I found boot animation takes long time around 15 sec , so I deleted bootanimation program in /system/bin after this it showed an error [14.477905] init: Cannot find '/system/bin/bootanimation' disabling 'bootanim' looking to this error I commented bootanim in init.rc , then also it shows an error and same 14 sec is wasted so I stopped property_set in surfaceflinger ,, every thing goes well but then also boot complete in android logcat comes in 32 sec please suggest something so that I can bring down this boot time to at least to 30 sec Regards Ratul Roy -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 _The Busy Coder's Guide to *Advanced* Android Development_ Version 2.5 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] Fail ant-build on continious integration server
As continious integration server I'm using Jenkins. But when I'm locally on my pc building my Android application, the ant-build fails when one of my unit tests fails. However when I build the app on my continious integration server ant does not fail when one of my tests is failing. Both locally and on the server I'm using the same Android SDK, same emulator configuration to run my tests and same ant targets (all clean emma debug install test). I don't know if this is the right place to be with this question (in other words is it Jenkins releated or is it Android related...) but I hope to find just something here... :) Kr, Dirk -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Best Application Data Backup solution?
Thank you for the reply but the backups I have would consist of anywhere from a few 100 KB to several MB in size and Google backup has limitations (it's mostly geared towards saving off settings and preferences not custom data) at least from what I've read. Is this information incorrect? On Wednesday, March 7, 2012 6:56:26 AM UTC-6, Kostya Vasilyev wrote: FWIW, there is a data backup solution built into Android: http://developer.android.com/guide/topics/data/backup.html On 03/07/2012 04:51 PM, gcstang wrote: Does no one perform these types of backups or am I asking the wrong question? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Android Application
You use HTTPPost and HTTPGet to communicate with web servers. Search the Internet and you'll find integration examples of Facebook, LinkedIn, Twitter etc which will show you how to make HTTPPost and HTTPGet requests. If this doesn't ring any bells, you need to learn programming first. - 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
[android-developers] Creating a Tone Generator
Hi there, I know that this (seems) to have been discussed on many boards, but I have not found my answer wherever I have looked. I want to be able to generate a tone when I click down and stop when I release a button. I want to be able to set the frequency before clicking. Everything I have found so far either uses DTMF or plays a sound (not a tone) for a specific duration. Any suggestions would be most appreciated :-) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Help me on selecting a name to a game..
хорошо :) On Mar 8, 1:03 pm, Kostya Vasilyev kmans...@gmail.com wrote: This is what I get after clicking on the link: Мы сожалеем. Таблица по указанному URL не обнаружена. Проверьте правильность URL и убедитесь в том, что владелец таблицы не удалил её. Дополнительную информацию можно найти в справочном центре Документов Google. Владелец Таблицы would be a great name for a resource management game, and is definitely more fresh than the literally hundreds Farm... whatever... Tycoon / Manager sound-alikes. -- Kostya 7 марта 2012 г. 23:02 пользователь Fred fredrisch...@gmail.com написал: Nobody? :) Its just to choose the better names and confirm.. Thanks! Fred On 6 mar, 23:01, Fred fredrisch...@gmail.com wrote: Hi Everybody, I'm developing a android game and i'm urgently needing to define a name to this game.. can you help on choosing the name? If you have 1 minute to check it up, please just choose the wanted names here: https://docs.google.com/spreadsheet/viewform?formkey=dGIwSUU2alJqSnVk... Thanks a lot, Fred -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Creating a Tone Generator
There are no APIs in Android to generate tones at arbitrary frequencies. Presumably, there are algorithms you could use for creating PCM data representing a tone, which you would play back via AudioTrack. On Thu, Mar 8, 2012 at 9:25 AM, Jordan Thompson jorythomp...@gmail.com wrote: Hi there, I know that this (seems) to have been discussed on many boards, but I have not found my answer wherever I have looked. I want to be able to generate a tone when I click down and stop when I release a button. I want to be able to set the frequency before clicking. Everything I have found so far either uses DTMF or plays a sound (not a tone) for a specific duration. Any suggestions would be most appreciated :-) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 _The Busy Coder's Guide to *Advanced* Android Development_ Version 2.5 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] Re: Any API to send FAX from Android Application?
On Thu, Mar 8, 2012 at 10:15 PM, Mark Murphy mmur...@commonsware.com wrote: There is certainly nothing built into Android for this. You would send a fax from an Android app the same way you send a fax from a Web app -- by means of some Internet-based fax service with an API. You could probably send it via SIP as well. You would of course need some DSP library to let your app talk to fax modems, but it's possible. (if Asterisk can do it, so can 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: Help me on selecting a name to a game..
Sea arcade On Mar 7, 7:01 am, Fred fredrisch...@gmail.com wrote: Hi Everybody, I'm developing a android game and i'm urgently needing to define a name to this game.. can you help on choosing the name? If you have 1 minute to check it up, please just choose the wanted names here: https://docs.google.com/spreadsheet/viewform?formkey=dGIwSUU2alJqSnVk... Thanks a lot, Fred -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Help me on selecting a name to a game..
Devilfish On Mar 8, 7:36 pm, Mohit kumawat mohit.kumawat1...@gmail.com wrote: Sea arcade On Mar 7, 7:01 am, Fred fredrisch...@gmail.com wrote: Hi Everybody, I'm developing a android game and i'm urgently needing to define a name to this game.. can you help on choosing the name? If you have 1 minute to check it up, please just choose the wanted names here: https://docs.google.com/spreadsheet/viewform?formkey=dGIwSUU2alJqSnVk... Thanks a lot, Fred -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] content provider locking?
So, I have a content provider that maintains a list of movies. Also, there is a service that runs in the background and refreshes the list of movies every five minutes. Is there a good way to ensure no one accesses the content provider's list of movies while they are being refreshed? I don't want an activity to get a partial list of movies. Thanks. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] content provider locking?
Have the service do a callback to activities during just before starting and after to prevent this, and return an empty list if they are not well-behaved and request during this time. On Mar 8, 2012 9:43 AM, bob b...@coolfone.comze.com wrote: So, I have a content provider that maintains a list of movies. Also, there is a service that runs in the background and refreshes the list of movies every five minutes. Is there a good way to ensure no one accesses the content provider's list of movies while they are being refreshed? I don't want an activity to get a partial list of movies. 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] back up
hi dudes i want to take a backup of my contacts ,give some src -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: WebView Java script function
Amit, WebViewClient.onPageStarted() is the most reliable and does not depend on JS. -John On Wednesday, March 7, 2012 7:22:47 AM UTC-5, Amit wrote: Thanks John for response. With my response It is not necessary to be same url as it being loaded from. I didn't mean variable url in Moktarul's solution can contain wrong value. I was meant: for callback, this info is passed as string variable. This argument carries actual url value, if loaded page is written by us. But think of situation, any malicious page is getting loaded and page calls this exposed JS function. Malicious page writer may not intend to pass correct url information. I am looking for solution, if currently loaded url information can be retrieved inside JS callback from webkit/android SDK , then this info will be authentic. I hope you understand the problem. -Amit On Tuesday, 6 March 2012 18:20:10 UTC+5:30, John Purcell wrote: Amit, But i think, if android API provides this infromation, it will be reliable information as android known which url it is currently loading. This is incorrect, *webkit* knows what url is authoritatively being loaded (not necessarily Android). The webkit/JS container bridge is synchronous while the communication between webkit and the various android callbacks are asynchronous for the most part. (i.e. In general, Moktarul's solution is correct if you want the currently loaded url (top level) from JavaScript). On Tuesday, March 6, 2012 1:13:02 AM UTC-5, Amit wrote: I think you code snippet has currentUrl() as JS exposed function. Is there anyway to get urk infromation from android API. Android.currentUrl(url), caller can pass anystring. It is not necessary to be same url as it being loaded from. But i think, if android API provides this infromation, it will be reliable information as android known which url it is currently loading. On Tuesday, 6 March 2012 10:39:42 UTC+5:30, moktarul anam wrote: Hi Amit. in html header script function onload(){ var url = window.loacation; alert(url); Android.currentUrl(url); } /script body onload=onload() Moktarul On Monday, 5 March 2012 18:03:30 UTC+5:30, Amit wrote: Hi, I am exposing java script function from my webview. This Java script function is called by webcore thread on-page-loading inside webview. Is there any way to retrieve current loaded url inside called Java script function? Thanks, On Monday, 5 March 2012 18:03:30 UTC+5:30, Amit wrote: Hi, I am exposing java script function from my webview. This Java script function is called by webcore thread on-page-loading inside webview. Is there any way to retrieve current loaded url inside called Java script function? Thanks, On Tuesday, March 6, 2012 1:13:02 AM UTC-5, Amit wrote: I think you code snippet has currentUrl() as JS exposed function. Is there anyway to get urk infromation from android API. Android.currentUrl(url), caller can pass anystring. It is not necessary to be same url as it being loaded from. But i think, if android API provides this infromation, it will be reliable information as android known which url it is currently loading. On Tuesday, 6 March 2012 10:39:42 UTC+5:30, moktarul anam wrote: Hi Amit. in html header script function onload(){ var url = window.loacation; alert(url); Android.currentUrl(url); } /script body onload=onload() Moktarul On Monday, 5 March 2012 18:03:30 UTC+5:30, Amit wrote: Hi, I am exposing java script function from my webview. This Java script function is called by webcore thread on-page-loading inside webview. Is there any way to retrieve current loaded url inside called Java script function? Thanks, On Monday, 5 March 2012 18:03:30 UTC+5:30, Amit wrote: Hi, I am exposing java script function from my webview. This Java script function is called by webcore thread on-page-loading inside webview. Is there any way to retrieve current loaded url inside called Java script function? Thanks, On Tuesday, March 6, 2012 1:13:02 AM UTC-5, Amit wrote: I think you code snippet has currentUrl() as JS exposed function. Is there anyway to get urk infromation from android API. Android.currentUrl(url), caller can pass anystring. It is not necessary to be same url as it being loaded from. But i think, if android API provides this infromation, it will be reliable information as android known which url it is currently loading. On Tuesday, 6 March 2012 10:39:42 UTC+5:30, moktarul anam wrote: Hi Amit. in html header script function onload(){ var url = window.loacation; alert(url); Android.currentUrl(url); } /script body onload=onload() Moktarul On Monday, 5 March 2012 18:03:30 UTC+5:30, Amit wrote: Hi, I am exposing java script function from my webview. This Java script function is called by webcore thread on-page-loading inside webview. Is
Re: [android-developers] Database Problem
On Tue, Mar 6, 2012 at 10:11 AM, R Keith Beal rkeithb...@gmail.com wrote: Your message was flagged as Important. This results in a priority notification in my e-mail. Do you really believe this message is Important to ANYONE? No, I don't, which is why I don't flag my messages as important. I'm not even aware of way to do that in Gmail, which I use to post to this group. I have been posting here for over two years and I post *a lot* in this grouphttp://groups.google.com/group/android-developers/aboutand I've never had anyone mention this to me, so I have to believe there is something wrong with your client or email. Sorry? - 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] Save Last Coordinates Map
On Tue, Mar 6, 2012 at 6:37 AM, concave agung.wiguna.jo...@gmail.comwrote: What i want to ask is, it's possible to save last coordinates ? Yes, it's possible. if so, can anybody here tell me how to do it's If you can explain what you mean by save and last coordinates, you will get a better answer. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] back up
no thankyou. On Thursday, 8 March 2012, deepu wrote: hi dudes i want to take a backup of my contacts ,give some src -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.comjavascript:_e({}, 'cvml', 'android-developers@googlegroups.com'); To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com javascript:_e({}, 'cvml', 'android-developers%2bunsubscr...@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] content provider locking?
Using a database transaction should work too. Or a ping/pong generation number. 08.03.2012 18:53 пользователь James Black planiturth...@gmail.com написал: Have the service do a callback to activities during just before starting and after to prevent this, and return an empty list if they are not well-behaved and request during this time. On Mar 8, 2012 9:43 AM, bob b...@coolfone.comze.com wrote: So, I have a content provider that maintains a list of movies. Also, there is a service that runs in the background and refreshes the list of movies every five minutes. Is there a good way to ensure no one accesses the content provider's list of movies while they are being refreshed? I don't want an activity to get a partial list of movies. 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 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] location based app
On Mon, Mar 5, 2012 at 10:54 AM, Jon roulis...@gmail.com wrote: So far in my application I have signed up for the google map api key. What should I do in order to develop my project? Start by reading the documentation section on Location. Then use the docs, examples, and Google to get 95% there. Then ask *detailed* questions here or StackOverflow when you get stuck. Good luck. - 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] Problem with Google Play on Android ICS
oh, i'm so sorry, is just that i found the .apk in several places on the internet and i wanted to try it, i won't do it again. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] mono for android-How's it?
On Tue, Mar 6, 2012 at 4:27 AM, VATSAL vut...@gmail.com wrote: But i don't know whether it would works same as apps made in eclipse. Try it. See what happens. Regardless of anyone else's experience, you won't know if it's something that is worth your own time unless you play with it yourself and experience it first hand. I am a c# developer and i don't want to learn a new language just to make android apps Some thoughts: 1- If you know C#, you already know a very large amount of what you need to know about Java. They're very similar at a high level. 2 - Any competent programmer should be able to pick up a new language in a matter of days or weeks and you'll be better for it. 3 - The vast majority of people developing Android Apps are using Eclipse, Java, and the Official SDK. If you decide to use Mono to save yourself the time of learning Java, you will probably actually end up having a harder time of things simply due to the lack of information and knowledge that will be available compared to Java. So I would recommend you just suck it up and learn Java if you're serious about making Android Apps. Good luck. - 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] relationship of compound button in on checked change to others things (solved)
At 11:51 AM 3/7/2012, you wrote: hi, what is relationship of compound button in on checked change to other things? ... it is the radio button. thanks --- co-chair http://ocjug.org/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] How to read the large sized text file
On Thu, Mar 8, 2012 at 7:16 AM, Narendra Singh Rathore nsr.curi...@gmail.com wrote: So, what should I do to read large sized text files? Presumably the same thing you're doing for the small sized text file. What is the problem you're experiencing when trying to do 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
[android-developers] images
If you write an app that uses a lot of images where do you store them? I would imagine that sqllite won't have room to hold too many. I am curious as what the best practice is 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: content provider locking?
Use the work queue processor pattern inherently present in IntentService where all the request are serialized into a FIFO queue. Let the refresh logic and the content provider send intents to the service with distinct actions and you can be sure that they won't be fighting with each other. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 read the large sized text file
Do the same think but in an AsyncTask and read in chunks instead of reading the whole asset into a buffer like in the demo. This approach would scale very well. Of course, I am assuming that what you want to do with that asset is compatible with chunked processing. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] restartPackage(some package name) api not working on device
On Thu, Mar 8, 2012 at 12:44 AM, ashiq sayyad ashiqsay...@gmail.com wrote: I am trying to use following api to restart package.It is working on emulator but it is not working on device.. 1 - Read the description for that method in the documentation. 2 - Specify the platform versions you're targeting on the emulator and the device. - 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] ICS's Holo Theme
They are blue on my Galaxy Nexus. On Wed, Mar 7, 2012 at 11:34 PM, Zsolt Vasvari zvasv...@gmail.com wrote: Here's a screen capture: https://lh6.googleusercontent.com/-2bdh3wGXwR0/T1hg_GexVYI/Csc/IDBXqFU6oVQ/s1600/device-2012-03-08-153340.png On Thursday, March 8, 2012 3:32:37 PM UTC+8, Zsolt Vasvari wrote: Nope, on a Galaxy Nexus, Android 4.0.2, it's green. On Thursday, March 8, 2012 3:28:13 PM UTC+8, Romain Guy (Google) wrote: The green highlight was in Honeycomb (Android 3.0), ICS should be blue. On Wed, Mar 7, 2012 at 9:38 PM, Zsolt Vasvari wrote: Hello, I have two stock Ice Cream Sandwich devices: a Galaxy Nexus and Motorola Xoom, both with official Google ROMs. But, on my Xoom, the checkbox/radio button highlight colors are BLUE, while on the Galaxy Nexus, it's GREEN. What gives? I thought we could count on the Holo theme to be consistent across ALL devices, but it seems like Google cannot even get it consistent across their reference 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 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 -- Romain Guy Android framework engineer romain...@android.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Romain Guy Android framework engineer romain...@android.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] ICS's Holo Theme
On Thu, Mar 8, 2012 at 11:46 AM, Romain Guy romain...@android.com wrote: They are blue on my Galaxy Nexus. FWIW, the same activity (Display in Settings) has green checkmarks on my Galaxy Nexus (4.0.2, UK import), lining up with Zsolt's. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to *Advanced* Android Development_ Version 2.5 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] ICS's Holo Theme
On Fri, Mar 9, 2012 at 1:46 AM, Romain Guy romain...@android.com wrote: They are blue on my Galaxy Nexus. Definitely green on 4.0.2 ICL53F. Yours is most probably newer though :) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Problems with PhoneGap demo with Android on Eclipse
After successfully running the PhoneGap demon under iOS I am trying to do the same with Eclipse. On my Mac Book Pro I managed to get Eclipse and all the SDKs installed and built the demo code. When I run it however it does not work and I see the following errors display in the console log: [2012-03-07 13:34:47 - HelloPhoneGap] Failed to install HelloPhoneGap.apk on device 'emulator-5556! [2012-03-07 13:34:47 - HelloPhoneGap] (null) [2012-03-07 13:34:47 - HelloPhoneGap] Failed to install HelloPhoneGap.apk on device 'emulator-5556': Connection reset by peer [2012-03-07 13:34:47 - HelloPhoneGap] com.android.ddmlib.InstallException: Connection reset by peer [2012-03-07 13:34:47 - HelloPhoneGap] Launch canceled! I see the demo UI but the buttons are inactive and the onDeviceReady() function never gets called. The code is pretty much identical to the iOS version so it has to be something in the setup of the environment but I've been over the setup several times and cannot spot an issue. Just for grins I tried to do all this on my Windows 7 machine but there I cannot even get the SDK installed. Back on my Mac I cannot update the SDK and get the same error I get on the Windows 7 machine when trying to install the SDK: [2012-03-07 16:49:41 - SDK Manager] ERROR: Failed to fetch URL https://dl-ssl.google.com/android/repository/addons_list-1.xml, reason: Connection to https://dl-ssl.google.com refused [2012-03-08 09:35:55 - SDK Manager] ERROR: Failed to fetch URL https://dl-ssl.google.com/android/repository/repository-5.xml, reason: dl-ssl.google.com I have tried all the suggestions I have found online for resolving these errors (e.g. using http instead of https, running as Administrator on Windows, turning off the firewall and virus checking, etc) but nothing has helped. Any ideas what could be keeping this from running? As I wrote, the app comes up in the simulator and runs but once the UI is up the buttons are unresponsive and the ready function does not get called. Any help would be greatly appreciated! Thanks! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Performatic way to create a Bitmap?
On Mon, Mar 5, 2012 at 10:04 AM, Guilherme Utrabo utr...@gmail.com wrote: I want to get four image files and join then to create one big image file. Is there a performatic way to do it? I couldn't find a definition for that word. What do you mean by performatic? Fast? Optimized? - 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] ICS's Holo Theme
What version do you have your Xoom? On Thu, Mar 8, 2012 at 8:56 AM, Mark Murphy mmur...@commonsware.com wrote: On Thu, Mar 8, 2012 at 11:46 AM, Romain Guy romain...@android.com wrote: They are blue on my Galaxy Nexus. FWIW, the same activity (Display in Settings) has green checkmarks on my Galaxy Nexus (4.0.2, UK import), lining up with Zsolt's. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to *Advanced* Android Development_ Version 2.5 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 -- Romain Guy Android framework engineer romain...@android.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] ICS's Holo Theme
On Thu, Mar 8, 2012 at 12:16 PM, Romain Guy romain...@android.com wrote: What version do you have your Xoom? Well, mine is still 3.2, as I have the 3G-capable model, and AFAIK they haven't shipped ICS for that. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to *Advanced* Android Development_ Version 2.5 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] problem in radioGroup.getCheckedRadioButtonId()
hi, i have some groups of radio buttons that i create programmatically. they work fine (please see code below). but calling radioGroup.getCheckedRadioButtonId() always returns -1 when it's called from onCheckedChanged(). is this correct behaviour? thanks package tayek.radio; import java.util.*; import android.app.Activity; import android.os.Bundle; import android.view.*; import android.view.View.*; import android.widget.*; import android.widget.CompoundButton.*; public class RadioActivity extends Activity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); questions=4; LinearLayout main=createMainLayout(); setContentView(main); linearLayouts=new LinearLayout[questions]; radioGroups=new RadioGroup[questions]; for(int i=0;iquestions;i++) linearLayouts[i]=addTextViewAndRadioGroupToPopupLayout(i); } private LinearLayout createMainLayout() { LinearLayout main=new LinearLayout(this); main.setOrientation(LinearLayout.VERTICAL); buttons=new Button[questions]; textViews=new TextView[questions]; for(int i=0;iquestions;i++) { textViews[i]=new TextView(this); textViews[i].setText(Question +(i+1)); main.addView(textViews[i]); buttons[i]=new Button(this); buttons[i].setText(Make a choice +(i+1)); main.addView(buttons[i]); buttons[i].setId(i); buttons[i].setOnClickListener(buttonOnClickListener); } return main; } private void createPopupWindow(LinearLayout linearLayout) { popupWindow=new PopupWindow(this); popupWindow.setContentView(linearLayout); popupWindow.setFocusable(true); popupWindow.setWidth(480); popupWindow.setHeight(640); } private LinearLayout addTextViewAndRadioGroupToPopupLayout(int question) { LinearLayout linearLayout=new LinearLayout(this); TextView textView=new TextView(this); textView.setText(Question +question); linearLayout.addView(textView); int answers=3; RadioButton[] radioButtons=new RadioButton[answers]; radioGroups[question]=addRadioButtonsToGroup(question,radioButtons); linearLayout.addView(radioGroups[question]); linearLayout.setId(question); radioButtons[0].setChecked(true); return linearLayout; } static int[] colors=new int[]{0xff,0x00ff00,0xff}; private RadioGroup addRadioButtonsToGroup(int question,RadioButton[] radioButtons) { RadioGroup radioGroup=new RadioGroup(this); for(int i=0;iradioButtons.length;i++) { radioButtons[i]=new RadioButton(this); radioButtons[i].setText(Question +(question+1)+ Choice +(i+1)); radioButtons[i].setId(i); radioButtons[i].setBackgroundColor(0xff/* colors[i%colors.length] */); radioButtons[i].setOnCheckedChangeListener(onCheckedChangeListener); radioButtons[i].setOnClickListener(radioButtonOnClickListener); radioGroup.addView(radioButtons[i]); } radioGroup.setId(question); return radioGroup; } int questions; LinearLayout[] linearLayouts; Button[] buttons; RadioGroup[] radioGroups; TextView[] textViews; PopupWindow popupWindow; OnCheckedChangeListener onCheckedChangeListener=new OnCheckedChangeListener(){ public void onCheckedChanged(CompoundButton buttonView,boolean isChecked) { if(popupWindow!=null) popupWindow.dismiss(); RadioButton radioButton=(RadioButton)buttonView; int a=radioButton.getId(); ViewParent viewParent=buttonView.getParent(); RadioGroup radioGroup=(RadioGroup)viewParent; int q=radioGroup.getId(); if(isChecked) { buttons[q].setText(radioButton.getText()); // recalculate the score int a2=radioGroup.getCheckedRadioButtonId(); if(a!=a2) { System.err.println(CompoundButton id=+a); System.err.println(radioGroup.getCheckedRadioButtonId()=+a2); } } } }; OnClickListener buttonOnClickListener=new OnClickListener(){ public void onClick(View v) { System.out.println(button +v.getId()+ clicked at +new Date()); createPopupWindow(linearLayouts[v.getId()]); popupWindow.showAtLocation(v,Gravity.CENTER,20,20); // popupWindow.showAsDropDown(v); } }; OnClickListener radioButtonOnClickListener=new OnClickListener(){ public void onClick(View v) { System.out.println(radio button +v.getId()+ clicked at +new Date()); if(popupWindow!=null) popupWindow.dismiss(); } }; } --- co-chair http://ocjug.org/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Disabling cut copy paste menu on edittext
On Thu, Mar 8, 2012 at 1:02 AM, ashiq sayyad ashiqsay...@gmail.com wrote: But is it possible to get that callback in the appliction?? I'd derive my own class from EditText and see what methods I could override that might prevent 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
[android-developers] Re: shouldOverrideUrlLoading() loads old URL
Hi, I'm new to android, but I think I know what your problem might be. shouldOverrideUrlLoading is a method of WebViewClient, not WebView. Look into WebViewClient. Also, I have my own problem with WebViewClient. My client will load new pages in my webview, but it will not update the current Url that the page is on. It's strange stuff. David On Wednesday, 22 February 2012 05:55:02 UTC-5, petter386 wrote: I created a WebView which loads up some survey webpage. It's all ok so far but the problem appears when I press the button input class=next type=submit onclick=submitForm(); return false; value=Next page on the webpage which should load URL of the next survey page but it doesn't. It loads up the old one. When I used a debugger I saw that at first the method shouldOverrideUrlLoading() gets correct new url that should load but then it loads the old one which was already loaded when application started (with loadUrl() method in onCreate()). I really don't know what could be causing that so hopefully you can help me with my problem. Below is my code: public class SurveyViewer extends Activity{ private WebView surveyWebView; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.survey_view); surveyWebView = (WebView)findViewById(R.id.surveywebview); surveyWebView.getSettings().setJavaScriptEnabled(true); surveyWebView.loadUrl(http://test.1ka.si/a/797;); surveyWebView.setWebViewClient(new WebViewClient() { @Override public boolean shouldOverrideUrlLoading(WebView view, String url) { view.loadUrl(url); return true; } }); } } -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Problem with Google Play on Android ICS
That was a little harsh of a response On Thursday, March 8, 2012 7:40:54 AM UTC-5, Mark Murphy (a Commons Guy) wrote: On Wed, Mar 7, 2012 at 8:29 PM, monimi m.michelle.villega...@gmail.com wrote: Hi, i downloaded Google Play and installed it on Android ICS (running on Pandaboard) but it didn't work, when i try to run it, it just gets closed and never works, i don't know what could be the problem with it, the same behavior was with the Android Market App, neither of both have worked, if someone could help me it would be great, thanks in advanced. Stop pirating software. You cannot download Google Play from an authorized source. It is licensed to device manufacturers only. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to *Advanced* Android Development_ Version 2.5 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] Performatic way to create a Bitmap?
TreKing, Exactly. Sorry for my english. Thanks for the answer. On 8 March 2012 14:12, TreKing treking...@gmail.com wrote: On Mon, Mar 5, 2012 at 10:04 AM, Guilherme Utrabo utr...@gmail.comwrote: I want to get four image files and join then to create one big image file. Is there a performatic way to do it? I couldn't find a definition for that word. What do you mean by performatic? Fast? Optimized? - 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 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] ICS's Holo Theme
Galaxy Nexus with 4.0.2 - green Asus Transformer with 4.0.3 - cyan -- K 8 марта 2012 г. 21:22 пользователь Mark Murphy mmur...@commonsware.com написал: On Thu, Mar 8, 2012 at 12:16 PM, Romain Guy romain...@android.com wrote: What version do you have your Xoom? Well, mine is still 3.2, as I have the 3G-capable model, and AFAIK they haven't shipped ICS for that. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to *Advanced* Android Development_ Version 2.5 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] Performatic way to create a Bitmap?
OK - If no one has an answer for you, I'd say try something, make it work, then profile, optimize, rinse, repeat. Good luck. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] How to read the large sized text file
What is the problem you're experiencing when trying to do this? I am just unable to read the contents of large file, and thus unable to display the contents on my view, unlike the small sized file on which my code is working well. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Best Application Data Backup solution?
That's my impression too, and I ended up not using it because of its policy and unpredictable availability on actual devices (given manufacturer specific firmware variations), but perhaps it's worth a look just because it's (mostly) already there. Other that that, take a look at various cloud computing platforms, their terms of service and pricing. Or roll your own web server if you feel confident enough. -- K 8 марта 2012 г. 18:13 пользователь gc gcst...@gmail.com написал: Thank you for the reply but the backups I have would consist of anywhere from a few 100 KB to several MB in size and Google backup has limitations (it's mostly geared towards saving off settings and preferences not custom data) at least from what I've read. Is this information incorrect? On Wednesday, March 7, 2012 6:56:26 AM UTC-6, Kostya Vasilyev wrote: FWIW, there is a data backup solution built into Android: http://developer.android.com/guide/topics/data/backup.html On 03/07/2012 04:51 PM, gcstang wrote: Does no one perform these types of backups or am I asking the wrong question? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 read the large sized text file
On Thu, Mar 8, 2012 at 10:12 PM, Nadeem Hasan nha...@nadmm.com wrote: Do the same think but in an AsyncTask and read in chunks instead of reading the whole asset into a buffer like in the demo. This approach would scale very well. Of course, I am assuming that what you want to do with that asset is compatible with chunked processing. Thanks Nadeem, m just hoping that will help me out. May you please suggest me any sample, which can help me in doing 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] Re: Best Application Data Backup solution?
2012/3/8 Kostya Vasilyev kmans...@gmail.com: Other that that, take a look at various cloud computing platforms, their terms of service and pricing. Or roll your own web server if you feel confident enough. In most cases, IMHO, it's not the developer's data. It's the user's data. Hence, the backup should be made to something the user controls, such as: -- external storage -- DropBox account (via API or Android client) -- email (via attachment) -- etc. The only case where backing it up to a developer-owned server would seem appropriate for user-owned data is if said server also had a Web app, or sync options to other clients, or something to allow the user to use the backup. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to *Advanced* Android Development_ Version 2.5 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] Re: Best Application Data Backup solution?
On 03/08/2012 10:23 PM, Mark Murphy wrote: In most cases, IMHO, it's not the developer's data. It's the user's data. Agreed. Hence, the backup should be made to something the user controls, such as: -- external storage -- DropBox account (via API or Android client) -- email (via attachment) -- etc. Given the context, I'd also consider security implications. Email message sizes are typically limited by servers to around 30Mb, meaning 20-something megabytes of useful data if using base64 encoding. The only case where backing it up to a developer-owned server would seem appropriate for user-owned data is if said server also had a Web app, or sync options to other clients, It just depends on the data. Backup / restore functionality within one app is still valuable in cases where the user gets a new device or resets his existing one (assuming data loss), wishes to sync data between devices, or to protect against unexpected device / data loss. For example: Android can back up WiFI networks configured on the device, including their passwords, but there is no web app to see this data. or something to allow the user to use the backup. Yep, that's the point, isn't it? The something can be the app's restore functionality. -- K -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] rotating VideoView
I was looking at the RotatingButton api demo (which allows you to rotate a button), and I thought it would be nice to rotate a videoview. However, I tried calling setRotationY on a VideoView, and it didn't seem to work. Anyone know if this works or not? Thanks. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] How to read the large sized text file
On Thu, Mar 8, 2012 at 12:10 PM, Narendra Singh Rathore nsr.curi...@gmail.com wrote: What is the problem you're experiencing when trying to do this? I am just unable to read the contents of large file That tells us nothing about the why of the actual problem you're having. - 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] rotating VideoView
AFAIK, you cannot rotate a SurfaceView, which is what VideoView uses under the covers. In principle, this should work with a TextureView and a MediaPlayer on Android 4.0, though I certainly have not tried it. On Thu, Mar 8, 2012 at 1:43 PM, bob b...@coolfone.comze.com wrote: I was looking at the RotatingButton api demo (which allows you to rotate a button), and I thought it would be nice to rotate a videoview. However, I tried calling setRotationY on a VideoView, and it didn't seem to work. Anyone know if this works or not? 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 -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to *Advanced* Android Development_ Version 2.5 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] Run through Command prompt
Can anybody tell me how to run already existing android project through cmd ? Thanks -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] How to read the large sized text file
On Fri, Mar 9, 2012 at 12:22 AM, TreKing treking...@gmail.com wrote: On Thu, Mar 8, 2012 at 12:10 PM, Narendra Singh Rathore nsr.curi...@gmail.com wrote: What is the problem you're experiencing when trying to do this? I am just unable to read the contents of large file That tells us nothing about the why of the actual problem you're having. Okay, in that case, here is some more clarification. I am actually displaying the contents/words of text file in AutocompleteTextView. If I reduce the word limit of that file to 150 or something around it, then it works well. But in my case, I require large amount of words, near about 10,000. I applied the same code here, and then trying to fill my ArrayAdapter with those words, but that seems to be of no use. AFAIK, this is just because I am trying to read large file. I guess, you got my problem now, didn;t 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
Re: [android-developers] Save Last Coordinates Map
I believe in the locationmanager there is a function called getlastknownlocation. On 8 Mar 2012 15:20, TreKing treking...@gmail.com wrote: On Tue, Mar 6, 2012 at 6:37 AM, concave agung.wiguna.jo...@gmail.comwrote: What i want to ask is, it's possible to save last coordinates ? Yes, it's possible. if so, can anybody here tell me how to do it's If you can explain what you mean by save and last coordinates, you will get a better answer. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Call blocking
I guess there is a way to do it since so many were able to write such application, check out: https://play.google.com/store/search?q=call+blockingc=apps https://play.google.com/store/search?q=call+blockingc=apps Hope this helps /Yaron -- Yaron Reinharts Smart Drive Applications http://www.poncho.co.il/gateaway.php https://market.android.com/details?id=com.poncho.gsm.gate.activities On 03/05/2012 09:55 PM, Mai wrote: Hi, I am new to Android and was wondering if there was a way (API call, etc..) to write a program that checks the incoming number against a list and hangs up the phone if there is a match before letting the call go to voice mail. These telemarketers are really annoying and there doesn't seem to be an app available that works properly. I suspect that this is not possible due to security but thought I'd ask. I am thinking; 1- grab the incoming number 2- check it against a list 3- hangup if match found, preferably before the phone even rings. Am I dreaming? or 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
Re: [android-developers] Draw icons depending of zoom
Did you try to implement your own Overlay? http://code.google.com/android/add-ons/google-apis/reference/com/google/android/maps/Overlay.html Hope this helps /Yaron -- Yaron Reinharts Smart Drive Applications http://www.poncho.co.il/gateaway.php https://market.android.com/details?id=com.poncho.gsm.gate.activities On 03/07/2012 04:06 PM, Grontag wrote: Hi all. I am developing an application that draws icons on a map. But i need to draw them dynamically: if the user does zoom in the map, if zoomLevel is 10, draw this icon, in other case draw that other icon. I've been the whole morning reading and searching the web, and found nothing that works. Any idea? Thank you in advance. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Run through Command prompt
On Fri, Mar 9, 2012 at 12:29 AM, megha agrawal megha14.2...@gmail.comwrote: Can anybody tell me how to run already existing android project through cmd ? I suggest you to read the documentation. http://developer.android.com/guide/developing/building/building-cmdline.html This will surely help you. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Same java package in multiple applications
Individual app installations on the same device are completely sandboxed from each other. It's not possible for namespaces to collide for either java or C code between apps. Doug On Mar 5, 10:04 pm, Omri o...@omrikalinsky.com wrote: Hey All, So I'm developing a mixed Java/C++ JNI based app that will have a full (paid) and lite (free) version. 99% of the code will be exactly the same. Each version of the app will have it's own java package com.mycompany.myfullapp and com.mycompany.myliteapp with it's own Activity. But, both apps will compile a bunch of the same shared source code .javas in com.mycompany.shared package. Is there a problem with having the same packages in 2 different apps as long as the main Activity and the app's main package itself is unique per app? On the C++ side of things, I'm just using #ifdef to turn features on and off and again, compiling the exact same source .cpp files into both version of the app with just different macro definitions. In both versions, is there any problem with compiling this into the same library name using LOCAL_MODULE := in my Android.mk into both versions of the app. Thanks, Omri -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Selling an app: Sales Tax and Tax Returns?
Now is great time for you to start learning about your local and federal tax laws. :-) If you generate income at all, you should be thinking about these things even if you don't cross whatever threshold the government will start caring about the taxes they can collect on it. Doug On Sunday, March 4, 2012 8:02:03 PM UTC-8, bigluc wrote: I am a young developer (under 18), and am wondering about selling an app, but wonder about taxes. I live in California, US and have a parent who can file taxes. I am wondering if I need a buissness, report sales, or file a tax return on profit that I make from a paid app. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] How to read the large sized text file
On Thu, Mar 8, 2012 at 1:08 PM, Narendra Singh Rathore nsr.curi...@gmail.com wrote: I guess, you got my problem now, didn;t you? Nope, sorry. You're being vague. How does fewer words work well? How does more words break it? You applied the same code but it's still of no use still doesn't explain the actual problem. What is of no use? What *exactly* is the problem that occurs when you have a larger file? Does it crash? Are there exceptions? Is your adapter filled with only half the words? Are the words translated to Arabic for no good reason? WHAT IS THE PROBLEM? Do you see what I'm getting at? - 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] back up
On Thu, Mar 08, 2012 at 07:02:02AM -0800, deepu wrote: hi dudes i want to take a backup of my contacts ,give some src Source: the Android Developers Guide (http://developer.android.com/guide/index.html) That's a very good source for you to start with. Later, --jim -- THE SCORE: ME: 2 CANCER: 0 73 DE N5IAL (/4)MiSTie #49997 Running FreeBSD 7.0 spooky1...@gmail.com ICBM/Hurricane: 30.44406N 86.59909W 'Wrong' is one of those concepts that depends on witnesses. --Catbert: Evil Director of Human Resources (Dilbert, 05Nov09) 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
[android-developers] Expanding Galaxy?
I have the Samsung Galaxy Tab 10.1, and it has a status bar at the bottom of the screen with the Back, Home, Menu, and Screen Capture button. Is there a reasonable way to hide this to play a movie back in complete 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
Re: [android-developers] mono for android-How's it?
I have written Android apps in both Java and in C# using Mono. For my own personal apps I use Java. At my job we are developing an Android app and are required to use Mono for Android so that we can make use of some rather extensive existing code. Unless there is a valid reason, like at my job, I would highly recommend just sucking it up and learning Java. As TreKing mentioned, syntax is very similar and there are only relatively minor differences between the two. Also, as he mentioned, any competent programmer should be able to learn a new language relatively easy... Plus, it helps boost your resume to know more languages. As for me, I would consider myself pretty proficient in C++, Java, C#, PHP, and Javascript... I think it looks pretty good on a resume. It keeps you well-rounded. Also, I am using MonoDevelop on a Mac to use Mono for Android... I tried using VS but found that the experience with using VS to develop apps with Mono for Android was very bad... MonoDevelop is also available for Windows if you are a Windows guy. But since that product is made by Xamarin there is much more support there for it. Also, when deploying an app with Mono for Android, you can only use the emulator unless you purchase a license, so you aren't going to get very far unless you want to fork out some money. Another downside is that Mono for Android apps are using the Dalvik VM to run another VM for the C# code so you are going through two virtual machines. And currently there isn't support for the compatibility library right now (though I have been told that the next release will support it). Hope that helps... Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Thu, Mar 8, 2012 at 9:28 AM, TreKing treking...@gmail.com wrote: On Tue, Mar 6, 2012 at 4:27 AM, VATSAL vut...@gmail.com wrote: But i don't know whether it would works same as apps made in eclipse. Try it. See what happens. Regardless of anyone else's experience, you won't know if it's something that is worth your own time unless you play with it yourself and experience it first hand. I am a c# developer and i don't want to learn a new language just to make android apps Some thoughts: 1- If you know C#, you already know a very large amount of what you need to know about Java. They're very similar at a high level. 2 - Any competent programmer should be able to pick up a new language in a matter of days or weeks and you'll be better for it. 3 - The vast majority of people developing Android Apps are using Eclipse, Java, and the Official SDK. If you decide to use Mono to save yourself the time of learning Java, you will probably actually end up having a harder time of things simply due to the lack of information and knowledge that will be available compared to Java. So I would recommend you just suck it up and learn Java if you're serious about making Android Apps. Good luck. - 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 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Switch from physical to software keyboard
Unless I'm missing something, a keyboard is a keyboard, right? Why would you ever need to have a hardware keyboard attached AND use a software keyboard? Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Thu, Mar 8, 2012 at 6:08 AM, eddie ed.car...@gmail.com wrote: iid, I have the same problem. Were you able to find a solution? Thanks, Eddie On Saturday, February 11, 2012 5:39:38 PM UTC-5, iid wrote: Hi all, I'm developing an application that will run on a tablet with Android 3.2. I attached a physical keyboard to tablet then the software keyboard disappear. Now I need to use the software keyboard in some activities, but I don't figure out how I can do that. I tried different ways: http://stackoverflow.com/**questions/2403632/android-** show-soft-keyboard-**automatically-when-focus-is-**on-an-edittexthttp://stackoverflow.com/questions/2403632/android-show-soft-keyboard-automatically-when-focus-is-on-an-edittext http://dev.bostone.us/2009/11/**04/android-show-and-hide-soft-** keyboard-programmaticaly/#awp:**:2009/11/04/android-show-and-** hide-soft-keyboard-**programmaticaly/http://dev.bostone.us/2009/11/04/android-show-and-hide-soft-keyboard-programmaticaly/#awp::2009/11/04/android-show-and-hide-soft-keyboard-programmaticaly/ http://plainoldstan.blogspot.**com/2010/09/android-set-focus-** and-show-soft.htmlhttp://plainoldstan.blogspot.com/2010/09/android-set-focus-and-show-soft.html All these don't work if the physical keyboard is connected. Someone know how can I achieve this goal? 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
Re: [android-developers] Android customize expandable list view encountered a problem
On 3/5/2012 10:38 PM, Zheng Martin wrote: please go to see this topic first. http://stackoverflow.com/questions/9562043/expandablelistview-when-i-click-button-update-imageview#comment12121717_9562043 I pasted the problem in stackoverflow, without any answer. please help me to resolve it when you are free. 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 Answered -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Expanding Galaxy?
On Thu, Mar 8, 2012 at 2:50 PM, bob b...@coolfone.comze.com wrote: I have the Samsung Galaxy Tab 10.1, and it has a status bar at the bottom of the screen with the Back, Home, Menu, and Screen Capture button. Is there a reasonable way to hide this to play a movie back in complete fullscreen? No. See Controls for system UI visibility on: http://developer.android.com/sdk/android-4.0.html In short: you can hide it on phones, not tablets (via setSystemUiVisibility()), though you can dim it on tablets. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in NYC: 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: How to read the large sized text file
I don't have any sample code but I think I gave you enough information to try it out yourself. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] How do I change the SDK version used in an application?
Sometimes Eclipse gets never gets it straight so I give-up and cut-and-paste the old project into a new one... On Thursday, March 8, 2012 6:17:41 AM UTC-7, Mark Murphy (a Commons Guy) wrote: Install it on a different device that runs a different version of Android. If you mean how do you control the build target, in Eclipse, you will find this in the Android area of project properties . On Tue, Mar 6, 2012 at 2:09 AM, R Keith Beal wrote: How do I change the SDK version used in an application? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Rounded Rectangle Image
If the background color is always going to be the same then perhaps just change the corners of the image to the same color as the background. (Even if its not, like my icons in the Android Market, it still looks fine). On Monday, March 5, 2012 5:37:38 AM UTC-7, Pricillia wrote: Hello guys, actually I am a newbie here I am not too really understand about android programming but I am trying to make a rounded rectangle image overview I try to googling but somehow it's show about shape, but I need to make rounded rectangle image from rectangle image. Can you guys 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
Re: [android-developers] Re: Rounded Rectangle Image
I've used code found here before and it works well: http://stackoverflow.com/questions/2459916/how-to-make-an-imageview-to-have-rounded-corners That is, if I understand what you are trying to do correctly... Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Thu, Mar 8, 2012 at 1:14 PM, Yan yinor...@gmail.com wrote: If the background color is always going to be the same then perhaps just change the corners of the image to the same color as the background. (Even if its not, like my icons in the Android Market, it still looks fine). On Monday, March 5, 2012 5:37:38 AM UTC-7, Pricillia wrote: Hello guys, actually I am a newbie here I am not too really understand about android programming but I am trying to make a rounded rectangle image overview I try to googling but somehow it's show about shape, but I need to make rounded rectangle image from rectangle image. Can you guys 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 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Difficulty rendering an octahedron (2 pyramids attached at the bottom to each other)
Putting the phrase homework project in this group is probably not going to get you much help, but since I love this subject so much, how about just changing the colors to random combinations they are not already. It should not take too long to find the solution... On Monday, March 5, 2012 2:06:14 PM UTC-7, geoklee wrote: I am having difficulty with my homework project rendering an octahedron by modifying an existing project that renders a pyramid. The hint given is to change the vertices, colors, and indices objects. I did that but the best I could generate is the existing pyramid with 1 or 2 faces of the inverted pyramid shown while it is rotating on screen. I have been changing the order of the indices and vertices but still can not solve the problem. I think these values are correct if I draw it on paper. I would appreciate some tips to solve the problem as I have not make any progress after days of fruitless tinkering. Perhaps I need to modify other code? Thanks in advance! Here are the values of the vertices, colors, and indices: private float[] vertices = { // 6 vertices of the pyramid in (x,y,z) -1.0f, -1.0f, -1.0f, // 0. left-bottom-back 1.0f, -1.0f, -1.0f, // 1. right-bottom-back 1.0f, -1.0f, 1.0f, // 2. right-bottom-front -1.0f, -1.0f, 1.0f, // 3. left-bottom-front 0.0f, 1.0f, 0.0f, // 4. top //added vertex 0.0f, -3.0f, 0.0f // 4. bottom }; private float[] colors = { // Colors of the 6 vertices in RGBA 0.0f, 0.0f, 1.0f, 1.0f, // 0. blue 0.0f, 1.0f, 0.0f, 1.0f, // 1. green 0.0f, 0.0f, 1.0f, 1.0f, // 2. blue 0.0f, 1.0f, 0.0f, 1.0f, // 3. green 1.0f, 0.0f, 0.0f, 1.0f, // 4. red //added color 1.0f, 1.0f, 0.0f, 0.0f // 5. yellow }; private byte[] indices = { 2, 4, 3, // front face (CCW) - same as 4,3,2 or 3,2,4 4, 2, 1, // right face - same as 2,1,4 or 1,4,2 0, 4, 1, // back face - same 4,1,0 or 1,0,4 4, 0, 3, // left face - same 0,3,4 or 3,4,2 // inverted pyramid 3, 5, 2, 2, 5, 1, 1, 5, 0, 3, 5, 0, }; -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Android customize expandable list view encountered a problem
This sounds like an issue related to view recycling... There are answers all over the web for that. Try googling android list view recycling problem and seeing if you come up with an acceptable answer. Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Thu, Mar 8, 2012 at 12:56 PM, Ted Scott t...@hootinholler.com wrote: On 3/5/2012 10:38 PM, Zheng Martin wrote: please go to see this topic first. http://stackoverflow.com/** questions/9562043/**expandablelistview-when-i-** click-button-update-imageview#**comment12121717_9562043http://stackoverflow.com/questions/9562043/expandablelistview-when-i-click-button-update-imageview#comment12121717_9562043 I pasted the problem in stackoverflow, without any answer. please help me to resolve it when you are free. 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 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 Answered -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@**googlegroups.comandroid-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+**unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/**group/android-developers?hl=enhttp://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Android Sound Verification
Ummm... have fun? Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Mon, Mar 5, 2012 at 2:29 AM, Tapan Thakkar tapan.d.thak...@gmail.comwrote: Hi, I would like to create an app which recognize the sound coming from MIC. I want to differentiate whether coming sound is of Clap or Whistle. Please share your thoughts. -- Thanks and Regards, Tapan D. Thakkar (M:09714324778) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Help please,I encountered this problemCouldn't init cursor window
Are you trying to do some UI stuff in your doInBackground() method? If so, that won't work... Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Tue, Mar 6, 2012 at 8:55 PM, jack xinchenlong0...@gmail.com wrote: at -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: using custom views in xml layouts
Have you implemented ALL of the constructors that TextView implements? Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Tue, Mar 6, 2012 at 11:09 PM, Randy tangdengch...@gmail.com wrote: maybe you try this , in you custonm view xml : net.pocketmagic.**customangletext.**CustomTextView.view android:id=@+id/yourID android:layout_width=wrap_**content android:layout_height=wrap_**content android:layout_margin=10dp / 在 2012年3月6日星期二UTC+8下午5时07分28秒,chowdary nani写道: Hi All, i am working with custom views using in xml layouts Following is my custom view code: public class CustomTextView extends View { private int m_nColor; private Typeface m_tTypeface; private int m_nSize; private int m_nRotationAngle, m_nRotationW, m_nRotationH; private String m_szText; public CustomTextView(Context context) { super(context); // set default parameters Log.d(dghgfhf, dfghgfh); m_nColor = Color.WHITE; m_nSize = 14; m_nRotationAngle = 0; m_nRotationW = 0; m_nRotationH = 0; m_tTypeface = Typeface.create(arial, Typeface.NORMAL); } public CustomTextView(Context context, AttributeSet attrs) { super(context, attrs); } public void SetColor(int newcolor) { m_nColor = newcolor; this.invalidate(); } public void SetTextSize(int newsize) { m_nSize = newsize; this.invalidate(); } // style: normal-0,bold-1,italic-2,bold-**italic-3, public void SetFont(String newfontface, int style) { m_tTypeface = Typeface.create(newfontface, style); this.invalidate(); } public void SetRotation(int newangle, int neww, int newh) { m_nRotationAngle = newangle; m_nRotationW = neww; m_nRotationH = newh; this.invalidate(); } public void SetText(String newtext) { m_szText = newtext; this.invalidate(); } @Override protected void onDraw(Canvas canvas) { super.onDraw(canvas); Paint paint = new Paint(); paint.setTypeface(m_tTypeface)**; paint.setStyle(Paint.Style.**FILL); paint.setColor(m_nColor); // paint.setShadowLayer(1, 0, 1, Color.parseColor(#00)); paint.setTextSize(m_nSize); canvas.rotate(m_**nRotationAngle, m_nRotationW, m_nRotationH); canvas.drawText(m_szText, 0, 0, paint); } } Following is my layout: ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.**android.com/apk/res/androidhttp://schemas.android.com/apk/res/android xmlns:GUI=http://schemas.**android.com/apk/res/net.** pocketmagic.customangletexthttp://schemas.android.com/apk/res/net.pocketmagic.customangletext android:layout_width=fill_**parent android:layout_height=fill_**parent android:orientation=vertical view android:id=@+id/yourID android:layout_width=wrap_**content android:layout_height=wrap_**content android:layout_margin=10dp class=net.pocketmagic.**customangletext.**CustomTextView / /LinearLayout i am getting null pointer exception i am unable find where i am going wrong please help me Thanks Naveen. 在 2012年3月6日星期二UTC+8下午5时07分28秒,chowdary nani写道: Hi All, i am working with custom views using in xml layouts Following is my custom view code: public class CustomTextView extends View { private int m_nColor; private Typeface m_tTypeface; private int m_nSize; private int m_nRotationAngle, m_nRotationW, m_nRotationH; private String m_szText; public CustomTextView(Context context) { super(context); // set default parameters Log.d(dghgfhf, dfghgfh); m_nColor = Color.WHITE; m_nSize = 14; m_nRotationAngle = 0; m_nRotationW = 0; m_nRotationH = 0; m_tTypeface = Typeface.create(arial, Typeface.NORMAL); } public CustomTextView(Context context, AttributeSet attrs) { super(context, attrs); } public void SetColor(int newcolor) { m_nColor = newcolor; this.invalidate(); } public void SetTextSize(int newsize) { m_nSize = newsize; this.invalidate(); } // style: normal-0,bold-1,italic-2,bold-**italic-3, public void SetFont(String newfontface, int style) { m_tTypeface = Typeface.create(newfontface, style); this.invalidate(); } public void SetRotation(int newangle, int neww, int newh) { m_nRotationAngle = newangle; m_nRotationW = neww; m_nRotationH = newh; this.invalidate(); } public void SetText(String newtext) { m_szText = newtext; this.invalidate(); } @Override protected void
[android-developers] Re: Turn Screen Off/on
Why not just display the screen black a few times??? On Tuesday, March 6, 2012 11:30:24 AM UTC-7, Levi Ribeiro wrote: Hi, I'm trying to do a simple test, where the screen turn off and on several times. something like 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] sending email to varify email address.
http://bit.ly/A3VFjN Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Wed, Mar 7, 2012 at 1:37 AM, ravindra bhavsar ravindra.bhavs...@gmail.com wrote: Hello sir /Madam, I m new in android development i want send email for verifying that email address.how to i do that.if any on know please tell me procedure and tutorial . Thanks in advanced... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Go To ( http://adf.ly/20PrE )-)-) Re: [android-developers] Re: Losing memory on tablet but not phone
Okay, I'm using VBO's to get around it, but now there's the same problem with BitmapFactory. Regardless of the amount of textures I load, there are always three textures that waste 2/3 the size of the texture + 64k. For example if the texture is 512x512x3=786432 then it consumes 512x512x2 + 64k = 589824 bytes. Multiply that by three and that's almost a couple MB of the precious heap that's lost forever, and probably a few extra million phones that will never run my app... On Mar 5, 1:06 pm, yinor...@gmail.com wrote: I may have to try using VBO's to get around 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] Magento - Android integration
http://bit.ly/wrNanO Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Tue, Mar 6, 2012 at 10:25 PM, Parth Amin parthsa...@gmail.com wrote: Hello, I want to integrate Magento with my Android App. Can anyone guide me to start with 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 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How can I send MMS via android app without moving to InBox Messages ?
I've to develop an android application that send MMS directly without moving to the InBox Messages, I search on the web all i found is this link: http://androidbridge.blogspot.com/2011/03/how-to-send-mms-programmatically-in.html I downloaded the .zip file and imported it in eclipse but actually i didn't know which package should I use and which classes ! so confusing with it :( any suggestions ? 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] Background and foreground image views
Or you can just display an image view and set the background and foreground to what you want them to be... Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Thu, Mar 8, 2012 at 5:42 AM, sha m temptes...@gmail.com wrote: FrameLayout helps to draw one view above another On Thu, Mar 8, 2012 at 6:10 PM, Put_tiMe putt...@gmail.com wrote: I need to have a background and a foreground image views in a LinearLayout. Obviously the background has to be drawn before the foreground. How can I do 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 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] about caller uid xxxxx is different than the authenticator's uid message
Set the shared user id to be the same for both applications. http://developer.android.com/guide/topics/manifest/manifest-element.html#uid Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Wed, Mar 7, 2012 at 2:02 AM, yons kihyun0...@gmail.com wrote: Hi, I need to solve Android AccountManager's issue. These days, I have made a login system using AccountManager. I'd made an app which uses Android AccountManager. (I will call it A app) After, I made another app which use A app's AccountManager's account data. (I will call it B app) But when I run B app, I have met caller kid is different than the authenticator's uid error message. So, I signed B app with A app's keystore file, then issue was cleared. But, I still want to know the reason and without using the same keystone file can not solve the other to want to know how. If anyone knows the answer, please comment. 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 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Android app connect with SQLServer, Solve problem
http://catb.org/esr/faqs/smart-questions.html Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Wed, Mar 7, 2012 at 11:59 AM, Mohit kumawat mohit.kumawat1...@gmail.comwrote: Hello to all, I have a project for connect a sqlserver with my app, i search related this but dont find a satisfaction post or article for this. I have problem that how can i connect a remote SQL database table with android, and want to show in a activity same as, and also a synchronization with a time duration. Please help 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 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en