[android-beginners] Re: how to change colours in a .xml defined layout in run time

2010-08-06 Thread ckloch
Thank you very much for your input I have solved the problem and the application is now ready for trial. best regards ckloch On 23 Jun., 17:38, TreKing treking...@gmail.com wrote: On Wed, Jun 16, 2010 at 6:55 AM, ckloch htc.kl...@hotmail.com wrote: In theory it seems to be easy, but I would

[android-beginners] Re: How comes that the estimate time becomes negative

2010-08-06 Thread ckloch
Dear all, I have solved my problem, so the issue below is no logner relevant Thank you for all the great input I have got in this forum best regards CKLOCH On 22 Jun., 11:25, ckloch htc.kl...@hotmail.com wrote: Dear all, I have developed a small app that helps the driver to regulate his

[android-beginners] Re: how to self-close an Activity

2010-07-30 Thread Indicator Veritatis
I have the same question. And even if they are done with it, I have another question: how do you suppose the user will react when he sees it auto-close? That is, do you really think the user expects this? I am not aware of any other app that does this, the user's expectation is based on these

[android-beginners] Re: How can my app let people pick a picture that I use as background in my app?

2010-07-30 Thread cellurl
I believe in transparency... In 1 month, my app has had 41 total installs, 21 paid (non canceled). -- 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

[android-beginners] Re: how to self-close an Activity

2010-07-30 Thread cellurl
my customers have requested auto-close. Its not actually closing an about-box, its on a things-are-progressing type pop-up window. Also, my customers are in their car, so they need to safely glance at the screen while its safely docked on the dashboard. I have resisted it for 6 months, but I can

Re: [android-beginners] Re: how to self-close an Activity

2010-07-30 Thread TreKing
On Fri, Jul 30, 2010 at 1:04 PM, cellurl gpscru...@gmail.com wrote: Its not actually closing an about-box, its on a things-are-progressing type pop-up window. Well that makes quite the difference =) I still wonder why a things-are-progressing type pop-up would close after some time and not,

[android-beginners] Re: how to self-close an Activity

2010-07-30 Thread Indicator Veritatis
Also, if it is a things are progressing display rather than an About box, why aren't you using an android.Widget.ProgressBar instead? People are used to seeing a Progress Bar disappear when the underlying things are done. But they are not so used to About boxes (or things like them) disappearing.

Re: [android-beginners] Re: How can my app let people pick a picture that I use as background in my app?

2010-07-29 Thread Nick Richardson
Step 1: Create new activity Step 2: Create intent to launch that activity Step 3: startActivityForResult() Step 4: Step 5: Profit! http://developer.android.com/reference/android/app/Activity.html#StartingActivities On Wed, Jul 28, 2010 at 7:57 PM, cellurl gpscru...@gmail.com wrote: Can

Re: [android-beginners] Re: How can my app let people pick a picture that I use as background in my app?

2010-07-29 Thread Justin Anderson
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.

Re: [android-beginners] Re: How can my app let people pick a picture that I use as background in my app?

2010-07-29 Thread Nick Richardson
Indeed 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

Re: [android-beginners] Re: How can my app let people pick a picture that I use as background in my app?

2010-07-29 Thread Justin Anderson
I figured I would let him figure out Step 5 the hard way ;-) Unless you have an absolutely freaking amazing app there is no profit. I have an app on the market that I think is pretty cool. There is a free version and a donate key for $0.99 that unlocks a few extra features. I've made

Re: [android-beginners] Re: How can my app let people pick a picture that I use as background in my app?

2010-07-29 Thread Nick Richardson
Join the club... I've made $8 in three weeks from mine. At this rate, i'll pay for my market account about the time it starts to snow :) On Thu, Jul 29, 2010 at 2:39 PM, Justin Anderson janderson@gmail.comwrote: I figured I would let him figure out Step 5 the hard way ;-) Unless you

[android-beginners] Re: How can my app let people pick a picture that I use as background in my app?

2010-07-28 Thread cellurl
Can you elaborate a bit please? Intent covers so much material. Thank you very much! Jim On Jul 25, 10:36 am, Paul Turchenko paul.turche...@gmail.com wrote: Use intent to pick a picture and start activity for result On Jul 24, 10:47 pm, cellurl gpscru...@gmail.com wrote: How do I launch

[android-beginners] Re: How to open a new Activity in a new window (calling a new activity)?

2010-07-25 Thread poojan9118
Intent intent = new intent(this,class_name.class); startActivity(intent); finish(); try this!! On Jul 23, 4:09 am, Victoria Busse victoriasarabu...@gmail.com wrote: Alright, thanks, I'll try that now :) On Thu, Jul 22, 2010 at 11:09 PM, Justin Anderson janderson@gmail.comwrote: Yes...

[android-beginners] Re: How to access xml layout

2010-07-08 Thread Connie
Oh yes, I forgot that I hit that one as well. For the people who find this thread in the future, you can also not have underscores in the xml name. Connie On Jul 7, 5:05 pm, Amit Sood sood.is...@gmail.com wrote: Connie, This was happening because you cannot use letter in caps in the

[android-beginners] Re: How to (properly) get device orientation data?

2010-06-22 Thread repDetect()
On Jun 17, 11:56 am, lawrizy lawr...@gmail.com wrote: Hi, I wanna thank you very much for your explanation. The official documentation was very difficult to understand. And the example in the api sample (the compass) does use a depreciated methods  (with sensorlistener). Nice, I'm glad it's

[android-beginners] Re: How to (properly) get device orientation data?

2010-06-22 Thread lawrizy
Thank you for your answer. I will try on a device. On 22 juin, 11:17, repDetect() n6mba50...@gmail.com wrote: On Jun 17, 11:56 am, lawrizy lawr...@gmail.com wrote: Hi, I wanna thank you very much for your explanation. The official documentation was very difficult to understand. And the

[android-beginners] Re: How to (properly) get device orientation data?

2010-06-21 Thread Ricky
Hi, Thanks for the explanation. It was very useful. I am trying to get 2 variables to store the lat/lon. Can we do that continuously? As in have 3 variables. One each for current azimuth, Lat and lon. What changes would we need to make in the code you provided here? implementing

[android-beginners] Re: How to (properly) get device orientation data?

2010-06-17 Thread lawrizy
Hi, I wanna thank you very much for your explanation. The official documentation was very difficult to understand. And the example in the api sample (the compass) does use a depreciated methods (with sensorlistener). I don't understand what does remapCoordinateSystem and his parameters, could

Re: [android-beginners] Re: How to set onClickListener for elements in a Vector

2010-06-17 Thread Justin Anderson
I have never used FrameLayout... so I'm not sure what the correct way to do this would be. Hopefully someone else out there has some answers... -- There are only 10 types of people in the world... Those who know binary and those

[android-beginners] Re: How to set onClickListener for elements in a Vector

2010-06-17 Thread KC
Thanks, Justin. I hope someone can help, because I've spent hours trying things that clearly don't work :( Nothing I try is successfully attaching a click or touch listener to the View I created and added. Thanks for trying to help though. On Jun 17, 5:23 am, Justin Anderson

[android-beginners] Re: How to set onClickListener for elements in a Vector

2010-06-16 Thread KC
Sorry, good point. The parent is a FrameLayout. Please let me know if I can provide you with more info and thanks so much for trying to help with this, I really appreciate it. KC On Jun 16, 4:32 pm, Justin Anderson janderson@gmail.com wrote: Well, what is the parent layout?  There are

[android-beginners] Re: How to set onClickListener for elements in a Vector

2010-06-16 Thread KC
You brought up a very good point and it got me thinking. I don't think its looping through the Vector. I have another class that takes the values, creates a Canvas and draws text and a simple image on it. I need to figure out how to draw a button onto a Canvas. Right now, all I can do is

[android-beginners] Re: How do I auto-generate code from xml like Android does it?

2010-06-15 Thread Zigurd
It depends on what your aim is. If you want to make instances of subclasses of views and layouts, you can do that my naming them in layout files. If you want something more general purpose, try JAXB. Or you can roll your own with the XML parser in Android, and reflection. On Jun 3, 11:09 am,

[android-beginners] Re: How do I compile the connectbot source code?

2010-05-31 Thread {n8}
Couldn't help but notice the url you downloaded from is read-only. Try adding read-write instead of read-only to the end of the url. I know that for example, importing the original aosp Launcher from the source into Eclipse gives a trillion errors...but compiles completely fine with make lol so

[android-beginners] Re: How to cleanly finish an activity? (activity timeouts prevent restarting an app)

2010-05-27 Thread Jason Tomlinson
You may be interested in reading a recent blog post by a Googler title When to Include an Exit Button in Android Apps (Hint: Never), http://blog.radioactiveyak.com/2010/05/when-to-include-exit-button-in-android.html On May 26, 8:00 am, bb13 steveves...@comcast.net wrote: My app (as currently

[android-beginners] Re: How to debug

2010-05-10 Thread Indicator Veritatis
Even before running the application under the debugger, a good first step is to look at LogCat in the DDMS Perspective: there will probably be a Java Exception logged there, that Exception is what caused the shutdown. Look for your own source code's line number in the stack trace. On May 9, 2:55 

Fwd: [android-beginners] Re: How to debug

2010-05-10 Thread joshua hublar
Oh, you really need to watch this video from Google IO 2009. How to debug like a NINJA (yar). http://developer.android.com/videos/index.html#v=Dgnx0E7m1GQ On Mon, May 10, 2010 at 2:45 PM, Trang phitr...@gmail.com wrote: Test Indicator Veritatis mej1...@yahoo.com wrote: Even before

[android-beginners] Re: How to debug

2010-05-09 Thread Ubuntu Explorer
Sorry, Forgot to add that I want to do it from within Eclipse IDE. On Mon, May 10, 2010 at 6:55 AM, Ubuntu Explorer ubuntuexplo...@gmail.comwrote: Hi, I am able to write basic android applications now. Thanks for all your help. However, when there are certain runtime issues, I cannot

RE : [android-beginners] Re: How to debug

2010-05-09 Thread Yoann Katchourine
How do you launch usually ? Try right clicking on the bug, near the green arrow, and then select android app. Yoann Katchourine, from my phone. (+33)6.50.40.15.82 Le 9 mai 2010 23:56, Ubuntu Explorer ubuntuexplo...@gmail.com a écrit : Sorry, Forgot to add that I want to do it from within

[android-beginners] Re: How to create a new folder on the SD card?

2010-05-07 Thread Jon Jacob
You hate finding the answer ;) This is good to know, anyway. Thanks for posting the answer. On May 6, 4:56 pm, DonFrench dcfre...@gmail.com wrote: I hate it when I find the answer two minutes after posting the question!   All I needed was this: uses-permission

[android-beginners] Re: How to create a new folder on the SD card?

2010-05-07 Thread DonFrench
LOL! No, I am glad that I found the answer but I just wish that I had persisted in searching for it a little longer before posting my question. But the good news is that maybe someone else with the same problem will read my post and find the answer faster than I did. On May 7, 8:08 am, Jon

[android-beginners] Re: How to create a new folder on the SD card?

2010-05-06 Thread DonFrench
I hate it when I find the answer two minutes after posting the question! All I needed was this: uses-permission android:name=android.permission.WRITE_EXTERNAL_STORAGE / in the manifest. On May 6, 4:50 pm, DonFrench dcfre...@gmail.com wrote: I am not succeeding in creating a new folder on the

Re: [android-beginners] Re: How do I simulate a Home, Menu, Or Back key press

2010-05-06 Thread Mani Android
Dear all Any one find out the solution how to simulate the Power, Back and Menu keys and other Hard keys? Thanks in advance... On Tue, Nov 10, 2009 at 7:44 AM, GT gswee...@gmail.com wrote: Update: I managed to get the soft Home button functioning by sending the Intent: Intent

[android-beginners] Re: How to open a new activity when an expandableList row is clicked ?

2010-04-28 Thread ScCrow
I would still like to see an answer,but I have at least coded a way to get the job done. Duh, Im using an array to store the information, then using the subGroup to index into my array. Not what I wanted, but it will at least work. Also, the information in my Toast now seems to be

Re: [android-beginners] Re: How often does an activity run?

2010-04-20 Thread Daniel Favela
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

[android-beginners] Re: How often does an activity run?

2010-04-20 Thread Indicator Veritatis
It is most definitely not a zombie process. A zombie process, by definition, is one not even the shell command 'kill' can kill. The process you just described is still able to receive events -- and will the next time the OS decides to call onDraw. It is Android that decides when to call onDraw().

[android-beginners] Re: How to get child Activity?

2010-04-19 Thread Rodrigo Chiossi
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.

[android-beginners] Re: How often does an activity run?

2010-04-19 Thread BobG
On Apr 19, 9:08 am, ~ TreKing treking...@gmail.com 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,

[android-beginners] Re: How to get child Activity?

2010-04-16 Thread Rodrigo Chiossi
Hi Kitzy. If you just click the button, the second activity should start in a state A. if you longpress the button, the activity should start in a state B and go to state A upon releasing the button (In fact, upon releasing the screen, since the button does not exists in the second activity), so i

[android-beginners] Re: How to get child Activity?

2010-04-16 Thread Kitzy
What if you left state b as part of activity 1? Then pressing button or releasing long-press would start activity 2 (with all of state a). Long pressing the button would inflate a view with state b (all inside activity 1) -Kitzy On Apr 16, 6:31 am, Rodrigo Chiossi xrodr...@gmail.com wrote: Hi

[android-beginners] Re: How to get child Activity?

2010-04-15 Thread Rodrigo Chiossi
Thanks for the Answers, but none of them really seems like an option for me. Giving more details about what I am doing: First, the user press a button on the main Activity. When the LongClick triggers, I start the second Activity wich also has a button which should be pressed when the activity

Re: [android-beginners] Re: How to get child Activity?

2010-04-15 Thread Justin Anderson
Not sure how well it would work, but if you REALLY want to do something like this, you cold possibly try to just change the view of your current activity instead of starting a new activity. I wouldn't recommend it and I'm not sure if that will really work... There are lots of people who have

Re: [android-beginners] Re: How to get child Activity?

2010-04-15 Thread Mark Murphy
Rodrigo Chiossi wrote: First, the user press a button on the main Activity. When the LongClick triggers, I start the second Activity wich also has a button which should be pressed when the activity starts and should only be released when the user takes his finger off the screen. Why are you

[android-beginners] Re: How to get child Activity?

2010-04-15 Thread Rodrigo Chiossi
I have already tried 3 different approaches to the problem: The first was this one i described previously, which would be the ideal for my app. The second one, i created an ActivityGroup which was responsible for starting two activities and on LongClick event I was swaping the DecorViews of the

[android-beginners] Re: How to close activities in the navigation stack?

2010-04-15 Thread Stormtap Studios
Oh that does sound like a much better way to do it. Thanks! On Apr 15, 8:59 am, ~ TreKing treking...@gmail.com wrote: On Wed, Apr 14, 2010 at 4:55 PM, Stormtap Studios r...@stormtapstudios.comwrote: Does this make sense? I think you might run into trouble if Android kills your activities

[android-beginners] Re: How to get child Activity?

2010-04-15 Thread Kitzy
What if you start your activity after release? Or use a broadcast receiver? Why do you need the new activity to know when you release? -Kitzy On Apr 15, 10:35 am, Rodrigo Chiossi xrodr...@gmail.com wrote: I have already tried 3 different approaches to the problem: The first was this one i

[android-beginners] Re: How to close activities in the navigation stack?

2010-04-15 Thread Kitzy
Also look into the different flags you can set when you start an activity, under Intent.java -Kitzy On Apr 15, 12:30 pm, Stormtap Studios r...@stormtapstudios.com wrote: Oh that does sound like a much better way to do it.  Thanks! On Apr 15, 8:59 am, ~ TreKing treking...@gmail.com wrote:

[android-beginners] Re: How do I import to eclipse projects that come with the android source?

2010-04-12 Thread Stephen
I've hit this issue as well. I don't know why it happens, but in addition to the first suggestion, I do the following so I can keep everything neatly in my Workspace folder 1) Copy the code you want somewhere else ie. copy android-source/apps/whatever home-dir/whatever 2) Create a new project

[android-beginners] Re: How to display 'Column title' on the top of List ?

2010-04-09 Thread a2ronus
Hi JavaCoffee, I assume that you're using a ListView? 1. To add a header that scrolls with the content, take a look at: http://developer.android.com/intl/fr/reference/android/widget/ListView.html#addHeaderView(android.view.View). 2. For a fixed header, you can take a look at:

[android-beginners] Re: How to display 'Column title' on the top of List ?

2010-04-08 Thread Javacoffee
Hi a2ronus, I mean both cases. Would it be possible? Ciao, On Apr 7, 10:33 pm, a2ronus aaron.jan...@gmail.com wrote: Do you mean a fixed header that always stays on top? Or a header that moves with the content? On 5 apr, 13:09, Javacoffee dear.jinhy...@gmail.com wrote: Hi guys, I'm

[android-beginners] Re: How do I import to eclipse projects that come with the android source?

2010-04-08 Thread Gibson
Is it caused by you have already create a project called AlarmClock under your eclipse workspace. From my experience that when import another Android project you cannot put the project into eclipse workspace. It will cause this project. You can try like this. Put your project under folder

[android-beginners] Re: How to connect to a robot.

2010-04-07 Thread Alan Gauld
cellurl gpscru...@gmail.com wrote is there wifi? or just cellular... Not sure how generic it is but my Samsung certainly has WiFi as well as cellular connectivity. Once set up it uses WiFi when its available and switches to cellular when its not - so far as I can tell, but I haven't set

[android-beginners] Re: How to display 'Column title' on the top of List ?

2010-04-07 Thread a2ronus
Do you mean a fixed header that always stays on top? Or a header that moves with the content? On 5 apr, 13:09, Javacoffee dear.jinhy...@gmail.com wrote: Hi guys, I'm  a new follower in android and facing the problem of displaying List data in android programming. Yes, I agree with that it

[android-beginners] Re: How to connect to a robot.

2010-04-07 Thread cellurl
I am looking for the cheapest solution. So USB is probably it. thanks -- 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/questions/tagged/android To

[android-beginners] Re: How can I find out if I read the GPS signal

2010-04-07 Thread davemac
The call to requestLocationUpdates is where you've got trouble. The first argument should be the name of the provider sending you updates (GPS or cell network). To get regular updates from GPS, you want something like the following: LocationManager locMgr = (LocationManager)

[android-beginners] Re: How to connect to a robot.

2010-04-06 Thread Alan Gauld
cellurl gpscru...@gmail.com wrote I want to control something external using Android. Q3: Are there any other interfaces I might be missing? GPIO pins or something? Android robot groups?? Wireless using IP/SSL or Bluetooth? Just a thought. -- Alan Gauld Author of the Learn to Program web

[android-beginners] Re: How to connect to a robot.

2010-04-06 Thread DonFrench
I have an Android app in development that uses Bluetooth to control this robotic camera mount: http://www.thegadgetworks.com/. On Apr 5, 7:45 pm, cellurl gpscru...@gmail.com wrote: I want to control something external using Android. Q1: Can I have two-RFCOMM channels running at the same

[android-beginners] Re: How to connect to a robot.

2010-04-06 Thread cellurl
is there wifi? or just cellular... On Apr 6, 2:39 am, Alan Gauld alan.ga...@btinternet.com wrote: cellurl gpscru...@gmail.com wrote I want to control something external using Android. Q3: Are there any other interfaces I might be missing? GPIO pins or something? Android robot groups??

[android-beginners] Re: How to connect to a robot.

2010-04-06 Thread cellurl
I want to create a Bluetooth channel for the robot, while the owner is possibly already on a separate phonecall using Bluetooth. My question is, can I create -two- separate bluetooth channels at the same time? -jp On Apr 6, 9:47 am, DonFrench dcfre...@gmail.com wrote: I have an Android app in

[android-beginners] Re: How to connect to a robot.

2010-04-06 Thread DonFrench
I do not believe that is possible. A Bluetooth device can only be connected to one Bluetooth device at a time to the best of my knowledge. On Apr 6, 9:31 am, cellurl gpscru...@gmail.com wrote: I want to create a Bluetooth channel for the robot, while the owner is possibly already on a

[android-beginners] Re: How to connect to a robot.

2010-04-06 Thread cellurl
Thanks for that. So I will pursue USB and use a dock I guess. USB is probably more appropriate... -- 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

[android-beginners] Re: How to get a list of Applications in Android

2010-04-04 Thread alexk-il
Hi Justin, Thanks a lot for your help. Next time I'll try harder to look for the answer on the web. Best Alex On Apr 3, 6:53 pm, Justin Anderson janderson@gmail.com wrote: Very similar questions have been asked before... and I have answered them. Have you even attempted to find out for

Re: [android-beginners] Re: How can i integrate facebook connect api in any android application?

2010-04-02 Thread Kevin Duffey
Did you make sure to set your FB to developer mode.. or whatever it is, so you can access it? I haven't looked much into it. There is a REST api for FB that you can use as well. some facebok.com/rest.php or something like that On Thu, Apr 1, 2010 at 1:20 PM, wahib haq wahib.t...@gmail.com

[android-beginners] Re: how to dynamically create buttons?

2010-04-02 Thread paresh mayani
i think this will help you Button b = new Button(this); b.setText(Dynamic Button); b.setLayoutParams(new LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.WRAP_CONTENT)); On Apr 2, 11:13 am, mnavlani monishanavl...@gmail.com

[android-beginners] Re: how to dynamically create buttons?

2010-04-02 Thread mnavlani
thanks paresh! i think this might help.. hey, actually,the server would return an image at runtime. Now i want to use this image for the dynamically created imagebutton...how can this be done?? regards! -- You received this message because you are subscribed to the Google Groups Android

[android-beginners] Re: How can i integrate facebook connect api in any android application?

2010-04-02 Thread Maxood
FYI: http://stackoverflow.com/questions/2544295/how-can-i-integrate-facebook-api-in-any-android-application Wonder if you're based in Karachi. I'm working on the same task as you. Please do call me on 0321-368-9818. On Mar 31, 5:10 am, wahib haq wahib.t...@gmail.com wrote: hello experts !!

[android-beginners] Re: How to save a file to res/raw ?

2010-04-02 Thread Kritzli
Hm, good idea. I don't know if it's possible. But I'll give it a try. On 2 Apr., 01:02, Sebastián Treu sebastian.t...@gmail.com wrote: On Thu, Apr 1, 2010 at 9:05 AM, Kritzli pfister.ta...@googlemail.com wrote: I'm not sure if it's possible to rewrite the code in java. Looking up at the Doc,

Re: [android-beginners] Re: how to dynamically create buttons?

2010-04-02 Thread ~ TreKing
On Fri, Apr 2, 2010 at 2:28 AM, mnavlani monishanavl...@gmail.com wrote: Now i want to use this image for the dynamically created imagebutton...how can this be done?? If you take 2 seconds to read the documentation on ImageButton you will find that it's quite simple to set which image it

Re: [android-beginners] Re: How to block incoming call in Android?

2010-04-02 Thread jitendra kumar
mute the ringer is not a solution at all. According to my finding , there are two way of blocking incoming call: 1) using Phone Object 2) using AT command to modem --- for first approach i am not able to get Phone object. We need to find out how can we get Phone object using below function

[android-beginners] Re: How to save a file to res/raw ?

2010-04-01 Thread Kritzli
I'm not sure if it's possible to rewrite the code in java. Looking up at the Doc, if there's a way to create a keyboard without any xml I found this one: public Keyboard (Context context, int layoutTemplateResId, CharSequence characters, int columns, int horizontalPadding) but, int

[android-beginners] Re: How can i integrate facebook connect api in any android application?

2010-04-01 Thread Ali Asghar
i just tested fbconnect and successfully logged in and posted a comment to my news feed. So im positive it works. if u did use the code from samples then ull have to share the Mainactivity class code and ur manifest so that the issue can be resolved. On Mar 31, 6:10 pm, wahib haq

Re: [android-beginners] Re: How can i integrate facebook connect api in any android application?

2010-04-01 Thread wahib haq
dear ali thanks for ur response. I'll share my data as well tomorrow as i dont have it rite now. But can you plz mail me your project folder to wahib.t...@gmail.com so that i can test it and see if i need to make any changes. Do instruct me if i need to make any extra changes other than adding

[android-beginners] Re: How to save a file to res/raw ?

2010-03-31 Thread Kritzli
Thanks for your replies. That are bad news for me. Hm, if i cant't save them to res/raw directory, i still can write and read them to the local data store, can't i ? I mean can I access data/data/my_app_name/files/filename ? -- You received this message because you are subscribed to the Google

Re: [android-beginners] Re: How to save a file to res/raw ?

2010-03-31 Thread Mark Murphy
Kritzli wrote: Thanks for your replies. That are bad news for me. Hm, if i cant't save them to res/raw directory, i still can write and read them to the local data store, can't i ? I mean can I access data/data/my_app_name/files/filename ? Yes. Files that ship with the application (e.g.,

[android-beginners] Re: How to save a file to res/raw ?

2010-03-31 Thread Kritzli
Great. This is what I wanted to know :) But, there's the next question. I'm still trying to create a custom soft keyboard. Therefore I need that xml - file. But how do I load my custom layout file into that ? I mean, the constructor only accepts an int ID. Like mQwertyKeyboard = new

Re: [android-beginners] Re: How to save a file to res/raw ?

2010-03-31 Thread Mark Murphy
Kritzli wrote: Great. This is what I wanted to know :) But, there's the next question. I'm still trying to create a custom soft keyboard. Therefore I need that xml - file. But how do I load my custom layout file into that ? I mean, the constructor only accepts an int ID. Like

[android-beginners] Re: How to save a file to res/raw ?

2010-03-31 Thread Kritzli
hm, but if i can't write a file to res/layout/ , how can i load my layout ? I think there's the same read-only restriction to res/layout as to res/ raw, isn't it ? On 31 Mrz., 21:50, Mark Murphy mmur...@commonsware.com wrote: Kritzli wrote: Great. This is what I wanted to know :) But,

Re: [android-beginners] Re: How to save a file to res/raw ?

2010-03-31 Thread Mark Murphy
Kritzli wrote: hm, but if i can't write a file to res/layout/ , how can i load my layout ? You can't. You will have to rethink what you are trying to write, to determine how you can create it via Java code. Now, it may be that that Java code you execute uses an XML parser to read an XML file

[android-beginners] Re: How to connect to mysql db directly without any middleWare servers ?

2010-03-30 Thread Torch
On Mar 30, 12:49 am, adel zalok adel.zalok...@gmail.com wrote: Hello , I am trying to search for a way to be able to connect my android app to a mysql database without having to use a PHP server or any middleWare ,so Any Suggestions ? Thanks in Advance !! JDBC works perfectly with MySQL

[android-beginners] Re: How to connect to mysql db directly without any middleWare servers ?

2010-03-30 Thread Networks Geek
Thank you so much , I will Try that !! On Mar 30, 8:31 am, Torch kurian...@gmail.com wrote: On Mar 30, 12:49 am, adel zalok adel.zalok...@gmail.com wrote: Hello , I am trying to search for a way to be able to connect my android app to a mysql database without having to use a PHP server or

Re: [android-beginners] Re: how to get sudoku source coed

2010-03-29 Thread mbaye dieng
Hello, zou can find the sudoku code herehttp://media.pragprog.com/titles/eband2/code/Sudokuv0/src/org/example/sudoku/Sudoku.java . Note that for the main for exemple, you have just to replace /sudoku.java at the end of the link by main.xml. For exemple, the link for the code of the R.java is

[android-beginners] Re: how to get sudoku source coed

2010-03-28 Thread Paul Turchenko
Seriously? On Mar 21, 9:22 pm, narwins nishkal...@gmail.com wrote: HI Every One I m new to the android development. I interested to learn android much n munch. I want to know where I will get source code of sudoku and how to build in eclipse. Please help me, Thank You -- You received

Re: [android-beginners] Re: how to get sudoku source coed

2010-03-28 Thread Pankaj Sharma
lol On Sun, Mar 28, 2010 at 11:39 AM, Paul Turchenko paul.turche...@gmail.comwrote: Seriously? On Mar 21, 9:22 pm, narwins nishkal...@gmail.com wrote: HI Every One I m new to the android development. I interested to learn android much n munch. I want to know where I will get source

[android-beginners] Re: How to block incoming call in Android?

2010-03-27 Thread Sam Lowry
jitendra kumar wrote: I want to develop one call control application on android. As we know android sdk does not provide any API which block incoming call due to security reasion. Is there any possiablity to block incoming call using android open source api;s? Did, you ever work this

[android-beginners] Re: How to call an intent of an installed application

2010-03-26 Thread Dan Liew
To call APN_SETTINGS you would do something like the following: Intent test = new Intent(); test.setAction(android.settings.APN_SETTINGS); startActivity(test); I have only learnt one way to start other intents in my applications and that is by explicitly referencing the package name and

[android-beginners] Re: How to call an intent of an installed application

2010-03-26 Thread Kitzy
If that application has an action asociated with it's intent, you should use that: Example: Intent i = new Intent (com.abc.INTENT_ACTION); startActivity (i); If it doesn't have an action, you could try to call it with the package name and class, although I don't know if it will let you call it

[android-beginners] Re: how to use touch screen on the emulator

2010-03-26 Thread Lazarus
I think touch = click, so OnClick = OnTouch. Take it easy On Mar 18, 10:10 am, mamila amt...@yahoo.com wrote: Hi all, my friend is trying to develop locale application that recognizes text entry using a touch screen input method. unfortunately, he was unable to figure out how to change the

Re: [android-beginners] Re: How to know the size of a file in adb shell prompt

2010-03-19 Thread rocky84 rocky84
Hello pskink all, i am more inerested in size of a particular file rather than other details as with ls -l command. i issued the below commands utility in perl to calculate the size of a file abc.txt *system(adb shell cd /data/app); $filename = abc.txt; $size_of_file = -s $filename; print The

Re: [android-beginners] Re: How to know the size of a file in adb shell prompt

2010-03-19 Thread Mark Murphy
rocky84 rocky84 wrote: Hello pskink all, i am more inerested in size of a particular file rather than other details as with ls -l command. i issued the below commands utility in perl to calculate the size of a file abc.txt *system(adb shell cd /data/app); $filename = abc.txt;

[android-beginners] Re: How to know the size of a file in adb shell prompt

2010-03-18 Thread skink
On Mar 17, 5:34 pm, rocky84 rocky84 hulkman...@gmail.com wrote: *Hello all, i want to extract the size of a file in adb shell using some perl utility. this works fine for me as below in windows but does not work in adb shell prompt (#) i used this function in windows stat($filename);

[android-beginners] Re: How can I catch a ring event?

2010-03-18 Thread Andreas
Hi, In TelephonyManager there's a method called listen. If you provide that with a PhoneStateListener, you can use the callback method onCallStateChanged to listen to the events CALL_STATE_IDLE, CALL_STATE_RINGING and CALL_STATE_OFFHOOK. Good luck! Andreas On Mar 12, 11:17 pm, df

[android-beginners] Re: How to use built in email application to send email from my application

2010-03-17 Thread Gulfam
Hi Satish Check this working for me: public void launchEmailActivity(){ final Intent emailIntent = new Intent(android.content.Intent.ACTION_SEND); emailIntent .setType(plain/text); emailIntent .putExtra(android.content.Intent.EXTRA_EMAIL, new

[android-beginners] Re: How to make a Widget start an app?

2010-03-16 Thread Ne0
If you want to start an app and only start an app, you should just put a shortcut to the app on your home screen. If its an individual activity you wanted to start, you could do something similar to this: public class Widget extends AppWidgetProvider { @Override public void

[android-beginners] Re: How I get values from a ListPreference??

2010-03-04 Thread JGabiMark
I did it! Thanks a lot! On Mar 2, 10:41 pm, TreKing treking...@gmail.com wrote: On Mon, Mar 1, 2010 at 4:14 PM, JGabiMark jgabim...@gmail.com wrote: Now I want to get the value clicked in the ListPreference, in the java class. How can I do it? Use the key you've specified in the XML

[android-beginners] Re: How to trace the functions called ? [by the app]

2010-02-24 Thread Naveen DS
Thanks a lot .. I will see to it . fadden wrote: On Feb 23, 5:38 am, Naveen DS naveen.cse@gmail.com wrote:   I tried trace view and dmtracedump, but these show info about the System functions rather than the user defined ones in app..br/ The android.os.Debug method tracing shows all

[android-beginners] Re: How to trace the functions called ? [by the app]

2010-02-23 Thread fadden
On Feb 23, 5:38 am, Naveen DS naveen.cse@gmail.com wrote:   I tried trace view and dmtracedump, but these show info about the System functions rather than the user defined ones in app..br/ The android.os.Debug method tracing shows all methods. It doesn't discriminate based on whether

[android-beginners] Re: How to make gap between two TextViews'?

2010-02-22 Thread jarnaud
Marco's right but here's another method you can explore: adding padding to your textview. Basically it's adding the gap inside the object instead of adding borders. Of course this will not work for you if the background colour of your linear layout and your textviews is different. -- Jay -

[android-beginners] Re: How to download android source code in windows machine

2010-02-19 Thread Kitzy
I have tried adding a sources directory to Android1.5 and unzip the sources zip there (tried different one's people have bundled from different places, including this last one) but keep getting an error when Refreshing external folders java.lang.IllegalArgumentException: Element not found:

[android-beginners] Re: How to style text in string array?

2010-02-19 Thread Mike
Hi Chris, If you want to do something more in line with HTML formatting, then use a WebView. You can either load the html directly into the webview, or load it from an html file packaged with your application. The html file should go in the assets folder. Hope this helps. - Mike On Feb 15,

  1   2   3   4   5   6   7   8   9   10   >