I just want to know is it possible to write an app (maybe a service on the background) on the android whose function works like a web service which means that when another app sends a request to the localhost and specific port, the app could give a reply and execute some functionalities? Is it possible? Anybody has some ideas about that?
It's certainly possible. Check this for example: http://code.google.com/p/i-jetty/
Related
Is there an easy way to reject a phone call in my application?
I am writing an application and I want it to reject an incoming phone call automatically.
Is there a way to do it without making the application the default call application?
Thank you.
I am writing a new application and I am a newbie so I don't know exactly where to start.
I already have something that detects the phone call and gives me the calling number. It was easy but I don't know how to reject that call.
Help. and thank you.
I have implemented the Twilio in my app and have made it so that web to web calls can be made and also web to phone calls. The only thing is that if I call Voice.call() with my user's phone number, it'll call him but the call will not open my activity on his device. The phone call UI will be the default decide's UI for incoming calls. If I, on the other hand, use the user's defined identity on his device, it'll go nicely via my activity.
Any ideas on how I can make the web to phone call using a phone number and redirect the call via my activity?
I have been unable to find any documentation in this regard.
Cheers!
Twilio developer evangelist here.
It's not the job of the Twilio SDK to intercept phone calls made directly to the device. However, since Android is flexible enough to replace the default phone application, you can do this yourself.
I am not an Android developer however, but a quick search around lead me to this tutorial on using a BroadcastReceiver to run your own code when an incoming phone call occurs. This StackOverflow answer might help you get started too.
Hope that helps.
I am trying to build an android application which will display the user what data was sent from all apps and what data was received on all apps installed on the device.
I have searched but nothing came which could give me a start. Is there any encryption/decryption techniques used(Since i have no idea about the same).
It would be a privilege if i get to know where to start with this project.
I think you are talking more about a background service running all the time, but that's really complicated if you don't have clear idea on how they works.
Start with this: http://developer.android.com/guide/components/services.html
i am trying to build an android application which will display the user what data was sent from all apps and what data was received on all apps installed on the device.
I have searched but nothing came which could give me a start. Is there any encryption/decryption techniques used(Since i have no idea about the same).
It would be a privilege if i get to know where to start with this project.
I think you are talking more about a background service running all the time, but that's really complicated if you don't have clear idea on how they works.
Start with this: http://developer.android.com/guide/components/services.html
I don't really know if Android let you spoof this kind of information about other apps, but if yes, let me know.
I am developing an android application. What i want is to call a method present in that android application remotely from a desktop like from a "servlet" or an application.
How can this be done?? For example i want to call a method which i have already written in the app which calls a particular number. How can i invoke this method remotely?? please help.
PS - It is kind of urgent.
It will be hard to communicate from your desktop to your handheld. But you can poll a server from your handheld.
Write an app that every n seconds (the frequency you require) polls e.g. a web page on your server. When the web site's content is "noop", the app does nothing and keeps on polling. If the web site's content is "doit", the app dials the number you want.
So, when you change the content of this web page either manually or programmatically you can "remote-control" your hand held.
This is just an example, it must not be HTTP, neither NOOP and DOIT, just anything you like. Let the server return the phone number which you want dialled for instance.
Well, sounds like you want your app to be waiting for push notifications. I think this question is exactly what you need to look at.