Android :: Inter Connectivity / Running Multiple Applications On Android
Jul 12, 2010
Is it possible to run multiple apps at the same time on Android? I have an app that has two separate layers and which they are normally launched separately. They open sockets and talk to each other via those sockets. I am not sure if this would be possible under Android - may be generate two separate projects and their corresponding UIs and then launch them at the same time. If that is not possible I am assuming I will need to launch them from the same UI - their interprocess sockets should be able to connect to each other. Is this something that is worth pursuing?
View 3 Replies
May 28, 2010
Can someone explain a couple of very simple concepts to me - I'm interested in mobile devices running android and how they are identified over networks. Some scenarios: Device is connected over WiFi - presumably the device has a standard IP address as with any host and can communicate with any other android host over TCP/IP (assuming it knows the participating device's IP? device is connected over bluetooth - how are devices identified in this case? device is connected over mobile operator's network - this is the one I'm interested in and confused by - is there anyway for two or more devices to discover each other and communicate via the mobile operator's network? How does a device communicate with a backend server in this scenario? In other words, how do apps and devices communicate when not connected to a WiFi network?
View 2 Replies
View Related
Jun 24, 2010
Scenario: I turn my phone on and multiple applications are running in the background. I run Advanced Task Killer and close all applications in the background. I respond to a text message and all of a sudden FRING and QIK are running again? Why? Can settings be adjusted manually or do I need to Force Stop in Settings - Applications every time I turn on the phone?
View 1 Replies
View Related
Sep 25, 2010
I am looking at which HTC phone to buy. I need WiFi to connect to the Internet at home. I also want PUSH email, my understand of PUSH email is that every half n hour or something I can get the software to go out and search for new emails whilst not having to go into the app and click refresh to see new emails, something which I have to do on my N95. I also need a decent SatNAV, now I know that google navigation is out. I don't know how good it is due to the lack of information out on the Internet. Do all HTC phones drain the battery with GPS? Okay so I need SatNAV, then I also need a phone with decent car cradles, I need something that enables me to rotation it portrait and landscape easily.
Do HTC phones come with a car charger in the box? I also use Gmail a lot, now is there any advantages that I will get from getting a HTC phone and utilizing my Gmail account, as well as calendar. Is there a simple way of getting the phone to sync with outlook such as the tasks and notes you make? Are most applications on Android free? Do the phones last a long time? I like the idea of the kickstand in the Droid incredible I think, that phone is very appealing for me. I am just thinking of getting the phone not for phone and text use but for just Internet and applications.
View 3 Replies
View Related
Jun 23, 2010
I have developed a simple android application, which when started opens a Timer. User is given two buttons, start/ pause. This is working fine.What i want to do is to add a way to support multiple timers when a user swipes his finger on the screen.When he swipes from left to right, a new timer should show up, but the previous timer should not stop. This is a way to add multiple timers.Also, when he swipes from right to left, i want a previous timer to show.This is what i have done so for. I have a timer activity. I have added a touch event on it. When, a person swipes his finger, i get the co-ordinates and decide whether its from left to right or right to left.This functionality is working fine, as i can see the appropriate log messages.The problem is when I'm trying to load Timer Activity.It just loads the previous Activity and doesn't really create a new one (I figured this from the timer).Is there any way to do it?
View 1 Replies
View Related
Mar 3, 2010
I facing problem with multiple process running for my application. Can any one help me to avoid creating multiple process or restricting process creation to one.
Some times I am seeing two process instances of my package in the process list. I want to avoid this.
View 2 Replies
View Related
Oct 1, 2010
I have multiple activities in my android app and one final activity "All" which should run all the activities of my app one after the other. When I kept all my activities in for loop and used startactivity(intent) for each activity in that for loop, at the end I could see not all my activities being ran although all activities are finished. Any clue how to implement this?
View 3 Replies
View Related
Nov 1, 2010
I'm trying to run two AsyncTasks at the same time. (Platform is Android 1.5, HTC Hero.) However, only the first gets executed.
Here's a simple snippet to describe my problem:
CODE:................
The output I expect is:
onCreate() is done.
bar bar bar
foo foo foo
bar bar bar
foo foo foo
And so on. However, what I get is:
onCreate() is done.
bar bar bar
bar bar bar
bar bar bar
The second AsyncTask never gets executed. If I change the order of the execute() statements, only the foo task will produce output.
Am I missing something obvious here and/or doing something stupid? Is it not possible to run two AsyncTasks at the same time?
I realized the phone in question runs Android 1.5, I updated the problem descr. accordingly. I don't have this problem with an HTC Hero running Android 2.1.
View 1 Replies
View Related
Jun 27, 2009
This is what I have,say:
CODE:..............
All of the above is in single APK.
Instrumentation Runer used is - android.test.InstrumenationTestRunner itself.
This is what I am trying:
- I launched Emulator having above apk
- I opened three terminals , two to run instrumentation and third one to log results i.e.
CODE:...........................
Terminal 2:
CODE:...............................
Terminal 3: This is what I saw in the middle of logcat dump:
CODE:..........
Queries: 1. Is not it possible to run instrumentation in above manner? 2. I tried another TestSuite2 in terminal 2 instead of TestSuite1 , this also gave same results.
My aim is to run 2 testsuites parallel, using same apk. Is it possible? Or I have to use two different apks?
View 3 Replies
View Related
Sep 27, 2010
I had an application on my home page that looked like a a small green cylinder. it told me how many applications were currently running. if i clicked on it, it would tell me what applications were running in the background. now the green bar is gone and i can't seem to figure out how to get it back. not sure if it was a standard android application or something i downloaded. can anyone help me figure out how to get it back?
View 2 Replies
View Related
Mar 19, 2009
Just say I have two applications, each with one activity running on separate processes and I want to send a simple string between them. For the purposes of this example, let us say I have a button that sends whatever is typed into an EditText view to the other application where it is then displayed. Do I have to expose a remote interface via a service that co-resides between the two applications? Or can I do something simpler (is there a way to pass data between processes without defining your interface using AIDL)? Thanks for clearing this up for me, as I seem to be struggling with performing IPC at the moment. I'm pretty sure I have to use the Android IPC path and generate a remote interface using AIDL. I'm just not sure about the binding to service part.
View 7 Replies
View Related
Sep 4, 2010
When testing my app on a device I go through several "installs", although it's really the Eclipse plugin doing this for me.After a while (not very long) the device starts complaining about insufficient storage.It seems that progressive "re-installs" eats away the phone storage even though the app being installed (presumably) is either removed by Eclipse first or at least overwritten.Interestingly if I use a task killer to kill everything on the phone (which I only use for dev purposes btw),the available storage indicator recovers and I can keep working.As I said, it's more annoying than anything as the workaround.well works, but I'm wondering if there is some sort of cache chewing up storage?More importantly, I'm a little concerned that the same may happen with updates from the Market?That is, the update effectively replacing the current version of the app but leaving an allocation of storage behind in its wake.
View 5 Replies
View Related
May 12, 2009
I want to run two different android applications in the single process to access the resources. For that purpose, I had made following two changes in the manifest file of both the application ,
I had override two attributes and
1) android:sharedUserId= "hii.hello" under <manifest> tag 2) android:process = "guide.android" under <application> tag
I had made these changes (asign the same values) in the both the applications but could not get expected results. How to check whether both these applications are running in the same process?
Should I sign both the application with the same certificate?
View 4 Replies
View Related
Sep 29, 2009
I have an Android G2 and would like to run the same applications that are running J2ME on my other cell E62.
View 2 Replies
View Related
Jul 21, 2010
I am working on an app which needs the information of the apps running at the system up to now, I am wondering is there a api/method to retrieve that kind of information?
View 2 Replies
View Related
Apr 19, 2010
I have a service that i need to access across multiple Applications. Can anyone tell me how this can be done?
View 6 Replies
View Related
Jan 14, 2010
I have to write an application which starts a service. There will be other applications which have to use the service. Is it possible to write an application that only starts service and finishes with the service running?? How can i communicate from the different applications to the service? Is it possible to expose an interface from the service so that application can pass data to the service?
View 2 Replies
View Related
Jul 4, 2010
I have few question in application side. Questions are below 1. Can LMK (Low Memory Killer) kill service ? 2. Can I open multiple instance of same applications ? 3. Can I set the priority for the application? 4. LMK kills application(process) or one activity(suppose in application 4 activity). If it can kill activity then how activity stack handling this.
View 3 Replies
View Related
Oct 15, 2010
I am developing an android app w/ Eclipse.Whenever I run the app on my phone or the emulator, four application icons are installed on the device.I am guessing it is related to my manifest file which has three activities (3 are for tabs).When I uninstall the app, all of the icons are removed from the phone.Upon a reinstall, all four show back up.
View 2 Replies
View Related
Jul 22, 2009
Here's the deal: I have an Android application that needs to call a web service every X seconds (currently 60 seconds). This application has multiple tabs and these tabs all need to interact with the data themselves. One is a MapView, one is a ListView and then the third is irrelevant but will need to also get some global data eventually. The issue is that I want my main activity to have a thread that runs in the background, gets the results and then instructs both child activities in the TabHost to update themselves with the latest data. Also, when the user clicks on the tabs and the onCreate/onResume activities fire, I would also like to force a redraw by getting the latest data from the main activity. I'm really at a loss here. I've tried this with a service and some ghetto static methods to pass an instance of the Activities to the Service to call specific functions to update their views whenever the timer fired, but the slowdowns were pretty bad and the code was just ugly ugly ugly.
So I implemented it as a timer-driven thread in the tabhost activity and then I have timer-driven threads in each child activity that then grab the data (in a synchronized fashion) and update their map/list. It's much faster but still feels slightly hack-ish, especially the part where I'm calling a custom function in the parent activity like so:
((MainActivity)getParent()).getNearbyMatches();
This adds an element of strong coupling that I'm not entirely thrilled with, but from a performance standpoint it's much better than it was. I appreciate the answers that have already been given and will do a bit of research on the content provider front but I'm not sure I want to go back to the service model.
View 3 Replies
View Related
Dec 13, 2009
I'm having an issue with inter-process communication with a Service and Notifications
The structure of my application is as follow: - ListActivity (TunnelDroid), once the user presses a listitem it will start a Service. The ListActivity is binded to the service for intra-process communication
- Service (TunnelManagerService): running in the background. This service will add a (permanent) Notification in the statusbar. Using a Handler I sometimes need to communicate with the ListActivity (to show GUI Dialogs)
- Notification: Once this notification is clicked it should open the ListActivity.
To add the action when the user touches the notification I use the following code: notificationIntent.setClassName("net.sourceforge.tunneldroid","net.sourceforge.tunneldroid.TunnelDroid"); Then I use the intent to create the notification.
Unfortunately a new Intent is opened. When I press the back button the original ListActivity is shown. So I have two instances of my same class/list.
How could I make sure the original ListActivity is opened when the user touches the Notification?
It's OK for me if the original ListActivity was previously destroyed, but I cannot have two instances. The problem is that the Handler in the Service has a reference to the ListActivity (PARENT_ACTIVITY), so if another instance is created I have invalid references. I could overwrite the PARENT_ACTIVITY, but then when the user presses the back button I have an instance with no correct link to my Service resulting in a crash/nullpointer.
The complete source can be found here: http://tunneldroid.svn.sourceforge.net/viewvc/tunneldroid/tunneldroid. Attached you can find a drawing of (most of the) inter-process communication. Could someone point me in the right direction?
View 3 Replies
View Related
Aug 4, 2010
Every so often I check my memory with Advanced Task Manager and I see certain applications running in the background and my available memory has dropped quite a bit. Now I am using the HTC Incredible so I still have about 127 MB free, however what concerns me the most is why the programs are even launching themselves in the first place. I could see some application having to start themselves, like a twitter client or an email client, however one of the programs that seems to be launching itself is the eBay app. I installed the app in case I wanted to view an ebay listing however I never use the program and it still seems to launch itself. Is this an example of a poor application design (i.e. ebay app) or is there some other reason these programs are launching themselves?
View 2 Replies
View Related
Jul 19, 2010
i want to check current running applications in android programmatically same like it shows 6 applications if we press and hold HOME button. actually i want to check application names.
View 1 Replies
View Related
Nov 14, 2010
I have advanced task killer and auto killer installed but I still have random apps still running in the background that I don't even have running, even in the background or memory! Is there anything I can do as I feel that this is killing my battery life!
View 8 Replies
View Related
Jun 18, 2009
I wrote a simple hello c program. I pushed the program to either Android Emulator or a device. When I run it, however, I got "./hello: not found" message. I ls-ed it and it's right there. Is this purposely disabled?
View 4 Replies
View Related
Jun 20, 2010
I've been researching the OS a bit and I can't really tell what happens to programs when you hit the home button to leave them. Do they stay running in the background? After a little bit of time does the system close them out? What happens to them? I have a Sprint Evo and I don't see a way to close them out. I know that battery life can always be helped, and I would hate to leave them running all day just sucking the life out of the phone if they don't have to be.
View 18 Replies
View Related
Aug 8, 2010
Happy droid user on Nexus One. Thinking about playing around with one of those cheap android tablets. If I logon to that tablet with my google account, will it mess up my N1 and existing account/settings? Also what happens with my apps? can I download the ones I've paid for again (onto the new device)? etc.
View 8 Replies
View Related
Jun 2, 2009
I am working on developing several individual android applications. We had created common UI Layout View XMLs, classes and resources. I would like to share these common layout xml, classes and resources across all of my android applications. I dont want to duplicate them in my applications. Is there any easy way to do this?
View 5 Replies
View Related
Nov 18, 2009
I cannot run android junit tests for classes sitting in main android project that implement interfaces that reside in other included projects. Depending on SDK version I get different errors: from "Test run failed:" on 1.5 and 1.6 and spurious process death to a more polite "NoClassDefFoundError" on SDK 2.0. This happens only on instantiation of classes that reside in the Android project and implement interfaces residing outside that android project. There is no problem instantiating classes that do not fall into this category (i.e. android only or library only classes).
Android project by itself works fine with these classes - it is just the test set-up doesn't and project inclusion/classpath seems to be ok. Test project includes all projects that main project includes. NoClassDefFoundError makes little sense here given that the classloader can see and instantiate classes sitting right next to the ones that do not work. Did anyone else run into this or found a way to set-up android based tests in a multi-project set-up? Below is more detailed set-up and test explanation: 1) Library project: FooLib public interface IFoo { ... }
View 4 Replies
View Related
Aug 16, 2009
I want to use an AP running in the background, and can get the other AP touch screen x,y values. Beacause i use the View class the ontouchevent, but this seems to get current AP running touch event. Which the class or function can meet the needs of this.
View 3 Replies
View Related