[android-developers] Re: Can I have a service run as a seperate process?

2012-05-28 Thread Put_tiMe
If i do that i get an error while installing saying: Installation error: INSTALL_PARSE_FAILED_MANIFEST_MALFORMED Please check logcat output for more details. Launch canceled! But logcat doesn't show anything. On Tuesday, May 29, 2012 11:07:25 AM UTC+5:30, imran ali wrote: > > Hi, > use android

Re: [android-developers] Can I have a service run as a seperate process?

2012-05-28 Thread Kristopher Micinski
Along with TreKing's understandable response, splitting the app into two processes and then doing IPC between them is also going to be a real pain, and potentially pretty heavyweight. kris On Tue, May 29, 2012 at 2:35 AM, Put_tiMe wrote: > There are two services. Out of them one is a work horse.

Re: [android-developers] Can I have a service run as a seperate process?

2012-05-28 Thread TreKing
On Tue, May 29, 2012 at 1:35 AM, Put_tiMe wrote: > If on, then when I see battery usage, my whole package comes up on top. So what? If the user turned your service on, they would expect the battery hit, no? ---

Re: [android-developers] Regarding Gps on Android Gingerbread.

2012-05-28 Thread TreKing
On Tue, May 29, 2012 at 1:08 AM, yogendra G wrote: > I need to display current longitude and latitude where am staying at > present location and my code works fine for android 2.3 below os but not > for android 2.3 version. There should be no difference. Perhaps you can elaborate on how your co

Re: [android-developers] Can I have a service run as a seperate process?

2012-05-28 Thread Put_tiMe
There are two services. Out of them one is a work horse. While the other one is not. And the work horse service is something that the user chooses to turn on or off. If on, then when I see battery usage, my whole package comes up on top. I don't want that. If the work horse service is running, t

Re: [android-developers] Can I have a service run as a seperate process?

2012-05-28 Thread Kristopher Micinski
wait, why do you want to do this? kris On Tue, May 29, 2012 at 1:21 AM, Put_tiMe wrote: > I have a package, in which I have "n" activities and "2" services. > > Out of the two services, I want one service to run as part of the package, > whereas the other service, I want to run as part of a diff

[android-developers] Regarding Gps on Android Gingerbread.

2012-05-28 Thread yogendra G
Hi All, I need to display current longitude and latitude where am staying at present location and my code works fine for android 2.3 below os but not for android 2.3 version. So,please help me out by giving some sample code or links where the code works for android 2.3.x.x versions. Thanks in Adv

[android-developers] Re: Can I have a service run as a seperate process?

2012-05-28 Thread imran ali
Hi, use android:process="processName" this in AndroidManifest.xml. this will helpful http://developer.android.com/guide/topics/manifest/application-element.html#proc Regards Imran Ali On Tuesday, May 29, 2012 10:51:50 AM UTC+5:30, Put_tiMe wrote: > > I have a package, in which I have "n" activit

[android-developers] Can I have a service run as a seperate process?

2012-05-28 Thread Put_tiMe
I have a package, in which I have "n" activities and "2" services. Out of the two services, I want one service to run as part of the package, whereas the other service, I want to run as part of a different process. Is this possible? -- You received this message because you are subscribed to th

[android-developers] Issue

2012-05-28 Thread android developer
While running my app I am getting this message "GC_EXTERNAL_ALLOC freed 296K, 46% free 3251K/5959K, external 1676K/1903K, paused 51ms" any one pls help me on this issue. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group,

[android-developers] Re: Porting of Android Open Accessory

2012-05-28 Thread Mark Meisner
Did you ever get this working? I am trying to accomplish something similar. On Monday, December 12, 2011 4:15:36 AM UTC-5, Bhargav wrote: > > Hi All > > This is Vinod from India, We are trying to port the Accessory protocol > from the Arduino ADK to a Freescale iMX35 board, We are using beagle >

Re: [android-developers] Hardware accelerated Canvas.drawPicture support (or recommended alternatives)

2012-05-28 Thread Romain Guy
It's exactly what the WebView does and it's usually the best approach when you have possibly hundreds of graphics primitives. Note that the way we use display lists in the UI toolkit allows for fast and efficient culling. On Sun, May 27, 2012 at 10:26 AM, Josh Guilfoyle wrote: > Thanks for the qu

[android-developers] Override OnKeyPreIme of an EditText getted from a View

2012-05-28 Thread tete
Hello people, I want to override the OnKeyPreIme method of a EditText got from a findByView(int id), to make the activitiy finish() when user press back key. The only way I thought is creating a custom EditText and overriding OnKeyPreIme, but when I tried to cast the EditText of my view in my c

Re: [android-developers] what if package is uninstalled while another package holds its Context?

2012-05-28 Thread TreKing
On Mon, May 28, 2012 at 3:10 PM, Latimerius wrote: > Say package A gets a package B's Context by calling > > Context pkgBctx = createPackageContext ("B", 0); > Read the summary for that method. This is not "getting" package B's Context. This is creating a Context that refers to that package. Cont

Re: [android-developers] Ball Racing

2012-05-28 Thread TreKing
On Mon, May 28, 2012 at 2:34 PM, Jagadeesh wrote: > iam making game application ,i have designed gameplate with background and > grid with canvas and paint . > > i need insert one ball with screen keepon coming from top of the screen > how to implement ,i was trying insert image but background do

Re: [android-developers] image partition according to matrix like 4*3

2012-05-28 Thread TreKing
On Mon, May 28, 2012 at 10:18 AM, ANKUR GOEL wrote: > i need help in drawing rows * columns for bitmap and it should support all > matrix upto 4* 4. > using canvas > any help would be appreciated . > Your post has almost no information. Thus, you will probably get no useful response. Read this,

Re: [android-developers] Android Lateral List (navigation)

2012-05-28 Thread TreKing
On Mon, May 28, 2012 at 9:31 AM, Davyd Melo wrote: > What library/class can I use? Try the Android SDK / ListView. Also try reading the documentation for two seconds - there are tons of examples of the main view types, this being one of them. ---

Re: [android-developers] How to get a reference to the stock launcher activity object?

2012-05-28 Thread Mark Murphy
What you want is impossible, for obvious security reasons. Launcher2 is not your app. You did not write that app. You cannot "get a reference to the launcher activity object" in your own app's process, any more than you can "get a reference to the user's preferred banking activity object, so I can

Re: [android-developers] Re: launching an app

2012-05-28 Thread TreKing
On Mon, May 28, 2012 at 1:01 AM, sourabh sahu wrote: > Can you please suggest some code? Read the docs, or do a simple Google search - launching apps via intents is Android 101. - TreKing

Re: [android-developers] How to get a reference to the stock launcher activity object?

2012-05-28 Thread Daniel
The main aim of this hack is to study the placement of the shortcuts on the screens. If I would force another launcher on the study participants, they would have to rearrange all the shortcuts and widgets again, so that this step would distort the collected data. -- You received this message b

Re: [android-developers] Re: noob developer, application keeps restarting

2012-05-28 Thread Mark Murphy
On Mon, May 28, 2012 at 4:56 PM, Yan wrote: > Thanks for the idea "to pull out the battery" notification! You > guessed right about the category of "people treating Android like > Linux". Which begs the question of what system call would you use if > your app's data got corrupted and the final() c

[android-developers] Re: noob developer, application keeps restarting

2012-05-28 Thread Yan
Oops, I meant finish(), not final()... >Thanks for the idea "to pull out the battery" notification! You guessed right >about the category of "people treating >Android like Linux". Which begs the >question of what system calls would you use if your app's data got corrupted >>and the final() coul

[android-developers] Re: noob developer, application keeps restarting

2012-05-28 Thread Yan
Thanks for the idea "to pull out the battery" notification! You guessed right about the category of "people treating Android like Linux". Which begs the question of what system call would you use if your app's data got corrupted and the final() call could not handle it. Would you consider it permis

[android-developers] what if package is uninstalled while another package holds its Context?

2012-05-28 Thread Latimerius
Say package A gets a package B's Context by calling Context pkgBctx = createPackageContext ("B", 0); While package A is holding on to and using pkgBctx, package B gets uninstalled. What is supposed to happen then? According to my tests and much to my surprise, package A seems to be able to use

[android-developers] Ball Racing

2012-05-28 Thread Jagadeesh
Hi iam making game application ,i have designed gameplate with background and grid with canvas and paint . i need insert one ball with screen keepon coming from top of the screen how to implement ,i was trying insert image but background domainating can any one help this. here my code: package co

[android-developers] SyncAdapter for more than one account-types

2012-05-28 Thread Andreas Ka
Is it possible to have a syncadapter for several account-types? (e.g. com.google and com.facebook.auth.login) It seems the syncadapter.xml just accepts a single value like: http://schemas.android.com/apk/res/android"; android:contentAuthority="com.foo" android:accountType="com.googl

Re: [android-developers] android:onClick and fragments

2012-05-28 Thread Dianne Hackborn
The ultimate reason is because android:onClick is implemented by looking for the method on the view's Context, which will (usually) be your Activity. Views have no concept of fragments, so there is no way for them to find a method on a fragment or know what fragment they should even be looking at.

Re: [android-developers] Re: reduce size of a screen

2012-05-28 Thread jadranko bodiroga
..i found on internet that i can define this in Android manifest,is it gona help?: -- 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,

[android-developers] Re: Difference btwn following methods

2012-05-28 Thread G. Blake Meike
If you have a concern, you probably ought to look at the bytecodes. Honestly, I can't imagine what kind of concern there might be at this level but, if you have one, that's the way to resolve it. I mean, this isn't J2ME or anything... G. Blake Meike Marakana The second edition of Programming

[android-developers] Why the Bitmap will disappear

2012-05-28 Thread Perry168
Hi, I am using the Camera class to make the bitmap rotate in X-Axis. When the bitmap rotated around 60 degrees, it will disappear. After certain degree, the bitmap appears again. Can anyone tell me how making the bitmap can flip correctly? -- You received this message because you are subsc

Re: [android-developers] notifydataset changed not working for listview

2012-05-28 Thread Narendra Singh Rathore
> > HI friends. > > I have listview of 4 items, each row has a remove, when i click on it, the > particular listview row is removed. > After removing 3 items, when i remove the fourth item it is not getting > removed. > It seems your notifydatasetchanged is being called until the third time, but

[android-developers] notifydataset changed not working for listview

2012-05-28 Thread vani reddy
HI friends. I have listview of 4 items, each row has a remove, when i click on it, the particular listview row is removed. After removing 3 items, when i remove the fourth item it is not getting removed. Below is my getView method @Override public View getView(final int position, View convertVi

[android-developers] IOException thrown by AccountManagerFuture.getResults whereas connection is alive

2012-05-28 Thread Julien Martin
Hello, The following method systematically throws a IOException when invoked on my Android device whereas the internet connection is alive (I can retrieve emails or connect to gmail using my Android device). Can anyone please help? private void performAuthentication() { Log.d("GAWidget", "p

Re: [android-developers] Re: XML parseing working in android 2.2 but not in android 4.0

2012-05-28 Thread RAJESH RAJARAM
Hi Bhaumik Thaker, I too suffered by the same error but for me its running upto 3.0... Only 4.0 making the problem. If u got the solution please post it here. i'm searching the solution last 5 days :(* * Rajesh Rajaram -- You received this message because you are subscribed to the Googl

Re: [android-developers] Camera preview sizes on Galaxy Nexus (ICS)

2012-05-28 Thread Alex Cohn
On Monday, May 28, 2012 1:48:35 PM UTC+3, Mark Murphy (a Commons Guy) wrote: > > On Mon, May 28, 2012 at 2:39 AM, Alex Cohn wrote: > > but also exposes a problem with the > > Camera API of Android: there is no way for Camera.setParameters() to > fail or > > report anything about parameters inco

Re: [android-developers] Re: Using NetworkUtils to add a new route

2012-05-28 Thread Loka Sudharsan
If not through SDK, what are the other methods? On Mon, May 28, 2012 at 4:59 PM, Loka Sudharsan wrote: > Thank u. > > > On Mon, May 28, 2012 at 4:55 PM, Mark Murphy wrote: > >> On Mon, May 28, 2012 at 7:04 AM, Loka Sudharsan >> wrote: >> > Do u know any other way to find the DNS server ip and De

Re: [android-developers] Re: Using NetworkUtils to add a new route

2012-05-28 Thread Loka Sudharsan
Thank u. On Mon, May 28, 2012 at 4:55 PM, Mark Murphy wrote: > On Mon, May 28, 2012 at 7:04 AM, Loka Sudharsan > wrote: > > Do u know any other way to find the DNS server ip and Default gateway ip? > > Not via the Android SDK. > > -- > Mark Murphy (a Commons Guy) > http://commonsware.com | http:

Re: [android-developers] Re: Using NetworkUtils to add a new route

2012-05-28 Thread Mark Murphy
On Mon, May 28, 2012 at 7:04 AM, Loka Sudharsan wrote: > Do u know any other way to find the DNS server ip and Default gateway ip? Not via the Android SDK. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commo

[android-developers] Re: Repeat background

2012-05-28 Thread Kristoffer
Hello. thanks for the reply, i have tryed with the "stretch to fit" to "zoom to fit" and it dident solve the issue on the tablet. And i see this problem on the emulator when i run it on my computer. On 28 Maj, 11:50, Iain King wrote: > On Monday, 28 May 2012 10:38:01 UTC+1, Kristoffer wrote: > >

Re: [android-developers] Re: Using NetworkUtils to add a new route

2012-05-28 Thread Loka Sudharsan
Do u know any other way to find the DNS server ip and Default gateway ip? On Mon, May 28, 2012 at 4:20 PM, Mark Murphy wrote: > NetworkUtils is not part of the Android SDK. You are welcome to write > your own firmware apps that use it, however. > > On Mon, May 28, 2012 at 12:44 AM, Sud wrote:

Re: [android-developers] Re: Using NetworkUtils to add a new route

2012-05-28 Thread Mark Murphy
NetworkUtils is not part of the Android SDK. You are welcome to write your own firmware apps that use it, however. On Mon, May 28, 2012 at 12:44 AM, Sud wrote: > Hi, >     I am new to android and i am making an app. But for this I need to find > Dns servers ip and default gateway for this, so i f

Re: [android-developers] Camera preview sizes on Galaxy Nexus (ICS)

2012-05-28 Thread Mark Murphy
On Mon, May 28, 2012 at 2:39 AM, Alex Cohn wrote: > but also exposes a problem with the > Camera API of Android: there is no way for Camera.setParameters() to fail or > report anything about parameters inconsistency. This is due to backwards compatibility, because getSupportedPreviewSizes() is re

Re: [android-developers] Will google plan to fix bug #26446 in next release?

2012-05-28 Thread Mark Murphy
I am sure that somebody knows. I am equally sure that you will find out when the rest of us find out, sometime after a new version of Android ships. On Sun, May 27, 2012 at 10:05 PM, Chuan Zhou wrote: > Is there anybody know that will google plan to fix bug > #26446(https://code.google.com/p/andr

Re: [android-developers] android:onClick and fragments

2012-05-28 Thread Mark Murphy
On Mon, May 28, 2012 at 5:51 AM, Ralph Bergmann | the4thFloor.eu wrote: > Why the callback method must be in the FragmentActivity class and not in > the Fragment class? Because android:onClick was added in Android 1.6, well before the existence of fragments, and we have not invented a time machin

Re: [android-developers] Manifest settings to distinct phones from tablets

2012-05-28 Thread Mark Murphy
On Mon, May 28, 2012 at 5:33 AM, Александр Куликовский wrote: > The first and the most valuable is the size of the apk, it must be not > greater than 20mb. The Play Store supports 50MB, last I checked. > And cause we have really a lot graphics, we have to make two apks - one for > tablets and

[android-developers] android:onClick and fragments

2012-05-28 Thread Ralph Bergmann | the4thFloor.eu
Hello, In the layout of my fragment I have a ImageButton where I use the android:onClick option. But when I tap on the button I get this error: Failed to handle callback; interface not implemented, callback:android.view.View$PerformClick@410a5308 java.lang.IllegalStateException: Could not find

[android-developers] Re: Repeat background

2012-05-28 Thread Iain King
On Monday, 28 May 2012 10:38:01 UTC+1, Kristoffer wrote: > > Hello. > Iam using a small image and repeats it as a background in my app, > this > is how i do it. > > bgrepeat.png > backgroundrepeat.xml > > > i have them in the drawable folder. > > > This is how the .xml look like. > > >

[android-developers] Re: reduce size of a screen

2012-05-28 Thread Iain King
On Sunday, 27 May 2012 08:31:01 UTC+1, baturanija1 wrote: > > Hej people,i am making an application wich screen has a good dimension > for my phone-HTC DESIRE .there are othes phones who has smaller or > bigger screen...so i am asking is there an option to makk app to > automaticly reduce a size

[android-developers] Repeat background

2012-05-28 Thread Kristoffer
Hello. Iam using a small image and repeats it as a background in my app, this is how i do it. bgrepeat.png backgroundrepeat.xml i have them in the drawable folder. This is how the .xml look like. http://schemas.android.com/apk/res/android"; android:src="@drawable/bgrepeat" android:ti

Re: [android-developers] Manifest settings to distinct phones from tablets

2012-05-28 Thread Александр Куликовский
I'm absolutely agree with yousome users really like to play games in landscape mode on phones. But due to content of the game we decided that playing landscape mode is perfect on large screens (7-10 inches), and we made special features on phone version to make it better for playing and decided

[android-developers] howto dynamically change the "html content" of a listview?

2012-05-28 Thread Gianluca Mazza
Hi everybody, have you idea how to "dynamically" change the content of listview intents using position and only one webview container? Example: lv.setOnItemClickListener(new OnItemClickListener() { public void onItemClick(AdapterView parent, View view,

Re: [android-developers] Re: Difference btwn following methods

2012-05-28 Thread Jovish P
So object for textview is created in both methods. What I thought is object will be created for first method only. Thanks for the clarification Imran Ali Regards, Jovish On Mon, May 28, 2012 at 11:33 AM, imran ali wrote: > Nop, there is no difference, > Both are same it is simple java concept

[android-developers] receiver cannot keep up with sender speed

2012-05-28 Thread yikaikai
hi, all I have a program using two thread receive video stream and play it. now I found after about one minute I cannot receive any stream, after using wireshark capture the package, I found many "TCP update window" and "TCP zero window", and inputstream.read() return -1, what can I do? Thank

[android-developers] Webservice in ANDROID, KSOAP and PHP

2012-05-28 Thread abdelbar nasri
Hi ; I am developing an application leads to purchase bar code, but I have a problem in the webservice which is to retrieve information about a product Scane. so my problem is: when I execute the activity SearchActivity.java and folds the search field I get an error, here is my java class, error

[android-developers] emulator won't run with -gpu on

2012-05-28 Thread Android007
Hi, When I try to run the emulator with hardware acceleration (on Ubuntu 10.04), the emulator gets stuck and I receive this message: Failed to create Context 0x3005 destroyOpenGLSubwindow not implemented for separate renderer process !!! createOpenGLSubwindow not implemented for separate renderer

[android-developers] How often is the ActivityManager.getRunningTasks() list refreshed?

2012-05-28 Thread Put_tiMe
The reason I'm asking is that, sometimes if I'm in the "Home" screen, and I call 'getRunningTasks(1)', then I get reported that a different activity (other than home) is currently active. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To