[android-developers] Re: spliting srings

2012-03-02 Thread Kookamonga
You mean you have accomplished the two individual tasks reading from a file and splitting a string, but can't put them together? I assume your read from file code is a loop, reading the file line by line, which you assign to a String variable. Why can't you just use your split a string code on

[android-developers] Re: Layout text justificaiton question:

2012-03-02 Thread Kookamonga
Sanitize your inputs? http://xkcd.com/327/ On Thursday, 1 March 2012 18:33:19 UTC-5, Mark Winchester wrote: I've got a GUI coded up, and it works pretty well, but I'm having an issue getting everything formatted just right. Currently, there exists a ListView on the page. This list view is

[android-developers] Re: Layout text justificaiton question:

2012-03-02 Thread Kookamonga
Sanitize your inputs? http://xkcd.com/327/ On Friday, 2 March 2012 11:49:21 UTC-5, Mark Winchester wrote: I finally figured out what my problem was. My data source was appending a bunch of extra white space at the end of input names that it was giving me. So, even though I had my layouts

[android-developers] Re: Accessing the camera from an application

2012-02-26 Thread Kookamonga
, Kookamonga site...@yahoo.ca wrote: Sorry for the off-topic question (trying to piggy-back on the image provided in OP). In the image provided in the first post, you see the emulator screen on the left and the controls on the right... I seem to have done something in my Eclipse such that when I launch

[android-developers] Re: Android image orientation from gallery

2012-02-26 Thread Kookamonga
I've been successfully able to use this in the past: http://developer.android.com/reference/android/provider/MediaStore.Images.ImageColumns.html#ORIENTATION On Feb 26, 8:46 am, drenda daniele.re...@gmail.com wrote: Hi, I've a problem getting orientation of an image chosen from gallery. I'm

[android-developers] Maintaining sorted state of a ListView

2012-02-24 Thread Kookamonga
I have what seems like a very basic question: how can I maintain the sorted state of a ListView as new items are added to the list? I have a ListView that is populated from a database. Specifically, I query my database, create an ArrayList of items, and use a custom ArrayAdapterMyType as the

[android-developers] Re: Maintaining sorted state of a ListView

2012-02-24 Thread Kookamonga
Thanks for your answer. I'll change over to a CursorAdapter and see how things go. On Feb 24, 10:30 am, skink psk...@gmail.com wrote: Kookamonga wrote: I have what seems like a very basic question: how can I maintain the sorted state of a ListView as new items are added to the list? I

[android-developers] Re: Maintaining sorted state of a ListView

2012-02-24 Thread Kookamonga
just trying to understand it myself, so I'm not sure if it is coming across in a coherent manner. On Feb 24, 10:40 am, Kookamonga site...@yahoo.ca wrote: Thanks for your answer. I'll change over to a CursorAdapter and see how things go. On Feb 24, 10:30 am, skink psk...@gmail.com wrote

[android-developers] Re: Maintaining sorted state of a ListView

2012-02-24 Thread Kookamonga
Looks like once again, it was all about Googling for the right thing: https://www.google.com/search?q=listview+cursoradapter+checkbox My bad. On Feb 24, 11:37 am, Kookamonga site...@yahoo.ca wrote: I've hit a problem in changing over to a CursorAdapter. The custom items in my ListView

[android-developers] Re: Maintaining sorted state of a ListView

2012-02-24 Thread Kookamonga
through all of this for the first time. On Feb 24, 12:54 pm, Kookamonga site...@yahoo.ca wrote: Looks like once again, it was all about Googling for the right thing:https://www.google.com/search?q=listview+cursoradapter+checkbox My bad. On Feb 24, 11:37 am, Kookamonga site...@yahoo.ca wrote

[android-developers] Re: Using Custom buttons. *Help*

2012-02-23 Thread Kookamonga
This may help: http://groups.google.com/group/android-developers/browse_thread/thread/bedff1b9bbfdd9f3 It sounds like you need the images in both /drawable and /drawable- ldpi (at different resolutions, of course) and the system itself will pick the appropriate icon. On Feb 23, 12:49 am, Jaison

[android-developers] Re: Beginner Question

2012-02-23 Thread Kookamonga
This is more a Java question than an Android question. Let me give it a shot. The setOnItemClickListener(...) method requires an object that implements the OnItemClickListener interface as an argument. In your code snippet above, you are providing such an object by creating an anonymous class

[android-developers] Re: How to get the DB File from real android device

2012-02-23 Thread Kookamonga
1) What is the error that you get? 2) Are you sure you have access to the db location? Your phone likely has to be rooted for you to have this access... Perhaps you could try this method: http://stackoverflow.com/questions/4202064/how-can-i-pull-databases-off-my-android-onto-my-desktop On Feb

[android-developers] Re: Declare Multi-Dimensional string-array in Strings.Xml?

2012-02-23 Thread Kookamonga
http://developer.android.com/guide/topics/resources/string-resource.html#StringArray On Feb 23, 10:32 am, duadinam somethingcleve...@gmail.com wrote: Hi, I'd like to know if its possible to create multi dimensional arrays in strings.xml, or if their is a general array tag where this can be

[android-developers] Re: Beginner Question

2012-02-23 Thread Kookamonga
if I'm wrong about this general approach. On Feb 23, 11:35 am, rhaazy rha...@gmail.com wrote: Thanks for your input! Inbetween when I posted this and when I checked it again I ended up doing something similiar to what kookamonga did. After I read your post Mark, I added the implements

[android-developers] Re: Beginner Question

2012-02-23 Thread Kookamonga
with this, so I'm not sure about it. On Feb 23, 1:24 pm, Ted Scott t...@hootinholler.com wrote: On 2/23/2012 11:55 AM, Kookamonga wrote: Mark has way more experience than me, so I'll let him give the definitive answer... But my two cents are that it depends on the situation. :-) I don't

[android-developers] Re: Notification and PendingIntents

2012-02-22 Thread Kookamonga
I won't argue that a setting in SharedPreferences won't work... But at the same time, shouldn't it be possible to do this just with the Intent itself? If you use the putExtra method on your intent and add just a simple boolean that indicates that the button should be set to on, I would think this

[android-developers] Re: Install Application programmatically on Android

2012-02-21 Thread Kookamonga
https://www.google.com/search?hl=enbiw=1920bih=955output=searchsclient=psy-abq=install+apk+programmaticallybtnK= On Feb 21, 7:35 am, android developer android.developer4...@gmail.com wrote: Hi all, How to Install APK File Programmatically, Please help me in this issue -- You received this

[android-developers] Re: Setting android:layout_alignParentTop from code?

2012-02-21 Thread Kookamonga
https://www.google.com/webhp?ion=1#hl=enoutput=searchsclient=psy-abq=setting%20layout%20parameters%20programmaticallyfp=8eac583198a3d402 On Feb 21, 8:53 am, Marcin Orlowski webnet.andr...@gmail.com wrote: Hi, I am trying to set android:layout_alignParentTop and android:layout_alignParentLeft

[android-developers] Re: Setting android:layout_alignParentTop from code?

2012-02-21 Thread Kookamonga
I think I can be a bit more helpful. You basically have to use the addRule method of RelativeLayout.LayoutParams as shown here: http://android-coding.blogspot.com/2011/06/set-relativelayoutalignparenttoprelativ.html On Feb 21, 9:43 am, Kookamonga site...@yahoo.ca wrote: https://www.google.com

[android-developers] Re: Why doesn't this delete method work to vacuum the Database?

2012-02-21 Thread Kookamonga
1) What is the error? 2) What does testCount() do? 3) Why are you enforcing that there are no gaps in the IDs after a delete? What is your goal? On Feb 21, 10:37 am, Jeresam515 jeremyschiff...@gmail.com wrote: bump -- You received this message because you are subscribed to the Google Groups

[android-developers] Re: Accessing the camera from an application

2012-02-21 Thread Kookamonga
Sorry for the off-topic question (trying to piggy-back on the image provided in OP). In the image provided in the first post, you see the emulator screen on the left and the controls on the right... I seem to have done something in my Eclipse such that when I launch the emulator, I only see the

[android-developers] Re: Changing ImageView background with a custom image

2012-02-19 Thread Kookamonga
and the android:background points to the selector you are using to set different backgrounds depending on the state (pressed/focused/etc.) I don't know WHY I spent so long trying to accomplish this with only the android:src attribute. Dumb. On Feb 17, 11:31 am, Kookamonga site...@yahoo.ca wrote: Just

[android-developers] Re: Changing ImageView background with a custom image

2012-02-17 Thread Kookamonga
that can be applied on top of the changing background. Hopefully this is more clear. Thanks again for your help. On Feb 16, 10:53 pm, Kookamonga site...@yahoo.ca wrote: I have a clickable ImageView that contains an image, say an X, set by using the android:src attribute of the ImageView to a drawable

[android-developers] Changing ImageView background with a custom image

2012-02-16 Thread Kookamonga
I have a clickable ImageView that contains an image, say an X, set by using the android:src attribute of the ImageView to a drawable/png file. Searching around, I've been able to figure out how to use a selector to change the background colour of an ImageView when it is pressed. But again, this

[android-developers] Re: plzzz help me out in the timetable app in android...

2012-02-13 Thread Kookamonga
Sorry, completely off-topic, but dolla dolla bills, yo is just ... awesome. :-) On Feb 13, 8:35 am, TreKing treking...@gmail.com wrote: On Mon, Feb 13, 2012 at 3:24 AM, S Sam mailme2s...@gmail.com wrote: I have tried the following app, but I am getting a lot of errors. You should explain

[android-developers] Re: Prevent image from being scaled in ImageView

2012-02-11 Thread Kookamonga
                        android:adjustViewBounds=true                 / This does *not* scale up images that are less than the max dimensions. But I might be aiming for something quite different from your case. On Feb 11, 12:22 am, Kookamonga site...@yahoo.ca wrote: I have an ImageView defined like so

[android-developers] Prevent image from being scaled in ImageView

2012-02-10 Thread Kookamonga
I have an ImageView defined like so: ImageView android:id=@+id/im_delete android:layout_width=fill_parent android:layout_height=40dp android:background=@null

[android-developers] Re: RelativeLayout created in Java not XML - is this possible?

2012-01-24 Thread Kookamonga
If I understand you correctly, this is certainly possible. The integer argument is an ID, so you just have to call setId() on your programmatically created views first (where each ID is unique...), and then use view.getId() in the addRule() method. See here for a somewhat more complete

[android-developers] Re: Sending mail through GMail (again...)

2012-01-21 Thread Kookamonga
 am, Kookamonga site...@yahoo.ca wrote: I want to be able to send mail using GMail without user intervention in my app. I was able to do this using the Google example here: http://code.google.com/p/google-mail-xoauth-tools/wiki/JavaSampleCode Note, though, that that sample code uses a Python

[android-developers] Sending mail through GMail (again...)

2012-01-20 Thread Kookamonga
I want to be able to send mail using GMail without user intervention in my app. I was able to do this using the Google example here: http://code.google.com/p/google-mail-xoauth-tools/wiki/JavaSampleCode Note, though, that that sample code uses a Python script (xoauth.py) to obtain the

[android-developers] Revoke permissions to access Google Accounts

2012-01-18 Thread Kookamonga
Sorry to resurrect an old thread, but there was never an answer to how a *USER* would be able to revoke access he/she had granted to an app:

[android-developers] Re: Revoke permissions to access Google Accounts

2012-01-18 Thread Kookamonga
Kris: re: your initial reply, I believe we're talking about different permissions. It sounds like you're referring to the permissions that a user must accept when first installing the app. I'm not talking about those. I'm talking about permission the user has to accept that allows the app access

[android-developers] Re: Revoke permissions to access Google Accounts

2012-01-18 Thread Kookamonga
at 9:40 PM, Kookamonga site...@yahoo.ca wrote: Uninstalling the app is hardly a solution! Sure it is! It solves the problem you posed! That's a solution, kinda by definition! First, I'm not even sure if it will work (because I don't think this permission to access one's Google Account

[android-developers] Re: Creating step-by-step tutorial in app

2012-01-17 Thread Kookamonga
that the user can skip the tutorial or whatever you want him to be able... Greetings from Lucerne, Stephan Wiesner On 17 Jan., 04:55, Kookamonga site...@yahoo.ca wrote: Excellent, SurfaceView, just learned something new. Thanks, I'll have a look. On Jan 16, 10:48 pm, Kristopher

[android-developers] Re: Creating step-by-step tutorial in app

2012-01-17 Thread Kookamonga
Alex, Thanks a lot... The ViewPagerIndicator project was easy enough to find! On Jan 17, 2:12 pm, Alex Curran aml.cur...@gmail.com wrote: Having a look at the rest of the responses, this looks like it is probably a ViewPager with lots of ImageViews of screenshots. The ViewPager is found in

[android-developers] Android app with embedded tutorial

2012-01-16 Thread Kookamonga
I'd like to embed a tutorial into my app that the user can step through when the app is first started. Does anyone know how the Google Currents app tutorial is implemented? It is extremely sleek and allows users to step through at their own pace. I found a similar question here:

[android-developers] Creating step-by-step tutorial in app

2012-01-16 Thread Kookamonga
I've seen some apps (Google currents, for example) that have a step-by- step tutorial that you can walk through when the app is first loaded. Does anyone know how to do that? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this

[android-developers] Re: Creating step-by-step tutorial in app

2012-01-16 Thread Kookamonga
have no clue what type of view is used to do that... Is it simply an ImageView with a transparent background? Or what? Thanks. On Jan 16, 9:35 pm, Kookamonga site...@yahoo.ca wrote: I've seen some apps (Google currents, for example) that have a step-by- step tutorial that you can walk through

[android-developers] Re: Creating step-by-step tutorial in app

2012-01-16 Thread Kookamonga
Darn... Too slow. :-) Sorry Kristopher, I wasn't clear in my initial post. On Jan 16, 9:41 pm, Kookamonga site...@yahoo.ca wrote: Let me be clear. I'm not asking how to do the when the app is first loaded. I'm asking how to actually create a tutorial that a user can step through. The Google

[android-developers] Re: Creating step-by-step tutorial in app

2012-01-16 Thread Kookamonga
of different things you can think of, however I suppose you've figured that out already.. kris On Mon, Jan 16, 2012 at 9:42 PM, Kookamonga site...@yahoo.ca wrote: Darn... Too slow. :-) Sorry Kristopher, I wasn't clear in my initial post. On Jan 16, 9:41 pm, Kookamonga site

[android-developers] Re: Creating step-by-step tutorial in app

2012-01-16 Thread Kookamonga
...@gmail.com wrote: On Mon, Jan 16, 2012 at 9:51 PM, Kookamonga site...@yahoo.ca wrote: OK, thanks Kris. I was looking to find out whether there was a special view that did this sort of thing. Appears not to be the case. And yeah, I can figure out other ways to get the same effect. Not to say

[android-developers] Re: Creating step-by-step tutorial in app

2012-01-16 Thread Kookamonga
...@gmail.com wrote: Honestly, they might just be screenshots arranged in a custom view that does that cute scrolling thing... kris On Mon, Jan 16, 2012 at 10:22 PM, Kookamonga site...@yahoo.ca wrote: Yes, I will try and find an example and look at the source. In the meantime, just so we're

[android-developers] Re: Creating step-by-step tutorial in app

2012-01-16 Thread Kookamonga
:-) kris On Mon, Jan 16, 2012 at 10:37 PM, Kookamonga site...@yahoo.ca wrote: Yup, I thought of that... This is why I initially suggested it was just an ImageView that was listening for gestures to move between successive ImageViews. That would work. But the only way I can think

[android-developers] Re: Android app with embedded tutorial

2012-01-16 Thread Kookamonga
:13 am, Mark Murphy mmur...@commonsware.com wrote: You might consider explaining what Google Currents looks like, perhaps using screenshots, as not everybody has that app, let alone uses it. On Fri, Jan 13, 2012 at 8:53 AM, Kookamonga site...@yahoo.ca wrote: I'd like to embed a tutorial