[android-developers] Re: Why might the soft keyboard not pop up?

2010-11-12 Thread John Gaby
the same thing (i.e. calling requestFocus), and the soft keyboard works fine, even with that call in place. Does anyone have any ideas why I cannot set the focus on this particular control and still have the soft keyboard work? Thanks. On Nov 12, 10:39 am, John Gaby jg...@gabysoft.com wrote: I

[android-developers] Re: Why might the soft keyboard not pop up?

2010-11-12 Thread John Gaby
I found the problem. Apparently, in only this case, I was calling the 'registerFocus' method before I had made the parent view the active view. Switching the order of the calls fixes the problem. Thanks. On Nov 12, 11:19 am, John Gaby jg...@gabysoft.com wrote: Update: I am doing

[android-developers] Android Market Licensing Problem

2010-11-12 Thread John Gaby
I am using pretty much the default Android Market Licensing in my application, but find that it is not working correctly on most of the devices that I have tested. I have uploaded my app to the Market but not published it. If install it on the emulator which does not have any Google accounts,

[android-developers] Re: Shared User ID and Signing

2010-11-06 Thread John Gaby
webnet.andr...@gmail.com wrote: On 6 November 2010 00:21, John Gaby jg...@gabysoft.com wrote: As an update, I created a new clean emulator, and I am able to get both apps to install, and they seem to be able to read each other's data. However, on the first emulator, I still cannot install either

[android-developers] Shared User ID and Signing

2010-11-05 Thread John Gaby
I am trying to have 2 applications which can access each other's data. I have a two test applications which I am experimenting with. I set the 'Shared user id' for each to 'com.gabysoft.sharedfiles'. However, when I sign the first app and try and install it, I get the error: 11-05 16:50:33.422:

[android-developers] Re: Shared User ID and Signing

2010-11-05 Thread John Gaby
webnet.andr...@gmail.com wrote: On 5 November 2010 17:55, John Gaby jg...@gabysoft.com wrote: However, when I sign the first app and try and install it, I get the                                         While android docs are far from perfect, some elements are documented. This is what you

[android-developers] Re: Shared User ID and Signing

2010-11-05 Thread John Gaby
, John Gaby jg...@gabysoft.com wrote: Actually, I didn't miss that at all, they ARE both signed using the same certificate.  However, the problem occurs when I try and install the FIRST application (the second on has not yet been installed). When I try and do that I get the error I described

[android-developers] Re: AESObfuscator is very slow

2010-11-03 Thread John Gaby
As an update to others who run into this problem, oddly enough, the long delay seems to only happen when I debug the app. If I run it without debugging, the whole license check (including creating the AESObfuscator object) take only a couple of seconds. On Oct 28, 12:12 pm, John Gaby jg

[android-developers] Re: AESObfuscator is very slow

2010-11-03 Thread John Gaby
I have noticed that as well. I have some list views which are very sluggish when I fling through the list while debugging, but are perfectly fast when not debugging. I have never seen this big of a difference, however (23 seconds when debugging to 2 seconds without). John On Nov 3, 2:07 pm,

[android-developers] Soft Keyboard Control

2010-11-01 Thread John Gaby
Is there a way to get the soft keyboard to come up in the same mode as it was left the last time it was brought up. For example, if the user had switched to entering numbers, is there a way to set it up so that the next time he brings up the keyboard, it will default to entering numbers? Failing

[android-developers] Re: Problem with ListView on a 480x854 device

2010-10-30 Thread John Gaby
Thanks for the link, that was most helpful. On Oct 29, 8:16 pm, Lance Nanek lna...@gmail.com wrote: http://developer.android.com/guide/practices/screens_support.html#attrs On Oct 29, 10:17 pm, John Gaby jg...@gabysoft.com wrote: I have a ListView where the rows are not scaled properly under

[android-developers] Re: Setting File Permissions

2010-10-30 Thread John Gaby
for me? Thanks. On Oct 29, 11:19 pm, Mark Murphy mmur...@commonsware.com wrote: On Fri, Oct 29, 2010 at 6:03 PM, John Gaby jg...@gabysoft.com wrote: If I have a File object which points to a non-existent directory (which is within my apps 'app_data' space), I can call file.mkdir

[android-developers] Re: Setting File Permissions

2010-10-30 Thread John Gaby
Much better! Now that you mention that I remember reading about that before, but had forgotten. Thanks again On Oct 30, 12:09 pm, Mark Murphy mmur...@commonsware.com wrote: Make sure you have the WRITE_EXTERNAL_STORAGE permission. On Sat, Oct 30, 2010 at 3:02 PM, John Gaby jg

[android-developers] MediaPlayer

2010-10-30 Thread John Gaby
I am using the MediaPlayer to play some .mp3 files. The files seem to play correctly, however, every time I play one I see the following in LogCat: 10-31 00:24:43.953: INFO/StagefrightPlayer(34): setDataSource('/mnt/ sdcard/Android/data/com.gabysoft.myapp/cache/Audio/Aud00.mp3') 10-31

[android-developers] Setting File Permissions

2010-10-29 Thread John Gaby
If I have a File object which points to a non-existent directory (which is within my apps 'app_data' space), I can call file.mkdir() or file.mkdirs() to create the directories. However, if I do this, the directories seem to be created with permissions set for access only by the owner (i.e.

[android-developers] Problem with ListView on a 480x854 device

2010-10-29 Thread John Gaby
I have a ListView where the rows are not scaled properly under certain circumstances. If I build my project using the following manifest, then the ListView looks like: http://gabysoft.com/images/androidgood.png. However, if I change the minSdkVersion to 4 (and that is the ONLY change), then the

[android-developers] Re: AESObfuscator is very slow

2010-10-28 Thread John Gaby
to the slowness. There are quite a few discussions on this group as to why it is slow compared to iphone/other emulators. I bet on a real  device it would be at least 10x faster. Still, you should do license check in a separate thread since it involves network connectivity. On Oct 27, 9:45 pm, John Gaby

[android-developers] Re: Eclipse bug cripples Android app?

2010-10-28 Thread John Gaby
Are you using version 3.6 of Eclipse by any chance? I had no end of problems with that version and switched back to 3.5. I later read somewhere that there are know issues with 3.6, but the post didn't say what they were. On Oct 25, 10:36 pm, Andrew Smith meeja...@gmail.com wrote: Dear all,

[android-developers] Re: Android Market Licensing Test App

2010-10-27 Thread John Gaby
already an app published, can you then upload a newer version and only save it?) On 27 okt, 17:54, John Gaby jg...@gabysoft.com wrote: I decided to go ahead and try and publish the test app and I found that if you Save it instead of Publish it, then you seem to be able test the Licensing

[android-developers] Using ServerManagedPolicy

2010-10-27 Thread John Gaby
I am reading the documentation for the ServerManagedPolicy of the Android Market licensing service, and it refers to several Server Response Extras that are sent as part of the license response (e.g. the License validity timestamp, Grace period timestamp, etc). Are these values settable be my on

[android-developers] AESObfuscator is very slow

2010-10-27 Thread John Gaby
I am trying to implement the Market License Checker, and am following the sample application. I am using the AESObfuscator class, but find that it takes a VERY long time (23 seconds on the emulator) to instantiate, which greatly delays the startup of my application. Is this normal, or am I doing

[android-developers] Re: ListView and Memory Leaks

2010-10-24 Thread John Gaby
Well, talk about the proverbial wild geese! It appears to have nothing to do with whether it is built by Eclipse or Ant. It also has nothing to do with whether it is installed by Eclipse or Ant. What it DOES depend on is whether I am debugging the process or not. If I debug it, then the

[android-developers] ListView and Memory Leaks

2010-10-23 Thread John Gaby
I have a very simple application which has a problem with getting ListViews to be freed by the GC. I have a ViewGroup which has a ListView. When the page with the ViewGroup no longer has any references to it, and I force a GC, the ListView is not freed. The project in question is quite small

[android-developers] Re: Memory Leak with a ListView revisited

2010-10-22 Thread John Gaby
 pm, John Gaby jg...@gabysoft.com wrote: There cannot be this kind of leak in general can there? No, there cannot. You strategy looks foreign to me.  Can you explain in english what you're trying to do and the strategy you're using to implement it? Why are you calling your CreateLayout

[android-developers] Re: Memory Leak with a ListView revisited

2010-10-21 Thread John Gaby
to a public class or a static inner class of your Activity, and see if that helps. A ListView being its own adapter is not a well-trod path. On Thu, Oct 21, 2010 at 8:04 PM, John Gaby jg...@gabysoft.com wrote: I am still struggling with a memory leak associated with a ListView. I have created

[android-developers] Re: Memory Leak with a ListView revisited

2010-10-21 Thread John Gaby
| | --- Does this give anyone a clue as to where the problem might be? Surly I must be doing something wrong here. There cannot be this kind of leak in general can there? Thanks. On Oct 21, 5:47 pm, John Gaby jg...@gabysoft.com wrote: I have already

[android-developers] Memory Leaks with a ListView

2010-10-19 Thread John Gaby
I have a class 'GListView' which extends ListView and acts as it's own adapter. It is declared thus: public class GListView extends ListView implements ListAdapter In it's constructor, I set it's adapter to itself as follows: public GListView(Context context ...) { ... setAdapter(this);

[android-developers] Memory Leaks

2010-10-18 Thread John Gaby
I appear to have a memory leak(s) in my application, and I am trying to get a handle on it by trying to understand more about garbage collection. I have created the following application. Here I have a class 'MyClass', and I create an instance of that class in my 'onCreate'. I then null out the

[android-developers] Re: Memory Leaks

2010-10-18 Thread John Gaby
that are not being freed, and I would like to try and identify them. Thanks On Oct 18, 9:26 am, Daniel Drozdzewski daniel.drozdzew...@gmail.com wrote: On Mon, Oct 18, 2010 at 4:58 PM, John Gaby jg...@gabysoft.com wrote: I appear to have a memory leak(s) in my application, and I am trying to get a handle

[android-developers] Re: Memory Leaks

2010-10-18 Thread John Gaby
:54 PM, Daniel Drozdzewski daniel.drozdzew...@gmail.com wrote: On Mon, Oct 18, 2010 at 5:40 PM, John Gaby jg...@gabysoft.com wrote: Thanks for the input.  I am a little confused about your comment: 'The fact that you did not see the log from finalize() does not mean it did not happen

[android-developers] Re: Memory Leaks

2010-10-18 Thread John Gaby
, John Gaby jg...@gabysoft.com wrote: So there is no way to force all objects that no longer have references to them to be garbage collected? Once again, I really don't need to know when the object is actually freed.  What I am interested in is finding out whether it CAN be freed

[android-developers] Re: Memory Leaks

2010-10-18 Thread John Gaby
Thanks for the tip. I have installed the Eclipse Memory Analyzer Tool and have been able to get a heap dump from my application to inspect, but I am having trouble interpreting what I see. If I choose to look at the 'dominator_tree. and sort by package it appears to show my objects. I have a

[android-developers] Re: Memory Leaks

2010-10-18 Thread John Gaby
Thanks for the tip. I have installed the Eclipse Memory Analyzer Tool and have been able to get a heap dump from my application to inspect, but I am having trouble interpreting what I see. If I choose to look at the 'dominator_tree. and sort by package it appears to show my objects. I have a

[android-developers] Re: Memory Leaks

2010-10-18 Thread John Gaby
Thanks for the tip. I have installed the Eclipse Memory Analyzer Tool and have been able to get a heap dump from my application to inspect, but I am having trouble interpreting what I see. If I choose to look at the 'dominator_tree. and sort by package it appears to show my objects. I have a

[android-developers] Re: Memory Leaks

2010-10-18 Thread John Gaby
Also, with respect to your suggestion that I call Bitmap.recycle(). I am not sure how to do this since the images in questions are obtained via a call to Resources.getDrawable() which returns a Drawable object not a Bitmap. Thanks. P.S. Sorry about the multiple posts, I am not really sure how

[android-developers] Internal Phone Storage Size

2010-10-14 Thread John Gaby
Is there a way to set the emulator's internal storage size? It is currently set to a fairly low value. Also, while searching for the answer to this question (which I didn't find), I ran across several threads which seemed to indicate that many phones have a very limited amount of internal

[android-developers] Re: WebPages not open in emulator browser

2010-10-13 Thread John Gaby
Have you checked out the Network section of the emulator documentation? http://developer.android.com/guide/developing/tools/emulator.html#emulatornetworking On Oct 13, 3:02 am, virtueinfo tejas.virtuei...@gmail.com wrote: Hi everyone, I am trying to open uphttp://www.google.comin my emulator

[android-developers] Re: Setting up Eclipse to build NDK using Sequoyah

2010-10-12 Thread John Gaby
Drat, I posted this to the wrong group. Sorry On Oct 12, 7:58 am, John Gaby jg...@gabysoft.com wrote: I am trying to set up Eclipse so that it can build my NDK piece.  I have installed Sequoyah, and added the Native Support.  However, when I build the project I get the error: Build

[android-developers] Re: Problem setting focus

2010-10-10 Thread John Gaby
) { if (one) { setContentView(ll2); } else { setContentView(ll1); } one= !one; } } On Oct 9, 10:35 am, John Gaby jg...@gabysoft.com wrote: I have an app where the user is entering some data via an EditText control

[android-developers] Re: Problem setting focus

2010-10-10 Thread John Gaby
it incrementally easier for somebody to give your code a whirl and make it incrementally more likely that you'll get useful feedback. On Sun, Oct 10, 2010 at 6:36 PM, John Gaby jg...@gabysoft.com wrote: I have a put together a very simple program which exhibits this behavior.  Run

[android-developers] Problem setting focus

2010-10-09 Thread John Gaby
I have an app where the user is entering some data via an EditText control. This is done by alternating between 2 pages each of which obtains one piece of data. When I start, I create the first page and make it active by calling the setContentView for the activity. I also set the focus into the

[android-developers] Emulator Soft Keyboard

2010-10-06 Thread John Gaby
When I start the Android emulator, the soft keyboard that is presented seems to be expecting me to type Chinese or Japanese characters (i.e. it composes what I type into those characters). I can click on the soft keyboard button in the lower left corner (which contains Chinese or Japanese

[android-developers] Re: Internal or External Storage

2010-10-04 Thread John Gaby
, Dianne Hackborn hack...@android.com wrote: Also important: internal storage is secure (other apps can't read or modify your data), external storage very much is not. On Sun, Oct 3, 2010 at 5:36 PM, Mark Murphy mmur...@commonsware.com wrote: On Sun, Oct 3, 2010 at 8:25 PM, John Gaby jg

[android-developers] Hide soft keyboard

2010-10-04 Thread John Gaby
I need to be able to hide the soft keyboard in response to clicking a button. I have seen numerous posts on this subject and it seems that the solution is to use the InputMethodManager, but I have been unable to get it to work for me. Supposedly the following will hide the soft keyboard:

[android-developers] Re: No LogCat message when debugging on a real device

2010-10-03 Thread John Gaby
--- Everything in moderation, including abstinence Never doubt that a small group of thoughtful, committed people can change the world. Indeed. It is the only thing that ever has - Margaret Mead On 02/10/2010 7:35 PM, John Gaby wrote: I guess

[android-developers] Internal or External Storage

2010-10-03 Thread John Gaby
I have a question about where people expect me to store my application data. I have an application where the user will enter information via the keypad, and download information (including images) from a website. Where is the proper place to save this? Internal or External Storage? Thanks. --

[android-developers] No LogCat message when debugging on a real device

2010-10-02 Thread John Gaby
Why don't I get LogCat messages when I debug on a real device as opposed to the emulator? Thanks -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from

[android-developers] Re: No LogCat message when debugging on a real device

2010-10-02 Thread John Gaby
 pm, 苏坦托Sutanto tnto.i...@yahoo.com wrote: You have to click device/emulator first in Eclipse show view devices On Sun, Oct 3, 2010 at 8:22 AM, John Gaby jg...@gabysoft.com wrote: Why don't I get LogCat messages when I debug on a real device as opposed to the emulator? Thanks -- You

[android-developers] Re: Weird problem with ListView

2010-09-29 Thread John Gaby
. There's a long talk here about ListView:http://code.google.com/events/io/2010/sessions/world-of-listview-andr... On Sep 29, 2:51 am, John Gaby jg...@gabysoft.com wrote: I have a ListView which presents a table of items.  The table is supposed to look like: http://gabytest.com/images/good.png

[android-developers] Weird problem with ListView

2010-09-28 Thread John Gaby
I have a ListView which presents a table of items. The table is supposed to look like: http://gabytest.com/images/good.png but if I scroll around a bit, I sometimes see: http://gabytest.com/images/bug.png Now this only seems to happen when I run the program on an actual device (Motorola Droid

[android-developers] Custom ViewGroup

2010-09-26 Thread John Gaby
I have a custom ViewGroup. The idea is to be able to place controls at absolute positions and then have the ViewGroup scale those controls based on the difference in the screen dimensions with respect to the original design dimensions. I am using the code below. In response to the 'onMeasure'

[android-developers] Re: Custom ViewGroup

2010-09-26 Thread John Gaby
the size of a child, you need to measure it with that size first. On Sun, Sep 26, 2010 at 7:38 AM, John Gaby jg...@gabysoft.com wrote: I have a custom ViewGroup.  The idea is to be able to place controls at absolute positions and then have the ViewGroup scale those controls based

[android-developers] Re: ListView with rows that contain a button

2010-09-24 Thread John Gaby
Thanks for the reply. Did you do anything special to make it work? Can you suggest why it is not working for me? I am using a custom ViewGroup for the row views. Is there something I need to be doing there? Thanks On Sep 24, 2:11 am, viktor victor.scherb...@gmail.com wrote: Hi John, it is

[android-developers] Cannot select rows from a ListView which contains Button controls

2010-09-24 Thread John Gaby
I have the following, very simple test program for using a ListView. I create a ListView and set it as the content view. I set a ListAdapter which supplies the rows. There are 30 rows, and each row consists of a LinearLayout ViewGroup. Into that ViewGroup, I place a TextView and a Button. When

[android-developers] Viewing device data using DDMS

2010-09-23 Thread John Gaby
I have just started testing my application on a real device. Why can't I see my application data on the device using DDMS like I can on the emulator? Thanks -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email

[android-developers] AsyncTask thread does not terminate

2010-09-23 Thread John Gaby
I am using AsyncTask. When I call the 'execute' function, a new thread is created. However, when the doInBackground function returns, the thread remains (seemingly forever), even though I have no references to the AsyncTask object anymore. This is true, even if I force a garbage collection.

[android-developers] ListView with rows that contain a button

2010-09-23 Thread John Gaby
I have a ListView control for which I supply my own ListAdapter. When my adapter's 'getView' is called, I return a view which contains other controls. Now if the view that I return contains only TextViews, then everything works fine. However if I place a Button control on the view that I

[android-developers] Re: ListView with rows that contain a button

2010-09-23 Thread John Gaby
. u can sroll down the list but u cannot click the list row. On Sep 24, 6:35 am, John Gaby jg...@gabysoft.com wrote: I have a ListView control for which I supply my own ListAdapter.  When my adapter's 'getView' is called, I return a view which contains other controls.  Now if the view

[android-developers] HTTP POST

2010-09-21 Thread John Gaby
I am trying to do an HTTP POST of some data. The following is a test routine that I wrote to try and accomplish this: void Put() { HttpURLConnection connection = null; DataOutputStream outputStream = null; String urlServer =

[android-developers] Re: HTTP POST

2010-09-21 Thread John Gaby
your cmd and write ipconfig/all tp get your system ip and then place your ip instead of localhost and it should work this time :) Thanks On Sep 21, 10:11 pm, John Gaby jg...@gabysoft.com wrote: I am trying to do an HTTP POST of some data.  The following is a test routine that I wrote to try

[android-developers] Re: HTTP POST

2010-09-21 Thread John Gaby
is responding or not. You should probably look at the Network Space Address on this page.http://developer.android.com/guide/developing/tools/emulator.html -Kumar Bibekhttp://techdroid.kbeanie.com On Sep 22, 12:18 am, John Gaby jg...@gabysoft.com wrote: Thanks for the reply.  I have tried using

[android-developers] Re: Debugging on a real device

2010-09-17 Thread John Gaby
That was the ticket, thanks. John Gaby On Sep 17, 1:20 am, Jez jeremy.a.co...@baesystems.com wrote: Goto the RUN menu in Eclipse, and choose:- Run Configurations. Then On the Target (TAB) - choose:- Deployment Target Selection Mode - Manual. If that does'nt work - then Eclipse

[android-developers] Debugging on a real device

2010-09-16 Thread John Gaby
I have gotten to to the point where I need to test my application on a real Android device. I have obtained an Motorola Droid phone and attached it to my computer (Windows). I have installed the USB driver, and I believe that my computer can see the phone. When I start up the DDMS it shows my

[android-developers] How to dismiss the virtual keyboard

2010-08-21 Thread John Gaby
I have several pages which are implemented using the ViewGroup class. I display a particular page by calling: setContentView(vg); Now if I go to a page which has an edit control, and touch within the control, the virtual keyboard is presented. If I now navigate to another page (and do a new

[android-developers] Re: How to dismiss the virtual keyboard

2010-08-21 Thread John Gaby
control the IME. On Sat, Aug 21, 2010 at 11:46 AM, John Gaby jg...@gabysoft.com wrote: I have several pages which are implemented using the ViewGroup class. I display a particular page by calling: setContentView(vg); Now if I go to a page which has an edit control, and touch within

[android-developers] Re: Skinning Buttons

2010-06-05 Thread John Gaby
I got it to work, thanks. On Jun 4, 6:05 pm, Mark Murphy mmur...@commonsware.com wrote: John Gaby wrote: I want to provide my own images for buttons.  Now I can call the setBackgroundResource(id) function to change the background of a button, but it does not handle the various states.  How

[android-developers] Skinning Buttons

2010-06-04 Thread John Gaby
I want to provide my own images for buttons. Now I can call the setBackgroundResource(id) function to change the background of a button, but it does not handle the various states. How do I specify a different image for each state (normal, pressed, selected)? Thanks. -- You received this

[android-developers] Asynchronous Http Request

2010-05-31 Thread John Gaby
I am trying to figure out how to make HTTP get requests. The following is what I have so far: HttpGet get = new HttpGet(http://www.microsoft.com;); HttpClient client = new DefaultHttpClient(); HttpResponse response; try { response =

[android-developers] Drawable resource images

2010-05-28 Thread John Gaby
Can I have sub-folders to hold my drawable resources. For example can I store an image in, say, 'res/drawable/content/images/myimage.jpg' and then find that resource via a call to: id = context.getResources().getIdentifier(com.mycompany.myprog:drawable/ content/images/myimage, null, null); I

[android-developers] Re: Drawable resource images

2010-05-28 Thread John Gaby
Thanks for the reply. Is there a maximum length to the name of a drawable resource? On May 28, 4:02 pm, Mark Murphy mmur...@commonsware.com wrote: John Gaby wrote: Can I have sub-folders to hold my drawable resources.  For example can I store an image in, say, 'res/drawable/content/images

[android-developers] Center text vertically

2010-05-27 Thread John Gaby
I have a TextView control which is being placed in a custom ViewGroup which places the control at a certain position and size. I want to center the text vertically within that control. I am making the call: tv.setGravity(Gravity.CENTER_VERTICAL); but the text still remains aligned to the top

[android-developers] Re: Center text vertically

2010-05-27 Thread John Gaby
set which specify the correct with and height of the control. Without this, the TextView (and possibly other controls) will not handle the alignment options correctly. On May 27, 2:14 pm, John Gaby jg...@gabysoft.com wrote: I have a TextView control which is being placed in a custom ViewGroup

[android-developers] ListView and ListAdapter

2010-05-25 Thread John Gaby
I am trying to use ListView and ListAdapter. If I create a simple Android project and add a ListView as the content view, and set it's adapter to my adapter based on ListAdapter, everything seems to work. My ListAdapter's 'getCount' is called, and I return 3, my 'getViewTypeCount' is called and I

[android-developers] Re: ListView and ListAdapter

2010-05-25 Thread John Gaby
...@gmail.com wrote: On Tue, May 25, 2010 at 2:31 PM, John Gaby jg...@gabysoft.com wrote: Now if I try and do the same thing in a more complicated environment, it does not work. Unless you explain what a more complicated environment means, you're probably not going to get very good responses

[android-developers] Re: ListView and ListAdapter

2010-05-25 Thread John Gaby
as to what might be going on? As I said, if I set up a pure Java application and use a custom ListView and ListAdapter, it seems to work fine. Thanks On May 25, 1:57 pm, Mark Murphy mmur...@commonsware.com wrote: John Gaby wrote: I am writing a c++ wrapper for the Java. Oy

[android-developers] Re: ListView and ListAdapter

2010-05-25 Thread John Gaby
(it does ask for the count), but clearly this does not work. So the real question is how do I tell the ListView to reload the data after I have changed the data that underlies the ListAdapter. Thanks On May 25, 3:04 pm, Mark Murphy mmur...@commonsware.com wrote: John Gaby wrote: I don't believe

[android-developers] Re: ListView and ListAdapter

2010-05-25 Thread John Gaby
I have based my adapter on ListAdapter which does not seem to have a notifyDataSetChanged method. Should I be using an ArrayAdapter? Thanks again. On May 25, 4:21 pm, Mark Murphy mmur...@commonsware.com wrote: John Gaby wrote: Thanks much for your help.  The hiearchyviewer is a NICE tool

[android-developers] Re: ListView and ListAdapter

2010-05-25 Thread John Gaby
into which I was placing the ListView. Anyway I seem to have it working now (although I don't really understand why what I was doing was causing a problem). I want to thank you very much for your help. On May 25, 4:49 pm, Mark Murphy mmur...@commonsware.com wrote: John Gaby wrote: I have based my

[android-developers] Re: ListView and ListAdapter

2010-05-25 Thread John Gaby
into which I was placing the ListView. Anyway I seem to have it working now (although I don't really understand why what I was doing was causing a problem). I want to thank you very much for your help. On May 25, 4:49 pm, Mark Murphy mmur...@commonsware.com wrote: John Gaby wrote: I have based my

[android-developers] Adding a ListView to a custom ViewGroup

2010-05-24 Thread John Gaby
I am trying to create a ListView and add it to a custom ViewGroup. Here is my code: public class HelloAndroid extends Activity { private static final String[] PHOTOS_NAMES = new String[] { Lyon, Livermore, Tahoe Pier, Lake Tahoe, Grand Canyon,

[android-developers] Re: Adding a ListView to a custom ViewGroup

2010-05-24 Thread John Gaby
Thanks for the help. I followed your advise, and was able to determine my problem. Many thanks. On May 24, 3:47 pm, Mark Murphy mmur...@commonsware.com wrote: John Gaby wrote: I am trying to create a ListView and add it to a custom ViewGroup. Here is my code: public class HelloAndroid

[android-developers] Re: Application with no title

2010-05-23 Thread John Gaby
...@gmail.com wrote: activity android:name=.MyMainClass             android:label=@string/app_name             android:theme=@android:style/Theme.NoTitleBar hope this is what you meant. On Sun, May 23, 2010 at 9:33 AM, John Gaby jg...@gabysoft.com wrote: When my application starts, I call

[android-developers] Application with no title

2010-05-22 Thread John Gaby
When my application starts, I call: this.requestWindowFeature(Window.FEATURE_NO_TITLE); to get rid of the title bar. I then create a custom ViewGroup and when set that view to be the content view via a call to 'setContentView', the 'onLayout' method of my ViewGroup is called. However, the top

[android-developers] Custom ViewGroup

2010-05-18 Thread John Gaby
I am new to Android, and I am trying to understand how to create a custom ViewGroup. I created MyViewGroup as follows: public class MyViewGroup extends ViewGroup { public MyViewGroup(Context context) { super(context); // TODO Auto-generated constructor

[android-developers] Re: Custom ViewGroup

2010-05-18 Thread John Gaby
Never mind, pilot error. The .layout method takes l, t, r, b, not width and height. Duh! Thanks. On May 18, 10:11 pm, John Gaby jg...@gabysoft.com wrote: I am new to Android, and I am trying to understand how to create a custom ViewGroup.  I created MyViewGroup as follows: public class

[android-developers] Development Phone

2010-05-15 Thread John Gaby
I am about to reach the point in my development where I need to work with a real phone, and am trying to figure out what to get. If I were to get a droid or droid incredible phone from Verizon will I be able to use that phone for development. What about Google's Nexus One? What are my other

[android-developers] Re: Development Phone

2010-05-15 Thread John Gaby
? I am currently a Verizon customer, but I am not sure I want to sign up for a new 2 year plan just to get a development phone. Thanks again. On May 15, 7:38 am, Carlos Silva r3...@r3pek.org wrote: On Sat, May 15, 2010 at 15:15, John Gaby jg...@gabysoft.com wrote: I am about to reach the point

[android-developers] Re: Development Phone

2010-05-15 Thread John Gaby
Thanks again. So if I don't need to use it as a phone and my application does not use any phone features, I should be able do do without connecting it to a phone network? How compatible are these phones. If I get a, say, Nexus One, and get my app working on that, can I expect it to work on a

[android-developers] Adding child views

2010-05-05 Thread John Gaby
I am new to Android development. I would like to be able to add child views (e.g. buttons, text, etc.) to my main view at runtime, and to be able to position and size those views dynamically. I cannot figure out exactly how to do that. Can anyone point me in the right direction? Thanks --

[android-developers] Re: Adding child views

2010-05-05 Thread John Gaby
this in onclick event or a menu event upto you. This should work in general , you can play around with it. On Wed, May 5, 2010 at 10:26 AM, John Gaby jg...@gabysoft.com wrote: I am new to Android development.  I would like to be able to add child views (e.g. buttons, text, etc.) to my main view

[android-developers] Re: Adding child views

2010-05-05 Thread John Gaby
Thanks for the response. I cannot instantiate the ViewGroup class. Do I have to create my own layout class based on ViewGroup to get what I want? Thanks. On May 5, 8:47 am, TreKing treking...@gmail.com wrote: On Wed, May 5, 2010 at 10:42 AM, social hub shubem...@gmail.com wrote:

[android-developers] Re: Adding child views

2010-05-05 Thread John Gaby
they got rid of AbsoluteLayout is a mystery. It's possible to use   device-independent units with it (good) and to misuse other layout classes   by specifying sizes and positions in absolute pixels (px in XML). Oh   well. John Gaby jg...@gabysoft.com писал(а) в своём письме Wed, 05 May 2010   20:14

[android-developers] Re: Adding child views

2010-05-05 Thread John Gaby
of the child windows. I presume that this is the correct approach?: Thanks On May 5, 10:34 am, TreKing treking...@gmail.com wrote: On Wed, May 5, 2010 at 11:46 AM, John Gaby jg...@gabysoft.com wrote: Now this will display my text, but if I want to set the absolute position of the text, what would I do

[android-developers] How to delete applications from the Android simulator.

2010-01-06 Thread John Gaby
I know that this is probably a stupid question, but I am completely new to Android development. I have worked through a number of the examples, and now have a bunch of apps on my simulated phone. I would like to remove some of those apps (to reduce the clutter), but cannot figure out how to do

[android-developers] Re: How to delete applications from the Android simulator.

2010-01-06 Thread John Gaby
button for that app. Just click it and it will uninstall. Alternatively, you can type adb uninstall com.mypackagname. On Jan 6, 10:52 am, John Gaby jg...@gabysoft.com wrote: I know that this is probably a stupid question, but I am completely new to Android development.  I have worked through

<    1   2