Hi fellow developers,
I am going bald with this, ripping my hairs.
I spend hours searching google, anddev, stack overflow and forums to
no extent, I have found nothing.
I'm designing a simple app, for my first, that get datas from a web
service.
The main ui launch a thread that will act as a work
Hiii,
How to create custom themes from scratch for an application?
--
Warm Regards,
Chirayu Dalwadi
--
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/
Hi,
Can i do this :-
Set the image background path as package:imageName
Example.. At runtime , my package is com.test.android .Inside that i have an
image whose path i want to mention in the XML layout file as
android:src = com.test.android/img1 for an ImageButton.
I saw an SDK reference for ImageV
Hi!
I get the error: INSTALL_FAILED_MISSING_SHARED_LIBRARY
I'm missing the google maps library. There are different posts where i
read, that i have to choose a android target with the google-API in the
AVD. But there is no. Where do i find the google-API? in the AVD there
are only android 1.1
Attached is a sample OK button screen shot seen on the UI
The left one is created using XML as follows
And in drawable ,*
button_style.xml
*
http://schemas.android.com/apk/res/android";>
*
button_left_style.xml*
http://schemas.android.com/apk/res/android";>
*button_right_
This might work, but it would require me to duplicate functional
methods from activity 2 into the main activity, which is undesirable.
So far, sending and intent upon releasing long press is working just
fine, and, although it adds some complexity to the code, it's by far
the simplest solution.
On
On Sun, Apr 18, 2010 at 2:49 AM, hugh_wish wrote:
> Does anyone know a way to set padding in dp programmatically?
>
float scale = context.getResources().getDisplayMetrics().density;
float size = sizeInPixes * scale;
On Sun, Apr 18, 2010 at 1:58 PM, BobG wrote:
> Multiply by 1,2 or 4 based on
On Mon, Apr 19, 2010 at 1:26 AM, Jacky Lam wrote:
> I have searched for a while and surprised there is no a Android API bible
> book in the market or internet.
>
Probably because this would just be a re-hash of the documentation ...
--
On Mon, Apr 19, 2010 at 1:37 AM, BobG wrote:
> But my question is: Does ondraw ever get called again?
>
Sure, whenever the view needs to be re-drawn ...
> Or is this now a 'zombie process' that will just sit there taking up memory
> until we kill it?
>
I don't know what you're asking. Activit
by the way, i found the solution,
hmm, a little bit weird:
i must not have the line "android:name="com.google.android.maps" />" in the project manifest.
Am 19.04.2010 14:01, schrieb jeth:
Hi!
I get the error: INSTALL_FAILED_MISSING_SHARED_LIBRARY
I'm missing the google maps library. There are
Hi,
I have one problem... like i want my view to grow or shrink in one direction
like curtains. What animation i can use for this? is this scalling or wht is
it ?
please tell me
thanks..
--
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
NE
On Mon, Apr 19, 2010 at 3:10 AM, tripy wrote:
> Can anyone explain me what is wrong with my code?
That's a lot of code to wade through and it's not formatted well at all in
this email so I only quickly skimmed. Nothing obviously wrong, AFAICT, but
some suggestions:
1 - Don't use getApplication
On Apr 19, 9:08 am, "~ TreKing" wrote:
> I don't know what you're asking. Activities don't really "run" like threads
> that have a definite function that gets executed to do work. They have
> functions that are invoked in response to system events (onCreate, onPause,
> onConfigurationChanged, etc)
If you want to have text on the screen that can be changed by the
program, could you create a text field as a resource and then change
its content in the code?
--
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
NEW! Try asking and tagging your
Mauricio wrote:
> If you want to have text on the screen that can be changed by the
> program, could you create a text field as a resource and then change
> its content in the code?
It is unclear what you are asking here, so I will try a few answers and
hope I get lucky:
-- You can have a string
Thanks for the reply...
I know there is a lot of code, but I thought too much is better than
too few.
Answering your propositions:
1) Effectively, I discarded the getApplicationContext pretty fast.
2) I know that the AsycTask is aimed for that exactly.
I just would like to understand why this cod
By the way, you can see a better view of this code on
http://www.anddev.org/progressdialog_re_use_or_multiple_display_not_working-t13169.html
On Apr 19, 3:59 pm, "~ TreKing" wrote:
> On Mon, Apr 19, 2010 at 3:10 AM, tripy wrote:
> > Can anyone explain me what is wrong with my code?
>
> That's a
Hi
how can i put action listener on textview plz detail tell me
--
Ali Murtaza
BCSF06M021
Research Assistant
Data Virtulization Ware House
PUCIT, Lahore, Pakistan
ali.murt...@pucit.edu.pk
--
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
Hi
I'm making a simple media player app, that streams files from a site.
Currently the fundamentals of my app work, it is downloading the track
info, and playing the files fine. However, at the moment it isn't
working in a user-friendly manner, and usually getting it to play more
than one song is
On Mon, Apr 19, 2010 at 10:04 AM, tripy wrote:
> I know there is a lot of code, but I thought too much is better than too
> few.
>
It's a tough call, too much and people's eyes glaze over, too little and no
one has any context to help. The link to the formatted code is a good
alternative. If I f
do you mean custom views? if so, i have been following the hello
views tutorials to see how you can lay out different items on the
screen:
http://developer.android.com/guide/tutorials/views/hello-linearlayout.html
http://developer.android.com/guide/tutorials/views/hello-relativelayout.html
if yo
> > 3) Here, you lost me I was thinking that I was calling them from the
> > activity!?
>
> I mean use Activity.showDialog(int) and Activity.dismissDialog(int) instead
> of calling dialog.show() and dialog.dismiss().
>
I would be using a layout as a dialog, I'd understand.
But I'm not using t
I'm not sure I follow what you are trying to accomplish...
--
There are only 10 types of people in the world...
Those who know binary and those who don't.
--
On
First, whatever is playing the music should run as a service and not as an
activity... I would probably create a NowPlayingService and a
NowPlayingActivity.
Activities don't run in the background. When they are no longer visible
they are paused by the OS. Services are allowed to run in the back
Custom views are not the same thing as custom themes.
More info can be found here:
http://developer.android.com/guide/topics/ui/themes.html
Hope that helps,
Justin
--
There are only 10 types of people in the world...
Those who k
Thanks for your reply, I'm looking into the documentation for Services now.
Tom
On 19/04/2010 19:31, Justin Anderson wrote:
First, whatever is playing the music should run as a service and not
as an activity... I would probably create a NowPlayingService and a
NowPlayingActivity.
Activities
On Mon, Apr 19, 2010 at 3:18 PM, Justin Anderson
wrote:
> I'm not sure I follow what you are trying to accomplish...
Justin,
What I want to achieve is a service that notificates users. I will
use the NotificationManager, but my activity uses another activity
that I have no control over it. It'
My application is almost ready. I only want to create a theme and apply it
on that application. I need help for the same. Please include examples if
possible
--
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
NEW! Try asking and tagging yo
Hello everyone, i'm in the process of creating a application manager/
killer for my high school senior project. Unfortunately i'm running
into the issue of my view not refreshing graphically with my updated
list. The application killing works but the list refreshing after
killing the application do
Hi,
I'm trying to call a thread on a button click (btn_more) but i cant
get it right. The thread is to get some data and update the images. If
i retrieve info and update 4 or 5 images then it works fine. But if i
load more than 5 images i will get a force close. At times when the
internet is slow
On Mon, Apr 19, 2010 at 12:25 PM, tripy wrote:
> I would be using a layout as a dialog, I'd understand. But I'm not using
> this. Though I'll try, for the experiment.
>
I'm not sure what you're saying here.
> I am using the android.app.ProgressDialog class.
> http://developer.android.com/refe
* > If I write an
> activity to play the sound requested by the notification, the launched
> activity will go background...and then?
*
So the problem is what to do once you have played the sound via an activity
and the launched activity that you have no control of is sent to the
background?
If tha
http://developer.android.com/guide/topics/ui/themes.html
There are examples in this link (which is the same link I provided before).
A theme is nothing more than a style applied to an entire activity or
application.
--
There are
I continued playing with this, and the more I look, the more I think
that my problem might be that I try to show and dismiss the
progressDialog from the handler.
I tried to have some keypress initiate a ProgressDialog, and it works.
Going further in logging, I see that the thread finishes it's wor
Further to my previous email, I have sketched out how my Media Player
will work with the actual MediaPlayer object in a separate service,
MediaService. I can't work out how to make calls, and retrieve data from
the service. Following tutorials online has lead me to this:
MyApp.java - top level Ac
Tom F M White wrote:
> Further to my previous email, I have sketched out how my Media Player
> will work with the actual MediaPlayer object in a separate service,
> MediaService. I can't work out how to make calls, and retrieve data from
> the service. Following tutorials online has lead me to this
On 19/04/2010 21:36, Mark Murphy wrote:
Tom F M White wrote:
Further to my previous email, I have sketched out how my Media Player
will work with the actual MediaPlayer object in a separate service,
MediaService. I can't work out how to make calls, and retrieve data from
the service. Follo
Tom F M White wrote:
> I'm calling start a relatively long time later, several seconds. Do I
> need to call onServiceConnected() myself?
No, it should be called shortly after you call bindService(). This
suggests that your bindService() call is failing for some reason (e.g.,
your service is not re
On Mon, Apr 19, 2010 at 5:05 PM, Justin Anderson
wrote:
>> If I write an
>> activity to play the sound requested by the notification, the launched
>> activity will go background...and then?
>
> So the problem is what to do once you have played the sound via an activity
> and the launched activity
On 19/04/2010 21:43, Mark Murphy wrote:
Tom F M White wrote:
I'm calling start a relatively long time later, several seconds. Do I
need to call onServiceConnected() myself?
No, it should be called shortly after you call bindService(). This
suggests that your bindService() call is fa
gmtinput is an edittext. Any suggestions are appreciated. Obviously, I
am a beginner.
protected void calculateGmt() {
TextView gmtinput = null;
double val = Double.parseDouble(gmtinput.getText().toString());
minsatoutput.setText(Double.toStr
You didn't initialize the variable gmtinput.
On Mon, Apr 19, 2010 at 8:49 PM, Traveler wrote:
> gmtinput is an edittext. Any suggestions are appreciated. Obviously, I
> am a beginner.
>
>protected void calculateGmt() {
>TextView gmtinput = null;
>
>double
Hi All;
I'm a new Android developer somewhat new to Scala(my professional background
is in OCaml, Java, Ruby, and Groovy). For the last 4 or 5 nights,
I've plumbed the depths of the internet, fedora and bullwhip in hand,
looking for a way to set up a decent build environment for Android 2.1 and
S
What's the name of the function that returns the screen height minus
the title bar and status bar? Thanks... I've really been looking for a
while...
--
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
NEW! Try asking and tagging your question o
Sorry, I know this is a rookie question and probably been asked
before, but I did not find an answer doing searches.
I have created a SqlLite database and copied it to my projects Assets
driectory. It shows up in Eclipse package explorer. There are two
files AndroidDbXXX and XXXDB. Not sure w
Well, this seems like a good exercise to test my learning and reading as a
newbie in the Android scene.
If I'm understanding BobG correctly, he means that the calls to onDraw
depend entirely on your application. Your *Hello World!* sample renders the
text once and never has to render anything aga
May I ask why you need something like that?
--
There are only 10 types of people in the world...
Those who know binary and those who don't.
--
On Mon, Apr 19, 2
Hello,
I have a two string arrays:
String[] keys={"A","B","C","D","E"};
String[] values={"655","466","627","168","569"};
Now i wanted to display a list:
A
B
C
---
i want to install steel browser in my android emulator .Can u guys
please help me with the steps involved
--
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.co
You are going to need to provide a little more information if you want a
"real" answer. I'm assuming you are using a ListActivity? If so, there is
a method called onListItemClick that passes a position parameter.
Assuming that the items are displayed in the list in the same order as the
array yo
50 matches
Mail list logo