Android :: Remote Services Can Be Seted Ip?
Aug 27, 2010Android Remote services can be seted ip? I have two machine, want to set ip and access each other's remote service,the way can be done?

Android Remote services can be seted ip? I have two machine, want to set ip and access each other's remote service,the way can be done?
"Service" by it's defenision meaning the same as "Remote service" in Android? and if not, what is the diffrence between them?
View 1 Replies View RelatedI ran into a problem with remote services. after i started and bound my service, i want/need to access it's functionality.
This works just fine if i work with buttons and onclick-controllers just as in http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/app/RemoteServiceBinding.html.
But actually, i need to access the services functions DIRECTLY after binding the service, like:
CODE:......
If i access the service function "getDataFromService()" in an onClickListener, it works perfectly. how do i access the services functions directly after binding/starting the service?
As a newbie to Android development, I'm trying to do the basics and build a media player. It works fine in one activity, but I'm now moving the MediaPlayer stuff to a remote service so it can carry on after the activity is destroy. I've moved the necessary code to the service, left comments in the activity where I'll need to call service methods, implemented my AIDL and it all builds with no errors (Eclipse).
However, I'm totally stumped as to how to call IPC methods. Are there any simple and minimal examples with no fat - just the bare essentials?
As I'm using IPC methods, I don't need to use onStart() at all - right? (I intend to use LoadFile(File path), and then have public void considerDeath() { if (!isPlaying()) { MyService.stopSelf(); } } method called from activity.onDestroy )
/guide/developing/tools/aidl.html has multiple binders, but when I use the mSecondaryConnection portion, I get "MyService.Stub cannot be resolved"
I've tried http://www.anddev.org/remote%5Fservice%5Ftutorial-t8127.html which seems to confuse things by overloading methods.
I can't find anything by Mark Murphy either on the subject.
added a quick demo video of our upcoming Android Infrared (IR) Remote.Initially it will support a full IR dbase of 300,000+ IR codes, IR learner for any code not in the dbase, Pre-Built GUI so it is simple to setup. Will add rs232, relays, and other tcp options also after initial release.
View 5 Replies View RelatedLooking for an App to remote to my desktop.I am trying to see if I can access magicjack on my desktop and make true voip calls.
View 2 Replies View RelatedWhat are C based services and Java based services in Android? What is similarity and dissimilarity between them ? Are C based services available in Android?
View 1 Replies View RelatedI'm trying to understand the idea behind the Services. If it runs in the program's thread, why not create just a separate thread (or AsyncTask) to do the job? Can a service keep running in the background? For example, i want to create a task that will continuously be polling data from a server, even if the main application is not running. Can this be achieved with a Service?
View 8 Replies View RelatedI am trying to send AT commands via Ril from LocationManager as there is only one AT port I can use. But it seems like that there is no ways to call the function refer to Ril. Can I just new a commandsinterface and to call ril's functions via it?
View 2 Replies View RelatedIn my ideal little dream world, I'd like to have a custom service running that handles network comms. Activities (e.g. UIs) then add listeners to it and it provides callbacks when anything interesting happens.
As it stands, I can't see how to do this in an appropriate way. OK, you can call bindService() and have a ServiceConnection implementation that monitors the service state. From there you can easily talk *to* the service whenever you desire, using serialisation over transactions, but I don't think that helps with communication initiated by the service.
The only way I know of doing what I want is by maintaining static collections of listeners on the service class, which doesn't strike me as good engineering.
I know about LocationManagerService, AlarmManagerService, and BatteryService, from Android programming books, but is there a published list of all available services?
View 6 Replies View RelatedWhen an app gets permission to access your Google account's Android services exactly what does it have access to? Is it authenticated to access all your google stuff including gmail?
For example, I installed Changelog Droid from the play store and it wants to access my Android services. I understand it probably only needs the permission to access my play store account to analyze my installed apps, but what else is open to it if I give it the permission?
I have a couple of services in my application which need to be marked as foreground to prevent them from being killed unnecessarily. Currently I am building my application with the 2.0 SDK but I have android:minSdkVersion="3" android:targetSdkVersion="5" in my manifest file so that I can support 1.5, 1.6 or 2.0 devices. I am currently using only the 1.5 APIs so that my application will run correctly on the 1.5 devices.
2.0 introduced a nicer startForground method that combines setting the foreground flag and starting a notification which can be used to control the service. The 2.0 documentation says that startForground replaces setForeground, and that due to the fact that many applications were mistakenly using setForeground without a notification that could be used to control and close down the service, that the older setForeground method had been changed so it no longer does anything on 2.0. I tried using the newer 2.0 interface but it caused an exception for phones running 1.5 or 1.6. So I am still using the older setForeground interface and calling notify separately. But it appears that since I am building with the 2.0 SDK the older interface isn't really preventing my services from being killed.
i want to use alert dialog in services, but i'm not getting the dialog,
public void myEventOccurred(Event evt) { // TODO Auto-generated method stub System.out.print(">>>>><<<<<< Event fired..."); new AlertDialog.Builder( this ) .setTitle( R.string.SaveConnectionChangeWarningTitle ) .setMessage( "Alert !" ) .setPositiveButton( android.R.string.ok, new DialogInterface.OnClickListener() { public void onClick( DialogInterface dialog, int whichButton) { dialog.dismiss(); } }) .show();
}
I know of the wonderful change from 2.1 to 2.2 that ActivityManager.restartPackage now doesn't do the dirty stuff anymore since it now calls killBackgroundProcesses. Nice on one side, but bad on the other side. Because of that Services are not killed anymore.See as well: http://groups.google.com/group/android-developers/browse_thread/threa.I am the developer of SleepTimer in the Android market and used restartPackage to stop Music Players to play music. I therefore killed the services. That worked well. But now with killBackgroundProcesses it doesn't work anymore. I added the new Permission to my manifest, but still the music remains running. Yes i know that google kind of wants that. But it breaks the possibility to stop the different music players from my app. Now my question: Is there another way to kill/stop other services (music player services) in API 8?
View 2 Replies View RelatedWhen i am calling the web services i got his errors. i added the internet permissions in android manifest.xml file 08-08 15:40:09.127: INFO/aSizzle(198): statusCode>>>500 08-08 15:40:09.158: INFO/aSizzle(198): statusLine>>>HTTP/1.1 500 Internal Server Error
View 2 Replies View RelatedI have a service running (Socket), this is how i start the service.
CODE:.......
But this doesn't seem to stop my service? Am i missing something? I need to destroy my service as soon as the home button is clicked.
I am new to Android development and have trouble enabling / disabling the wifi & audio services. I get the appropriate manager instance using the getSystemService method. But I don't get any error when enabling wifi using:
wifiMgr.setWifiEnabled(true);
But the wifi is simply not turned on! Similarly I use
mAudio.setRingerMode(AudioManager.RINGER_MODE_SILENT);
or
mAudio.setRingerMode(AudioManager.RINGER_MODE_NORMAL);.....................
I wrote some reverse geocoding, geolocation and proximity alert routines for my little Android app. I took my Android out with me when running errands to test my routines; they're kinda hard to test from my couch. Half of them didn't work. What's the best way to debug something like this? Sprinkle a bunch of printf statements (or whatever you call them in Java) throughout the app? Log everything to the sdcard? Write a toggleable view (is that even possible?) that acts as a console? Faber Fedor Cloud Computing New Jersey http://cloudcomputingnj.com
View 6 Replies View RelatedThe only thing i have running on my phone right now is the touch input. is this something that runs constantly? ive tried going fully through the setup again and its still there. anyone know how to end it so its not running all the time?
View 1 Replies View RelatedWhat are the types of locating services offered by android? Does it offer GPS, cell-site/geolocation and WiFi? Can a developer choose which service to use or does the android choose?
View 2 Replies View RelatedI went through the Android introduction videos and in them an engineer from Google spoke of an open XMPP/gtalk service provided by Android, that developers could use to push messages out from a server to Android devices. I googled the forums and dug through the SDK samples, but could not find any code for these XMPP services. Also my search results only returned entries logged in the Jan 2008 time frame an earlier (I found this to be somewhat odd). Anyway, there was mention of a SMACK API that handles xmpp messaging, but I'm assuming that android has their own libraries for this.
View 3 Replies View RelatedI'm a little confused on how binding to services works. I understand using Context.startService() starts the service and that bindService doesn't call onStartCommand. But my understanding is that if I use startService, I have to explicitly stop the service. But I want the service to die if there are no more activities bound to it.My problem is that calling bindService never calls onServiceConnected(), so my Service binder object is null. Does the service have to be explicitly started in order to bind to it? If so, how does it know to terminate when nothing is binding to it anymore, and how do I know if it's started so I can know to use the bound object?
View 3 Replies View RelatedI need to use a wakelock to hold the screen active while its required. I was recommended to use a service which I have been trying but on the onDestroy I am getting "wl cannot be resolved".
Code below:
CODE:...............
What is the best way to deal with web services in Android? I have been looking at KSoap2 library and RESTful web services.
I got one working with KSoap2, but only when the web service is on a remote server, not on localhost. I have tried to redirect the ports for incoming and outgoing as it says on the android dev site, i have used the ip of the network i am on, my own ip and the localhost-ip (it says on the site that one cannot use localhost cause that is the emulators own loop-back network. None works.
With RESTful webservices, i have only tried a tutorial where a google app engine is used as server if i understood it right. Is it easy to connect a RESTful web service to a database. I need to have a database connection in my applikation, which one is normally used with REST?
Can any one give me some code to close all the services and activities of my app so they dont reopen? i know in android you dont have to close your app but i want the app to exit if the terms of service are not accepted. at the moment im using android.os.Process.killProcess(android.os.Process.myPid()); in one of my activities but the launch activity automatically starts aggin, any way to prevent this?
View 9 Replies View RelatedCan any one tell how to retrieve the icon of a running service?
View 2 Replies View RelatedI am presently working on services.I have read many articles related to services.But one thing I don't understand is if we want our application to run in background how can we implement services without using Activities.
View 2 Replies View RelatedIf I create a no-gui application that extends and android.app.Service class, how do I get it to register itself so that the application starts when the phone boots up?
I need some way to have it always launch when the phone is turned on, how can I do this?
I know how to get a service to start & communicate with a real application, but I can't get it to start when the phone boots.
Does anybody have an example of using the PhoneState Listener while running a service? I've been having problems having a PhoneState Listener inside of the service.
View 15 Replies View Related