[android-beginners]

2009-10-01 Thread saurabh sinha
somebody tell me what is use of onBind in service --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from

[android-beginners] Agent/Actor programming on Android.

2009-10-01 Thread wonglik
Hi I am interested using Agents/Actors on Android. Does anybody have an experience in that? I know there is JADE Andorid but it is not in active development and working very limited on android 1.0. I know there are Scala Actors but they do not come in standard scala-android distribution. Are

[android-beginners] Re: ImageButton on Graphic Background

2009-10-01 Thread Maxood
Let me be very precise here. I have a picture in the background.Can i place ImageButtons on this picture and receive click event of the ImageButtons? If not then how can i place a pictured object on a pictured background and be able to receive click event of that object? Thank you Maxood On Sep

[android-beginners] Re: Trajectory Calculator

2009-10-01 Thread Maxood
Also i'm looking for an app with a trajectory calculator.Thankyou Maxood On Sep 30, 10:33 am, Maxood maqs...@salsoft.net wrote: How can we detect wind speed from a weather web service. Can you suggest some good sites? Also i have been informed that one is restricted by the United States

[android-beginners] Behaviour of listviews with Custom Rows

2009-10-01 Thread DWischer
Hi, what i got is 2 listviews which are both subclasses of ListActivity. One is a simple list with a textview in every row. The other has some elements in the top, and a list below. The first and simple row, has its row defnied programmaticly and selected rows are highlighted. In the other list

[android-beginners] Re: Behaviour of listviews with Custom Rows

2009-10-01 Thread Mark Murphy
what i got is 2 listviews which are both subclasses of ListActivity. One is a simple list with a textview in every row. The other has some elements in the top, and a list below. The first and simple row, has its row defnied programmaticly and selected rows are highlighted. In the other

[android-beginners] MyLocationOverlay vs. Service with Locationlistener

2009-10-01 Thread Harold
Hi, im playing around a little with the Maps-Api and the MyLocationOverlay which draws a point on the map on your current location. At first i was doing this by hand with a normal Overlay and a Service with a LocationListener. Then i found out that MyLocationOverlay is implementing this all

[android-beginners] Re: ImageButton on Graphic Background

2009-10-01 Thread Mark Murphy
Let me be very precise here. I have a picture in the background. That is not very precise. The picture is in the background of...what? Can i place ImageButtons on this picture and receive click event of the ImageButtons? Presumably. Please try it, and if it does not work, post some layout

[android-beginners] Re: MyLocationOverlay vs. Service with Locationlistener

2009-10-01 Thread Neil
Hi Harold This is exactly what I'm doing in MySpeed - http://l6n.org/android/myspeed.shtml There's a MyLocationOverlay which shows the map and a service which does other stuff. Originally I had the other stuff in the MyLocationOverlay, but later decided to move it all out into it's own service

[android-beginners] Layout one horizontal line with two TextViews

2009-10-01 Thread DWischer
Hi, i will go insane in a minute with this problem. What i want to do is to design a layout, with one Textview on the left oft the screen and on Textview on the right of the screen. So that both fields grow to the center when a longer text is set. My xmlfile: ?xml version=1.0 encoding=utf-8?

[android-beginners] Re: Layout one horizontal line with two TextViews

2009-10-01 Thread Stefan
?xml version=1.0 encoding=utf-8? without the xml tag of course.. and change the id/name of the relativeLayout tag ;) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group,

[android-beginners] Re: Layout one horizontal line with two TextViews

2009-10-01 Thread Stefan
Hi, try this instead of your second LinearLayout: ?xml version=1.0 encoding=utf-8? RelativeLayout android:id=@+id/LinearLayout02 android:layout_width=fill_parent android:layout_height=wrap_content TextView android:text=check2 android:id=@+id/

[android-beginners] Re: ImageButton on Graphic Background

2009-10-01 Thread Zeeshan Muhammad
if u mean to place an image button on top of a layout , that could help LinearLayout android:layout_width=wrap_content android:layout_height=wrap_content android:background=@drawable/background ImageButton android:id=@+id/btn android:layout_width=wrap_content

[android-beginners] Re: Android as a Universal Remote for CE/HA? (ab)

2009-10-01 Thread Jed
For the love of god, anything at all? ... Jed wrote: Hi, any thoughts on this anyone please? Jed wrote: Hi All, I was wondering if there's any good Universal Remote software for CE or HA being developed in the Android ecosystem? Does anyone know of anything under way or a related Linux

[android-beginners] Remote View setString

2009-10-01 Thread android learner
Hello, Can some one please help me understand the setString function in RemoteViews? public void setString (int viewId, String methodName, String value) Can I pass any method name to setString ? I have a custom view in my xml layout file. I'm passing the view id of my custom view, name of

[android-beginners] Re: HelloMapView coming up with empty tiles

2009-10-01 Thread jotobjects
What you are doing looks right. The empty tiles view with cross hatches is a symptom of an invalid apiKey, but possibly it is something else. On Sep 26, 8:47 am, Clayton gehbaue...@gmail.com wrote: I'm having trouble getting the HelloMapView to work.  I have the Maps API key that I got from,

[android-beginners] Re: Remote View setString

2009-10-01 Thread Mark Murphy
Can some one please help me understand the setString function in RemoteViews? public void setString (int viewId, String methodName, String value) Can I pass any method name to setString ? I have a custom view in my xml layout file. I'm passing the view id of my custom view, name of a

[android-beginners] Re: Remote View setString

2009-10-01 Thread android learner
Thanks Mark. Yes it is my own view class (like a button). But it works fine in RemoteView as long as I do not attempt to set anything in my view class. But one of the parameters in this view class is dynamic and I need to set it from the Remote View (like we do a setText for a button). That is

[android-beginners] Re: Android as a Universal Remote for CE/HA? (ab)

2009-10-01 Thread Justin Anderson
For the love of god, apparently not! -- There are only 10 types of people in the world... Those who know binary and those who don't. -- On Thu, Oct 1, 2009 at

[android-beginners] Returning a value from TabActivity.

2009-10-01 Thread Moma Antero
Hello, How can I return a value from TabActivity? It seems that the return value from tab pages vanishes and the caller always receives RESULT_CANCELED instead of RESULT_OK. Here is a simple but complete example. http://www.futuredesktop.org/tmp/TabTest.zip Please take some time to study and

[android-beginners] Help

2009-10-01 Thread Ray da Costa
Someone knows how could do to generate a view with 01 TextView and a button without using the xml (R.java).? Which method of the view that receives the attributes (TextView and button)? -- Ray da Costa The best way to predict the future is to invent it. Alan Kay

[android-beginners] How to receive callback when press and hold button for a longer time.

2009-10-01 Thread Shude Zheng
I want to add some code when user press and hold the button. I try use change the focus function. I wrote the similar code like onClick. But it was never called when I moved curer to button and it was focused. Button button = (Button) findViewById(R.id.*channel_up*);

[android-beginners] Re: Remote View setString

2009-10-01 Thread android learner
Let us keep aside the fact that I'm using a custom view. Consider a normal case, where I am using an existing Android view, for example AnalogClock class in my layout. Is there anyway I can call a public method of AnalogClock Class through the remote view? I need to dynamically update something

[android-beginners] Re: Trajectory Calculator

2009-10-01 Thread Yusuf Saib (T-Mobile USA)
First of all Royal and Ancient Golf Association is a pretty awesome name. I looked it up and found they are the authority everywhere except the US and Mexico. But even if you're golfing in Scotland, unless you're playing in a championship, you can check the weather without the royal mounted golf

[android-beginners] Re: Help

2009-10-01 Thread Yusuf Saib (T-Mobile USA)
Anything you can do in XML, you can do programmatically. The TextView and Button documentation show both. Search the following link for Related Method. http://developer.android.com/reference/android/widget/TextView.html You can also set the attributes in their constructors:

[android-beginners] Re: Listen to a service installation

2009-10-01 Thread Paul Turchenko
Dude, there's no such thing as service installation, as for the *.apks, consider listening to *PACKAGE broadcasts. On Oct 1, 11:00 pm, Valeriano tecli...@gmail.com wrote: Hi all, is there a way to listen to a service installation? I'd like android to callback every time a service.onCreate is

[android-beginners] Re: Remote View setString

2009-10-01 Thread Paul Turchenko
Yes, you can call a public method on widget's views via the remote views as long as it matches signature of 1 of methods that RemoteViews class offers. For example, to set text on the TextView that exists in widget's layout, you can use RemoteViews.setString(R.id.your_view_id, setText, your

[android-beginners] Re: Remote View setString

2009-10-01 Thread android learner
Thanks Paul. That was helpful. In my case, the public method I'm trying to call, does not match with the signature of any of the methods that RemoteView class offers. I guess that explains the error I get. Is there any way to overcome this limitation? Also, I'd like to know if there is any other

[android-beginners] Re: Free and Paid apps with same code-base???

2009-10-01 Thread Justin Anderson
I found a way that works! And it is simple. A co-worker of mine has this slogan on his whiteboard: Do the simplest thing that could possible work. I have my main app, which contains both free and paid code. I also have an app that acts as a key to unlock the pro version. The following code

[android-beginners] Re: How to receive an incoming call programmatically?

2009-10-01 Thread naG
can you explain it more... On Sep 30, 4:12 am, Nemat nemate...@gmail.com wrote: is it possible to intercept an incoming call? I want my application to receive the call automatically through programming.Can we do this in SDK-1.6? Thanks Nemat

[android-beginners] Re: Agent/Actor programming on Android.

2009-10-01 Thread Francesco Vadicamo
Hi, I'm using Jade Android for my intents with no problems until now! What kind of limitations do you refer? Francesco On 1 Ott, 12:17, wonglik wag...@gmail.com wrote: Hi I am interested using Agents/Actors on Android. Does anybody have an experience in that? I know there is JADE Andorid

[android-beginners] Can we put inner layout in center of the screen.

2009-10-01 Thread Jitu
Hi All, I want to put inner layout in center of the screen. Please help me here. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to

[android-beginners] Specifying relative positions in Layout?

2009-10-01 Thread Jitu
Hi All, I need to implement a screen containing a list of blocks one below the other. Each block will contain mutiple superimpose elements (Images, text) for which the relative position needs to be specified with respect to the top left corner of the block. For creating the list of blocks i

[android-beginners] Re: ArrayIndexOutOfBoundsException in maps API

2009-10-01 Thread Tony Wong
I'm not sure if you've found your solution yet, but what solved it for me was calling setLastFocusedIndex(-1) before populate(). Check out these posts for more discussion on the topic: http://www.anddev.org/viewtopic.php?p=26461

[android-beginners] Instead of android:layout_marginLeft=100px can we mentioned it in percentage??

2009-10-01 Thread Jitu
Hi All, I am facing a problem on UI creation for example (android:layout_marginLeft=100px) when i switch to portrait to landscape then left margin is fix but i want same left margin like we mentioned in percentage.. Here in android dev how i mention left margin in percentage?? - Jitu

[android-beginners] Web Service

2009-10-01 Thread Eray Ince
I am newbie @Android, but I have experience with J2ME. I would like to start a forecast application using Netbeans which will use webservice. Could anybody provide me a guide, link, etc.? Thanks in Advance Kind Regards -- -- Eray --~--~-~--~~~---~--~~ You

[android-beginners] How to put TextView in same position in landscape and portrait mode in Android

2009-10-01 Thread Jitu
Hi All, I am facing a problem when i put a textview on screen in landscape mode it position is fine but when i switch to portrait mode it position is remain fix it not change according to screen resolution. please help me here --~--~-~--~~~---~--~~ You received

[android-beginners] Problems with the tutorials and SDK/Emulator 1.6

2009-10-01 Thread baumer
I've been working my way through the tutorials from the Android Development page and had two major problems/errors come up while running the 1.6 emulator. When trying to run HelloTableLayout from the tutorial I get the error The application Hello Table Layout (process

[android-beginners] Showing a Toast or Activity on top of another application

2009-10-01 Thread Omer Gilad
Hello, I have an application which runs a background thread which eventually updates listeners on some incoming event. When I'm in this listeners' code, I want to be able to either show a Toast or a new Activity on top of the screen, regardless of what is running in this moment - but to be able

[android-beginners] Re: [android-beginners]

2009-10-01 Thread Android Shail
read docs :) On Thu, Oct 1, 2009 at 3:23 PM, saurabh sinha saurso...@gmail.com wrote: somebody tell me what is use of onBind in service --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group.

[android-beginners] C/C++ Compiler on Android

2009-10-01 Thread cookiemonsta
hi, i was wondering if there is a C or C++ compiler which could be run ON the android which would let us compile codes on the phone itself thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners

[android-beginners] New app: my NPR

2009-10-01 Thread CatDaaaady
I finally created my first Android app :-D It is called myNPR. I put it up in the market yesterday. You can view the latest popular articles from NPR.org. Also find and listen to your favorite local radio station live stream, mp3 or podcast. (still working on the podcast part :-p ) I will

[android-beginners] Google and Android contact information.

2009-10-01 Thread Cycling Bee
Hello, I'm trying to find the best way to contact the right people at either Google or Android. And I'm not sure how to go about it, so maybe someone in here can help me out. Basically this is in regard to the poor implementation and support of the Android OS on the HTC Dream. HTC has a ROM

[android-beginners] Help! I get this error message concerning the AVD

2009-10-01 Thread PeterBrynte
When trying to run my first attempt to an android app I get this error message concerning the AVD: [2009-09-30 23:57:00 - Emulator]emulator: ERROR: no search paths found in this AVD's configuration. [2009-09-30 23:57:00 - Emulator]Weird, the AVD's config.ini file is malformed. Try re-creating it.

[android-beginners] Re: C/C++ Compiler on Android

2009-10-01 Thread Yusuf Saib (T-Mobile USA)
I am not aware of one already developed for Android, but in theory if you have a C-compiler written in C, then you could run that on Android to compile code on the phone. Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author

[android-beginners] Re: Instead of android:layout_marginLeft=100px can we mentioned it in percentage??

2009-10-01 Thread Kent Loobey
On Wednesday 30 September 2009 05:12:36 Jitu wrote: Hi All, I am facing a problem on UI creation for example (android:layout_marginLeft=100px) when i switch to portrait to landscape then left margin is fix but i want same left margin like we mentioned in percentage.. Here in android dev how

[android-beginners] Re: New app: my NPR

2009-10-01 Thread Lance Nanek
Too bad they don't wiki the api documentation.  The docs would get filled out a lot faster and users could leave comments about different caveats they found. :-)  Maybe Google is reading this ?? :-p Wow, yeah. Even just user comments on doc pages would be great. PHP does this and you often

[android-beginners] Re: New app: my NPR

2009-10-01 Thread Chi Kit Leung
Wow, opensource android app project! I am looking forward to read wiki and play around the real code! On Fri, Oct 2, 2009 at 11:17 AM, Lance Nanek lna...@gmail.com wrote: Too bad they don't wiki the api documentation. The docs would get filled out a lot faster and users could leave

[android-beginners] Re: Free and Paid apps with same code-base???

2009-10-01 Thread Chi Kit Leung
Do you want to put into Android Market? As I remember, they use the application namespace as a primary key. So, you cannot install both of free and paid app in a same phone. On Fri, Oct 2, 2009 at 8:17 AM, Justin Anderson janderson@gmail.comwrote: I found a way that works! And it is

[android-beginners] Re: Free and Paid apps with same code-base???

2009-10-01 Thread Justin Anderson
The market uses the package name. So they can both be put on the market. For example, my app consists of these packages: Main App: com.magouyaware.appswipe Key App: com.magouyaware.appswipe2 Because they have different package names they can both be uploaded to the market. On Oct 1, 2009 8:58

[android-beginners] Re: Free and Paid apps with same code-base???

2009-10-01 Thread Chi Kit Leung
Thanks for the corrections! On Fri, Oct 2, 2009 at 1:03 PM, Justin Anderson janderson@gmail.comwrote: The market uses the package name. So they can both be put on the market. For example, my app consists of these packages: Main App: com.magouyaware.appswipe Key App:

[android-beginners] Re: Android as a Universal Remote for CE/HA? (ab)

2009-10-01 Thread Jed
Hi Justin, whatya reckon? Also.. I think I've found the ideal software to run on a HA/CE controller. http://openremote.org/display/orb/Boss+Overview The base OS would probably be Ubuntu but I may also try LinuxMCE. They have a hardware platform that they're building the software on. But

[android-beginners] Re: Android as a Universal Remote for CE/HA?

2009-10-01 Thread Jed
Hi Justin, whatya reckon? Also.. I think I've found the ideal software to run on a HA/CE controller. http://openremote.org/display/orb/Boss+Overview The base OS would probably be Ubuntu but I may also try LinuxMCE. They have a hardware platform that they're building the software on. But

[android-beginners] Re: Agent/Actor programming on Android.

2009-10-01 Thread wonglik
Hi First limitation is what I have already mention is that JADE is running only on SDK 1.0 . Second I have read about is that it allows only one agent per container. Is it true? w On Oct 1, 1:48 pm, Francesco Vadicamo f.vadic...@gmail.com wrote: Hi, I'm using Jade Android for my intents with

[android-beginners] Re: Help! I get this error message concerning the AVD

2009-10-01 Thread Xavier Ducrohet
This is very strange. you could try to fix the config file with android update avd --name name If that doesn't help can you send the file to me? xav On Wed, Sep 30, 2009 at 3:21 PM, PeterBrynte peter.bry...@gmail.com wrote: When trying to run my first attempt to an android app I get this

[android-beginners] Re: Problems with the tutorials and SDK/Emulator 1.6

2009-10-01 Thread Xavier Ducrohet
I have no idea what the problem is, but you should look at the output from logcat. This is where the relevant information regarding the app crashing is. Xav On Tue, Sep 29, 2009 at 6:59 PM, baumer miketissenb...@gmail.com wrote: I've been working my way through the tutorials from the Android

[android-beginners] Spreadsheet View

2009-10-01 Thread Mitch
I've been trying to make a layout that displays something like a mini spreadsheet that's specialized for my app. I would like it to have headers for both rows and columns. The row header can only pan left and right. The column header can only pan up and down. Hard to explain in words, so I'll