[android-developers] Re: Java knowledge
Core java is enough but in some cases Collections are also required for Android Applications. On Dec 7, 12:53 pm, Awdhesh Jha awdheshkumar@gmail.com wrote: You should be know only core java for it. On Friday, December 7, 2012 12:32:01 PM UTC+5:30, Sadhna Upadhyay wrote: i everybody, haw much java knowledge is required for android, actually i have very little knowledge about java. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] QR code generating with Zxing
How we can use zxing lib. to generate qr code and make android application enabled with qrcode generating 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
Re: [android-developers] QR code generating with Zxing
https://play.google.com/store/search?q=androidjayaveluc=apps On Fri, Dec 7, 2012 at 2:42 PM, avaiya kirti avaiyakir...@gmail.com wrote: How we can use zxing lib. to generate qr code and make android application enabled with qrcode generating 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 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 phones and bluetooth
https://play.google.com/store/search?q=androidjayaveluc=apps On Thu, Dec 6, 2012 at 6:49 AM, dashman erjdri...@gmail.com wrote: do most android phones support the bluetooth serial profile. specifically - gps data access. how would i know whether the phone supports it. i.e. look at the specs for the bluetooth version?? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] MathML in Android
https://play.google.com/store/search?q=androidjayaveluc=apps On Tue, Dec 4, 2012 at 2:32 PM, Makrand makrandm...@gmail.com wrote: I am aware about Android webkit doesn't support MathML. but I am working on Maths related project and my client has send some thousands of MathML files. I have tried with MathJax it works but its Internet based and rending speed is very slow, it takes around 2 to 3 sec to render file, I also tired to implement locally but it requires lot of resources and he is not able to find some resources from local folders. Is there any way to display MathML in Android? if not then what would be best approach if I already have thousands of MathML files. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Best lib for cover flow in android
https://play.google.com/store/apps/details?id=com.jay.memoryfeature=search_result#?t=W251bGwsMSwxLDEsImNvbS5qYXkubWVtb3J5Il0 . On Wed, Dec 5, 2012 at 1:16 AM, bob b...@coolfone.comze.com wrote: I think I used this one awhile ago: http://www.inter-fuser.com/2010/01/android-coverflow-widget.html It is probably good enough. On Tuesday, December 4, 2012 11:20:00 AM UTC-6, djhacktor wrote: Hi can any one help in reducing my search time to find best cover flow lib available in android !! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Required: Sr. NET Developer at Santa Clara, CA
https://play.google.com/store/apps/details?id=com.jay.memoryfeature=search_result#?t=W251bGwsMSwxLDEsImNvbS5qYXkubWVtb3J5Il0 . On Thu, Dec 6, 2012 at 9:26 PM, Munawar Ali ali.ble...@gmail.com wrote: Hi Friend, Hope you are doing good. Please let me know if you have someone for the below mention requirement… Please send resumes on m...@tekenergyusa.com *Position: Sr. ASP.NET Developer* *Location: Santa Clara, CA* *Duration: 6 Months Contract* *Start Date: Monday December 10th* *Interview Process: Phone In-Person Interview* *Description:* The Developer will be responsible for the design, development, implementation, testing and supporting of the new web applications as well as adding new features and enhancements to existing ones. The Developer must have Front End (GUI) development of various web controls and knowledge of specific web development platforms and languages (*HTML, JavaScript, DHTML, XML, and XSL*). SQL back end development of database application and its inherent connection devices. The ideal candidate must have 4+ years experience with *ASP.NET, C#, .NET Framework 3.0* or higher, *MS SQL Server 2005/2008, HTML, CSS and JavaScript*. Positions require previous experience analyzing and resolving web site problems. Candidates must be able to think on their feet, work on multiple projects simultaneously and be able to develop a wide variety of browsers. Thanks Regards, Munawar Ali Technical Recruiter TEKenergy LLC m...@tekenergyusa.com www.tekenergyusa.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How to launch my own GUI to handle incoming/outgoing call (instead of Default PHONE app)
ya you can handle...first of all u need to save the state(ringing,offhook,idle) of the incoming and outgoing calls. so by using these states u can able to show ur gui -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Can't Use Raw Links and Anchor Links in One TextView?
On Thu, Dec 6, 2012 at 11:13 PM, TreKing treking...@gmail.com wrote: I'm trying to display some text that I get from various web sources in some TextViews. The data is out of my control and may contain links to other sites. The links may be raw or anchored. By this I mean: Raw link is like http://www.google.com Anchored link is like a href=http://www.google.com;Google/a I set the text on the TextView using Html.fromHtml(). I'd like to be able to click any of these links to go to the linked sites, but apparently the TextView can only support one or the other but not both of these at the same time .. ? I can use the autoLink=true property on the TextView to make raw links clickable, but the anchor links are not affected. Use Html.fromHtml() on your input string before passing it to the TextView. That should handle your anchor links. With luck, it will leave the autoLink behavior as-is. -- 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 Android Development_ Version 4.4 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] HttpClient - Credentials are missing.
Hello I have an android application that makes a GET request to a web app, the return of this request with the following message: authentication_failed: Your credentials could not be authenticated: Credentials are missing.. You will not be permitted access until your credentials can be verified. If I access the same URL through the brower tablet JSON is returned successfully. Does anyone know what can be? Thank you. att, -- Diêgo Nunes Assunção Give Peace a Chance -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 launch my own GUI to handle incoming/outgoing call (instead of Default PHONE app)
Thank you very much for your response. I am giving a brief idea about my problem: In my android application I used *TelephonyManager* to listen * PhoneState(Idle/Ringing/Offhook) *and identified whether any incoming/outgoing call is initiated. If initiated, I used *intent* to * startActivity **MyCallActivity *to handle call. Now *MyCallActivity *has been launched but it does not appear on screen because android system's default PHONE app appears on screen. I want to know that how can we fix that every time* MyCallActivity *comes on foreground (on screen) in place of default PHONE app. Android App Mobile Accessibility does the same. How can i do it? On Fri, Dec 7, 2012 at 5:52 PM, Anil Kumar anilkumar@gmail.com wrote: ya you can handle...first of all u need to save the state(ringing,offhook,idle) of the incoming and outgoing calls. so by using these states u can able to show ur gui -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Gaurav Wable -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 launch my own GUI to handle incoming/outgoing call (instead of Default PHONE app)
Thank you very much for your response. I am giving a brief idea about my problem: In my android application I used *TelephonyManager* to listen * PhoneState(Idle/Ringing/Offhook) *and identified whether any incoming/outgoing call is initiated. If initiated, I used *intent* to * startActivity **MyCallActivity *to handle call. Now *MyCallActivity *has been launched but it does not appear on screen because android system's default PHONE app appears on screen. I want to know that how can we fix that every time* MyCallActivity *comes on foreground (on screen) in place of default PHONE app. Android App Mobile Accessibility does the same. How can i do it? On Friday, 7 December 2012 17:52:49 UTC+5:30, Anil Kumar wrote: ya you can handle...first of all u need to save the state(ringing,offhook,idle) of the incoming and outgoing calls. so by using these states u can able to show ur gui -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: HttpClient - Credentials are missing.
Code I'm using: *HttpClient httpClient = new DefaultHttpClient();* *httpClient.getParams().setParameter(CoreProtocolPNames.HTTP_ELEMENT_CHARSET, iso-8859-1);* * * *HttpContext localContext = new BasicHttpContext();* * * *HttpGet httpGet = new HttpGet(URL);* *httpGet.setHeader(Accept-Charset, iso-8859-1, unicode-1-1;q=0.8);* * * *HttpResponse response = httpClient.execute(httpGet, localContext);* *HttpEntity entity = response.getEntity();* Thank you. On Fri, Dec 7, 2012 at 10:30 AM, Diego N. diegonunes.sist...@gmail.comwrote: Hello I have an android application that makes a GET request to a web app, the return of this request with the following message: authentication_failed: Your credentials could not be authenticated: Credentials are missing.. You will not be permitted access until your credentials can be verified. If I access the same URL through the brower tablet JSON is returned successfully. Does anyone know what can be? Thank you. att, -- Diêgo Nunes Assunção Give Peace a Chance -- http://about.me/dnassuncao Diêgo Nunes Assunção Give Peace a Chance -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] using pure webviews for Facebook auth
Has anyone explored doing Facebook auth purely with webviews from inside of a native Android app ? Without using the Facebook Android SDK that is I'd like to seee if this is feasible for our app since by doing this I will have control of the redirect URL in the oauth flow (and we already have a server side implementation) If this is possible, what are the challenges ? (Fitting all possible screen sizes and resolutions, etc.) 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: HttpClient - Credentials are missing.
It's hard to tell since we don't know what URL you are talking about. You should get in touch with the programmer of that web page you're trying to access and ask him/her about that issue. I suspect it has to do with the user agent string. Maybe that web service only accepts a list of known strings. Maybe that URL is in fact password protected and the browser you're using automatically logs in or has a valid session cookie. On Friday, December 7, 2012 6:36:02 AM UTC-6, Diego Nunes wrote: Code I'm using: *HttpClient httpClient = new DefaultHttpClient();* *httpClient.getParams().setParameter(CoreProtocolPNames.HTTP_ELEMENT_CHARSET, iso-8859-1);* * * *HttpContext localContext = new BasicHttpContext();* * * *HttpGet httpGet = new HttpGet(URL);* *httpGet.setHeader(Accept-Charset, iso-8859-1, unicode-1-1;q=0.8);* * * *HttpResponse response = httpClient.execute(httpGet, localContext);* *HttpEntity entity = response.getEntity();* Thank you. On Fri, Dec 7, 2012 at 10:30 AM, Diego N. diegonune...@gmail.comjavascript: wrote: Hello I have an android application that makes a GET request to a web app, the return of this request with the following message: authentication_failed: Your credentials could not be authenticated: Credentials are missing.. You will not be permitted access until your credentials can be verified. If I access the same URL through the brower tablet JSON is returned successfully. Does anyone know what can be? Thank you. att, -- Diêgo Nunes Assunção Give Peace a Chance -- http://about.me/dnassuncao Diêgo Nunes Assunção Give Peace a Chance -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Changing from Checkbox to Switch controls
Isn't there a completely different approach at preferences in the meanwhile? I haven't looked closely at it but the documentation says something about PreferenceFragments that should be used instead of the old approach. I think you'll need to have two activities. One for downward-compatibility and one for the current approach. When the user tries to get to your app preferences you need to check the current API level: if(Build.SDK_INT 11) { startActivitiy(new Intent(this, OldPreferencesActivity.class)); } else { startActivitiy(new Intent(this, NewPreferencesActivity.class)); } -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 i call IntentService from Broadcast Receiver?
I make an intent service for download data and i want to repeat with broadcast receive and alarm manager.How i call my intent service?I try this but no work public class AlarmActivity extends Activity { @Overridepublic void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main);} public void startAlert(View view) { EditText text = (EditText) findViewById(R.id.time); int i = Integer.parseInt(text.getText().toString()); Intent intent = new Intent(this, MyBroadcastReceiver.class); PendingIntent pendingIntent = PendingIntent.getBroadcast(this.getApplicationContext(), 234324243, intent, 0); AlarmManager alarmManager = (AlarmManager) getSystemService(ALARM_SERVICE); //alarmManager.set(AlarmManager.RTC_WAKEUP, System.currentTimeMillis() // + (i * 1000),pendingIntent); alarmManager.setRepeating(AlarmManager.RTC_WAKEUP, System.currentTimeMillis() ,(i*1000),pendingIntent); // alarmManager.setRepeating(AlarmManager.RTC_WAKEUP, calendar // .getTimeInMillis(), intervals, pendingIntent); Toast.makeText(this, Alarm set in + i + seconds, Toast.LENGTH_LONG).show(); } public class MyBroadcastReceiver extends BroadcastReceiver { @Override public void onReceive(Context context, Intent intent) { Toast.makeText(context, Don't panik but your time is up., Toast.LENGTH_LONG).show(); // Vibrate the mobile phone Vibrator vibrator = (Vibrator) context.getSystemService(Context.VIBRATOR_SERVICE); vibrator.vibrate(500); Intent newIntent = new Intent(context, DownloadService.class) newIntent.setData(Uri.parse(http://www.mysite.net/LEDstate.txt;)); newIntent.putExtra(urlpath, http://www.mysite.net/LEDstate.txt;); context.startService(newIntent); } i use downloadservice from vogella IntentService tutorialand i want to convert it for repeat automate service... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: AdMob House Ads
John, you might be better off asking this one over in https://groups.google.com/forum/?fromgroups#!forum/google-admob-ads-sdk William On Friday, December 7, 2012 12:08:44 PM UTC+10, John Coryat wrote: I know this probably isn't the best place to ask this but I haven't found another... I'm trying to run a house ad in my Android app, advertising our beta. I set up the house ad according to the instructions at AdMob. I added house ads in the mediation area and everything looks like it should run. The status of the ad is Running. I cannot get the thing to actually work. I have no impressions yet. It's been a couple of days too. Is there a step I'm missing, like one not documented? Thanks for any help in this matter. -John Coryat -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: QR code generating with Zxing
http://maicon.strey.nom.br/blog/2012/04/27/utilizando-zxing-para-ler-codigo-de-barras/ If you reader português or you could using Google Translate =D Em sexta-feira, 7 de dezembro de 2012 07h12min32s UTC-2, avaiya kirti escreveu: How we can use zxing lib. to generate qr code and make android application enabled with qrcode generating 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: AdMob House Ads
Thanks. Will do. -John Coryat On Friday, December 7, 2012 8:38:50 AM UTC-6, William Ferguson wrote: John, you might be better off asking this one over in https://groups.google.com/forum/?fromgroups#!forum/google-admob-ads-sdk William On Friday, December 7, 2012 12:08:44 PM UTC+10, John Coryat wrote: I know this probably isn't the best place to ask this but I haven't found another... I'm trying to run a house ad in my Android app, advertising our beta. I set up the house ad according to the instructions at AdMob. I added house ads in the mediation area and everything looks like it should run. The status of the ad is Running. I cannot get the thing to actually work. I have no impressions yet. It's been a couple of days too. Is there a step I'm missing, like one not documented? Thanks for any help in this matter. -John Coryat -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Java knowledge
I would say that to develop realistic Java apps you do indeed need to know most of the Java language. For example, consider AsyncTask, this is usually an inner class templated on multiple parameters, using most of the more advanced features of the Java language. This will be used in many realistic Android apps (beyond simple apps you see in the demos). Think about AIDL or related classes, this requires a bit of thinking and implementation of the more advanced Java patterns. You don't have to be an expert Java programer: most Android apps are small, but a good grasp of the language helps. Of course, a good way to get a handle on the language would be to take out a complicated sample app, read it, and try to figure out what you don't understand, then try to look it up in a Java book. Kris On Fri, Dec 7, 2012 at 2:02 AM, Sadhna Upadhyay sadhna.braah...@gmail.com wrote: i everybody, haw much java knowledge is required for android, actually i have very little knowledge about java. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Can't Use Raw Links and Anchor Links in One TextView?
On Fri, Dec 7, 2012 at 6:25 AM, Mark Murphy mmur...@commonsware.com wrote: Use Html.fromHtml() on your input string before passing it to the TextView. Thanks Mark, but that's pretty much what I'm doing, sorry if that wasn't clear. So, as a simple example, if I have the following html string and set it using fromHtml, only one link works: String test = phttp://www.google.com/ppa href=\ http://www.google.com\;Google/a; textView.setText(*Html.fromHtml*(test)); With autoLink, the first one works, not the second. With setMovementMenthod, the second one works, not the first. I can't get both to work together, no matter what combination I try. I also played with the linksClickable property and that doesn't help. I tested on my device (api 10) and an emulator with the latest version (17) and experience the same behavior. Thanks. - 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] Can't Use Raw Links and Anchor Links in One TextView?
On Fri, Dec 7, 2012 at 11:14 AM, TreKing treking...@gmail.com wrote: Thanks Mark, but that's pretty much what I'm doing, sorry if that wasn't clear. So, as a simple example, if I have the following html string and set it using fromHtml, only one link works: String test = phttp://www.google.com/ppa href=\http://www.google.com\;Google/a; textView.setText(Html.fromHtml(test)); With autoLink, the first one works, not the second. With setMovementMenthod, the second one works, not the first. I can't get both to work together, no matter what combination I try. I also played with the linksClickable property and that doesn't help. I tested on my device (api 10) and an emulator with the latest version (17) and experience the same behavior. You may need to scan the HTML and either de-tag the a links or add the a tags to the plain links, at which point you should no longer need autoLink, setMovementMethod(), etc. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Localized Android Question-and-Answer Sites: http://www.andglobe.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Can't Use Raw Links and Anchor Links in One TextView?
Sounds like you want to use a WebView. On Thursday, December 6, 2012 10:13:46 PM UTC-6, TreKing wrote: I'm trying to display some text that I get from various web sources in some TextViews. The data is out of my control and may contain links to other sites. The links may be raw or anchored. By this I mean: Raw link is like *http://www.google.com* Anchored link is like *a href=http://www.google.com;Google/a* I set the text on the TextView using Html.fromHtml(). I'd like to be able to click any of these links to go to the linked sites, but apparently the TextView can only support one or the other but not both of these at the same time .. ? I can use the autoLink=true property on the TextView to make raw links clickable, but the anchor links are not affected. I can use the LinkMovementMethod to get the anchor link to be clickable, but the raw links are not affected. But if I use both the autoLink and LinkMovementMethod, the autoLink property seems to take precedence and makes the raw links clickable but the anchor links do nothing. I'm finding discussion on StackOverflow and this group about enabling linking in a TextView using each method, but nothing about this apparent conflict when using both. Nor do I see a bug report about this issue. I must be missing obvious ... surely I can have these two types of links work in one TextView. My alternative would be to use a WebView, but that would complicate my layout, and it really seems like this should work ... Can anyone confirm is this is a bug or feature or what I'm missing and offer a solution or workaround? Thanks! - 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] BluetoothAdapter.getDefaultAdapter() in a non-UI thread
It is a known bug: http://code.google.com/p/android/issues/detail?id=16587 I'm encountering this bug on GB, but not on 4.1. I think I wasn't getting it on 4.0 either. Tom On Wednesday, September 5, 2012 1:28:04 PM UTC-4, MagouyaWare wrote: Does anyone *really* know what this means? 09-05 10:22:05.518: E/AndroidRuntime(13117): java.lang.RuntimeException: Can't create handler inside thread that has not called Looper.prepare() 09-05 10:22:05.518: E/AndroidRuntime(13117): at android.os.Handler.init(Handler.java:121) 09-05 10:22:05.518: E/AndroidRuntime(13117): at android.bluetooth.BluetoothAdapter$2.init(BluetoothAdapter.java:1541) 09-05 10:22:05.518: E/AndroidRuntime(13117): at android.bluetooth.BluetoothAdapter.init(BluetoothAdapter.java:1541) 09-05 10:22:05.518: E/AndroidRuntime(13117): at android.bluetooth.BluetoothAdapter.getDefaultAdapter(BluetoothAdapter.java:543) 09-05 10:22:05.518: E/AndroidRuntime(13117): at com.blue_reader.Reader_Thread.run(Reader_Thread.java:31) It *really *means that whatever you are doing you cannot do on a non-ui thread... http://lmgtfy.com/?q=java.lang.RuntimeException%3A+Can%27t+create+handler+inside+thread+that+has+not+called+Looper.prepare() I got it from calling BluetoothAdapter.getDefaultAdapter(); in a non-UI thread. Then you *really* can't call that method from a non-ui thread... Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Wed, Sep 5, 2012 at 11:17 AM, bob b...@coolfone.comze.comjavascript: wrote: ava.lang.RuntimeException: Can't create handler inside thread that has not called Looper.prepare() -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Can't Use Raw Links and Anchor Links in One TextView?
On Fri, Dec 7, 2012 at 10:32 AM, Mark Murphy mmur...@commonsware.comwrote: You may need to scan the HTML and either de-tag the a links or add the a tags to the plain links, at which point you should no longer need autoLink, setMovementMethod(), etc. Ugh. It might come to that ... but shouldn't this work ... ? I think I will file a bug unless someone can confirm this is working as intended. On Fri, Dec 7, 2012 at 10:47 AM, bob b...@coolfone.comze.com wrote: Sounds like you want to use a WebView. No, as I stated a WebView will complicate my layout. What I want is for this simple functionality to work as expected or some clarity on why it doesn't. - 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] 3d texture-mapped models
Anyone know an easy way to load 3d texture-mapped models on 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] Can't Use Raw Links and Anchor Links in One TextView?
Or alternatively allow it to figure out all the link as usual and then re-link them into ClickableSpan On Friday, December 7, 2012 12:13:23 PM UTC-5, TreKing wrote: On Fri, Dec 7, 2012 at 10:32 AM, Mark Murphy mmu...@commonsware.comjavascript: wrote: You may need to scan the HTML and either de-tag the a links or add the a tags to the plain links, at which point you should no longer need autoLink, setMovementMethod(), etc. Ugh. It might come to that ... but shouldn't this work ... ? I think I will file a bug unless someone can confirm this is working as intended. On Fri, Dec 7, 2012 at 10:47 AM, bob b...@coolfone.comze.comjavascript: wrote: Sounds like you want to use a WebView. No, as I stated a WebView will complicate my layout. What I want is for this simple functionality to work as expected or some clarity on why it doesn't. - 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: Can't Use Raw Links and Anchor Links in One TextView?
On Friday, December 7, 2012 5:13:46 AM UTC+1, TreKing wrote: I'm trying to display some text that I get from various web sources in some TextViews. The data is out of my control and may contain links to other sites. The links may be raw or anchored. By this I mean: Raw link is like *http://www.google.com* Anchored link is like *a href=http://www.google.com;Google/a* I set the text on the TextView using Html.fromHtml(). I'd like to be able to click any of these links to go to the linked sites, but apparently the TextView can only support one or the other but not both of these at the same time .. ? I can use the autoLink=true property on the TextView to make raw links clickable, but the anchor links are not affected. I can use the LinkMovementMethod to get the anchor link to be clickable, but the raw links are not affected. But if I use both the autoLink and LinkMovementMethod, the autoLink property seems to take precedence and makes the raw links clickable but the anchor links do nothing. I'm finding discussion on StackOverflow and this group about enabling linking in a TextView using each method, but nothing about this apparent conflict when using both. Nor do I see a bug report about this issue. I must be missing obvious ... surely I can have these two types of links work in one TextView. My alternative would be to use a WebView, but that would complicate my layout, and it really seems like this should work ... Can anyone confirm is this is a bug or feature or what I'm missing and offer a solution or workaround? Thanks! - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices try this: String str = http://www.google.com a href=\http://www.google.com\;Google/a; Spanned html = Html.fromHtml(str); Object[] spans = html.getSpans(0, html.length(), URLSpan.class); tv.setAutoLinkMask(Linkify.ALL); tv.setText(html); SpannableString ss = (SpannableString) tv.getText(); for (int i = 0; i spans.length; i++) { URLSpan span = (URLSpan) spans[i]; int end = html.getSpanEnd(span); int start = html.getSpanStart(span); ss.setSpan(span, start, end, 0); } pskink -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Can't Use Raw Links and Anchor Links in One TextView?
On Fri, Dec 7, 2012 at 12:10 PM, Piren gpi...@gmail.com wrote: Or alternatively allow it to figure out all the link as usual and then re-link them into ClickableSpan Could you clarify what you mean by re-link them into ClickableSpan? Thanks. - 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] Can't Use Raw Links and Anchor Links in One TextView?
let the autolink do its job, then get the editable text and iterate through all the spans, then re-assign all the clickableSpans, then let the text have the default LinkMovementMethod. On Friday, December 7, 2012 1:45:05 PM UTC-5, TreKing wrote: On Fri, Dec 7, 2012 at 12:10 PM, Piren gpi...@gmail.com javascript:wrote: Or alternatively allow it to figure out all the link as usual and then re-link them into ClickableSpan Could you clarify what you mean by re-link them into ClickableSpan? Thanks. - 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: Java knowledge
Seshu wrote: Core java is enough but in some cases Collections are also required for Android Applications. Collections are part of core Java. Awdhesh Jha wrote: You should be know only core java for it. Well, that rather begs the question of how much Java one needs to know. You have to know as much Java as you need to know, in other words? Sadhna Upadhyay wrote: i everybody, haw much java [sic] knowledge is required for android [sic], actually i [sic] have very little knowledge about java [sic]. Check out the Java tutorials. The initial ones won't take you long to work through and it will give you a flavor of how hopeless you are. The chapter titles on the rest will be instructive. Indeed, you should know the collections classes rather well. You should understand and be competent in concurrent programming. You should be able to write a Java program that doesn't crash. You should know why (Assume there exists your own 'Foo' class defined accordingly.) MapString, Foo fooferol = new HashMapString, Foo(); Foo foo = new Foo(); foo.setName(Fred); fooferol.put(Fred, foo); foo.setName(Francine); fooferol.put(Francine, foo); for (String name : fooferol.keySet()) { System.out.println(name +: + fooferol.get(name)); } works the way it does. (You'll need to add more code to make that compilable and runnable.) -- Lew -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Reacting once after initial layout is complete
This question has been asked several times in various forms but I haven't found a definitive answer. I need to be able to get dimensions and positions of descendant Views after the initial layout of a container (a contentView). The dimensions required in this case are of a View(Group) that is not predictable - might have multiple lines of text, minimum height to accommodate decoration, etc. I don't want to do it every on every layout pass (onLayout). The measurement I need is a from a deeply nested child, so overriding the onLayout/onMeasure of each container in between seems a poor choice. I'm not going to do anything that'll cause a loop (trigger-event-during-event). Romain Guy hinted once that we could just .post a Runnable in the constructor of a View (which AFAIK would be in the UI thread). This seems to work on most devices (on 3 of the 4 I have personally), but fails on Nexus S. Looks like Nexus S doesn't have dimensions for everything until it's done one pass per child, and does not have the correct dimensions when the posted Runnable's run method is invoked. I tried counting layout passes (in onLayout) and comparing to getChildCount, which again works on 3 out of 4, but a different 3 (fails on Droid Razr, which seems to do just one pass - and get all measurements - regardless of the number of children). I tried various permutations of the above (posting normally; posting to a Handler; casting getContext() to an Activity and callingrunOnUiThread... same results for all). I ended up using a horrible shameful no-good hack, by checking the height of the target group against its parent's height - if it's different, it means it's been laid out. Obviously, not the best approach - but the only one that seems to work reliably between various devices and implementations. I know there's no built-in event or callback we can use, but is there a better way? TYIA -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Reacting once after initial layout is complete
I've had similar issues, never understood why it behaves so differently even under the same OS... but this one always worked for me: ViewTreeObserver vto = viewYouWantToWaitForItsLayout.getViewTreeObserver(); vto.addOnGlobalLayoutListener(new OnGlobalLayoutListener(){ @Override public void onGlobalLayout(){ //here you should stop listening to it... so it will be called only on the initial layout } } On Friday, December 7, 2012 2:26:15 PM UTC-5, momo wrote: This question has been asked several times in various forms but I haven't found a definitive answer. I need to be able to get dimensions and positions of descendant Views after the initial layout of a container (a contentView). The dimensions required in this case are of a View(Group) that is not predictable - might have multiple lines of text, minimum height to accommodate decoration, etc. I don't want to do it every on every layout pass (onLayout). The measurement I need is a from a deeply nested child, so overriding the onLayout/onMeasure of each container in between seems a poor choice. I'm not going to do anything that'll cause a loop (trigger-event-during-event). Romain Guy hinted once that we could just .post a Runnable in the constructor of a View (which AFAIK would be in the UI thread). This seems to work on most devices (on 3 of the 4 I have personally), but fails on Nexus S. Looks like Nexus S doesn't have dimensions for everything until it's done one pass per child, and does not have the correct dimensions when the posted Runnable's run method is invoked. I tried counting layout passes (in onLayout) and comparing to getChildCount, which again works on 3 out of 4, but a different 3 (fails on Droid Razr, which seems to do just one pass - and get all measurements - regardless of the number of children). I tried various permutations of the above (posting normally; posting to a Handler; casting getContext() to an Activity and callingrunOnUiThread... same results for all). I ended up using a horrible shameful no-good hack, by checking the height of the target group against its parent's height - if it's different, it means it's been laid out. Obviously, not the best approach - but the only one that seems to work reliably between various devices and implementations. I know there's no built-in event or callback we can use, but is there a better way? TYIA -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Can't Use Raw Links and Anchor Links in One TextView?
On Fri, Dec 7, 2012 at 1:08 PM, Piren gpi...@gmail.com wrote: let the autolink do its job, then get the editable text and iterate through all the spans, then re-assign all the clickableSpans, then let the text have the default LinkMovementMethod. OK - I think you're describing what pskink wrote out in code, and that works. Still blows my mind this doesn't just work, but I can throw this into a little utility method and move on with my life. Thanks! - 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] Can't Use Raw Links and Anchor Links in One TextView?
TreKing wrote: OK - I think you're describing what pskink wrote out in code, and that works. Still blows my mind this doesn't just work, see sources of Linkify. they are removing all UrlSpans before adding new ones pskink -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Can't Use Raw Links and Anchor Links in One TextView?
hehe yeah, pretty much... after i replied i noticed he wrote something very similar. Well... i did write my original answer before him :-P On Friday, December 7, 2012 2:34:18 PM UTC-5, TreKing wrote: On Fri, Dec 7, 2012 at 1:08 PM, Piren gpi...@gmail.com javascript:wrote: let the autolink do its job, then get the editable text and iterate through all the spans, then re-assign all the clickableSpans, then let the text have the default LinkMovementMethod. OK - I think you're describing what pskink wrote out in code, and that works. Still blows my mind this doesn't just work, but I can throw this into a little utility method and move on with my life. Thanks! - 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: Canvas.drawline help needed
Call canvas.setMatrix(new Matrix()); prior to drawing your line On Friday, December 7, 2012 12:15:30 PM UTC-6, Talha Qamar wrote: Hi i am actually using orientation sensor to make a simple compass ...but then i draw a line using canvas.drawline on that imagewhen i rotate mobile it changes the values of orientation sensor and rotate the image that works finebut line on that canvas also moves with that rotation... i want that line to point to that same direction where it was pointing first.After changes in orientation sensor line points to same direction..I have attached the code.Point the line to any direction u set first than after rotation line point to that direction .Plz help me i m newbie in android.Thanks in advance. Regards, TQ. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] width of a texture on Android
Does anyone know how to get the width of a texture on Android using the texture ID? 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: Java knowledge
Sadhna, There are many alternatives to developing Android apps that do not require any Java knowledge for example the MobiForms Developer. MobiForms replaces the need to download and configure GB of Eclipse and the Android SDK. No knowledge of Java is required with most programming done using drop down lists and drag and drop. MobiForms is ideal for creating database oriented business apps. Local or remote database connectivity is offered including remote support for Oracle, SQL Server and MySQL. MobiForms also supports the creation of apps for Windows Mobile and Apple iPhone, iPad and iPod. For more information go to http://www.mobiforms.com Kind regards Tim @ MobiForms -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Netbeans for Linux and Android
None in particular; you'll just have to handle the act of using Ant for the automation of the ADK. Also, the docs might be your best friend here. Jacky Alcine http:// blog.jalcine.me Sent from my Nexus 7 On Dec 7, 2012 2:16 AM, SL@maxis ecp_...@my-rialto.com wrote: I am thinking of writing C/C++, java for Linux and Android, on desktop of course. Any problem with NetBeans ? Trying to kill 3 birds with one stone. Thanks. -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ -- You received 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
[android-developers] Re: EffectFactory effects under the hood
Looks like OpenGL shaders. I found this in BlackWhiteFilter: private final String mBlackWhiteShader = 51 precision mediump float;\n + 52 uniform sampler2D tex_sampler_0;\n + 53 uniform vec2 seed;\n + 54 uniform float black;\n + 55 uniform float scale;\n + 56 uniform float stepsize;\n + 57 varying vec2 v_texcoord;\n + 58 float rand(vec2 loc) {\n + 59 // Compute sin(theta), theta = 12.9898 x + 78.233y 60 // because floating point has limited range, make theta = theta1 + theta2 61 // where theta1 = 12x + 78y and theta2 = 0.9898x + 0.233y) 62 // Note that theta1 and theta2 cover diffent range of theta. 63 float theta1 = dot(loc, vec2(0.9898, 0.233));\n + 64 float theta2 = dot(loc, vec2(12.0, 78.0));\n + 65 // Use the property sin(theta) = cos(theta1)*sin(theta2)+sin(theta1)*cos(theta2) 66 // this approach also increases the precisions of sin(theta) 67 float value = cos(theta1) * sin(theta2) + sin(theta1) * cos(theta2);\n + 68 // fract(43758.5453 * x) = fract(43758 * x + 0.5453 * x) 69 // keep value of part1 in range: (2^-14 to 2^14). Since 43758 = 117 * 374 70 // fract(43758 * sin(theta)) = mod(221 * mod(198*sin(theta), 1.0), 1.0) 71 // also to keep as much decimal digits, use the property 72 // mod(mod(198*sin(theta)) = mod(mod(197*sin(theta) + sin(theta)) 73 float temp = mod(197.0 * value, 1.0) + value;\n + 74 float part1 = mod(220.0 * temp, 1.0) + temp;\n + 75 float part2 = value * 0.5453;\n + 76 float part3 = cos(theta1 + theta2) * 0.43758;\n + 77 return fract(part1 + part2 + part3);\n + 78 }\n + 79 void main() {\n + 80 vec4 color = texture2D(tex_sampler_0, v_texcoord);\n + 81 float dither = rand(v_texcoord + seed);\n + 82 vec3 xform = clamp((color.rgb - black) * scale, 0.0, 1.0);\n + 83 vec3 temp = clamp((color.rgb + stepsize - black) * scale, 0.0, 1.0);\n + 84 vec3 new_color = clamp(xform + (temp - xform) * (dither - 0.5), 0.0, 1.0);\n + 85 gl_FragColor = vec4(new_color, color.a);\n + 86 }\n; On Thursday, December 6, 2012 9:47:36 AM UTC-6, bob wrote: Does anyone know what most of the EffectFactory effects are like under the hood? Are they basically GLSL shaders? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] EffectFactory effects under the hood
It's exactly what they are :) On Dec 6, 2012 7:50 AM, bob b...@coolfone.comze.com wrote: Does anyone know what most of the EffectFactory effects are like under the hood? Are they basically GLSL shaders? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Can't Use Raw Links and Anchor Links in One TextView?
On Fri, Dec 7, 2012 at 12:44 PM, skink psk...@gmail.com wrote: try this: String str = http://www.google.com a href=\ http://www.google.com\;Google/a; Spanned html = Html.fromHtml(str); Object[] spans = html.getSpans(0, html.length(), URLSpan.class); tv.setAutoLinkMask(Linkify.ALL); tv.setText(html); SpannableString ss = (SpannableString) tv.getText(); for (int i = 0; i spans.length; i++) { URLSpan span = (URLSpan) spans[i]; int end = html.getSpanEnd(span); int start = html.getSpanStart(span); ss.setSpan(span, start, end, 0); } Just want to add to this for posterity's sake. After fiddling with real data, I had to initialize the TextView as such: tv.setAutoLinkMask(Linkify.ALL); * tv.setMovementMethod(LinkMovementMethod.getInstance());* Apparently, if you only have an anchored link in the TextView, it does not get the link functionality implicitly from the link mask. You have to call setMovementMethod explicitly to ensure this works. - 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: Netbeans for Linux and Android
SL@maxis wrote: I am thinking of writing C/C++, java for Linux and Android, on desktop of course. Any problem with NetBeans ? Trying to kill 3 birds with one stone. You got some good answers to your multipost over on clj.programmer. -- Lew -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] android adt 17 - add jar to project - jar in dexedlibs/ only contains a manifest
hi, i am using a 4 day old download of adt 17 on win 7 x64 with java 1.7. adding a jar to my new sample project (by copying it to libs/) compiles fine, but throws at runtime because the classes in the jar are not in the corresponding jar in dexedlibs/ - that jar only contains a manifest. related links: http://android.foxykeep.com/dev/how-to-fix-the-classdefnotfounderror-with-adt-17and http://tools.android.com/recent/dealingwithdependenciesinandroidprojects. doing some of the export and order stuff suggested in the links does not help. how does one add a jar to an android project these days? 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] app distribution best practices
I am nearing the point of releasing my first Android app. I anticipate needing to distribute from a website as well as from Google Play. I know that enabling the install is as simple as providing an HTML link to the .apk file, but I'd like to at least follow best practices with regard to discouraging redistribution. Given that goal, it would seem important to restrict the type of client that is allowed to initiate the download. Google Play does this, I think. One step in this direction would be to check the HTTP user-agent header, but this check is circumventable. Does anyone know if Google Play does something more sophisticated, or if a more sophisticated method even exists? Any other best practices suggestions, or lessons learned with regard to app distribution would also be most welcome. I understand there is no perfect protection, but I'm hoping to avoid doing anything foolish. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 bluetooth multi-connect one after another
** here i am trying to connect multiple devices one after another at one go. now if it connects to a device it will send the message else it will try to connect the next paired device. here the main problem is that its not connecting any device rather getting skipped one after other , before they get connected to each other. - for( BluetoothDevice device : PairedDevice) { mChatService.connect(device); try { SendMessage(message); //message is a string object } catch(Exception e) { e.printStackTrace(); } } -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Java knowledge
Every one say java basics is enough for learning android,But it is wrong as my experience.We should know complete knowledge on Core java for learning android.But, for working in real time we should know basic knowledge on JDBC,Webservices,Servlets,JSP while developing real time projects,Now all the projects are developed on webservice based projects in android. All the best. Link for above topics http://www.coreservlets.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] Re: Canvas.drawline help needed
Could you plz send me the sample code. On Sat, Dec 8, 2012 at 1:19 AM, bob b...@coolfone.comze.com wrote: Call canvas.setMatrix(new Matrix()); prior to drawing your line On Friday, December 7, 2012 12:15:30 PM UTC-6, Talha Qamar wrote: Hi i am actually using orientation sensor to make a simple compass ...but then i draw a line using canvas.drawline on that imagewhen i rotate mobile it changes the values of orientation sensor and rotate the image that works finebut line on that canvas also moves with that rotation... i want that line to point to that same direction where it was pointing first.After changes in orientation sensor line points to same direction..I have attached the code.Point the line to any direction u set first than after rotation line point to that direction .Plz help me i m newbie in android.Thanks in advance. Regards, TQ. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] android.database.CursorIndexOutOfBoundsException: Index -1 requested, with a size of 1
https://lh3.googleusercontent.com/-52PJkgV5W3c/UMLnpoSeUNI/AOo/LpgB6v8DfIA/s1600/Capture.JPG -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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.database.CursorIndexOutOfBoundsException: Index -1 requested, with a size of 1
if count == 0 is True then ! make it as False. getString(0) is for users column value. Don't forget if(result.moveToFirst()) After rawQuery On Saturday, December 8, 2012 2:10:11 AM UTC-5, laxman k wrote: https://lh3.googleusercontent.com/-52PJkgV5W3c/UMLnpoSeUNI/AOo/LpgB6v8DfIA/s1600/Capture.JPG -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en