[android-developers] Re: android.database.CursorIndexOutOfBoundsException: Index -1 requested, with a size of 1

2012-12-07 Thread Jonathan S
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: > > >

[android-developers] android.database.CursorIndexOutOfBoundsException: Index -1 requested, with a size of 1

2012-12-07 Thread laxman 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

Re: [android-developers] Re: Canvas.drawline help needed

2012-12-07 Thread Talha Qamar
Could you plz send me the sample code. On Sat, Dec 8, 2012 at 1:19 AM, bob 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 simp

Re: [android-developers] Java knowledge

2012-12-07 Thread sree android
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 th

[android-developers]android bluetooth multi-connect one after another

2012-12-07 Thread akash roy
** 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

[android-developers] app distribution best practices

2012-12-07 Thread Andrew
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 discou

[android-developers] android adt 17 - add jar to project - jar in dexedlibs/ only contains a manifest

2012-12-07 Thread Ray Tayek
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. rel

[android-developers] Re: Netbeans for Linux and Android

2012-12-07 Thread Lew
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 bec

Re: [android-developers] Re: Can't Use Raw Links and Anchor Links in One TextView?

2012-12-07 Thread TreKing
On Fri, Dec 7, 2012 at 12:44 PM, skink wrote: > try this: > > String str = "http://www.google.com http://www.google.com\";>Google"; > Spanned html = Html.fromHtml(str); > Object[] spans = html.getSpans(0, html.length(), URLSpan.class); > tv.setAutoLinkMask(Linkify

Re: [android-developers] EffectFactory effects "under the hood"

2012-12-07 Thread Romain Guy
It's exactly what they are :) On Dec 6, 2012 7:50 AM, "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 Develop

[android-developers] Re: EffectFactory effects "under the hood"

2012-12-07 Thread bob
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

Re: [android-developers] Netbeans for Linux and Android

2012-12-07 Thread Jacky Alciné
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" wrote: > > I am thinking of writing C/C++, java for Linu

[android-developers] Re: Java knowledge

2012-12-07 Thread Tim
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

[android-developers] width of a texture on Android

2012-12-07 Thread bob
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

[android-developers] Re: Canvas.drawline help needed

2012-12-07 Thread bob
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

Re: [android-developers] Can't Use Raw Links and Anchor Links in One TextView?

2012-12-07 Thread Piren
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 >wrote: > >> let the autolink do its job, then get th

Re: [android-developers] Can't Use Raw Links and Anchor Links in One TextView?

2012-12-07 Thread skink
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 Goo

Re: [android-developers] Can't Use Raw Links and Anchor Links in One TextView?

2012-12-07 Thread TreKing
On Fri, Dec 7, 2012 at 1:08 PM, Piren 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 cod

[android-developers] Re: Reacting once after initial layout is complete

2012-12-07 Thread Piren
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 onGlob

[android-developers] Reacting once after initial layout is complete

2012-12-07 Thread momo
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

[android-developers] Re: Java knowledge

2012-12-07 Thread Lew
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 hav

Re: [android-developers] Can't Use Raw Links and Anchor Links in One TextView?

2012-12-07 Thread Piren
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 >wrote:

Re: [android-developers] Can't Use Raw Links and Anchor Links in One TextView?

2012-12-07 Thread TreKing
On Fri, Dec 7, 2012 at 12:10 PM, Piren 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. ---

[android-developers] Re: Can't Use Raw Links and Anchor Links in One TextView?

2012-12-07 Thread skink
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 l

Re: [android-developers] Can't Use Raw Links and Anchor Links in One TextView?

2012-12-07 Thread Piren
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 > > > wrote: > >> You may need to scan the HTML and either de-tag the links or

[android-developers] 3d texture-mapped models

2012-12-07 Thread bob
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

Re: [android-developers] Can't Use Raw Links and Anchor Links in One TextView?

2012-12-07 Thread TreKing
On Fri, Dec 7, 2012 at 10:32 AM, Mark Murphy wrote: > You may need to scan the HTML and either de-tag the links or add the > 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 t

Re: [android-developers] BluetoothAdapter.getDefaultAdapter() in a non-UI thread

2012-12-07 Thread Tom
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? >> >> 0

[android-developers] Re: Can't Use Raw Links and Anchor Links in One TextView?

2012-12-07 Thread bob
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 "

Re: [android-developers] Can't Use Raw Links and Anchor Links in One TextView?

2012-12-07 Thread Mark Murphy
On Fri, Dec 7, 2012 at 11:14 AM, TreKing 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 = "http://www.google.com href=\"http://

Re: [android-developers] Can't Use Raw Links and Anchor Links in One TextView?

2012-12-07 Thread TreKing
On Fri, Dec 7, 2012 at 6:25 AM, Mark Murphy 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 fromH

Re: [android-developers] Java knowledge

2012-12-07 Thread Kristopher Micinski
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 realis

[android-developers] Re: AdMob House Ads

2012-12-07 Thread John Coryat
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

[android-developers] Re: QR code generating with Zxing

2012-12-07 Thread Diogo Henrique
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 and

[android-developers] Re: AdMob House Ads

2012-12-07 Thread William Ferguson
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... >

[android-developers] How i call IntentService from Broadcast Receiver?

2012-12-07 Thread Antonis Kanaris
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(sav

[android-developers] Re: Changing from Checkbox to Switch controls

2012-12-07 Thread Nobu Games
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

[android-developers] Re: HttpClient - Credentials are missing.

2012-12-07 Thread Nobu Games
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 str

[android-developers] using pure webviews for Facebook auth

2012-12-07 Thread androidmediadeveloper
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

[android-developers] Re: HttpClient - Credentials are missing.

2012-12-07 Thread Diego N.
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",

[android-developers] Re: How to launch my own GUI to handle incoming/outgoing call (instead of Default PHONE app)

2012-12-07 Thread Gaurav Wable
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 **My

Re: [android-developers] Re: How to launch my own GUI to handle incoming/outgoing call (instead of Default PHONE app)

2012-12-07 Thread Gaurav Wable
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 **MyC

[android-developers] HttpClient - Credentials are missing.

2012-12-07 Thread Diego N.
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 verifie

Re: [android-developers] Can't Use Raw Links and Anchor Links in One TextView?

2012-12-07 Thread Mark Murphy
On Thu, Dec 6, 2012 at 11:13 PM, 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.goo

[android-developers] Re: How to launch my own GUI to handle incoming/outgoing call (instead of Default PHONE app)

2012-12-07 Thread Anil Kumar
> > 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 t

Re: [android-developers] Required: Sr. NET Developer at Santa Clara, CA

2012-12-07 Thread Jayavelu Viswanathan
https://play.google.com/store/apps/details?id=com.jay.memory&feature=search_result#?t=W251bGwsMSwxLDEsImNvbS5qYXkubWVtb3J5Il0 . On Thu, Dec 6, 2012 at 9:26 PM, Munawar Ali wrote: > Hi Friend, > > Hope you are doing good. Please let me know if you have someone for the > below mention requirement…

Re: [android-developers] Re: Best lib for cover flow in android

2012-12-07 Thread Jayavelu Viswanathan
https://play.google.com/store/apps/details?id=com.jay.memory&feature=search_result#?t=W251bGwsMSwxLDEsImNvbS5qYXkubWVtb3J5Il0 . On Wed, Dec 5, 2012 at 1:16 AM, bob wrote: > I think I used this one awhile ago: > > http://www.inter-fuser.com/2010/01/android-coverflow-widget.html > > It is probably

Re: [android-developers] MathML in Android

2012-12-07 Thread Jayavelu Viswanathan
https://play.google.com/store/search?q=androidjayavelu&c=apps On Tue, Dec 4, 2012 at 2:32 PM, Makrand 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 "MathJ

Re: [android-developers] android phones and bluetooth

2012-12-07 Thread Jayavelu Viswanathan
https://play.google.com/store/search?q=androidjayavelu&c=apps On Thu, Dec 6, 2012 at 6:49 AM, dashman 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 b

Re: [android-developers] QR code generating with Zxing

2012-12-07 Thread Jayavelu Viswanathan
https://play.google.com/store/search?q=androidjayavelu&c=apps On Fri, Dec 7, 2012 at 2:42 PM, avaiya kirti 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 subscribe

[android-developers] QR code generating with Zxing

2012-12-07 Thread avaiya kirti
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

[android-developers] Re: Java knowledge

2012-12-07 Thread Seshu
Core java is enough but in some cases Collections are also required for Android Applications. On Dec 7, 12:53 pm, Awdhesh Jha 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, > >