[android-developers] Re: how do I restart my program?

2010-07-09 Thread Matt
Well, it depends on what you mean by "app". If you mean the applications' process, I'm not sure, but I know you can very easily restart an activity. Here's some pseudocode from the top of my head: finish(); startActivity(new Intent(this, YourActivity.class)); On Jul 9, 2:10 pm, ArcDroid wrote:

[android-developers] Re: Calling Activity

2010-07-09 Thread Indicator Veritatis
One does not CALL BroadcastReceivers from Intents. One sends messages to them, usually via an Intent. See, for example, http://developer.android.com/guide/topics/intents/intents-filters.html, which has, among other relevant data: Intent objects passed to any of the broadcast methods (such as Con

[android-developers] Re: How to get all the children views of a layout

2010-07-09 Thread Matt
On Jul 9, 4:44 pm, Indicator Veritatis wrote: > Let's hope there is a better solution! After all, setting layout_width > IS the layout manager's job. Right... and the layout manager does set the width. You can do many things: 1. Set the layout_width to "fill_parent" to always have it as wide

Re: [android-developers] Re: How to get all the children views of a layout

2010-07-09 Thread Romain Guy
Setting layout_width is NOT the layout manager's job. It's set by the user to tell the layout manager how to compute the children's dimensions. On Fri, Jul 9, 2010 at 1:56 PM, Matt wrote: > > > On Jul 9, 4:44 pm, Indicator Veritatis wrote: >> Let's hope there is a better solution! After all, set

[android-developers] Re: android:clickable = true makes layout not clickable?

2010-07-09 Thread Matt
How do you know it isn't clickable? Did you try adding an onClick listener? Just because a view is clickable, does NOT mean it will change background colors when clicked. You have to use to change the backgrounds when something is focused, pressed, etc. -Matt On Jul 8, 5:52 am, dxw_es wrote:

Re: [android-developers] Mapping Application

2010-07-09 Thread TreKing
On Thu, Jul 8, 2010 at 4:34 PM, vineet wrote: > Can some put light to this on how to implement this?? Start here . Besides that, your question is too broad to really answer. --

[android-developers] Re: Installed Application Size vs APK Filesize

2010-07-09 Thread John
Is there a technical reason why it takes up that much space? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-deve

Re: [android-developers] Re: Installed Application Size vs APK Filesize

2010-07-09 Thread Mark Murphy
On Fri, Jul 9, 2010 at 5:05 PM, John wrote: > Is there a technical reason why it takes up that much space? As opposed to a non-technical reason? I'm sure there is. Do I know all of the details? No. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commo

[android-developers] Re: what hardware platform do you use?

2010-07-09 Thread Indicator Veritatis
It may seem to you to fit, but that is only because, as I said, you are not interpreting basic English logically. That is the point I have been trying to explain to you all this time. Yet you miss it every time, preferring to see insult instead. Perhaps you will get it from an example of a truly o

[android-developers] HELP

2010-07-09 Thread Mark
Ok, don't hate me people, I come from Visual Studio. I need help. How do I get the code for Android? I've been converted (I love my Droid Incredible) Please help. I'm running on Windows 7 I do have Eclipse running I have managed to make a few small programs. Thanks Mark

Re: [android-developers] HELP

2010-07-09 Thread TreKing
On Fri, Jul 9, 2010 at 4:21 PM, Mark wrote: > How do I get the code for Android? It's really this easy . - TreKing - Chicago transit tracking app for Androi

[android-developers] Re: what hardware platform do you use?

2010-07-09 Thread Indicator Veritatis
Well, congratulations to John on the success of his app. But you seem to be implying that that is where he is getting his 88% figure from, and if you ever took even just one semester of statistics in college, you should know what an unreliable sample downloads of his app are. Why, even the figure

Re: [android-developers] Manifest android:versionCode question

2010-07-09 Thread TreKing
On Thu, Jul 8, 2010 at 9:35 PM, Rob wrote: > Is the integer a 4-byte integer with a range of -2,147,483,648 to > +2,147,483,647 or is it only a 2 byte integer with a range of -32,768 to > +32,767 ? > Does it really matter? I highly doubt you'll be updating you app over 32,767 times. Unless of co

RE: [android-developers] HELP

2010-07-09 Thread Mark
I know that part, but Can it be built in Eclipse? I told you I am come from Microsoft. (I've been converted) now LOL -Mark From: android-developers@googlegroups.com [mailto:android-develop...@googlegroups.com] On Behalf Of TreKing Sent: Friday, July 09, 2010 4:25 PM To: android-develo

[android-developers] how to set setImageResource to null

2010-07-09 Thread ArcDroid
hello, I have a picture in the setImageResource, but I want to make it null; so far I am using i.setImageResource(1), but would like to know a better way. Thanks jake -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, se

Re: [android-developers] HELP

2010-07-09 Thread Mark Murphy
On Fri, Jul 9, 2010 at 5:34 PM, Mark wrote: > I know that part, but Can it be built in Eclipse? I told you I am come from > Microsoft. (I’ve been converted) now LOL OK, I'm confused. Are you trying to build Android (the OS), or applications for Android? -- Mark Murphy (a Commons Guy) http://com

[android-developers] Re: ADB over TCP/IP?

2010-07-09 Thread Austin
On Jun 15, 12:54 pm, sws-vinpa wrote: > I believe by default 'adbd' listens on port .  If you do a > 'netstat' on your Android device, you should see: > tcp        0      0 0.0.0.0:           0.0.0.0:* > LISTEN > > The command to connect is: > > adb connect ip:port > > Let me know how you

Re: [android-developers] Flickr and Facebook

2010-07-09 Thread TreKing
On Fri, Jul 9, 2010 at 2:49 PM, David Toledo wrote: > Where can found some API the Flickr and Facebook for android? Filckr Facebook Yes, it really is that easy. --

Re: [android-developers] Prefill databases

2010-07-09 Thread TreKing
On Fri, Jul 9, 2010 at 3:10 PM, Jaap wrote: > I have a program that needs a fixed database to do lookups of some data. > Is there a way to easily fill such a database by just putting the data in > a file or so > Yes, just create the database you need, populate it, and include in your app. What's

Re: [android-developers] HELP

2010-07-09 Thread TreKing
On Fri, Jul 9, 2010 at 4:34 PM, Mark wrote: > I know that part I couldn't tell by your question, which I quote: "How do I get the code for Android?" > Can it be built in Eclipse? Ah, see, that's quite a different question, isn't it? If that's what you wanted to know, I think that's what you

Re: [android-developers] Re: Example gallery style view with fling, bounce, animation, etc

2010-07-09 Thread Australuke
No, original del key problem remains. Actually i never got any response to my original questions about it. If I were you I would be tempted to pull a copy of the android gallery class source code into your project and start commenting out code until the problem goes away. I often find this is a qui

[android-developers] Application Lifecycle Questions.

2010-07-09 Thread Ubuntu Explorer
Hi, I have the following questions about application lifecycle. 1. Activity 1 of Task 1 (affinity 1) starts Activity 2 (affinity 1, allowTaskReparenting ) of Task 2 (affinity 2) using Intent with FLAG_ACTIVITY_NEW_TASK. But, Activity 2 is already part of task 2 stack. Will activity2 move from task2

[android-developers] Re: startForeground() broken on Incredible

2010-07-09 Thread Peter Jeffe
Submitted as http://code.google.com/p/android/issues/detail?id=9663: On the Incredible (and possibly other devices) the process is always put in the background scheduling group when it doesn't have a visible activity, even though the app's service has called startForeground(). This causes it to ge

[android-developers] Re: startForeground() broken on Incredible

2010-07-09 Thread Peter Jeffe
http://code.google.com/p/android/issues/detail?id=9663 that is. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-d

Re: [android-developers] Re: startForeground() broken on Incredible

2010-07-09 Thread Mark Murphy
On Fri, Jul 9, 2010 at 7:54 PM, Peter Jeffe wrote: > As a result, our > thousands of users on the Incredible won't be able to use our > equalizer function. Well, they should be able to use it if they keep your activity in the foreground, right? What they can't do is multitask or launch your playe

[android-developers] Re: what is context?

2010-07-09 Thread cindy
Thanks! On Jul 9, 11:12 am, Mark Murphy wrote: > On Fri, Jul 9, 2010 at 2:04 PM, cindy wrote: > > A very silly question, What is Context? > > It is a class. > > > How to get it? > > Activity is a subclass of Context. Service is a subclass of Context. > BroadcastReceiver gets a Context object in

[android-developers] Re: what is context?

2010-07-09 Thread Indicator Veritatis
All this is true, but it doesn't really answer the question. Why, for example, are all these things inheriting from one class, and why is that class named 'Context'? I think the OP will have a better feel for what a Context is by reading the Class Overview in the online reference, which does a pre

[android-developers] program crashes once sdk version added to manifest

2010-07-09 Thread ArcDroid
running v1.6 and having a problem with crashing...works if I take out the sdk line. tried... http://schemas.android.com/apk/res/android"; package="com.arcdroid.jack" android:versionCode="2" android:versionName="1.2">

Re: [android-developers] Re: Installed Application Size vs APK Filesize

2010-07-09 Thread Dianne Hackborn
It's because a version of the .apk needs to be available read-only to all applications, so they can pull things like labels and icons from it. So to install a forward-locked app, the real .apk is only readable by its app, and a fake world-readable .apk is also created that has a copy of the real .

[android-developers] How to change list Item's focus color

2010-07-09 Thread cindy
Hi I have a list. I can set the back ground color , press color, and fosusing color in listbg.xml (selector). However the focus color doesn't work at all. The list item never get focus. Do I need to wrote code for focus? My code: listbg.xml http://schemas.android.com/apk/res/android";> li

[android-developers] how to get focus id for a list

2010-07-09 Thread cindy
Hi , For a ListView, how could I get the focus ID? It seems there is no API. Am I right? Thanks! Cindy -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscrib

[android-developers] Re: Knowing when someone sets device to 2G only

2010-07-09 Thread Indicator Veritatis
That sounds like doing a little too much for them. But if you really want to wipe their noses for them like that, then I think either android.provider.Settings or android.provider.Settings.System has what you want. But I admit I didn't do an exhaustive search. On Jul 9, 9:11 am, Craig wrote: > I

[android-developers] Re: startForeground() broken on Incredible

2010-07-09 Thread Peter Jeffe
On Jul 9, 7:16 pm, Mark Murphy wrote: > Well, they should be able to use it if they keep your activity in the > foreground, right? What they can't do is multitask or launch your > player from an app widget. You're right, and we'll be notifying them of that (lots of fun compacting that message int

Re: [android-developers] program crashes once sdk version added to manifest

2010-07-09 Thread Mark Murphy
On Fri, Jul 9, 2010 at 8:23 PM, ArcDroid wrote: > running v1.6 and having a problem with crashing...works if I take out > the sdk line. Use adb logcat, DDMS, or the DDMS perspective in Eclipse to examine the Java stack trace, to find out where things are going wrong. -- Mark Murphy (a Commons G

Re: [android-developers] Re: what hardware platform do you use?

2010-07-09 Thread Dianne Hackborn
On Fri, Jul 9, 2010 at 2:25 PM, Indicator Veritatis wrote: > Why, even the figure Google likes to use, the source for my 45% using > 1.5 or 1.6, is far from ideal: but it is almost certainly a better > measure of the number of phones out there with given version# than > downloads of even a wildly

Re: [android-developers] double tap zoom on Google maps

2010-07-09 Thread zeeshan mirza
Anyone who can help me BR, shan On Fri, Jul 9, 2010 at 12:28 AM, zeeshan mirza < zeeshan.nabeel.mi...@gmail.com> wrote: > I am now forwading touch event to gestureDetector but let me know what to > add more ? > > > @Override > > *public* *boolean* onTouchEvent(MotionEvent event){ > > *this*

Re: [android-developers] Camera preview - strange on Samsung Galaxy S (2.1update1)

2010-07-09 Thread dan raaka
what verison does your device have ? use below .. $adb shell getprop | grep fingerprint -Dan On Fri, Jul 9, 2010 at 9:39 AM, Mathias Lin wrote: > In my activity I show the camera preview on a surfaceView. It works > perfectly fine on Nexus One (2.1update1, 2.2) and HTC Desire (2.1update1), > bu

[android-developers] Re: Trying to compile the Voice Dialer, need help...

2010-07-09 Thread Nazgulled
I posted there already, nobody answers me too :( On Jul 8, 12:42 pm, RichardC wrote: > You might stand more chance of a response > in:http://groups.google.com/group/android-platform > > /Richard > > On Jul 8, 9:38 am, Nazgulled wrote: > > > Any help please? -- You received this message becaus

[android-developers] Re: how to set setImageResource to null

2010-07-09 Thread Lance Nanek
I've done that before by calling one of the other setImage* methods that takes an object. Something like setImageDrawable(null), etc.. On Jul 9, 5:37 pm, ArcDroid wrote: > hello, > I have a picture in the setImageResource, but I want to make it null; > so far I am using i.setImageResource(1), but

[android-developers] Re: Cannot find the culprit file in my android project even after expanding the main folder

2010-07-09 Thread varun
even then if you cant get rid of that red mark. go to problems view and right click on the problem and delete the problem. varun On Jul 9, 11:46 pm, RichardC wrote: > Do > > Project > Clean ... > > Then look at either Problems or the Console view(s) > > /Richard > > On Jul 9, 12:07 pm, vaibhavpa

[android-developers] Re: program crashes once sdk version added to manifest

2010-07-09 Thread ArcDroid
crazy, it says I ran out of memory when I had the sdk line in. On Jul 9, 5:44 pm, Mark Murphy wrote: > On Fri, Jul 9, 2010 at 8:23 PM, ArcDroid wrote: > > running v1.6 and having a problem with crashing...works if I take out > > the sdk line. > > Use adb logcat, DDMS, or the DDMS perspective

Re: [android-developers] Re: Unable to Install .apk

2010-07-09 Thread diptendu das
Thank you Dr. Mike. now its workin.. On Thu, Jul 8, 2010 at 10:44 AM, Dr. Mike wrote: > The app has an AndroidManifest file which specifies (usually) the > lowest level of device your app will run on. If your app is building > under 2.2 (sdk 8) and your phone is 2.0 (sdk 7) it will not install

[android-developers] Re: HELP

2010-07-09 Thread Al Sutton
You can't build the OS in eclipse unless you want to create a new build system, but you can create and build apps to run on Android in it. Al. On Jul 9, 11:28 pm, TreKing wrote: > On Fri, Jul 9, 2010 at 4:34 PM, Mark wrote: > > I know that part > > I couldn't tell by your question, which I quot

[android-developers] Change Text Size and TypeFace

2010-07-09 Thread Ramya S
As far as i have checked we cannot change the typeface and size of the textview with states in xml. Is there any way i can do it?? I want to change the size of the text and typeface with states (focus, selected etc). I am trying to change the textsize of the tabs in framework. Any solutions? -- Y

[android-developers] Re: program crashes once sdk version added to manifest

2010-07-09 Thread ArcDroid
well, I had to many pictures which gave a memory dump, only after adding the sdk in the manifest...doesn't make much sense to me On Jul 9, 10:13 pm, ArcDroid wrote: > crazy, it says I ran out of memory when I had the sdk line in. > > On Jul 9, 5:44 pm, Mark Murphy wrote: > > > On Fri, Jul 9,

[android-developers] How to get selected text from EditView and color it

2010-07-09 Thread monty
hey everyone Culd any1 please tell me how to get the selected text from a from EditView .I am using getStartSelection and getEndSelction method to get the start and end position.But after that how do i get the text and where do i store it and then change its color. Monty -- You received this

[android-developers] Re: Installed Application Size vs APK Filesize

2010-07-09 Thread keno
Dianne, can you give any guidance on when to use copy protection and when not to? I have it enabled on an app, but after a few updates it's starting to grow because I need to have graphic resources for the different densities. I'm considering disabling copy protection to reduce install size but I

<    1   2   3