Android :: Create A Listener That Will Listen To An External Push Server?
May 3, 2010
Is there any build-in mechanism in Android, which could create a service or app that actually listens to some server from the out side.. something that will "Wake up" the phone and makes him receiving a message from an outside server (i am asking this coz most of the appz are working the way around, when the phone sending requests to an outside server to receive data)
is it possible any how?
View 2 Replies
Jul 5, 2010
Is it possible to register a listener to listen for changes in the volume level of the music stream in Android?
I'm displaying the actual volume in a SeekBar and I would like to change the seekbar if the user changes the volume with the hardware volume keys. At the moment the correct volume is displayed until the user changes the volume with hardware keys.
View 1 Replies
View Related
Aug 27, 2009
In current activity, when user click the back key, I don't what it back to the last activity. Can I add a listener to listen to back key in current activity? When user click "back" key, it actually back to the activity I want it to go.
View 4 Replies
View Related
Sep 29, 2010
I have a hosting account at godaddy ruinning Linux. Is has MySQL. I am creating a J2ME application that runs on android and I was wondering if there is any simpler way to connect from j2me application to my MySQL server?
Is it required to install anything at my server? which I cannot do because of the shared account. Any way to just open the connection, update some data in the MySQL from j2me application?
View 2 Replies
View Related
Oct 13, 2009
problem: server (web server) wants to send data( or some information) to mobile client (android based phone). means simply notify to start work, then mobile start working on specific application. i would like to do a SMS from server to mobile, to start working. buts its not the best idea. as we can assign too an IP to android mobile phone in case of WiFi or USB connectivity. but phone will use GPRS or GSM, so there is no unique IP of Mobile so that we can access mobile phone using Socket Programing.
View 2 Replies
View Related
Apr 2, 2010
We are designing a system with a PC base station and 100 Android mobiles communicating over WiFi. They will use XLM-RPC as the method of mobile to base station communication. However, sometimes the base station needs to broadcast a message to all mobiles. Should we use "http server push" for this, i.e., have the base station leave the connections open to all the mobiles? Is there a better way? Publish-subscribe is possible, but doesn't seem mature on Android yet.
View 1 Replies
View Related
Aug 31, 2010
I have recently written a socket server in PHP that will be handling communication between an Android phone application and my PHP webserver. Due to the fact that Android doesn't natively support push style notifications we are going to be using our webserver as the middleware layer to handle our 'pushes'. The socket server is stable, runs well, and seems to scale nicely. While I would eventually like to re-write this in C I don't have the skill necessary to do that right now so I am going to be staying in PHP for at least a short while. As of this moment our Android emulator is able to communicate through the server, get pushes, etc. so that part is all covered.
My concern is that, right now, anyone can open a socket to my server and will be given a client connection. While we won't be passing sensitive data back and forth I don't want to allow just anyone to connect over and receive broadcast information, eat up my resources, and clog my server in general. The question is, how do I secure a server like this? Let's assume that I am running on port 25,000--can I set up some sort of SSL layer on that port and expect devices like the Android to be able to communicate over that port without any special protocols or jumping through hoops? I have considered asking the connecting clients to authenticate their user against our user database before being given a client connection, but that would require the passing of credentials in plain text over the network which I am not about to do.
I am rather new to straight TCP communication from PHP and feel like I might just be missing something simple that allows for authentication on this level.
Additional information: If I am able to get a valid username and password securely I would be using MySQL to validate the user and then accept/reject their connection based on the results of the query.
View 4 Replies
View Related
Oct 19, 2009
I understand that HTC Sync will allow for syncing with an exchange server (not just desktop client software). Can anyone confirm that it supports push email and not just periodic checking?
View 7 Replies
View Related
Sep 14, 2009
I'm just wondering if I'm able to create a View from an external XML source. As I was reading, you must place the XML layout inside the res/layout and when you compile it, you can load the layout by typing setContentView(R.layouts.my_layout). What if I have this XML layout online (on a website) and I want to create the layout on runtime? Is there any way to do this? Or I have to parse the XML and create the layout (hard-coded)?
View 8 Replies
View Related
Jun 6, 2010
When we open some sites and read more details some stories, when we push back button, it's look the browser re open the current site. Is it possible if we push back button, the site will load instantly without reload to server?
View 2 Replies
View Related
Jun 21, 2010
Is it possible to create the connectivity of android with ftp server. i am going to create an application where login information about user is placed on ftp server.
View 1 Replies
View Related
Sep 21, 2010
I am new to developing applications for android but have developed my first app. I have following questions.
1. Is it possible to create a client server app? I mean the application on one phone acting as server and applications on other phones sending/receiving data from it?
2. Create a wifi network (may be using bluetooth) for the above client server app. The idea being not to use the mobile service provide network but rather a local network.
View 4 Replies
View Related
Oct 20, 2010
Hi, i am very new to programming in java however have a lot of experience in .NET (c# & vb.net). I am trying to create a new instance of a serversocket class in eclipse IDE and when i type the following code it is giving me an "Unhandled exception type IOException" and i havent even tried to run the code yet! I dont understand how my code is exceptioning before runtime or what i can do to fix it.
View 2 Replies
View Related
Nov 9, 2009
I'm working on a litte HTTP server application for the Android. Now I like to secure the communication by using SSL. But I got stuck by creating a suitable keystore file. Searching the archives I came to the conclusion that it will be best to use a BKS type keystore since all other keystore types (like JKS) are not supported on the android.
Unfortunately I can't figure out a way to setup the keystore file. I tried OpenSSL - wrong keystore format. I tried the keytool from JDK - right keystore format but it doesn't support BKS keystores. I tried the Keytool IUI - I could create a BKS type keystore but it alwais ends up in an InvalidKeyException "Illegal key size". No matter if I try to create a new certificate or import it from a JKS keystore. (I tried to create the RSA ver.3 certificate with a key size of 2048 and 1024 bits.) How do you create BKS keystores?
For completeness here's the code I trying to use for loading the keystore:..............................
View 2 Replies
View Related
Aug 10, 2009
I'm looking at 3 different apps to develop for the Android, but I'm new to the platform (come over from Blackberry - yuck!).
Anyhow - I need to know if there is some way to push data to the phone from a server. I'd prefer to avoid using SMS to push (user charges), or constantly polling the server (lets see, every 5 seconds = 12 times a minute, 720 times an hour, over 17000 a day)
View 4 Replies
View Related
Sep 23, 2009
How push works, and why my gmail on my hero is not a true push email even if it takes less than 5seconds for an email to arrive after being sent.
View 9 Replies
View Related
May 26, 2010
I have a strange problem with Push email on my HTC Desire. I can set this up no problem - email comes in but only manually. I cannot get the push to actually work. When I go into the send receive schedule I can set up the days/hours for peak off peak and push but regardless of what I set these to be, when I go back to the previous screen it always says the Schedule is Manual. I've tried setting up lots of variations from manual through timed to push but still the same. Net result is push never seems to happen - manual overrides my schedule. To pick up email I have to go into email and do a manual sync.
View 15 Replies
View Related
May 18, 2010
I want to click on an item of a spinner and change the content of another spinner.I tried to do this by creating a listener OnItemSelectedListener() but it doesn't work.Any Ideas?
View 6 Replies
View Related
Mar 19, 2010
I want to do a custom action when pressing on the Menu button on the phone.
Is it possible to set an onClickListener (or similar) on the button and if so, how?
onCreateOptionsMenu is only called the first time the button is pressed - I've already tried this.
View 3 Replies
View Related
Mar 1, 2009
Is there any Listener able to listen for shake movement. when someone shakes the phone an event should be triggered ,how I'm supposed to do that ,any idea on this topic is appreciable.
View 12 Replies
View Related
Aug 20, 2010
I am developing an app in which I need to listen events whenever they are created or modified in android calendar. Is it possible to listen calendar entry when the user enters events ?
View 2 Replies
View Related
Jul 16, 2010
I have boot loader listener. But After user install the application my listener does not start until first boot-up. is there any way to check whether my listener running or not?
View 1 Replies
View Related
May 4, 2010
In android, is there such a thing for listening if a View is pressed? in background drawable, i can set assert depends on the view is pressed or not.Is it possible for me to add a Listener for a View when I pressed it?
View 2 Replies
View Related
Nov 22, 2010
In my application pressing a list row or a button means executing the same commands. My problem is that the list and the button have different listeners (AdapterView.OnItemClickListener vs. View.OnClickListener). How can I add the code for the 2 views (as a listener) without having duplicate code.
View 3 Replies
View Related
Jun 25, 2010
Is there a way to have 1 onClick Lister for many buttons where I can toss a case statement to do things based on what buttons were clicked.
I know I can make 100 different listeners for 100 buttons but I have to think I can create some nifty variables to do it in less lines of code.
View 4 Replies
View Related
May 20, 2010
I want to add a listener to a image which in the overlay so that dialog will exists after i click the image int the map.
View 2 Replies
View Related
Mar 30, 2009
I currently have a drawable and i need to know when it's clicked. Is there a way to add an event listener to a drawable? I realize that there may be a better control to use for me needs so I tried ImageButton but Im a bit confused on how to position the ImageButton. For example whe i position the drawable i just use setBounds. Is there a way to specify the x and y coordinates for an image button?
View 4 Replies
View Related
May 24, 2009
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
Nov 14, 2010
In my layout xml file I have set the android:onClick attribute for a Button element to a function in my activity. So when I click the button the function is called with a View as its argument. Are there any information in that View argument that has the id of the button being clicked? I'm trying to figure out if I have to have one onClick function for every element or if I can use one function and switch depending on the id of the element being clicked.
View 1 Replies
View Related
May 20, 2009
I just want to develop a service which listens to the database and it should invoke an activity as soon as there is a change. I tried to implement Contacts listener by registering Content Observer but couldn't see the expected result. Kept log in on Change() method, observed that it is not getting called, any clue that where it might went wrong.
View 4 Replies
View Related