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
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
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,
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
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:
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
, 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
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
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,
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
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
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
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
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
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.
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
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
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,
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
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
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
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
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
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
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
| |
---
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
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);
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
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
: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
, 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
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
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
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
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
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
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
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
)
{
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
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
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
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
, 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
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:
---
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
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.
--
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
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
.
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
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
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'
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
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
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
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
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.
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
.
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
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 =
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
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
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
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
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
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
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
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
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 =
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
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
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
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
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
...@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
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
(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
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
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
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
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,
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
...@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
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
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
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
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
?
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
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
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
--
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
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:
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
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
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
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
101 - 195 of 195 matches
Mail list logo