[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 this variable that was assigned to while reading 
from a file?

I guess I find it hard to believe that you've accomplished the two tasks 
separately yet can't put them together. What error do you receive when you 
try?

On Friday, 2 March 2012 11:26:42 UTC-5, leigh8347 wrote:

 Hello 

 sorry for the simple and i guess basic question but how would i get 
 some lines ot text saved in a .txt file on a sd card. 

 then split the line and display word 1 and word 3. the words are 
 separated by commas. 

 i have spent a good few hours looking through google for the answer 
 but have not come up with any code that works. 

 i can read a file and display it 
 and i can split a string 

 but i cant seem to merge these two parts and get it to work 

 regards

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[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 then filled with horizontal 
 LinearLayouts that have a TextView (label) a either an EditText or Spinner, 
 depending on the type of input.  When I populate the list, I'm setting the 
 visibility of the unused control to GONE, so that only the correct control 
 appears on the screen.  What I'm having trouble with, is that I'd like for 
 the left edge of the text/spinners to be lined up, down the list, and the 
 labels to appear right justified next to them.  I can get the 
 text/spinners lined up correctly by setting the width of the TextView, but 
 the text on the TextView doesn't bump up against the input controls, like I 
 want it to.  Can anybody suggest a way to get this looking like I'm 
 wanting?  Any help is appreciated.

 This is kindof like what I'm looking for:
   Input 1: __
 Another Input: __
   Input Three: __


-- 
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: 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 set up like they were supposed to be 
 (I'm not absolutely sure the one that I posted would have worked, but I 
 feel reasonably confident), my junked up data was screwing up how it 
 looked.  There is a moral there, somewhere, I'm just not entirely sure what 
 it is.

 -Mark

 On Thursday, March 1, 2012 5:33:19 PM UTC-6, 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 then filled with horizontal 
 LinearLayouts that have a TextView (label) a either an EditText or Spinner, 
 depending on the type of input.  When I populate the list, I'm setting the 
 visibility of the unused control to GONE, so that only the correct control 
 appears on the screen.  What I'm having trouble with, is that I'd like for 
 the left edge of the text/spinners to be lined up, down the list, and the 
 labels to appear right justified next to them.  I can get the 
 text/spinners lined up correctly by setting the width of the TextView, but 
 the text on the TextView doesn't bump up against the input controls, like I 
 want it to.  Can anybody suggest a way to get this looking like I'm 
 wanting?  Any help is appreciated.

 This is kindof like what I'm looking for:
   Input 1: __
 Another Input: __
   Input Three: __



-- 
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: Accessing the camera from an application

2012-02-26 Thread Kookamonga
Does anyone have a way of getting the emulator controls back (see
screenshot in OP, the controls to the right of the actual phone
screen)?

I'm having to resort to these shortcuts (http://www.shortcutworld.com/
en/win/Android-Emulator.html) which is annoying.

Thanks.

On Feb 21, 11:22 am, 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 the
 emulator, I only see the screen and not the controls. I've searched
 everywhere trying to get it back, but have failed. Does anyone know
 how to get the controls back when launching the emulator in Eclipse?

 Thanks.

 On Feb 21, 11:13 am, JackN j...@jacknorth.com wrote:







  I think it is working. What do you expect to see on the emulator? I
  think you can use your own sample image.

  On Feb 17, 9:04 am, santy santiago.gonzalez.iz...@gmail.com wrote:

   I'm trying to access the emulator camera but the only thing I see is
   this 
   imagehttp://s2.subirimagenes.com/imagen/previo/thump_7449264captura-de-pan...

   I've tried different codes but I always get the same result. The
   strange thing is that I can access the default camera application and
   make photos, but not from my own applications. I use the camera
   permissions.

   Please I need help. Thank you

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[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 using Exif data but not always the orientation value obtained from
 Exif is correct!! Many times the value is not present in the image (it
 depends also on the phone).

 There is another way in order to get the orientation of an image? The
 system image gallery seems detect correctly the orientation, how?

 Thanks very much!

 Best regards

 Daniele

-- 
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] 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 adapter of the ListView.

Now, I understand that I can use ORDER BY in my db query when
initially populating the list. But what about when new items are
inserted? I also understand that I can call the .sort() method on the
ArrayAdapter... passing in a Comparator... But does this mean that I
have to call sort every time a new object is added to my database (and
thus, my ListView is updated)? That doesn't seem right.

The answer here (http://stackoverflow.com/questions/3496137/how-to-
update-a-cursoradapter-tied-to-listview-when-number-of-items-changes)
by JRL seems to indicate that using a CursorAdapter doesn't really
solve the problem either.

I have searched around but not found an answer to this question. All
I've found is help on how to sort in the first place, for example:
http://groups.google.com/group/android-developers/browse_thread/thread/b21831ed773bf1fa.

What I need is something like a setSorter(...) method that's available
on certain Eclipse Viewers. Does something like this exist?

Thanks as usual for your help!

-- 
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: 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 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 adapter of the ListView.

  Now, I understand that I can use ORDER BY in my db query when
  initially populating the list. But what about when new items are
  inserted? I also understand that I can call the .sort() method on the
  ArrayAdapter... passing in a Comparator... But does this mean that I
  have to call sort every time a new object is added to my database (and
  thus, my ListView is updated)? That doesn't seem right.

  The answer here (http://stackoverflow.com/questions/3496137/how-to-
  update-a-cursoradapter-tied-to-listview-when-number-of-items-changes)
  by JRL seems to indicate that using a CursorAdapter doesn't really
  solve the problem either.

  I have searched around but not found an answer to this question. All
  I've found is help on how to sort in the first place, for example:
 http://groups.google.com/group/android-developers/browse_thread/threa

  What I need is something like a setSorter(...) method that's available
  on certain Eclipse Viewers. Does something like this exist?

  Thanks as usual for your help!

 what you need is a CursorAdapter, nothing more

 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


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

2012-02-24 Thread Kookamonga
I've hit a problem in changing over to a CursorAdapter. The custom
items in my ListView contained a Checkbox. After reading online, I had
successfully implemented maintaining the state of the Checkbox such
that it worked with view recycling: I was storing the state of the
Checkbox in the same object as was added to my ArrayAdapter. This way,
I was able to retrieve and set this state correctly in the getView()
method of my custom ArrayAdapter.

Now, when I switch over to a CursorAdapter, all of the data used to
populate my view is coming from a Cursor... I've figured out how to
handle view recycling over the new bindView() and newView() methods
(http://stackoverflow.com/questions/3535074/getview-vs-bindview-in-a-
custom-cursoradapter), but how do I handle this Checkbox state thing?
Does it now necessarily have to be a part of my database (seems to be
the case if all bindView() and newView() get is a Cursor...)? This
means that now every time a user checks/unchecks an item in my
ListView, I'm making a database update() call to save the Checkbox
state. Is this the way to do it?

Thanks for your patience. I'm trying to explain the problem as clearly
as I can, but to be honest, I'm 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:







  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 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 adapter of the ListView.

   Now, I understand that I can use ORDER BY in my db query when
   initially populating the list. But what about when new items are
   inserted? I also understand that I can call the .sort() method on the
   ArrayAdapter... passing in a Comparator... But does this mean that I
   have to call sort every time a new object is added to my database (and
   thus, my ListView is updated)? That doesn't seem right.

   The answer here (http://stackoverflow.com/questions/3496137/how-to-
   update-a-cursoradapter-tied-to-listview-when-number-of-items-changes)
   by JRL seems to indicate that using a CursorAdapter doesn't really
   solve the problem either.

   I have searched around but not found an answer to this question. All
   I've found is help on how to sort in the first place, for example:
  http://groups.google.com/group/android-developers/browse_thread/threa

   What I need is something like a setSorter(...) method that's available
   on certain Eclipse Viewers. Does something like this exist?

   Thanks as usual for your help!

  what you need is a CursorAdapter, nothing more

  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


[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 contained a Checkbox. After reading online, I had
 successfully implemented maintaining the state of the Checkbox such
 that it worked with view recycling: I was storing the state of the
 Checkbox in the same object as was added to my ArrayAdapter. This way,
 I was able to retrieve and set this state correctly in the getView()
 method of my custom ArrayAdapter.

 Now, when I switch over to a CursorAdapter, all of the data used to
 populate my view is coming from a Cursor... I've figured out how to
 handle view recycling over the new bindView() and newView() methods
 (http://stackoverflow.com/questions/3535074/getview-vs-bindview-in-a-
 custom-cursoradapter), but how do I handle this Checkbox state thing?
 Does it now necessarily have to be a part of my database (seems to be
 the case if all bindView() and newView() get is a Cursor...)? This
 means that now every time a user checks/unchecks an item in my
 ListView, I'm making a database update() call to save the Checkbox
 state. Is this the way to do it?

 Thanks for your patience. I'm trying to explain the problem as clearly
 as I can, but to be honest, I'm 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:

   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 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 adapter of the ListView.

Now, I understand that I can use ORDER BY in my db query when
initially populating the list. But what about when new items are
inserted? I also understand that I can call the .sort() method on the
ArrayAdapter... passing in a Comparator... But does this mean that I
have to call sort every time a new object is added to my database (and
thus, my ListView is updated)? That doesn't seem right.

The answer here (http://stackoverflow.com/questions/3496137/how-to-
update-a-cursoradapter-tied-to-listview-when-number-of-items-changes)
by JRL seems to indicate that using a CursorAdapter doesn't really
solve the problem either.

I have searched around but not found an answer to this question. All
I've found is help on how to sort in the first place, for example:
   http://groups.google.com/group/android-developers/browse_thread/threa

What I need is something like a setSorter(...) method that's available
on certain Eclipse Viewers. Does something like this exist?

Thanks as usual for your help!

   what you need is a CursorAdapter, nothing more

   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


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

2012-02-24 Thread Kookamonga
I have another problem. I was scheduling an alarm for each item in my
ListView. Users were able to edit the time for the alarm by editing
the item in the ListView. Per the docs, I had to cancel the previously
set alarm myself and set a new alarm for the updated time as specified
by the user during their edit (i.e. there was no way to replace a
previously set alarm...).

In the previous way of doing things, with a custom ArrayAdapter, I
was of course using a custom object type as the contents of the
ListView. I had added a field of type PendingIntent to this object.
This way, when a user clicked on an item in the ListView, I could
retrieve the custom object backing this item and then cancel the
PendingIntent that had previously been scheduled.

But now, if I use a CursorAdapter, the object backing this item is
simply a Cursor. How would I maintain such an association between some
custom object and an item in my ListView? It seems as though using a
CursorAdapter severely limits our freedom in terms of saving content
to be associated with an item in the ListView WITHOUT adding it to the
database itself.

Thanks again for your help and patience. It certainly isn't easy
navigating 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:







  I've hit a problem in changing over to a CursorAdapter. The custom
  items in my ListView contained a Checkbox. After reading online, I had
  successfully implemented maintaining the state of the Checkbox such
  that it worked with view recycling: I was storing the state of the
  Checkbox in the same object as was added to my ArrayAdapter. This way,
  I was able to retrieve and set this state correctly in the getView()
  method of my custom ArrayAdapter.

  Now, when I switch over to a CursorAdapter, all of the data used to
  populate my view is coming from a Cursor... I've figured out how to
  handle view recycling over the new bindView() and newView() methods
  (http://stackoverflow.com/questions/3535074/getview-vs-bindview-in-a-
  custom-cursoradapter), but how do I handle this Checkbox state thing?
  Does it now necessarily have to be a part of my database (seems to be
  the case if all bindView() and newView() get is a Cursor...)? This
  means that now every time a user checks/unchecks an item in my
  ListView, I'm making a database update() call to save the Checkbox
  state. Is this the way to do it?

  Thanks for your patience. I'm trying to explain the problem as clearly
  as I can, but to be honest, I'm 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:

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 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 adapter of the ListView.

 Now, I understand that I can use ORDER BY in my db query when
 initially populating the list. But what about when new items are
 inserted? I also understand that I can call the .sort() method on the
 ArrayAdapter... passing in a Comparator... But does this mean that I
 have to call sort every time a new object is added to my database (and
 thus, my ListView is updated)? That doesn't seem right.

 The answer here (http://stackoverflow.com/questions/3496137/how-to-
 update-a-cursoradapter-tied-to-listview-when-number-of-items-changes)
 by JRL seems to indicate that using a CursorAdapter doesn't really
 solve the problem either.

 I have searched around but not found an answer to this question. All
 I've found is help on how to sort in the first place, for example:
http://groups.google.com/group/android-developers/browse_thread/threa

 What I need is something like a setSorter(...) method that's available
 on certain Eclipse Viewers. Does something like this exist?

 Thanks as usual for your help!

what you need is a CursorAdapter, nothing more

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


[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 Brooks jaisonbro...@gmail.com wrote:
 I am working on using a few custom 9patch buttons I've created for my
 app. I'm having troubles find the best way to do this. I have created
 3 versions if each button for my ldpi mdpi and hdpi folders. Each
 button has the same name and there is no mix up. And from what I've
 research. I created a new xml file name mybuttonbackground.xml with my
 code for when the button is normal, pressed and focused. But in this
 xml file my code is having errors with the resources .
 Example:

 The error is here  @android:drawable/
 grey_button_background_pressed_blue
 And is the same for each line where I reference the PNG reference.
 I know u could just place the 3 button PNGs in the main drawable
 folder and fix it. But I want to have the density folder the android
 system will use for high or low density resolutions. Can someone help
 me re write this or give me the proper way to do this in my
 buttonbackground xml file.

  ?xml version=1.0 encoding=utf-8? selector
 xmlns:android=http://schemas.android.com/apk/res/android; item
 android:state_focused=true android:state_pressed=false
 android:drawable=@android:drawable/
 grey_button_background_focus_blue / item
 android:state_focused=true android:state_pressed=true
 android:drawable=@android:drawable/
 grey_button_background_pressed_blue / item
 android:state_focused=false android:state_pressed=true
 android:drawable=@android:drawable/
 grey_button_background_pressed_blue / item
 android:drawable=@android:drawable/grey_button_background_normal /
 /selector

-- 
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: 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 (you can Google that). While you can't save just the
function somewhere else, you could create a class that implements the
OnItemClickListener() interface (i.e. in its own file or even as an
embedded class within the Java file that contains this code) and then
create a new instance of it to pass to the setOnItemClickListener().

So, something like this:

// Create this class somewhere else
class MyOnClickListener implements OnItemClickListener() {
   // implement the required method
}

gridview.setOnItemClickListener(new MyOnClickListener());

On Feb 22, 11:58 am, rhaazy rha...@gmail.com wrote:
 Hi everyone. I'm not sure if this question belongs here but here
 goes..

 I am a professional asp.net developer looking to get into android dev.

 I have been going through tutorials and having fun so far!

 I have a question related to how the tutorial is asking me to
 structure my code.
 The code is from a tutorial where I create a gridview and set up a
 click listener event:
 gridview.setOnItemClickListener(new OnItemClickListener() {
                 public void onItemClick(AdapterView? parent, View v,
                                                  int position, long id) {
                         Toast.makeText(HelloGridViewActivity.this, Position: 
  +
 position, Toast.LENGTH_SHORT).show();
                         }
         });

 To me this structure is kind of messy, what I would like to do is have
 the function, public void onItemClick be by itself, so that I can do
 something more along the lines of: (psudo code)
 gridview.setOnItemClickListener([somehow reference the function
 here]);

 Is what I'm asking possible?
 Does my question make sense?
 Is there a more appropriate group to ask this kind of question?

 Thanks very much for your time.

-- 
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 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 23, 8:17 am, suram sridhar suram.srid...@gmail.com wrote:
 Hi friends,

 Can u please help me to get the db file from the real device(Android).
 I am using debug build of the app, but still i am not able to get the db
 file.

 I am using adb shell command to pull the file.

 eg# adb pull dbname c:\

 Please give the reply which command should i use in ADB SHELL.

 --
 *Best Thanks  Regards

 **
 *

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[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
 done.  I'd like someting like this:

 string-array name=log
     string name=version x string name=version
     string-array name=major changes item, item, item/
     string-array name=minor changes item, item, item,
     string-array name=bug fixes

 I'd like to convert this into an arrayList or multi dimensional array
 from an Activity.

 Is this possible?

 Thank you,

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Beginner Question

2012-02-23 Thread Kookamonga
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. :-)

For example, if the widget for which you are writing the listener will
only appear in this Activity, then having the Activity itself
implement the interface is probably fine. But, say for example you're
creating some layout that appears on all of your activities (maybe a
common group of buttons or something like that), then I would create a
separate reusable listener class that saves you from having to
duplicate code.

Please feel free to correct me 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
 OnItemClickListener to my activity and was able to do just as you
 said!
 This is exactly what I was looking for.

 So my next question is, in your opinions, what would be the better way
 to structure this?

 1.) having my activity implement the OnItemClickListener
 2.) creating an embedded class inside my activity that implements the
 OnItemClickListener

 I think I over estimated my ability to jump right into this without
 learning a bit more about the java language.
 Thanks again!

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Beginner Question

2012-02-23 Thread Kookamonga
 I'm not sure how useful this would be in the
 button group. Wouldn't each button need its own listener? Wouldn't there
 be an activity associated with them?

Yes, each button would need its own listener. But if that button
appeared on several activities - say it was a Settings button, or
some such - you wouldn't need to duplicate the actual code performed
in the onClick method several times. So, say the button appears in 2
activies, A and B. You could do this:

Activity A

... onCreate(...) {
   ...
   settingsButton.setOnItemClickListener(new OnItemClickListener() {
  public void onItemClick(AdapterView? parent, View v,
int position, long id) {
  // do something
  }
   });
}

Activity B

... onCreate(...) {
   ...
   settingsButton.setOnItemClickListener(new OnItemClickListener() {
  public void onItemClick(AdapterView? parent, View v,
int position, long id) {
  // do something
  }
   });
}

Or, if you had created a separate class for the OnItemClickListener()
and as long as the do something was the same, which it likely is in
the case of something as generic as launching a settings activity,
showing a toast, etc., you could do this:

Activity A

... onCreate(...) {
   ...
   settingsButton.setOnItemClickListener(new MyOnItemClickListener());
}

Activity B

... onCreate(...) {
   ...
   settingsButton.setOnItemClickListener(new MyOnItemClickListener());
}

And now you have to update the common onClick actions in one place,
etc. I think this works and would server to improve maintenance,
readability... you know, all those good things.

Now, here's something I'm not sure about at all, but I'm throwing it
out there. I've seen an android:onClick attribute for buttons where
you can specify the method to run on the click event. The docs say:

This may also be a reference to a resource (in the form
@[package:]type:name) ...

So perhaps you can even get rid of the call to
setOnItemClickListener(...) in all of the Activities that re-use the
same button. But like I said, I've never played 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 think there is a definitive answer here, only reasonable ones. For 
 example, if the widget for which you are writing the listener will
  only appear in this Activity, then having the Activity itself
  implement the interface is probably fine. But, say for example you're
  creating some layout that appears on all of your activities (maybe a
  common group of buttons or something like that), then I would create a
  separate reusable listener class that saves you from having to
  duplicate code.

 Good point. I don't have a particular problem starting out with the
 anonymous class early in the project. When it's needed elsewhere It's a
 straight forward refactoring to extract the class. I'm pretty new to
 Android, at first glance, I'm not sure how useful this would be in the
 button group. Wouldn't each button need its own listener? Wouldn't there
 be an activity associated with them?

  On Feb 23, 11:35 am, rhaazyrha...@gmail.com  wrote:
  I think I over estimated my ability to jump right into this without
  learning a bit more about the java language.
  Thanks again!

 http://javaranch.comis a pretty good resource for getting up to speed
 in the language.

-- 
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: 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 would work. Did I miss something?

On Feb 22, 9:51 am, TreKing treking...@gmail.com wrote:
 On Wed, Feb 22, 2012 at 4:46 AM, Haddi pranavraul...@gmail.com wrote:
  I want to retain the state of this button when the activity is launched

 http://developer.android.com/reference/android/content/SharedPreferen...

 --- 
 --
 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: 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 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: 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 on view I create from code but I do not see
 a way to achieve that. Am I missing something or these params can only be
 set in XML?

 Regards,
 Marcin Orlowski

 *Tray Agenda http://bit.ly/trayagenda* - keep you daily schedule handy...
 *Date In Tray* http://bit.ly/dateintraypro - current date at glance...
 WebnetMobile on *Facebook http://webnetmobile.com/fb/*,
 *Google+*http://bit.ly/webnetmobile-gpand
 *Twitter http://webnetmobile.com/twitter/*

-- 
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: 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/webhp?ion=1#hl=enoutput=searchsclient=psy-a...

 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 on view I create from code but I do not see
  a way to achieve that. Am I missing something or these params can only be
  set in XML?

  Regards,
  Marcin Orlowski

  *Tray Agenda http://bit.ly/trayagenda* - keep you daily schedule handy...
  *Date In Tray* http://bit.ly/dateintraypro - current date at glance...
  WebnetMobile on *Facebook http://webnetmobile.com/fb/*,
  *Google+*http://bit.ly/webnetmobile-gpand
  *Twitter http://webnetmobile.com/twitter/*

-- 
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: 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 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: 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 screen and not the controls. I've searched
everywhere trying to get it back, but have failed. Does anyone know
how to get the controls back when launching the emulator in Eclipse?

Thanks.

On Feb 21, 11:13 am, JackN j...@jacknorth.com wrote:
 I think it is working. What do you expect to see on the emulator? I
 think you can use your own sample image.

 On Feb 17, 9:04 am, santy santiago.gonzalez.iz...@gmail.com wrote:







  I'm trying to access the emulator camera but the only thing I see is
  this 
  imagehttp://s2.subirimagenes.com/imagen/previo/thump_7449264captura-de-pan...

  I've tried different codes but I always get the same result. The
  strange thing is that I can access the default camera application and
  make photos, but not from my own applications. I use the camera
  permissions.

  Please I need help. Thank you

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


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

2012-02-19 Thread Kookamonga
In case anyone tries to do this in the future, I figured it out. In
hindsight, it is so bloody obvious...

You simply specify both the android:src attribute of the ImageView and
the android:background attribute as well. The android:src points to
the image you want to display in the ImageView 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 in case I wasn't clear in what I wanted, let me try again.

 I basically want to accomplish the same effect as the latest GMail app
 does with its buttons at the bottom of the main Activity. If you click
 on the Compose button, it is highlighted in blue while it is
 pressed. My question is whether this is possible with a selector and a
 single actual image of the icon, or whether I necessarily need as many
 images as I have different backgrounds.

 Again, I realize that the selector itself requires separate images for
 each state, but my drawables in that case are simple... For example:

 ?xml version=1.0 encoding=utf-8?
 shape
     xmlns:android=http://schemas.android.com/apk/res/android;
     android:shape=rectangle

     solid
          android:color=#FF /
 /shape

 It is much easier to create multiple such drawables for changing the
 background as long as there is a single icon image 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/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 uses the android:src attribute... So my
  question is whether there is an easy way to both set the image to an X
  AND use a selector to change the background when pressed? The obvious
  answer is to have the images in my selector all include the X with
  different backgrounds depending on the state... But I'm hoping that I
  don't have to go and create 2 versions of every image I want to have
  with different backgrounds (right now, the selectors point to simple
  drawables that are solid colours, so no image creation needed). Or do
  I just have to bite the bullet?

-- 
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 ImageView background with a custom image

2012-02-17 Thread Kookamonga
Just in case I wasn't clear in what I wanted, let me try again.

I basically want to accomplish the same effect as the latest GMail app
does with its buttons at the bottom of the main Activity. If you click
on the Compose button, it is highlighted in blue while it is
pressed. My question is whether this is possible with a selector and a
single actual image of the icon, or whether I necessarily need as many
images as I have different backgrounds.

Again, I realize that the selector itself requires separate images for
each state, but my drawables in that case are simple... For example:

?xml version=1.0 encoding=utf-8?
shape
xmlns:android=http://schemas.android.com/apk/res/android;
android:shape=rectangle

solid
 android:color=#FF /
/shape

It is much easier to create multiple such drawables for changing the
background as long as there is a single icon image 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/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 uses the android:src attribute... So my
 question is whether there is an easy way to both set the image to an X
 AND use a selector to change the background when pressed? The obvious
 answer is to have the images in my selector all include the X with
 different backgrounds depending on the state... But I'm hoping that I
 don't have to go and create 2 versions of every image I want to have
 with different backgrounds (right now, the selectors point to simple
 drawables that are solid colours, so no image creation needed). Or do
 I just have to bite the bullet?

-- 
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] 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 uses the android:src attribute... So my
question is whether there is an easy way to both set the image to an X
AND use a selector to change the background when pressed? The obvious
answer is to have the images in my selector all include the X with
different backgrounds depending on the state... But I'm hoping that I
don't have to go and create 2 versions of every image I want to have
with different backgrounds (right now, the selectors point to simple
drawables that are solid colours, so no image creation needed). Or do
I just have to bite the bullet?

-- 
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: 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 what a lot of errors are instead of asking people to
 do your homework for you.

  I have to submit the timetable app to my Professor as an assignment, so
  please can any1 send me the code(java,xml,manifest etc) which creates the
  timetable of an individual professor and displays the timetable of the
  desired professor.

 If you have the gall to ask people on this group to do your homework for
 you, at least

 A) Learn to spell PLEASE. It's not plzzz, pls, plz, or any
 variation thereof. You saved one letter to have the subject of your post
 look like it was written by an illiterate spammer. That doesn't help your
 case.

 B) This is a volunteer list - if you want people to do your work for you,
 you have to offer up some dolla dolla bills, yo.

 --- 
 --
 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: Prevent image from being scaled in ImageView

2012-02-11 Thread Kookamonga
Well... I should thank you. Based on your XML, I tried
android:scaleType=fitCenter and the image now appears as-is, without
any scaling.

I'm confused as to why this works and not just
android:scaleType=center. Based on the docs (http://
developer.android.com/reference/android/widget/
ImageView.ScaleType.html), center should perform no scaling. I
tried a bunch of things, but never fitCenter as the
android:scaleType... So thanks!

For completeness, let me answer your question. Yes, I was saying that
the X gets scaled up, but not quite to the full size. When I used
android:scaleType=centerCrop, the X was scaled to fit the entire
ImageView. When I changed to android:scaleType=center, it was only
scaled up a little bit, but not to fit the entire view. And now, with
fitCenter, it appears as-is.

On Feb 11, 7:38 am, Doug Gordon gordo...@gmail.com wrote:
 Are you saying that the X gets scaled up to the full size of the
 ImageView as though the transparent border were not there? I have an
 ImageView that displays photos in their native pixel dimensions up
 to a max size by doing this:

             ImageView android:id=@+id/photo
                         android:layout_width=wrap_content
                         android:layout_height=wrap_content
                         android:gravity=center
                         android:scaleType=fitCenter
                         android:maxWidth=214dip
                         android:maxHeight=214dip
                         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:

                  ImageView android:id=@+id/im_delete
                                     android:layout_width=fill_parent
                                     android:layout_height=40dp
                                     android:background=@null
                                     android:src=@drawable/delete
                                     android:scaleType=center
                                     android:layout_weight=1/

  The delete drawable is a 60x60 png with a roughly 28x28 white X in
  its center; the rest of the png is transparent. When this view
  appears, the white X appears scaled (larger than original). This looks
  ugly. Is there any way to prevent this scaling? What is causing it?

  I have tried to follow Mark's suggestion here (drawable-nodpi folder),
  but unfortunately, it didn't work:

 http://groups.google.com/group/android-developers/browse_thread/threa...

  I have tried android:background=@null and android:scaleType=center
  and android:src, according to this:

 http://stackoverflow.com/questions/2406172/android-how-to-prevent-ima...

  Still no dice. I'm not sure what I'm missing here.

-- 
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] 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:src=@drawable/delete
   android:scaleType=center
   android:layout_weight=1/

The delete drawable is a 60x60 png with a roughly 28x28 white X in
its center; the rest of the png is transparent. When this view
appears, the white X appears scaled (larger than original). This looks
ugly. Is there any way to prevent this scaling? What is causing it?

I have tried to follow Mark's suggestion here (drawable-nodpi folder),
but unfortunately, it didn't work:

http://groups.google.com/group/android-developers/browse_thread/thread/a9e29f9688863a92

I have tried android:background=@null and android:scaleType=center
and android:src, according to this:

http://stackoverflow.com/questions/2406172/android-how-to-prevent-image-from-being-scaled-in-imageview-or-imagebutton

Still no dice. I'm not sure what I'm missing here.

-- 
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: 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 explanation:
http://stackoverflow.com/questions/2305395/laying-out-views-in-relativelayout-programmatically

On Jan 24, 9:57 pm, Guy Smith g...@multiniche.org wrote:
 I want to create a RelativeLayout in Java code, rather than using the
 XML format.

 It seems RelativeLayout.LayoutParams.addRule() would be the way to add
 relative positioning constraints. However, this doesn't take a View
 anchor argument, just an int anchor argument. Does this mean you can
 only use XML-specified Views as the anchor in constraints?

 All the examples  tutorials I've found for RelativeLayout assume you
 are using XML-specifications. I'm constructing the layout
 programmatically because the layout is very dynamic - each region of
 the screen has structured content (eg, a crossword square) which
 varies according to the size of the crossword chosen, and the degree
 of zooming.

-- 
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: Sending mail through GMail (again...)

2012-01-21 Thread Kookamonga
In case any one is reading this later, the solution I settled on was
porting the Python xoauth.py script to Java and integrating into my
app. In retrospect, this was a stupid idea and wholly unnecessary. :-)
Because, at the end of the day, the behaviour is *identical* to the
solution described here: 
http://blog.doityourselfandroid.com/2010/11/10/oauth-flow-in-android-app/.
This still requires the user to grant access outside the usual Android
framework, which is unfortunate... Oh well.

On the plus side, I learned some Python. So I guess it wasn't a
complete waste of time.

On Jan 20, 11:42 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 script (xoauth.py)
 to obtain the oauth_token and oauth_token_secret parameters in order
 to be able to connect to the GMail servers. This involves running the
 script, obtaining a verification URL which you then have to visit to
 grant access to your app, then supplying the script with the
 verification code returned by Google and finally obtaining the
 oauth_token and oauth_token_secret values. Of course, I want to be
 able to do this in my app.

 In Android, one can obtain some sort of an authToken using
 AccountManager.getAuthToken(). Following this 
 link:http://stackoverflow.com/questions/6649388/android-accountmanager-aut...,
 I have tried using that authTokenType value, but I never get an
 auth_token_secret value back... After TONS of reading/searching, I
 think the problem here is that the AccountManager method is returning
 a ClientLogin authToken, whereas the sample implementation (first link
 I gave) requires XOAuth tokens. So finally, the question: is there any
 way to get from the ClientLogin token returned by the
 AccountManager.getAuthToken(...) method to the XOAuth tokens used by
 the sample app?

 This (http://groups.google.com/group/google-accounts-api/browse_thread/
 thread/df3a6382a01d73ab) claims that it is a matter of using an
 appropriate URL. I have not been able to get this to work.

 This (http://blog.doityourselfandroid.com/2010/11/10/oauth-flow-in-
 android-app/) explains how to get the OAuth tokens as part of your
 Android app... But the whole point of me wanting to use AccountManager
 is so that users of my app don't have to enter their password into the
 app...

 This (http://code.google.com/p/google-api-java-client/source/browse/
 tasks-android-sample/src/main/java/com/google/api/services/samples/
 tasks/android/TasksSample.java?repo=samples) shows how to use the
 AccountManager.getAuthToken(...) token to access a different Google
 API (Tasks). But again, I'm using the *Google provided* sample for
 Mail... And that seems to require something other than the ClientLogin
 credentials returned by AccountManager.

 I realize this is sort of a long, involved question. But after lots of
 looking, I'm hoping someone can help.

 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] 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 oauth_token and oauth_token_secret parameters in order
to be able to connect to the GMail servers. This involves running the
script, obtaining a verification URL which you then have to visit to
grant access to your app, then supplying the script with the
verification code returned by Google and finally obtaining the
oauth_token and oauth_token_secret values. Of course, I want to be
able to do this in my app.

In Android, one can obtain some sort of an authToken using
AccountManager.getAuthToken(). Following this link:
http://stackoverflow.com/questions/6649388/android-accountmanager-authtoken-and-oauth,
I have tried using that authTokenType value, but I never get an
auth_token_secret value back... After TONS of reading/searching, I
think the problem here is that the AccountManager method is returning
a ClientLogin authToken, whereas the sample implementation (first link
I gave) requires XOAuth tokens. So finally, the question: is there any
way to get from the ClientLogin token returned by the
AccountManager.getAuthToken(...) method to the XOAuth tokens used by
the sample app?

This (http://groups.google.com/group/google-accounts-api/browse_thread/
thread/df3a6382a01d73ab) claims that it is a matter of using an
appropriate URL. I have not been able to get this to work.

This (http://blog.doityourselfandroid.com/2010/11/10/oauth-flow-in-
android-app/) explains how to get the OAuth tokens as part of your
Android app... But the whole point of me wanting to use AccountManager
is so that users of my app don't have to enter their password into the
app...

This (http://code.google.com/p/google-api-java-client/source/browse/
tasks-android-sample/src/main/java/com/google/api/services/samples/
tasks/android/TasksSample.java?repo=samples) shows how to use the
AccountManager.getAuthToken(...) token to access a different Google
API (Tasks). But again, I'm using the *Google provided* sample for
Mail... And that seems to require something other than the ClientLogin
credentials returned by AccountManager.

I realize this is sort of a long, involved question. But after lots of
looking, I'm hoping someone can help.

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] 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:

http://groups.google.com/group/android-developers/browse_thread/thread/80e559d0317b71c8/38ecbc20429fdc76?lnk=gstq=revoke+permissions+to+access+google+auth+tokens#38ecbc20429fdc76

(I wasn't able to reply in that thread; this is why I've started a new
thread.)

Thanks for your help.

-- 
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: 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 to the user's Google Account (see screenshots in the
thread I've linked to). In Android terms, this would be as a result of
a call to AccountManager's getAuthToken(...) method.

TreKing:

Uninstalling the app is hardly a solution! First, I'm not even sure if
it will work (because I don't think this permission to access one's
Google Account is stored on the phone), but even if it did, it seems
kind of heavy handed to have to re-install the app if you've
accidentally granted certain permissions...

I was hoping there was some way to do it online through one's Google
Account settings. This is already mentioned in the thread linked to in
my initial post, but this is how one would revoke access to Chrome-To-
Phone, for example...

Oh well, still no satisfactory answer. (To tell you the truth, I don't
understand the broadcast receiver answer... )

On Jan 18, 9:56 pm, Kristopher Micinski krismicin...@gmail.com
wrote:
 One of them is from my end, this is binary rewriting to retrofit apps
 with enhanced security policies..

 http://www.cs.umd.edu/~jfoster/papers/acplib.pdf

 another notable project is CRePE droid, which takes the platform based 
 approach

 http://crepedroid.org/crepedroid.html

 Though as I said, these are very much research projects at the moment.

 kris

 On Wed, Jan 18, 2012 at 8:19 PM, Nikolay Elenkov







 nikolay.elen...@gmail.com wrote:
  On Thu, Jan 19, 2012 at 7:55 AM, Kristopher Micinski
  krismicin...@gmail.com wrote:

  There are a few active research projects that target this direction,
  however I'm guessing that this is not what you are interested in :-).

  Could you please share those links?

  --
  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: Revoke permissions to access Google Accounts

2012-01-18 Thread Kookamonga
Nikolay:

Thanks for the explanation. While I was aware about the server/client
sides to AuthToken, I didn't know the specifics of how it worked on
the Android side... Very informative! Much appreciated. Also, I was
aware of that Google website, but it didn't have the app that I
granted permission listed... which is why I posed the question in the
first place. Even my Google Accounts dashboard (which lists, for
example, Chrome-To-Phone), does NOT list this other app.

TreKing:

:-) Looks like uninstalling is in fact the only solution, given what
Nikolay says about the way the grants DB works. So thank you as well
for first suggesting it.

Kris:

No apologies needed at all; I appreciate you spending the time to
respond in the first place.

Thanks everyone, looks like we can close the books on this question.

On Jan 18, 11:15 pm, TreKing treking...@gmail.com wrote:
 On Wed, Jan 18, 2012 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 is stored on the phone),

  I just tried with the AppBrain app. It does work.

 but even if it did, it seems kind of heavy handed to have to re-install the

  app if you've accidentally granted certain permissions...

 Perhaps, but it works. I would assume if you didn't trust an app to the
 point that you wanted to revoke the permissions granted to it, you would
 want to uninstall it anyway.

 --- 
 --
 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: Creating step-by-step tutorial in app

2012-01-17 Thread Kookamonga
Yes, I also wanted a first-start-tour-of-the-app. A custom dialog is
an interesting idea as well. By making it transparent, I can get the
overlay effect I'm thinking about. Thanks for the tip.

On Jan 17, 12:27 am, Stephan Wiesner testexpe...@googlemail.com
wrote:
 What I do in one of my apps (see middle 
 screenshot)https://market.android.com/details?id=de.stephanwiesner.fotocommunity

 is that I display a popup that contains a custom dialog displaying an
 image. Sitze set to just fit the picture. In my case it can be zoomed
 and panned, but it could easily include swipe detection and not be
 movable. Just thinking about it, I believe that is exactly what I will
 do to include a first-start-tour-of-the-app .-)
 What you can also see in the screenshot is that there are two menu
 bars. The user can show/hide them with a tap. In your case this could
 be a navigation bar to make sure 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 Micinski krismicin...@gmail.com
  wrote:

   Nonsense, you can also have something like a surfaceview that displays
   the picture, and also does dynamic drawing of the cute indicator
   button :-)

   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
of getting the nice page indicator at the bottom would be to hardcode
it as part of the image in the ImageView. And obviously, this is less
than desirable: adding a page to the tutorial means re-doing every
page to update the page indicator, etc. I thought maybe there was
something I hadn't come across in my Googling for the answer.

On Jan 16, 10:30 pm, Kristopher Micinski krismicin...@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 clear, I've uploaded images for the
 first two pages of the tutorial:

http://tinypic.com/r/eh19n8/5
http://tinypic.com/r/35m2v0k/5

 Nice, eh?

 On Jan 16, 10:02 pm, Kristopher Micinski krismicin...@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 that it's not *possible* to write a fancy view that 
 embeds
 other views and adds some niceties to do demo stuff, I'm sure it's
 possible to write such a view, it's just not out there on the 
 Android
 platform.  But ultimately this might be what a few of those apps 
 use.
 Perhaps you can find an example app, then check out it's source?

 kris

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to 
 android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
   http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[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 the Android support libraries and there's plenty of source on the
 Android Developers website.

 The little circular things at the bottom can be made using Jake Wharton's
 (brilliant) ViewPagerIndicator project, just Google it and you'll find it.

 Hope that helps!

-- 
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 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:

http://stackoverflow.com/questions/5510258/building-a-tutorial-giving-a-hint-for-my-android-app

But the answer that is given - showing toasts at startup - is pretty
much a non-solution. Yes, I can simply have a series of Activities
that represent the pages of the tutorial and have the user step
through, but again, I'm looking to know the specific way in which the
Google Currents app tutorial is written.

Thanks for your help and time.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Creating 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 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: Creating step-by-step tutorial in app

2012-01-16 Thread Kookamonga
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 Currents tutorial is very slick. The tutorial
pages appear as an overlay (transparent too!) on the current Activity
that is running. I 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 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 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: 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 Currents tutorial is very slick. The tutorial
 pages appear as an overlay (transparent too!) on the current Activity
 that is running. I 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 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 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: Creating step-by-step tutorial in app

2012-01-16 Thread Kookamonga
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.

Thanks again for your help.

On Jan 16, 9:46 pm, Kristopher Micinski krismicin...@gmail.com
wrote:
 You have lots of options, but there's not a builtin view that can do
 this sort of thing for you easily.  That's not to say you can't go
 around to all the activities in your app in some sequence with some
 special flag in the intent or something to put it in demo mode, but
 I suppose there are lots 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...@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 Currents tutorial is very slick. The tutorial
  pages appear as an overlay (transparent too!) on the current Activity
  that is running. I 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 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 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: Creating step-by-step tutorial in app

2012-01-16 Thread Kookamonga
Yes, I will try and find an example and look at the source.

In the meantime, just so we're clear, I've uploaded images for the
first two pages of the tutorial:

http://tinypic.com/r/eh19n8/5
http://tinypic.com/r/35m2v0k/5

Nice, eh?


On Jan 16, 10:02 pm, Kristopher Micinski krismicin...@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 that it's not *possible* to write a fancy view that embeds
 other views and adds some niceties to do demo stuff, I'm sure it's
 possible to write such a view, it's just not out there on the Android
 platform.  But ultimately this might be what a few of those apps use.
 Perhaps you can find an example app, then check out it's source?

 kris

-- 
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: Creating step-by-step tutorial in app

2012-01-16 Thread Kookamonga
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
of getting the nice page indicator at the bottom would be to hardcode
it as part of the image in the ImageView. And obviously, this is less
than desirable: adding a page to the tutorial means re-doing every
page to update the page indicator, etc. I thought maybe there was
something I hadn't come across in my Googling for the answer.

On Jan 16, 10:30 pm, Kristopher Micinski krismicin...@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 clear, I've uploaded images for the
  first two pages of the tutorial:

 http://tinypic.com/r/eh19n8/5
 http://tinypic.com/r/35m2v0k/5

  Nice, eh?

  On Jan 16, 10:02 pm, Kristopher Micinski krismicin...@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 that it's not *possible* to write a fancy view that embeds
  other views and adds some niceties to do demo stuff, I'm sure it's
  possible to write such a view, it's just not out there on the Android
  platform.  But ultimately this might be what a few of those apps use.
  Perhaps you can find an example app, then check out it's source?

  kris

  --
  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: Creating step-by-step tutorial in app

2012-01-16 Thread Kookamonga
Excellent, SurfaceView, just learned something new. Thanks, I'll have
a look.

On Jan 16, 10:48 pm, Kristopher Micinski krismicin...@gmail.com
wrote:
 Nonsense, you can also have something like a surfaceview that displays
 the picture, and also does dynamic drawing of the cute indicator
 button :-)

 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
  of getting the nice page indicator at the bottom would be to hardcode
  it as part of the image in the ImageView. And obviously, this is less
  than desirable: adding a page to the tutorial means re-doing every
  page to update the page indicator, etc. I thought maybe there was
  something I hadn't come across in my Googling for the answer.

  On Jan 16, 10:30 pm, Kristopher Micinski krismicin...@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 clear, I've uploaded images for the
   first two pages of the tutorial:

  http://tinypic.com/r/eh19n8/5
  http://tinypic.com/r/35m2v0k/5

   Nice, eh?

   On Jan 16, 10:02 pm, Kristopher Micinski krismicin...@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 that it's not *possible* to write a fancy view that embeds
   other views and adds some niceties to do demo stuff, I'm sure it's
   possible to write such a view, it's just not out there on the Android
   platform.  But ultimately this might be what a few of those apps use.
   Perhaps you can find an example app, then check out it's source?

   kris

   --
   You received this message because you are subscribed to the Google
   Groups Android Developers group.
   To post to this group, send email to android-developers@googlegroups.com
   To unsubscribe from this group, send email to
   android-developers+unsubscr...@googlegroups.com
   For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en

  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-developers@googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.com
  For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


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

2012-01-16 Thread Kookamonga
Wow, sorry... I didn't see that my initial post had actually gotten
through. I have since asked the question again and come to some sort
of an answer:

http://groups.google.com/group/android-developers/browse_thread/thread/9cff804a2d22afa6#

Again, apologies for double-posting. :-/

On Jan 16, 7: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 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:

 http://stackoverflow.com/questions/5510258/building-a-tutorial-giving...

  But the answer that is given - showing toasts at startup - is pretty
  much a non-solution. Yes, I can simply have a series of Activities
  that represent the pages of the tutorial and have the user step
  through, but again, I'm looking to know the specific way in which the
  Google Currents app tutorial is written.

  Thanks for your help and time.

  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-developers@googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.com
  For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

 --
 Mark Murphy (a Commons 
 Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy

 Android Training in DC:http://marakana.com/training/android/

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en