[Q] Messaging based GPS app - Java for Android App Development

Hello XDA,
Well I am just a Beginner in android development, basically I am a student and a task is given to me to make an simple application don't need to have great UI etc, but it should perform functionality as directed below or give and explain your reason weather it could be implemented or not.
Well i think it could be implemented but i need guidance about how to do that,
1) Built an app which can triggered by text message (could be any type of)
2) application need to have some code for gps which can be triggered by sending a simple message from my other android phone(how and on which activity)
3) than that phone have to return its location by sending coordinate or map link with its location to me (Email or just a simple text message or other messaging services like whatsapp viber etc)
4) that message should not be received by any other messaging app (how can i Limitize the broadcast receiver etc)
5) if GPS is off text message should turn it on first

Related

Control your car by XDA

Problem:
there is a GSM Module in my car. It has three functions:
1) Send alarm warnings (when someone is trying to steal the car or CD player) to my phone (XDA2) as a SMS.
2) Retermine car's location, when it is stolen
3) Remote control of Webasto heater (when standard radio remote control can't reach the car - max. distance is 800m)
Each of these function has a small problem:
ad1) XDA just once silently beeps when SMS is received. It is fine for regular messages, but not for that message saying "Someone si trying to steal your car!". So I need a different sound for received messages, depending on sender - the sound for SMS sent by my car must be louder and longer, than SMS sent by my wife! How to do that?
ad2) I'm using T-Mobile Locator service for that. I don't know if TMO offers it in all countries, but here, if you know LocatorPIN of some mobile phone, you'll immediately receive a SMS containing location of that phone. I also have a great navigation software and maps (2CDs) from TMO - so when your phone is connected to the PC, you can track location of your car (or even of your wife). But without the PC, you'll only receive a text message with approximate location (calculated from one BTS). On PC you'll get more precise position calculated from more BTSes. So I need to use my XDA as the PC - I want to see accurate position on the map. But I'm not sure if some PocketPC navigation map software (such as TomTom) is able to read the coordinates automatically from SMS in inbox. On PC you can use any GPS software with "T-Mobile Locator", because TMO provides a driver, which simulates GPS, but in fact it sends SMS location requests, reads the SMS responses and sends coordinates from them to the navigation software.
ad3) To start or stop or control other heaters functions, you need to send a SMS to your car in special format (syntax). There must be a 7-digits password for the car's GSM gate and SMS also must contain commands for the heater in proper syntax. So I'd love some application simillar to those applications for infrared remote controls - the fullscreen panel with buttons such as "Start heating", "Stop heating", "Turn winter mode on", "Turn summer mode on", "Auto switch-off after XXX minutes", etc... (all commands accepted by heater and/or climatronic). I'd define SMSes in proper format under these buttons (just once) and then I would be just pressing these buttons and XDA will automatically send the SMS. Is there such a piece of software (remote control software sending SMS mesages instead of infrared beams)?
In a worst case I would create that software by myslef. I just received a DVD with latest VisualStudio.NET from M$, I also have the devkit for WM2003. But I don't know, how to send SMS, how to read it from inbox, atc...
1 you need a 3th party program written by yourself or somebody else which pass all your emails looking for a code or frace which makes the xda react diffrently then when it gets other sms's
so you got alot of work ahead if you are doing it yourself or you may have to pay somebody money to make it or if you are really lucky there already is a program free or otherwise which you can use
2 i would look in the gsm api for any function you may also need to keep a list of locations to match what the gsm provider give you with something you can use for anything
not to mention using that list to make some map program know where you are at
3
well here all you have to do is make a today plugin which auto send predefines sms msg when you press them
i would think that all these wishes would require some programming some of them some serious programming
of cause i could be wrong and there already is a super tool which does all these things and make toast
good luck
I can't believe there's no such app!
Have you tried doing a search ?
I am pretty sure that exactly the same question came up a little while back.
Rgds,
Rob.
What is the GSM Module? Also does it have a GPS module as well and can you connect it to the XDA II to give a GPS feed for Sat Nav purposes?
I am after a device similar to the one you've described but I want it to also feed GPS data.

[REQ] Looking for an sms app that does the following...

Hi everybody! I have a request for an sms app to fulfil my daily needs! Here is what I would wish for:
1) Config and save the following parameters: phone number, sms text, start time, interval (in minutes), end time and/or number of iterations.
2) Start the app, change/confirm settings and then let it automatically and repeatedly send sms to the predefined number with the predefined text and timing.
What is this good for? Well, my personal scope of application would be the sms parking service that is available in my hometown (Austria/Vienna)... You just send a text e.g. "10 *w47559e" and you're good to park your car for the stated number of minutes and car sign. However, if for some reason one needs more time, it is troublesome to constantly extend that sms ticket manually.
Maybe you guys can point me to an already existing tool that does the job. Or perhaps one hell of a coder here can give it a try! Wouldn’t normally make such a request but considering some of the great apps appearing on this board I thought it could be worth asking.
Thanks!

Communicating with device

I'm working on a location based app that would request the phone to send its GPS location. My question is, what are the available methods for requesting the location from the device? My first choice was HTTPD but the device IP is unreachable from the world (sprint). My second choice is SMS and have the phone intercept the messages. If it sees a location request SMS then it would respond to a web service with its current location.
Is this a reliable method?
chris
Looks like MS My Phone uses SMS to request phone data... interesting.
Location request:
SkY!AVEjDy2DGyMCE6RO0qhs56aR1/zf42OXBlbdErz6sVTLW6iHFk+wQUhRX6aSEDkI0w==
Ring request:
SkY!AZbZmdMB6eVOig9Y5Ol6QtCQZAVU8XFZLi19k95Cqzn14CZ+qKuUi+2ha3VFqbRdXA==
Lock request: pin 1234, text Chris
SkY!AYDmzGeCMrT8NeDWmn5QaK96Jvsv0mQZIqEgwzvwE35ZCuBZea4M349kMwBkjVV63Y0ROvV+okapsl7UnzqcJBU=
You would think that MS would filter these texts out of the sync process...
The Ring request worked and GPS location failed (btw, the GpsSample from the SDK does not work either). So no MS I don't want to pay 4.99$ for your non-working premium services.
Sky Command Received | Command Locate (ID 2) | Request Id 22815
Sky Command Received | Command Ring (ID 1) | Request Id 22816
I wish the app was .NET like bing so I can reflect on it.
\Application Data\Microsoft\My Phone\Config.dat contains some service end point info. I would like to get the WSDL of those.
I'm curious about HKLM\init\Myphone\OEMOverride = 1.
This is great MS, due to your SMS interceptor I can't send myself any SMSs that start with 'SkY!'.
I tried resending the above SkY requests to my phone. The only thing that happened was the phone backlight came on (the SMS was not visible) and \Application Data\Microsoft\My Phone\MyPhoneLog.txt got an entry appended but the request was not valid. keep in mind that I had to uninstall the MyPhone app and use the MyPhone web site to send out those SMSs so that they would not get intercepted by MyPhoneService.dll.
I stopped the SBB0: service but the SMS still got intercepted. I didn't stop the Notification though: NamedEvents\MyPhoneRuntimeStartRuntime (if that's the right notification).
I guess the next step would be to write a .NET SMS interceptor to see if it will intercept the SMSs or not.
it looks like the interception is done using MAPI Rules which I assume is processed before MessageInterceptor and it looks like the SMS cannot be replayed...
List of commands:HKEY_LOCAL_MACHINE\Software\Microsoft\My Phone\SkyServices\SkyCommands

[FREE][APP] mSaver- Guardian app

Hey Friends..
We have made a guardian app called mSaver.
Description:-
mSaver is a guardian application.It tracks your current location and pass the information to your friends instantly as a text message, when you tap a single button. The application plays a vital role when an individual is in any dangerous situation and wish to pass the information about his current location to his friends or relatives without giving any indication to the persons nearby.It also have an option for sending periodic alerts,which updates your friends or relatives with your changing location(if you are moving) information in a periodic manner. When periodic alert is turned on,the application will run in background and sends messages to your friends even if the application is closed by the user. It also provides an option to update the location when you are safe.
The application lets you to configure social medias like Facebook and Twitter and so that you can update your current location information and hence ask for help from your friends there.
The application is built with simple UIs so that it can easily be operated in seconds when you are in danger. All the messages and durations are customizable.
Note:This application is strictly rely on the network availability of your device.
Please give your valuable feedback. Its really important for us.
You should have posted it at http://forum.xda-developers.com/android/apps-games . But that's ok maybe a moderator will move it there. Your app looks pretty cool. You should post a link to google play or something. One thing though, when travelling I never have a good connection. The google maps api lets you reverse GPS location into a city/country name. You usually have to wait a bit for that information to load after the GPS signal has been acquired for that info to not return null. So like while on wifi on a pit stop is a good time to report "made it to country/city" to recipients.

[APP][Android 4.4+] M2D Notifications Sender and Receiver for Smartwatch

This set of Apps will allow you to receive notifications on your secondary devices such as:
- The tablet you use away from the phone.
- The small mobile that you use for sports and leave your house phablet in safekeeping.
- Your SmartWatch with Android - You can use bluetooth
Now you can receive notifications, sms and calls
Installation
Once installed and configured M2D Notifications Sender on your main phone (which usually use), this forward notifications to your (max 3) secondary devices so you can read them while away from your main phone (if they have internet access) and in many cases will leave you answer them.
On your tablet, or mobile accessory or even watch android, you must install M2D App Notifications Receiver and once configured, you can receive and reply notifications.
Configuration
*** Now you can use Bluetooth as well
For devices can look them eatch others, you need to enter in the App M2D Sender the Receivers codes. This code is shown on the display settings of the M2D Receiver App once it is installed on your secondary device.
In the Receiver M2D App you must enter the IMEI of the main device. This imei is shown on screen settings of the M2D Sender App once installed in your primary device.
There are other security parameters to avoid that anyone can send messages to your device.
On the M2D Sender App you must enter your own key and in the M2D Receiver App the same key that must match since otherwise the messages will be discarded. This key allows the Sender to send messages and that the Receiver will accept. By default Apps already have this code included, but you better change them.
On the M2D Receiver App you must enter your own key and in the M2D Sender App the same key that must match since otherwise the messages will be discarded. This key allows the Sender to send messages and that the Receiver will accept. By default Apps already have this code included, but you better change them.
Additionally, messages are encrypted so that only the recipient can read them. For this an encryption key is used in the settings. By default Apps already have this codebook including, but you better change them.
Replying
In addition to receiving notifications, in many cases, action buttons will appear with different options, including reply ones.
You can reply with predefined options and also with the keyboard as usual.
Every time you send an action, we will receive a message with the status of such action, for example if the message was sent or not.
To avoid synchronization issues notifications viewed on the main device are not automatically removed and vice versa.
Sending whatsapp
The M2D Receiver App has a button that can send messages to contacts we have previously received whatsapp messages. This depends on if there are unread messages in whatapp when a new notification arrives, but the app will always be learning and allows you to write to more contacts.
How does it work
- Notifications are encrypted and send with the key configured on the server Apps.
- The server checks the sender and receiver data to see if they are registered and if so sends the message to Google using GCM (What's this?)
- When the Receiver has internet, Google shall forward the notification to Receiver
- The receiver decrypts the message and checks that the keys to Sender and Receiver match
- The receiver displays a notification to the user
In the case of the answers is similar, but completely upside down.
Privacy
The server never stores the message that it receives, it only makes like a proxy for shipment and is very light.
Further messages are encrypted with the encryption key (change those default)
Apps
M2D Sender: https://play.google.com/store/apps/details?id=com.pacosal.m2d.notifications
M2D Receiver: https://play.google.com/store/apps/details?id=com.pacosal.m2d.receiver
M2D Bluetooth Manager https://play.google.com/store/apps/details?id=com.pacosal.m2d.manager
Enjoy!
Original thread here http://forum.xda-developers.com/android/apps-games/app-m2d-notifications-sender-receiver-t2986778
GREAT app. M2D user here. Thanks.
Hello, there. I'm trying to setup M2D on a Amazfit Pace (Android 5.1, MIPS processor). The Receiver app installs, but FC when I try to open it. I didn't find anything about Amazfit on this thread, so it's a known bug? Maybe this can be fixed in the future? I think M2D would be very useful for Pace owners, so the watch can receive notifications on WiFi as well. Thank you!
Do you know what error is giving you? Could you see the logcat?
Logcat from my Amazfit stratos
03-23 21:33:43.975 2234-2234/? E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.pacosal.m2d.manager, PID: 2234
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.pacosal.m2d.manager/com.pacosal.m2d.manager.MainActivity}: android.util.AndroidRuntimeException: You cannot combine swipe dismissal and the action bar.
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2325)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2387)
at android.app.ActivityThread.access$800(ActivityThread.java:151)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1303)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5254)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)
Caused by: android.util.AndroidRuntimeException: You cannot combine swipe dismissal and the action bar.
at com.android.internal.policy.impl.PhoneWindow.requestFeature(PhoneWindow.java:332)
at com.android.internal.policy.impl.PhoneWindow.generateLayout(PhoneWindow.java:3409)
at com.android.internal.policy.impl.PhoneWindow.installDecor(PhoneWindow.java:3724)
at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:400)
at android.app.Activity.setContentView(Activity.java:2145)
at com.pacosal.m2d.manager.MainActivity.onCreate(MainActivity.java:37)
at android.app.Activity.performCreate(Activity.java:5990)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1106)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2278)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2387)*
at android.app.ActivityThread.access$800(ActivityThread.java:151)*
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1303)*
at android.os.Handler.dispatchMessage(Handler.java:102)*
at android.os.Looper.loop(Looper.java:135)*
at android.app.ActivityThread.main(ActivityThread.java:5254)*
at java.lang.reflect.Method.invoke(Native Method)*
at java.lang.reflect.Method.invoke(Method.java:372)*
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)*
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)*
03-23 21:33:43.984 432-566/? W/ActivityManager: Force finishing activity 1 com.pacosal.m2d.manager/.MainActivity
03-23 21:33:44.007 432-679/? W/InputMethodManagerService: Window already focused, ignoring focus gain of: [email protected] attribute=null, token = [email protected]
03-23 21:33:44.536 432-453/? W/ActivityManager: Activity pause timeout for ActivityRecord{3f71c65e u0 com.pacosal.m2d.manager/.MainActivity t422 f}
Thanks, difficult to fix that without the watch. Possibly there will be more errors than that one.
Regards

Categories

Resources