those lines out it
works, but I need the variable bringing accross.
On 2 Aug, 14:52, TreKing treking...@gmail.com wrote:
On Mon, Aug 2, 2010 at 5:14 AM, Justin justinbrett1...@gmail.com wrote:
I am writing a app, and basically I want to carry accross a variable
from one java file to another
I have joined it as well, and will continue to provide support and help on
that list... Hopefully a few of the other major contributors will join and
help out as well.
--
There are only 10 types of people in the world...
Those
Please don't double post if you don't get any responses... It just makes
for more stuff to sift through. Instead, reply to your own post. Everyone
will then get an email which will bring the post back to the forefront.
--
.
--
On Tue, Aug 3, 2010 at 12:58 PM, Justin Anderson janderson@gmail.comwrote:
Please don't double post if you don't get any responses... It just makes
for more stuff to sift through. Instead, reply to your own post. Everyone
will then get an email which will bring the post
Glad you were able to figure it out!
On Aug 3, 2010 1:11 PM, Wall-E bashee...@gmail.com wrote:
Ok, so the problem was that I was calling those methods before the
application was fully created. So I did the getSystemService call
inside of an onCreate method and all is well and dandy now.
On
* I am unable to use internet in university network due to proxy issue*
Meaning you need to set up proxy settings in order to connect to the
internet at your university? If that is the case you need to contact the
university's IT department... only they will be able to give you the
settings you
who don't.
--
On Tue, Aug 3, 2010 at 2:18 PM, Justin Anderson janderson@gmail.comwrote:
* I am unable to use internet in university network due to proxy issue*
Meaning you need to set up proxy settings in order to connect
I am writing a app, and basically I want to carry accross a variable
from one java file to another.
So from my first java file I am calling the second one by:
setContentView(R.layout.saveimage);
//Intent i = new Intent(anyView.getContext(), AndroidWebImage.class);
Intent i =
If I wanted to check to see if a directory called mypictures was on
my SD Card, and if it wasn't created one, how would I do this
please. If I then wanted to make this appear in my gallerys, do I
need to do anything special?
--
You received this message because you are subscribed to the Google
I am writing a app, and basically I want to carry accross a variable
from one java file to another.
So from my first java file I am calling the second one by:
setContentView(R.layout.saveimage);
//Intent i = new Intent(anyView.getContext(),
AndroidWebImage.class);
Intent i
* My code will run right until it gets to creating the telephony manager
instance but will not actually create it and it throws aNullPointerException
(I think).*
What do you mean I think? Have you looked at the logcat info to determine
what the problem may be? Look specifically for a caused by
to provide the same level of help on StackOverflow.
Why is this list getting disabled but the others are not? Are the others
going to be disabled at some later point?
Thanks,
Justin
--
There are only 10 types of people in the world
You can pass information via the Intents used to start the service, and vice
versa, with the various put and get methods on Intent.
For more information, see this link:
http://developer.android.com/resources/faq/framework.html#3
Where exactly does the NullPointerException occur? If you aren't sure you
can find this by looking for a caused by line in the logcat information
after your app crashes.
--
There are only 10 types of people in the world...
Those
None of that information really helps us figure out the problem... What you
need to do is look at the logcat info when the FC occurs. There should be a
caused by line that will tell you what the problem is, along with the file
and line number.
Create a different ViewStub for each case and then inflate the one you want
based on the button clicked. ViewStubs don't take up any space until they
are inflated so this approach should give you the desired effect.
--
There are
PM, Victoria Busse victoriasarabu...@gmail.com
wrote:
Awesome,thanks Justin!
On 30 Jul 2010 22:42, Justin Anderson janderson@gmail.com wrote:
Create a different ViewStub for each case and then inflate the one you want
based on the button clicked. ViewStubs don't take up any space until
To auto close after a specified period of time, use a Timer... and then call
finish(), as Mark suggested, when the timer expires.
On Jul 29, 2010 5:44 AM, Mark Murphy mmur...@commonsware.com wrote:
Call finish():
Put a '.' in front of the activity name in your manifest... That should fix
it.
--
There are only 10 types of people in the world...
Those who know binary and those who don't.
Step 4:
That would be onActivityResult()... taken directly from the link you posted
--
There are only 10 types of people in the world...
Those who know binary and those who don't.
it would - I was hoping celluri would pick that part up on his own,
but you had to go and ruin the surprise!! :)
On Thu, Jul 29, 2010 at 1:58 PM, Justin Anderson
janderson@gmail.comwrote:
Step 4:
That would be onActivityResult()... taken directly from the link you
posted
...
Those who know binary and those who don't.
--
On Tue, Jul 27, 2010 at 9:04 PM, CyanBlue cyanb...@gmail.com wrote:
Thank you for the reply, Justin... :)
I tried those suggestions and nothing seem to be working or I might
Well... what info do you have from the crash? Looking at the logcat info
should tell you what the problem is... You will want to look for the words
caused by in the log.
--
There are only 10 types of people in the world...
based on the number of flowers i want to display ?
On Jul 27, 10:52 am, Justin Andersonjanderson@gmail.com wrote:
No... displaying the number...
On Tue, Jul 27, 2010 at 8:25 AM, ethanpuripun...@gmail.com wrote:
You are correct.
In...
android-beginners%252bunsubscr
at 2:02 PM, nimusi nimus...@gmail.com wrote:
Thanks, Justin, that has solved the problem.
On 27 July, 22:00, Justin Anderson janderson@gmail.com wrote:
Use startActivityForResult instead of startActivity. Then when you get
back
to the listView you can add the item and update
When you say load an image do you mean just display it somehow? If so,
then just create a new activity with an ImageView in it and call
setImageResource on the view.
--
There are only 10 types of people in the world...
Those
...
--
There are only 10 types of people in the world...
Those who know binary and those who don't.
--
On Tue, Jul 27, 2010 at 8:01 AM, ethan puripun...@gmail.com wrote:
Justin
Thanks for the reply. What i am trying
of displaying the number 4, or 3 or 2 or 1, i want to display
4 flowers, or 3 flowers, or 2 flowers...
so you are saying that i can achieve that with one imageview ?
On Jul 27, 9:18 am, Justin Anderson janderson@gmail.com wrote:
Unless I am misunderstanding, you would only need one ImageView... You
Have you done any searching of StackOverflow or this group? This is a very
common question and has been answered many, many times...
--
There are only 10 types of people in the world...
Those who know binary and those who don't.
-questions.html (This link came from the
above link)
Thanks,
Justin
--
There are only 10 types of people in the world...
Those who know binary and those who don't.
--
On Tue
addFlags. Try using
addFlags and see what happens...
Hope that helps,
Justin
--
There are only 10 types of people in the world...
Those who know binary and those who don't
* can anyone help me in writing the code for adding two numbers and
displaying the solution in the EditTextField.*
int z = 5 + 6;
EditText textField;
//Do stuff to initialize textField
textField.setText( + z);
Now, I'm going to refer you to two different links that you should read:
, if you know what I mean :)
And thank you :)
On Tue, Jul 27, 2010 at 6:02 PM, Justin Anderson
janderson@gmail.comwrote:
No worries. Glad you were able to figure it out.
There are just quite a few people who post without ever trying to find
answers for themselves. Rather than just
you may want to search StackOverflow and this group for
startActivityForResult...
Hope that helps,
Justin
--
There are only 10 types of people in the world...
Those who know binary and those who don't
Use a LinearLayout or RelativeLayout and set the weight of each item to the
same value... like 1.
--
There are only 10 types of people in the world...
Those who know binary and those who don't.
not have the weight param.
On Jul 26, 10:56 am, Justin Anderson janderson@gmail.com wrote:
Use a LinearLayout or RelativeLayout and set the weight of each item to
the
same value... like 1.
--
There are only 10 types
...
Those who know binary and those who don't.
--
On Mon, Jul 26, 2010 at 2:57 PM, Justin Anderson janderson@gmail.comwrote:
Hmmm... that is interesting. Why can't you just do it through the XML
though
That is correct... Only specific views can be used in a RemoteView. The
documentation specifies which views can be used.
On Jul 25, 2010 10:06 AM, Rodney Lendore rodney.lend...@gmail.com wrote:
Hi,
I was trying to create a scrolling list view for an android home screen
widget with the following
Try taking out the android:layout_below attribute from the TextView... I'm
not sure if that is the problem, but I have a feeling it is.
--
There are only 10 types of people in the world...
Those who know binary and those who
Sorry... hopefully someone else can help.
I don't have any experience with trying to do anything like this. Sounds
like you might want something like the zoom in/out buttons on the default
Android Browser though...
You may want to look into downloading the Android source and seeing if you
can
By default SeekBar only allows you to set a max value and the acceptable
values range from 0 - max:
http://developer.android.com/reference/android/widget/ProgressBar.html#setMax%28int%29
To accomplish what you want to do you will need to subclass SeekBar.
That is interesting... I've never actually used the ServiceConnection class
so I don't know if it would cause leaks or not.
--
There are only 10 types of people in the world...
Those who know binary and those who don't.
.
--
On Thu, Jul 8, 2010 at 5:20 PM, Ribcakes thedudestamba...@gmail.com wrote:
Unfortunately, removing those attributes and adding/removing
declarations in code did nothing.
On Jul 8, 5:32 pm, Justin Anderson janderson@gmail.com
Use the PackageManager class:
http://developer.android.com/reference/android/content/pm/PackageManager.html
--
There are only 10 types of people in the world...
Those who know binary and those who don't.
would
want to change the key to avoid problems if others are already using your
app.
Thanks,
Justin
--
There are only 10 types of people in the world...
Those who know binary and those who don't
Not really sure I follow... What do you mean by selected content?
--
There are only 10 types of people in the world...
Those who know binary and those who don't.
can choose edit video ... and
from there a new view/window should open that loads the video into it I
hope that makes it a bit clearer :)
On Thu, Jul 22, 2010 at 10:10 PM, Justin Anderson janderson@gmail.com
wrote:
Not really sure I follow... What do you mean by selected content
of the phone and not my own created ones.. :))
And if I now understand it correctly if I click on the button I can simply
call the intent from the java file I created to open the new view?!?!
On Thu, Jul 22, 2010 at 10:16 PM, Justin Anderson janderson@gmail.com
wrote:
And why would you not use
You're going tohave to give us more info if you are expecting some kind of
help...
If you are just wanting to tell us of your experience with android so far,
then thanks for the status update... :-)
On Jul 20, 2010 9:49 PM, Emmen Farooq farooq.em...@gmail.com wrote:
Hi , I tried the tutorials
Could the issue be that it the section of code your trying to load is
not in the Android Manifest? This has caused issues for me in the
past.
--
You received this message because you are subscribed to the Google
Groups Android Beginners group.
NEW! Try asking and tagging your question on Stack
/app/Activity.html#openOptionsMenu%28%29
In the future, I would recommend taking a look at the docs to see if there
is a method that does what you want... If you did and just missed this
method then you can disregard this last comment. :-)
Hope that helps,
Justin
http://developer.android.com/reference/android/app/Activity.html#openOptionsMenu%28%29
--
There are only 10 types of people in the world...
Those who know binary and those who don't.
Wrap the LinearLayout in a ScrollView and take the following line out of
LinearLayout:
android:scrollbars=vertical
Not sure if that is the best or recommended way but that is how I did it in
my app...
--
There are only 10 types
/guide/topics/resources/layout-resource.html#layoutvaluesbelow.
Hope that helps,
Justin
--
There are only 10 types of people in the world...
Those who know binary and those who don't
=android+listview+click#e73d58c4c2ff
So, I just spent five minutes doing searches and came up with at least seven
possible links that can help... It doesn't hurt to do a little work yourself
before posting a question here.
Hope that helps,
Justin
I was wrong about my search terms becaues I realized that onclick might be
something that only a more seasoned android developer would think of
searching. The search terms for the links I posted in my last message were
simply:
android listview click
Hope that helps,
Justin
Your call to setOnClickListener is missing a closing parentheses... which is
why you get the error telling you to insert one.
--
There are only 10 types of people in the world...
Those who know binary and those who don't.
Where is the code for the select statement? Is it the fetchAll() method?
--
There are only 10 types of people in the world...
Those who know binary and those who don't.
Wow... this has what to do with Android?
--
There are only 10 types of people in the world...
Those who know binary and those who don't.
--
On Mon, Jul 19, 2010
findViewById()
--
There are only 10 types of people in the world...
Those who know binary and those who don't.
--
On Mon, Jul 19, 2010 at 3:15 PM, Bret Foreman
.
--
On Mon, Jul 19, 2010 at 3:35 PM, Rodney Lendore rodney.lend...@gmail.comwrote:
Hi Justin,
Thanks for the quick reply yes it is in the fetchall() definition. I
hardcoded it find the table I wanted to query local_network.
Sorry for any confusion.
On Mon, Jul
You need to specify an id in that method... and you need to set an id in
your xml layout.
--
There are only 10 types of people in the world...
Those who know binary and those who don't.
As an example:
RelativeLayout
...
android:id=@+id/my_relative_layout_id
...
/
Then you would use setContentView(R.id.my_relative_layout_id);
Hope that helps...
Justin
--
There are only 10 types of people
I'm going to look at my code when I get a chance... But I don't have it on
me at work.
--
There are only 10 types of people in the world...
Those who know binary and those who don't.
Edit: NOT setContentView()
The code would be:
findViewById(R.id.my_relative_layout_id);
Sorry about that...
Justin
--
There are only 10 types of people in the world...
Those who know binary and those who don't
a class inline like that is a very
powerful feature of Java, but it can be very confusing since the {}
and () get nested so deeply and get so distantly separated.
On Jul 19, 1:31 pm, Justin Anderson janderson@gmail.com wrote:
Your call to setOnClickListener is missing a closing parentheses
Look for the words caused by in this message... It will tell you the
problem. In this case it is a NullPointerException.
--
There are only 10 types of people in the world...
Those who know binary and those who don't.
What exactly are you trying to accomplish? Are you trying to get the same
sort of effect that the browser or google maps has with the zoom in/out
buttons (in that they show up on top of the current view)?
The google maps source definitely isn't available, but if the browser source
is then you
use this, it tells the complier to pass in class
variables not the local ones because the instance of the class would
be outside of the method?? also, if your class contains multiple
instances how does the complier know which one this is referring
too?
On Jul 13, 1:47 am, Justin
http://developer.android.com/reference/android/os/Build.VERSION.html
--
There are only 10 types of people in the world...
Those who know binary and those who don't.
Are you using Eclipse? If you are using Eclipse, you should be able to step
through your code and examine variables and object state and step through
your code one line at a time...
--
There are only 10 types of people in the
http://developer.android.com/guide/topics/fundamentals.html#servlife
--
There are only 10 types of people in the world...
Those who know binary and those who don't.
But DanH is right, it totally depends on what you want to do. It also
depends on what super does... If your subclass is setting information that
is also set by super then chances are you would want to call super first.
If what super does varies based on settings in your implementation, then you
Jake,
You haven't given enough information to determine if it should be called
before or after your stuff. And it also depends on what the Service
constructor does (which I don't know because I haven't looked at the source.
I guess the point I am trying to make (that it totally depends and
I may be wrong but I don't think that item.getItemId refers to a resource
id... I may be wrong though because I have never create a menu via XML
(though I do almost all other layouts in XML). I usually do the menus in
code.
What I do is create a constant int variable such as:
protected static
Read the entire Dev Guide first:
http://developer.android.com/guide/index.html
--
There are only 10 types of people in the world...
Those who know binary and those who don't.
That would be extremely annoying in my opinion, but you would do it using a
Timer:
http://developer.android.com/reference/java/util/Timer.html
--
There are only 10 types of people in the world...
Those who know binary and those
that someone, somewhere, had a similar question and it has already been
answered.
Hope that helps and happy coding,
Justin
--
There are only 10 types of people in the world...
Those who know binary and those who don't
* How can we do money transaction in android apps?*
By writing an app that does that...
* How can we integrate PayPal and other online payment system in Android
applications?
*Ask PayPal... They most likely have a web API that you can use.
Sorry for the snide comments... but your question
http://developer.android.com/reference/android/app/ActivityManager.RunningServiceInfo.html
Word of warning though... The Android 2.2 SDK dramatically changed the way
in which you can stop 3rd party applications and your app may not work
properly. Just something to take into consideration. It
Sounds to me like you first need to read up on SQLite and how it works so
you can create and manage your database. Then, after that, read up on how
Android allows you to interact with your database.
Here is a link to an SQLite tutorial that I found just by googling SQLite
Tutorial. I can't
Unless the database is going to be quite large, I would just create it in
code the first time you start up the app... How large are you anticipating
this database is going to be?
--
There are only 10 types of people in the
I've never tried to do an overlay view, but it seems to me to make sense
that once the overlay view is on top that it would capture all events...
If you want it to propogate to the base view I think you are going to have
to handle it in the overlay and then pass it on to the base view somehow.
* An interesting related problem is that rotating the screen causes my
Activity to be destroyed and (re)created in quick succession.*
This is done by design. You can find a few tips about how to program with
this in mind here:
* I know that the keyword this refers to an instance variable or can
invoke a constructor*
That is not what the keyword this references. It references the instance
of the class you are currently in...
* but I don't understand how passing this as the arg for
setOnClickListener () works?Could
We are not going to write your code for you...
Do what Mark has told you to do. Create two list activities, override
onListItemClick() and in that method display the second list activity by
calling startActivity().
If you have questions about startActivity() or how to use intents you can do
a
We have already answered this question in a previous post... please don't
post multiple versions of the same question. Also, no one is going to write
the code for you... We all monitor this group in our spare time. You will
get concepts, perhaps a few code snippets, but I wouldn't expect much
Get the latest SDK: http://developer.android.com/sdk/index.html
Get the latest tools: http://developer.android.com/sdk/tools-notes.html
--
There are only 10 types of people in the world...
Those who know binary and those who
*So, it's impossible then???*
Not necessarily, it just means that no one on this group knows the answer.
You can try stackoverflow or the android developers group as well. Or you
can also try googling and seeing if anyone has a tutorial or something about
this...
Not the default button AFAIK... You would need to make your own to do that.
--
There are only 10 types of people in the world...
Those who know binary and those who don't.
I've never used GridView before so I am not certain about this, but have you
tried taking out the focusable and focusableInTouchMode attributes from your
XML?
What may be happening is that the GridView itself is stealing focus away
from the items that are actually placed inside it...
This may
What does the layout code look like?
On Jul 3, 2010 1:06 PM, Mike mike.pan...@gmail.com wrote:
Hello!
I've got an Android app that has a focusable EditText widget inside of
a ScrollView. When I scroll down, the EditText automatically picks up
the focus. When I try to scroll up, if the
* I have created a new java class, but when i do R.layout. in the
setContentView method i cannot find my Home.xml file*.* I can see the
main.xml which is created by default.*
Not sure exactly what you mean here...
You should be able to access it via 'R.layout.Home'. If you are talking
about the
, Justin Anderson
janderson@gmail.comwrote:
* I have created a new java class, but when i do R.layout. in the
setContentView method i cannot find my Home.xml file*.* I can see the
main.xml which is created by default.*
Not sure exactly what you mean here...
You should be able to access
This exact question was recently answered by Mark Murphy Wrap it in a
ScrollView.
--
There are only 10 types of people in the world...
Those who know binary and those who don't.
* 1) Can an Android app open a SQLite database that is on the SD card? *
http://developer.android.com/guide/topics/data/data-storage.html#filesExternal
* 2) If so, does it have to be in an app-specific directory?*
http://developer.android.com/guide/topics/data/data-storage.html#filesExternal
*
There is a home replacement example in the API Demos that should give you
everything you need to do that.
--
There are only 10 types of people in the world...
Those who know binary and those who don't.
know binary and those who don't.
--
On Sat, Jul 3, 2010 at 2:10 AM, Justin Anderson janderson@gmail.comwrote:
There is a home replacement example in the API Demos that should give you
everything you need to do
U... ok.
--
There are only 10 types of people in the world...
Those who know binary and those who don't.
--
On Wed, Jun 30, 2010 at 5:14 PM, Emmen Farooq
Does this question have anything at all to do with Android?
--
There are only 10 types of people in the world...
Those who know binary and those who don't.
--
1 - 100 of 764 matches
Mail list logo