Is any possible to send the file through sms? I want to encrypt the file to string format and sent it. The encrypted file to be decrypted after receiving the text message. Is this possible in android apps?
Its SMS ( Short Message Service). You can send limited amount of text via SMS not file.
Read Wiki : http://en.wikipedia.org/wiki/Short_Message_Service
If you want to deal with files better to have your own app which encrypts/decrypts file data. you will have total control on files and data.
If you still want to use SMS. divide the file data in multiple chunks and send it via SMS API. Have your app to read SMS by registering through Broadcast receiver and READ_SMS permission in your manifest.After reading decrypt the data and store in a file. Now you have the decrypted data stored in destination device. You can show the data on your App.
Disadvantage : Because you are sending data using carrier , It does not give any guarantee for when or whether data will be delivered or not. Also now you playing with data chunks you will have to take care for sequence of data as well. Other wise you will be in mess.
Yes, but there are too many limitations to make this practical.
First of all, what most people don't know about SMS sending on Android is that it has a limitation of 100 SMS per hour unless you root the phone. And even if you are the only one to send SMS, the files will probably be too big.
There was a library once for the sharing of data through SMS called Mobile Push (droidpush), but it is no longer available
Related
Say I have an account on Yahoo. They limit the attachment size I can send, although they don't limit the size of the mails I can get. How do I send large attachments?
I successfully sent (via java or c#) emails, and used google-drive (web) to send large attachments (174M), but how do I combine it? I haven't found anything that says how to add to google drive and send it.
I saw some sites that enable you to send large files, but the problem is I want the files in the email server (Yahoo/GMAIL ), not on anonymous site (and I haven't found a sites that send email, only sites that store themselves). How do I do it?
Can I send the mails via telnet somehow?
As an option, use Google Drive SDK in your application.
Before sending email, upload your file to Google Drive and send the link to the uploaded file.
I am working on an Android app. I want to send images and videos from my server to my Android app. GCM allows only 4kb of data to be sent, but media files are generally of larger size so how to do this?
You don't send it over to your client using gcm. You use gcm to inform the client about new stuff to fetch from your server / the cloud.
Read the gcm-docs and the "send-to-sync" idea under advanced topics.
Check the Google IO web-api video (~ minute 30) for the big picture Google I/O 2012 and the files in android-sdk/extras/google/gcm/samples
I actually wrote two blogs posts on this. The first one shows how to send a link in the payload and then download the files using the URL.
The second shows how to send small images as part of the 4K payload.
Store the media (images, video etc.) on your server & send link of them through GCM to android app.
I am writing an Android application that needs to communicate via sms. So for example application will send a message "Hi" to number 123, when number 123 receives the message it will be parsed on their phone by my application and acted on if it was determined to have been sent by my app.
Now I have the sending and receiving/parsing of messages working perfectly but I need a way to identify that the message was sent by my app. I could easily semd the message as "appName:hi" and check to see if the body contains 'appName' but the problem is if the user who receives my message doesn't have my app I would prefer if they just saw "Hi". So I was wondering if theres a way for example to send invisible characters or set some other identifying information either in the sms body or as part of the sms itself ie header. I would like to avoid data sms if possible and my app is intended to be offline.
Any ideas how I could accomplish this?
You can specify port when sending SMS. I do not know how to do this with Android API but since this feature has being supported for years by J2ME Android must support it too.
Your application should listen to this port and send to the same port. So, if user already has your application I think he even will not see the message in his inbox. At least this was the behavior in J2ME. If however he does not have the application yet he will either see it in inbox or will not see it at all. Check this with android. As far as I remember in J2ME it depends on the phone model.
I am trying to make an app that connect to the server.
The app is used by some devices.
If one of the devices upload something to the server, I would like other devices receive the notification about the server has something new.
My question is, how to check the server is change or not? How often we must check the server?
I wonder how the Online Messaging work, because someone send something, we receive the message ASAP
Is the concept can be use with my app?
Sounds like you want to take advantage of Google Could Messaging or GCM for short.
http://developer.android.com/guide/google/gcm/index.html
This could be a lightweight message telling the Android application that there is new data to be fetched from the server (for instance, a movie uploaded by a friend), or it could be a message containing up to 4kb of payload data (so apps like instant messaging can consume the message directly).
GCM is the standard for how your apps "talk" to your servers. Either for a message in it's entirety or just a message to go check the server because it's been updated.
Is it possible to open my mobile Java program with an SMS?
And I don't want this SMS to be stored in the inbox. I'm looking for the kind of "Control SMS" that banks use for their mobile applications. I want the same in my application: send SMS to the mobile, the mobile device shows a message on screen that will be opened by the program, and this SMS should not be saved in the inbox.
Are you sure that you're not mistaking push notifications/cloud to device messages for SMS's?
Push/C2D messages are similar to SMS's inasmuch as a central server sends a message out to devices and many apps then display a popup based on that message, but the implementation is completely different. If you're not mistaking the two, is there a reason you'd prefer to use SMS's that are handled differently than most instead of push/C2D messages?
Here's the documentation for Apple's Push Notification Service.
Here's Android's Cloud to Device Messaging documentation which serves the same purpose.
Have a look and see if that would serve your needs.
If you are looking for completely client side J2ME based solution for feature phones - then try push registry. It is available above MIDP2. I don't know the exact details but there you can define event and triggers which will be stored by phone OS and invoked automatically when particular type of event occurs.
SMS sending is separate issue but there are tools available for that definitely.