Re: [android-developers] Using TextWatcher class to count linebreaks

2012-08-04 Thread Farhan Tariq
I managed to solve it. Apparently, I was using wrong regular expression. I just needed to check for "\n". Thanks though. On Sun, Aug 5, 2012 at 9:58 AM, Farhan Tariq wrote: > MaxLines won't work. Like I said, I need to count number of line breaks > (equal to "\n", return, newlines etc). MaxLines

Re: [android-developers] want a app

2012-08-04 Thread fahad mullaji
"10x" "4" "d" Appreciation Asheesh... On Fri, Aug 3, 2012 at 2:07 PM, Asheesh Arya wrote: > 10x 4 d precious information > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to android-developers@goog

Re: [android-developers] Using TextWatcher class to count linebreaks

2012-08-04 Thread Farhan Tariq
MaxLines won't work. Like I said, I need to count number of line breaks (equal to "\n", return, newlines etc). MaxLines just returns the number of lines a piece of text takes! I could have a long sentence that would take up 5 lines, but no line break, and maxLines would return me 5, but desired n

Re: [android-developers] Using TextWatcher class to count linebreaks

2012-08-04 Thread TreKing
On Sat, Aug 4, 2012 at 10:57 PM, Farhan Tariq wrote: > Any suggestion/help on how to limit editText to 4 new lines? http://developer.android.com/reference/android/R.styleable.html#TextView_maxLines > I need it urgently, > Come on now.

Re: [android-developers] Remotely wipe mail in android.

2012-08-04 Thread Joel Wirāmu Pauling
Have you seen prey project? It is possibly a good start for your purposes. http://preyproject.com - sent from a small and mostly open source device. On Aug 5, 2012 2:23 PM, "Kristopher Micinski" wrote: > But if your organization uses the traditional pop/smtp infrastructure then > you can't stop

Re: [android-developers] Remotely wipe mail in android.

2012-08-04 Thread James Black
So write your own server to interface with the mail server, which could be behind a firewall, then this app is what can be used. Basically, if pop/imap is used then the OP is out of luck, but, if other approaches are allowed the problem can be solved On Aug 4, 2012 10:21 PM, "Kristopher Micinski"

[android-developers] Re: Free and good apps for download

2012-08-04 Thread Rocky
https://play.google.com/store/apps/details?id=com.sst.device&feature=search_result#?t=W251bGwsMSwxLDEsImNvbS5zc3QuZGV2aWNlIl0 . -- Thanks & Regards Rakesh Kumar Jha Android Developer, Trainer and Mentor Bangalore Skype - rkjhaw (O) +918050753516 (R) +919886336619 -- You received this message b

[android-developers] Using TextWatcher class to count linebreaks

2012-08-04 Thread Farhan Tariq
Hi all, I am using a textWatcher on an editText. I am able to limit it's length, but I am unable to limit the number of lines in it. I want to allow only 4 lines (line breaks or return keys) in the editText. I am using the following method to count number of lines (line breaks), but it returns odd

Re: [android-developers] Remotely wipe mail in android.

2012-08-04 Thread Kristopher Micinski
But if your organization uses the traditional pop/smtp infrastructure then you can't stop the employee from just using another mail client... On Aug 4, 2012 9:11 PM, "James Black" wrote: > To do this you would need to write your own mail client. One advantage is > that you can store emails encry

Re: [android-developers] how can I design a floating keyboard?

2012-08-04 Thread Dianne Hackborn
You can use this to indicate how the application should be positioned behind your IME: http://developer.android.com/reference/android/inputmethodservice/InputMethodService.html#onComputeInsets(android.inputmethodservice.InputMethodService.Insets) On Sat, Aug 4, 2012 at 12:35 AM, yakobom wrote:

Re: [android-developers] Remotely wipe mail in android.

2012-08-04 Thread James Black
To do this you would need to write your own mail client. One advantage is that you can store emails encrypted to limit risks, and then you can wipe. On Aug 2, 2012 10:22 AM, "The Simple" wrote: > I am developing an application which will remotely wipe all corporate > mail send to the employee ,w

Re: [android-developers] Android onRecieve isn't executing.

2012-08-04 Thread TreKing
On Tue, Jul 31, 2012 at 12:10 PM, lethjakman wrote: > Any suggestions? Change setRepeating to something else and use a short value (like 0) to verify that the broadcast gets called at all. Then work your way back to what you're trying to do. -

Re: [android-developers] Nexus 7 USB connection

2012-08-04 Thread TreKing
On Tue, Jul 31, 2012 at 2:12 PM, siddharth rammohan wrote: > I just bought a Nexus 7, tried connecting it to my Windows 7 PC. But it > comes up with an error msg saying driver installation failed. Could anyone > tell me how to get over this. I would Google "Nexus 7 " ---

Re: [android-developers] Android Development Excercises

2012-08-04 Thread TreKing
On Wed, Aug 1, 2012 at 9:14 AM, Romāns Stepanovs wrote: > Hi! Is there anywhere available good exercises (not tutorials) at Android > developing? I mean, like homework, that gradually become more and > more sophisticated. I think they're called "schools" or "colleges" or "universities". Google

Re: [android-developers] Android Plugin for Eclipse

2012-08-04 Thread TreKing
On Wed, Aug 1, 2012 at 11:53 AM, SiX wrote: > Is there a fix? Set the "relative" properties manually? - TreKing - Chicago transit tracking app fo

Re: [android-developers] Supported locations for Android app merchants.

2012-08-04 Thread TreKing
On Fri, Aug 3, 2012 at 4:33 AM, Andrei Bogdan wrote: > Can anyone clarify which list is the correct one? http://support.google.com/googleplay/android-developer/bin/answer.py?hl=en&answer=136601 - Tre

Re: [android-developers] expandiblelistview with child onitem clicklistener with go button

2012-08-04 Thread TreKing
On Sat, Aug 4, 2012 at 1:50 PM, Jagadeesh wrote: > In Expanidble list view child after selecting with checkbox of each child > item based on childitem i given on clicklistener with go button ,its not > happening in code > can any one help . > Your question is not very clear. You should clarify

Re: [android-developers] Remotely wipe mail in android.

2012-08-04 Thread Kristopher Micinski
This is impossible to do: -- If you can't know which mail client to use then you can't know how it stores data -- Most mail clients don't store email just on the phone, they also replicate it somewhere else, how do you know the user didn't back up their corporate email to another account? --

[android-developers] Re: Remotely wipe mail in android.

2012-08-04 Thread Gelonida N
On 07/31/2012 03:53 PM, The Simple wrote: I am developing an application which will remotely wipe all corporate mail send to the employee ,when the employee leave the organization.I googled for a day but did not find any suitable solution for wipe email. So please give me some idea to wipe the em

[android-developers] Re: AndEngineTexturePackerExtension and TexturePackLoader constructor issue

2012-08-04 Thread billb
Following Kostya's suggestions , I delved into the AndEngine and AndEngineTexturePackerExtension code and compared my code to that in the texturepacker example. I had blindly used the Eclipse import organization key bindings. It had used the import from AndEngine rather from the extension.

Re: [android-developers] Re: provider, thread and async

2012-08-04 Thread Kristopher Micinski
Both global variables *and* polling are a really bad idea and horrible design... you need a callback, potentially through a messenger and handler or something similar, depending on the situation.. On Aug 4, 2012 7:49 AM, "KHEM Sochenda" wrote: > Hello, > > I never use Async task before. I just le

Re: [android-developers] tablet 7 inch

2012-08-04 Thread Kostya Vasilyev
This should help: http://android-developers.blogspot.com/2011/07/new-tools-for-managing-screen-sizes.html -- K 2012/8/4 Sadhna Upadhyay > Hi everybody, > i am making an app for tablet 7.0 now i don't know which layout folder > is required for xml u.i design can any one suggest me > > -- >

[android-developers] Re: tablet 7 inch

2012-08-04 Thread RichardC
The size of the screen in inches has nothing to do with the layout. To allow us to help you we need the horizontal and vertical resolution and the dpi (although knowing the screen is 7in it can be calculated). On Saturday, August 4, 2012 8:20:38 PM UTC+1, Sadhna Upadhyay wrote: > > Hi everybody

Re: [android-developers] Re: To display Listview using JSON in Android !

2012-08-04 Thread Meena Rengarajan
Yeah , exactly what you have said is right . Now works on well ! I havent parsed JSON. I am new to this topic. Anywys thankyou :) On Sat, Aug 4, 2012 at 1:21 PM, HideCheck wrote: > I guess > Show of ListView rather than wrong, You have failed to parse JSON. > > > ArrayAdapter adapter = new > >

[android-developers] tablet 7 inch

2012-08-04 Thread Sadhna Upadhyay
Hi everybody, i am making an app for tablet 7.0 now i don't know which layout folder is required for xml u.i design can any one suggest 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-deve

[android-developers] Re: ListFragment not retaining scroll position after orientation change

2012-08-04 Thread havexz
I found the soln. Just have to specify the 'id' field in the layout xml file and it works fine. Looking at soln now seems small and silly but why ADT does not create ids for fragments by default like it does for others. Specially when it leads to un-desirable results. On Wednesday, August 1, 2

Re: [android-developers] Lost Password of Keystore

2012-08-04 Thread Kristopher Micinski
I honestly believe a fair amount of these are "Hey I found this in a public repo how can I hijack the app?" Type questions... On Aug 4, 2012 1:01 PM, "Kostya Vasilyev" wrote: > Great advice, John, thanks, I swear we see about one of these a week. > > ... and if I may add -- make sure that your em

Re: [android-developers] Lost Password of Keystore

2012-08-04 Thread Kostya Vasilyev
Great advice, John, thanks, I swear we see about one of these a week. ... and if I may add -- make sure that your email password is strong, or that you use an email other than the one publicly listed with your app. Oh wait, what happens if you forget that one? :-) 04.08.2012 20:53 пользователь "

Re: [android-developers] SecurityException in RemoteViewsService?

2012-08-04 Thread Kostya Vasilyev
Does it help who? The snippet I posted above -- with a fix for this issue I'm using in my app -- shows an extract from my onDataSetChanged, exactly. 04.08.2012 19:48 пользователь "NickL" написал: > > The error happened when I call mResolver.query(Abc.CONTENT_URI, null, > null, null, null); in o

Re: [android-developers] Lost Password of Keystore

2012-08-04 Thread John Coryat
Let this be a lesson to EVERYONE: Send yourself an e-mail with the keystore attached and include your password, or at least use a password YOU CAN REMEMBER!!! That way it's stored in the cloud. Pretty simple. There's no need to make this difficult. The cost of losing your keystore or password

Re: [android-developers] SecurityException in RemoteViewsService?

2012-08-04 Thread Kostya Vasilyev
04.08.2012 19:54 пользователь "Mark Murphy" написал: > > On Sat, Aug 4, 2012 at 11:47 AM, NickL wrote: > > The error happened when I call mResolver.query(Abc.CONTENT_URI, null, null, > > null, null); in onDataSetChanged(). > > > > Does that help? > > This suggests that, for some reason, your app

Re: [android-developers] SecurityException in RemoteViewsService?

2012-08-04 Thread Mark Murphy
On Sat, Aug 4, 2012 at 11:47 AM, NickL wrote: > The error happened when I call mResolver.query(Abc.CONTENT_URI, null, null, > null, null); in onDataSetChanged(). > > Does that help? This suggests that, for some reason, your app widget is in a different application than is your ContentProvider. I

Re: [android-developers] SecurityException in RemoteViewsService?

2012-08-04 Thread NickL
The error happened when I call mResolver.query(Abc.CONTENT_URI, null, null, null, null); in onDataSetChanged(). Does that help? On Saturday, August 4, 2012 11:20:51 AM UTC-4, Kostya Vasilyev wrote: > I've run into this exact issue before. > > My fix was to add Binder.clearCallingIdentity(

Re: [android-developers] Lost Password of Keystore

2012-08-04 Thread Kristopher Micinski
Why did you use such a secure password and then forget it for something important? this sounds a lot more like mischievery On Aug 4, 2012 8:55 AM, "Giuseppe Brando" wrote: > I use only secure password!! :'( > > Il giorno sabato 4 agosto 2012 14:50:30 UTC+2, RichardC ha scritto: >> >> If you have

Re: [android-developers] SecurityException in RemoteViewsService?

2012-08-04 Thread Kostya Vasilyev
I've run into this exact issue before. My fix was to add Binder.clearCallingIdentity() in my RemoteViewsService callbacks where I needed to access my non-exported provider. Now we're back from the launcher's identity to the identity of the app's process, where access is allowed. It fit into the

Re: [android-developers] SecurityException in RemoteViewsService?

2012-08-04 Thread Mark Murphy
On Sat, Aug 4, 2012 at 10:35 AM, NickL wrote: > Error accessing content provider in RemoteViewService > > Hi, > > I'm trying to build a home screen widget for my app and I am using > stackview, remoteviewservice. In the RemoteViewsService, I need to query the > content provider. My cotent provider

[android-developers] Re: SecurityException in RemoteViewsService?

2012-08-04 Thread RichardC
I can't see an easy way of doing what you want, as the remote view is not running in the same process as your content provider. Maybe you could use aidl but that would still leave you with an "exposed" external interface. On Saturday, August 4, 2012 3:35:26 PM UTC+1, NickL wrote: > > Error acce

[android-developers] SecurityException in RemoteViewsService?

2012-08-04 Thread NickL
Error accessing content provider in RemoteViewService Hi, I'm trying to build a home screen widget for my app and I am using stackview, remoteviewservice. In the RemoteViewsService, I need to query the content provider. My cotent provider is set exported=false. However, when I want to add th

[android-developers] VerifyError using DocsService example? Can't start it at all....

2012-08-04 Thread NickL
When executing this line: DocService client = new DocsService("MyAppName"); Error: InvocationTargetException: cause = VerifyError, cdetailMessage: com/google/gdata/client/media/MediaService Am I missing something in the build path? I have these jars: gdata-2.2.1-alpha.jar gdata-core-1.0.

Re: [android-developers] Lost Password of Keystore

2012-08-04 Thread Giuseppe Brando
I use only secure password!! :'( Il giorno sabato 4 agosto 2012 14:50:30 UTC+2, RichardC ha scritto: > > If you have used a secure password it is not going to be possible. > However if you used an insecure password (short, dictionary, etc) then you > could write a brute force password cracker t

Re: [android-developers] Lost Password of Keystore

2012-08-04 Thread RichardC
If you have used a secure password it is not going to be possible. However if you used an insecure password (short, dictionary, etc) then you could write a brute force password cracker to open your Keystore. On Saturday, August 4, 2012 1:40:44 PM UTC+1, Giuseppe Brando wrote: > > I've a Keystor

Re: [android-developers] Lost Password of Keystore

2012-08-04 Thread Mark Murphy
On Sat, Aug 4, 2012 at 8:40 AM, Giuseppe Brando wrote: > I've a Keystore file but I don't remember the password. > > How I recover the password? You search the Internet for: recover java keystore password and you find pages like: http://stackoverflow.com/questions/8894987/android-forgot-keysto

Re: [android-developers] Lost Password of Keystore

2012-08-04 Thread Giuseppe Brando
I've a Keystore file but I don't remember the password. How I recover the password? Il giorno sabato 4 agosto 2012 14:19:40 UTC+2, Kostya Vasilyev ha scritto: > > But you have backed it up to a usb flash drive, right? Or maybe checked > into a remote source control repository? If you have, resto

Re: [android-developers] Lost Password of Keystore

2012-08-04 Thread Kostya Vasilyev
But you have backed it up to a usb flash drive, right? Or maybe checked into a remote source control repository? If you have, restoring the key should be really easy. 04.08.2012 16:07 пользователь "Giuseppe Brando" < giuseppe.brando...@gmail.com> написал: > Hi Boys, > > I've a big probem, I've los

[android-developers] Lost Password of Keystore

2012-08-04 Thread Giuseppe Brando
Hi Boys, I've a big probem, I've lost a passwork of my Kestore and now I can't update my application. Can you 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.

Re: [android-developers] Re: provider, thread and async

2012-08-04 Thread KHEM Sochenda
Hello, I never use Async task before. I just learn about the content provider and Thread in Android. Sorry I am stupid about Async task and Thread. Now I try the global variable. How are you initializing your database? I use the sample code of searchable dictionary which talks about content provi

[android-developers] Re: how to get reference to GLSurfaceView's rendering thread?

2012-08-04 Thread Ecthelion
Can you briefly explain why join() is supposed to be so bad to best almost never use 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 grou

Re: [android-developers] Re: To display Listview using JSON in Android !

2012-08-04 Thread HideCheck
I guess Show of ListView rather than wrong, You have failed to parse JSON. > ArrayAdapter adapter = new > ArrayAdapter(this,android.R.layout.simple_list_item_1, > android.R.id.text1,str1); > lv.setAdapter(adapter); this code is correct. Structure of the JSON is? 2012/8/4 Meena Rengarajan : > How

[android-developers] Re: how to achieve the accuracy of google navigation

2012-08-04 Thread gjs
Hi, Probably not what you are after, but you could also use an external bluetooth GPS device, some of these devices provide 10hz output. Regards On Thursday, August 2, 2012 12:18:33 AM UTC+10, bushido wrote: > > Hi all, > > I'm writing an application for android for which I need good position

Re: [android-developers] how can I design a floating keyboard?

2012-08-04 Thread yakobom
Hi Dianne, "If you design it to be floating so that it doesn't impact app content, you can easily put it anywhere" - can you please explain how can I do that? And, is it possible to design it so this mode will be dynamically switchable? (Meaning, the user will be able to switch between the float

Re: [android-developers] Re: To display Listview using JSON in Android !

2012-08-04 Thread Meena Rengarajan
How should i use Array adapter here to get listview values .. I am very new to Android can anyone help me please.. I used this in my code, ArrayAdapter adapter = new ArrayAdapter(this,android.R.layout.simple_list_item_1, android.R.id.text1,str1); lv.setAdapter(adapter); On Sat, Aug 4, 2012 at 12

[android-developers] Floating custom keyboard

2012-08-04 Thread yakobom
Hi all, I'm building a custom keyboard for Android, and I need it to float. So, I need to be able to: * keep it on top of other applications * resize it and locate anywhere on the screen Any ideas how I can achieve this? Thanks, yakobom -- You received this message because you are su

[android-developers] Re: To display Listview using JSON in Android !

2012-08-04 Thread Meena Rengarajan
How do i wanna split a string into two parts here by omitting first character ? On Saturday, August 4, 2012 10:36:18 AM UTC+5:30, Meena Rengarajan wrote: > > This is my code. Listview using Json in Android . But my lists is not > displaying when i click a button.. Only displaying first activity

Re: [android-developers] Re: To display Listview using JSON in Android !

2012-08-04 Thread HideCheck
sorry misstake code: JSONObject root = new JSONObject(resultJson); JSONArray node = root.getJSONArray(“node”);//<- You getJSONArray(“”); 2012/8/4 HideCheck : > code: > JSONObject root = json.getJSONObject(resultJson); > JSONArray node = root.getJSONArray(“node”);//<- You getJSONArray(“”);

Re: [android-developers] Re: To display Listview using JSON in Android !

2012-08-04 Thread HideCheck
example json {"node":["value1","value2]} code: JSONObject root = json.getJSONObject(resultJson); JSONArray node = root.getJSONArray(“node”);//<- You getJSONArray(“”); Best Regards 2012/8/4 Meena Rengarajan : > My debugging point is not going from this line > JSONArray jsonArray=jsonObj.getJS