If you are using XML layouts, there are a couple things you could try...
1) Set the layout to use fill_parent instead of wrap_content
2) Give the layout a weight... android:layout_weight
Thanks,
Justin
--
There are only 10
Depending on what you want to do, with the space in the middle, you could
create a view that acts as an empty space holder and set its layout_height
attribute to fill_parent.
One simple way of doing this would be to use a TextView that only displays
an empty string
This forum is only for SDK applications. You might have better luck if you
post in the Android Developers group...
--
There are only 10 types of people in the world...
Those who know binary and those who don't.
This question has been answered on this forum a few times already. Just do
a simple search for C++
--
There are only 10 types of people in the world...
Those who know binary and those who don't.
Are you able to debug your app on the phone or is this broken as well?
Thanks,
Justin
--
There are only 10 types of people in the world...
Those who know binary and those who don't.
Have you read the docs?
--
There are only 10 types of people in the world...
Those who know binary and those who don't.
--
On Mon, Oct 26, 2009 at 10:10 PM,
There have been several recommendations on this forum with other posts...
Have you tried searching this group before posting?
--
There are only 10 types of people in the world...
Those who know binary and those who don't.
Had you by chance connected your phone to your computer once before having
it set up to debug?
There is a known issue on Windows when this is the case. If this is your
problem, try following these steps:
Try this link:
at 12:27 AM, balanagu sabareesh
bsabare...@gmail.comwrote:
ya i have read the document i little bit understood about bundle if you
have any brief idea please tell.
On Tue, Oct 27, 2009 at 11:36 AM, Justin Anderson janderson@gmail.com
wrote:
Have you read the docs
You don't have to intercept the home button
Just call finish() in onPause(), onStop(), or onDestroy() depending on what
fits your behavior the best.
Thanks,
Justin
--
There are only 10 types of people in the world...
Those
AKAIK that can't be done, and even if it could, why would you want to do
that? As a user of an app that does that, I would find it extremely
annoying...
Thanks,
Justin
--
There are only 10 types of people in the world...
Those
Use View.OnTouchListener... It provides an onTouch() method with a
MotionEvent object... This should give you the information you need...
--
There are only 10 types of people in the world...
Those who know binary and those who
Do you have a file named main.xml in your res/layout folder?
--
There are only 10 types of people in the world...
Those who know binary and those who don't.
--
In packages. Classes in those packages are set up just like normal java
classes. Check out the tutorials... they should get you started
--
There are only 10 types of people in the world...
Those who know binary and those who
Not that I am aware of.
However, you can create an activity that doesn't display a UI... Just give
it a transparent theme and set it to not display the title bar.
Then it appears to the user as if nothing happened. However, I wouldn't
recommend that unless it is absolutely necessary... Seems
Try using http instead of https
--
There are only 10 types of people in the world...
Those who know binary and those who don't.
--
On Fri, Oct 30, 2009 at 4:13
Ummm yes you have to use Java. Have you read the docs?
Also, there are several threads already about integrating (to a certain
degree) C/C++ code using the NDK. Just search for C++.
Thanks,
Justin
--
There are only 10
Look at the logcat output
--
There are only 10 types of people in the world...
Those who know binary and those who don't.
--
On Mon, Nov 2, 2009 at 7:56 AM,
I may be wrong but I am pretty sure that Apple charges just as much, if not
more, for applications sold on their store.
Plus their initial developer fee is 4 times as much at $99!
Good luck with that...
--
There are only 10
Remember that when an orientation change occurs your app is completely
destroyed and then recreated.
Are you forgetting to set the text inside the textview?
Can't really help out too much without seeing some code
--
There
On Nov 3, 12:44 pm, Justin Anderson janderson@gmail.com wrote:
Remember that when an orientation change occurs your app is completely
destroyed and then recreated.
Are you forgetting to set the text inside the textview?
Can't really help out too much without seeing some code
Do you have a res/layout/main.xml file?
R.layout.main is a resource that points to a file named main.xml in the
res/layout folder... If that file is named something else, say test.xml,
then you need to use R.layout.test instead
Could you give a little more info? I'm not sure what you are asking...
--
There are only 10 types of people in the world...
Those who know binary and those who don't.
Please clarify your question... I don't really understand what you are
wanting to do.
--
There are only 10 types of people in the world...
Those who know binary and those who don't.
Not as an SDK app... At least not without some user interaction. You can
replace the home application, but the user has to decide if they want it to
be the default home app or not.
If you want to modify the existing android source then you could do it. But
then the question would be a better
I may be wrong, but it seems that this question would be better-suited for
the Android Developers group. The beginners group is designed for SDK
applications and it seems like you are working on modifying/porting the
Android source.
When Eclipse gives the Your project contains errors... message when
building, what shows up in the problems tab?
--
There are only 10 types of people in the world...
Those who know binary and those who don't.
You are wanting to get the background color of a standard android button or
some custom button that you have created?
The standard android button uses a combination of a 9-patch .png image and a
selector so trying to get the background color of it is probably not going
to yield anything useful.
Hmmm... that does sound a little strange.
I don't know for sure but it may be that the only thing you can do is save
the instance state of your application...
There are some methods that you can override that will allow you to save
needed info in a bundle. Then when your activity is restarted,
I believe that interested BroadcastReceivers means the ones that match the
intent.
Given your sample code it seems to me that only your widget will be updated.
Thanks,
Justin
--
There are only 10 types of people in the world...
It sounds like you are talking about the android source... If so, then this
question is more suited for the Android Developers group.
This forum is for SDK applications.
Thanks,
Justin
--
There are only 10 types of people in
* my problem is when ever i run the application from eclipse the emulator*
Exactly you are RUNNING your application from Eclipse in the emulator.
AFAIK, there is no way to stop this behavior, but I might be wrong.
Essentially the emulator is just simulating a click of the icon as a
startActivity() is not defined where you are trying to call it from. It is
a method on the Context class.
Create a constructor for your CallStateListener class that takes a Context
object as a parameter and store it as a member variable. When you create a
new instance of your class, you can do
AM, Tim tdh...@gmail.com wrote:
On Nov 3, 9:52 pm, Justin Anderson janderson@gmail.com wrote:
I may be wrong but I am pretty sure that Apple charges just as much, if
not
more, for applications sold on their store.
Plus their initial developer fee is 4 times as much at $99!
True
Device 'Android1.1'
but the app doesn't start in the emulator.
On Nov 3, 12:03 am, Justin Anderson janderson@gmail.com wrote:
Look at the logcat output
--
There are only 10 types of people in the world...
Those who know
Override the following methods in the Activity class:
- onCreateOptionsMenu()
- onPrepareOptionsMenu()
- onOptionsItemSelected()
http://developer.android.com/reference/android/app/Activity.html#onCreateOptionsMenu%28android.view.Menu%29
Good luck,
Justin
It seems a better route would be to do something like the following:
- Have a preference to allow the user to specify if they want to have
auto-update checks
- Have a way for the user to manually check for updates, perhaps via a menu
option
- If auto-update is enabled:
- When the app is
Try setting the height of your header TextView to wrap_content
--
There are only 10 types of people in the world...
Those who know binary and those who don't.
--
Press the back button
On Nov 7, 2009 2:03 AM, Marton Kodok pentiu...@gmail.com wrote:
Hello,
Whenever a keyboard shows up, how can I hide it after I finished my typing.
For example when I run the SkeletonActivity, I can type in some text, but
how do I hide the keyboard when I'm done
--
Márton
will manage this for you.
The problem with your pictures is probably that they have the wrong
aspect ration...they are portrait pictures that you are showing in
Landscape, so they are reduced in size.
Good Luck
John
On Nov 6, 1:23 pm, Justin Anderson janderson@gmail.com wrote: What I
did
Perhaps if you hadn't been so rude about not using XML from your very first
post you wouldn't have gotten such a smattering of responses about XML.
The use of all caps like you were yelling at us and using a sweeping
generalization to say that XML has no benefits and if you think it does then
you
We're going to need more information... perhaps some code and the logcat
output.
--
There are only 10 types of people in the world...
Those who know binary and those who don't.
Here is a link that can probably get you started in the right direction...
This class extends PreferenceDialog, but gives the general idea...
A pending intent essentially gives something that is not your application
permissions to do stuff as if it were your application.
This is most often used with notifications in the status bar or with views
that are part of a widget. The intent is executed when some action takes
place, such as a
Are you going to be the only person developing these modules, or are you
planning on creating some sort of a framework that other developers will be
able to tap into?
--
There are only 10 types of people in the world...
Those who
Self-fulfilling prophecy
* I had hoped not to have the XML zealots trying to push
the koolaid on me.
*
Not true. From the very beginning you were egging us XML zealots on...
Had you been a little (ok, a LOT) nicer, maybe you would have gotten what
you wanted. But know, I think you were
That's interesting. I've never run into that problem before. It probably
has something to do with what classes you are in or something like that.
Here's a question... did you try the Toast in the same place where using
AlertDialog.Builder gives an error or were they in different parts of your
This isn't really the place for this type of question
But essentially all you need to do is design your website to look good on
small screen resolutions. You probably don't want to have too many images,
etc...
Here are some links that may help:
Nov., 21:53, Justin Anderson janderson@gmail.com wrote:
Shoot... I was kinda hoping they were in different parts of your code.
I'm
going to have to punt this one off to someone else...
Anyone?
--
There are only
Again press the back button
--
There are only 10 types of people in the world...
Those who know binary and those who don't.
--
On Sat, Nov 7, 2009 at 9:10
Click the link in any message you get that says: To unsubscribe from this
group, send email to
--
There are only 10 types of people in the world...
Those who know binary and those who don't.
If you are trying to build Android source code, you should post in the
Android Developers group
--
There are only 10 types of people in the world...
Those who know binary and those who don't.
On the G1 the menu button doesn't toggle the onscreen keyboard...
If the hard keyboard is not open you have to click on the textbox to get it
to show up. To hide it, you press the back button. Perhaps other models of
phones are different.
Context Menu: I'm not sure
Options Menu: AFAIK, I don't think you can change that
--
There are only 10 types of people in the world...
Those who know binary and those who don't.
You could just hide image A and show image B by using View.setVisibility()
--
There are only 10 types of people in the world...
Those who know binary and those who don't.
Since you are building the android source and running into this problem, you
should probably try the Android Developers group
--
There are only 10 types of people in the world...
Those who know binary and those who don't.
Anyone?
--
There are only 10 types of people in the world...
Those who know binary and those who don't.
--
On Mon, Nov 9, 2009 at 8:36 PM, MagouyaWare
.
--
On Sat, Nov 7, 2009 at 9:32 AM, ElPollo Diablo hackas...@gmail.com wrote:
Excellent! Thanks for the help guys!
On Nov 7, 9:20 am, Justin Anderson janderson@gmail.com wrote:
Interesting I did not know about the layout-land folder!
On Nov 7, 2009 6:01 AM, jbrohan jbro
Here is how I did it:
Put this in your AndroidManifest.xml:
activity
android:name=.SearchLaunchActivity
android:theme=@android:style/Theme.Translucent.NoTitleBar
intent-filter
action android:name=android.intent.action.SEARCH_LONG_PRESS /
category
Ummm... have you tried searching the group?
I searched the group with XML array and the very first result gave me the
answer.
--
There are only 10 types of people in the world...
Those who know binary and those who don't.
types of people in the world...
Those who know binary and those who don't.
--
On Wed, Nov 11, 2009 at 2:49 PM, android darioamor...@gmail.com wrote:
where is the answer??
On 11 Nov, 22:43, Justin Anderson janderson@gmail.com
.
--
On Wed, Nov 11, 2009 at 2:53 PM, Justin Anderson janderson@gmail.comwrote:
1) Search this group with the following: XML Array
2) Click on the very first result. It should be called Using XML array in
program
3) Do some
* I have to pass array to a ListView activity??*
Are you asking how to do this or if you have to do it this way?
You have to have an instance of the Context class, because that class has
the getResources() method. Any Activity and any service inherits from
Context so they ARE instances of
You need to unsubscribe yourself...
Click the link in your email after the line that says To unsubscribe...
--
There are only 10 types of people in the world...
Those who know binary and those who don't.
that they are accustomed to apps
automatically showing the keyboard for them.)
I haven't gotten around to writing the logic to determine whether or
not to automatically unhide the keyboard, and I'm not necessarily
looking forward to it.
On Nov 11, 12:08 pm, Justin Anderson janderson
I don't think so. If you want a landscape only app, I believe you can set
some value (no idea what though) in the manifest.
--
There are only 10 types of people in the world...
Those who know binary and those who don't.
The UI won't update until after you leave the onClick method...
Either spawn a new thread or start a background service to do the waiting
for you...
On Nov 12, 2009 4:23 PM, ElPollo Diablo hackas...@gmail.com wrote:
I have a simple app that just changes the state of an image when you
press a
Create a parent layout (LinearLayout, RelativeLayout, GridLayout, etc...)
and just make both of your calcs have the same layout weight
On Nov 12, 2009 4:23 PM, AliasXNeo joshuagil...@gmail.com wrote:
Hello,
I'm working on my first Android application which is basically a
specialized calculator
What exactly do you mean by launching and starting an AppWidget?
AppWidgets can't be launched or started... they can be updated.
On Nov 12, 2009 4:23 PM, anand anand.ramasw...@wipro.com wrote:
Hi all,
I am trying to launch an app widget from another application.
On click of a button in an
I forgot to mention that the calcs need to be children of the parent
layout.
I would suggest reading the Dev guide on layouts and looking at some of the
Hello Views samples...
On Nov 12, 2009 4:23 PM, AliasXNeo joshuagil...@gmail.com wrote:
Hello,
I'm working on my first Android application
Have you read the docs?
http://developer.android.com/reference/android/app/PendingIntent.html
The very first paragraph on the page explains what it is. It is an intent
that doesn't get executed until another time. Typically it is another
application that executes the intent, and the
Take a look at Android lifecycles... Unless you are using a service, your
app stops running when it is no longer in the foreground.
http://developer.android.com/guide/topics/fundamentals.html#lcycles
Thanks,
Justin
--
There
class.
Is it possible to do this?
Regards,
Anand
On Nov 13, 9:28 am, Justin Anderson janderson@gmail.com wrote:
What exactly do you mean by launching and starting an AppWidget?
AppWidgets can't be launched or started... they can be updated.
On Nov 12, 2009 4:23 PM, anand
I'm sure it is possible, but it might be better to write it so that the
download happens as a background service so the user can do other stuff
while waiting.
--
There are only 10 types of people in the world...
Those who know
would there be ACTION_SEARCH_LONG_PRESS but no
ACTION_MENU_LONG_PRESS? i mean, wouldnt it be more logical for
AppSwipe to bind to that, aren't you replacing that default
functionality and not google search? (argh)
On Nov 11, 1:41 pm, Justin Anderson magouyaw...@gmail.com wrote:
Here
You can make it look like that is what is happening, but AFAIK you can't
actually do that and make the other items clickable...
--
There are only 10 types of people in the world...
Those who know binary and those who don't.
You could have the AppWidget start an activity that is styled to look like
an AlertDialog I may be wrong, but I don't think it is possible to make
it actually display an AlertDialog.
Or, you could make the AppWidget start an Activity that does nothing except
display a dialog... If you give
http://developer.android.com/guide/topics/fundamentals.html
http://developer.android.com/guide/tutorials/hello-world.html
--
There are only 10 types of people in the world...
Those who know binary and those who don't.
.
--
On Wed, Nov 11, 2009 at 11:24 AM, Justin Anderson magouyaw...@gmail.comwrote:
Anyone?
--
There are only 10 types of people in the world...
Those who know binary and those who don't
The emulator takes an EXTREMELY long time to load up. Just keep waiting and
it should be eventually load. Then, just keep the emulator running between
debugs and things should run pretty quickly.
BTW, this exact same question has been asked and answered numerous times on
this group. Please try
The emulator takes an EXTREMELY long time to load up (I've heard cases of it
taking 10-15 minutes). Just sit tight and eventually it should work. Keep
the emulator running while making changes to your app and then things will
go pretty quick because it doesn't have to start up... it only has to
Look at the LogCat info... it will give you the real reason why your app is
force closing...
--
There are only 10 types of people in the world...
Those who know binary and those who don't.
I'm not sure, but I don't think that is possible...
--
There are only 10 types of people in the world...
Those who know binary and those who don't.
--
On Wed,
Sprint will determine when your phone can be upgraded to 1.6 or 2.0
Unless you root your phone you are at your carrier's mercy.
--
There are only 10 types of people in the world...
Those who know binary and those who don't.
I've never done layout-type stuff programmatically. I've always done it via
XML.
However, I noticed that TextView has a setPadding method. I know it isn't
exactly the same thing as the margin, but in a lot of cases you can get the
desired look using either.
You could use SharedPreferences... I have a Widget that displays multiple
pages of info to the user. I use the SharedPreferences class to store
what page I am currently displaying, so that when the Widget is updated, it
knows which page to update.
in Widget.java?
On Nov 19, 1:16 am, Justin Anderson janderson@gmail.com wrote:
You could use SharedPreferences... I have a Widget that displays
multiple
pages of info to the user. I use the SharedPreferences class to store
what page I am currently displaying, so that when the Widget is updated
the SharedPreferences objet,
how does it pass that object back to the code running in Widget.java?
On Nov 19, 1:16 am, Justin Anderson janderson@gmail.com wrote:
You could use SharedPreferences... I have a Widget that displays
multiple
pages of info to the user. I use
Have a look at the logcat info... There might be some more information
there.
--
There are only 10 types of people in the world...
Those who know binary and those who don't.
line:
??-?? ??:??:??.???: INFO/unknown(unknown): - exec '/system/bin/sh'
failed: Bad address (14) -
2009/11/19 Justin Anderson janderson@gmail.com
Have a look at the logcat info... There might be some more information
spend 1 hour each day to launch it properly, with debugger attached, with
3G connection.
It does hurt a lot.
I don't have a real device yet.
2009/11/19 Justin Anderson janderson@gmail.com
It looks like you are installing on an emulator, correct? Is the emulator
responsive at this point
Try making the default item the last one in the list... seems weird, I
know, but I have always run into unexpected behavior if the default item is
not last.
--
There are only 10 types of people in the world...
Those who know
I might be interested. I currently have an application on the Market and
have been wanting to make it look a little prettier. I also would be
interested in finding out how it fares so far on a 2.0 device...
The app is called AppSwipe! and is a task manager that allows quickly
switching between
Seems like this would be a better fit for the Android Developers group since
you are building your own SDK from source...
--
There are only 10 types of people in the world...
Those who know binary and those who don't.
Um, what is previousIndex?
--
There are only 10 types of people in the world...
Those who know binary and those who don't.
--
On Wed, Nov 18, 2009 at 9:00 AM,
According to the Dev Guide this is not possible. Changing the theme
requires your app to be restarted.
--
There are only 10 types of people in the world...
Those who know binary and those who don't.
Offhand, the only big difference I see between your code and mine is that
you are calling super.onUpdate() and I am not. Try commenting out that line
and seeing if that helps...
I don't think that is the problem, so I will take a look at my code when I
get home from work today and see if I
Have you even bothered to look for yourself? Please at least do some
research before asking for help...
http://developer.android.com/guide/tutorials/views/hello-tabwidget.html
http://developer.android.com/reference/android/widget/TabHost.html
The emulator takes extremely long to load. If you have a phone, you would
notice that the second android image that you reference is the initial boot
up screen for the phone. Just wait longer. Depending on your machine
speed, os, etc... I have heard the emulator startup time can take any where
for the suggestion, but as you expected it didn't change the
outcome. With so many widgets on the market, I'm perplexed that I'm
unable to make this work. =\ If you do get a chance to compare it to
your code, I'd be much obliged.
Thanks!
S
On Nov 20, 10:01 am, Justin Anderson janderson
101 - 200 of 691 matches
Mail list logo