Send broadcast intent in Chrome from the user clicking a link - General Questions and Answers

Does anyone know how to send a broadcast message in Chrome from the user clicking on a link? It seems that Chrome will allow an activity application component to be launched by the user clicking on a link if the specific application component is present on the device and it has a category of android.intent.category.BROWSABLE. The information about Chrome launching activities can be found by searching for "chrome intents". I was wondering if anyone found a method to send a broadcast intent to start a broadcast receiver application component as opposed to an activity application component. Thanks!

Related

Android SDK - Managing Groups of Activities?

Hello,
I'm building a chat application with the Android SDK, I have everything working perfectly, except one thing... in the chat activities (that display conversations), I have a list that's gonna display a list of other started conversation activities.
How can I get a list of other subactivities (chat activities) of the main activity (contact list activity)?
I may also need to know how to bring a running activty to the front (even if multiple instances of the chat activity are running, find one that has a specific propery, such as the endpoint chatter's name, and bring it to front).

[Q] no applications can perform this action

Dear all,
I am developing a small Android application with Gingerbread (2.3.3). I want to send a message home to myself when the application crashes. I have found enough examples of how to do this, have implemented it using Intent.ACTION_SEND. Everything works wonderfully, even in the emulator - but only when the emulator has a configured email client. When the emulator has no configured email client, the message "no applications can perform this action" is displayed to the user. This is also not surprising.
My question is: is it possible to trap or suppress this "no applications can perform this action" message before it gets to the user? I know that most users of my application will have a configured Email application - but there are some users that will not have email configured - and I would like my application to fail quietly. I have tried using PackageManager.queryIntentActivities, but this returns at least one entry in the list - again not surprising because the email application is installed - it is just not properly configured.
Does anyone have any ideas how I can trap or suppress the message?

[App][2.3+] Hermes

Hello fellow developers and/or Android enthusiasts,
I wanted to take a moment to start a thread on for the Android application (2.3+) Hermes. I would like to post the application first here to get your feedback, comments and improvement ideas.
Hermes (a.k.a Map My Location)
Hermes is an attempt to provide a sense of security to all the travelers of all over the world and especially the women who use the public transport to commute to their work place and back home.
Hermes is an application that lets a commuter be tracked while on the road, posting the whereabouts at regular intervals on popular social network. The posts are secured and are visible to only those whom the commuter has provided permissions to view. It also enables your friends and family to know your whereabouts by sending you a SMS containing a secret code.
The application consists of two main features:
Track Me
Live Track
TrackMe
Track Me enables your friends and family to locate you easily. They just need to send you a SMS containing a secret code ("hermes" by default). Upon receipt of this SMS, the application automatically sends a SMS reply to the sender containing the Google Maps link of your location.
Live Track
LiveTrack enables you to automatically publish your location on Facebook at regular intervals tagged ONLY to your friends and families. You just need to connect to Facebook and specify which specific friends in your friend list will be able to see the posted location on your timeline.
Why does it need so many permissions?
Read Contacts - Need to get the Name of the person sending request for Track Me
Storage (modify/delete SD card contents) - Needed to create logs and caching
Connect to Internet - Required to make post to Facebook on your behalf
Read SMS - Required to capture an SMS contaning Hermes secret code
Send SMS - TrackMe automatically sends SMS reply to the sender with Google Maps location. Note: Your carrier standard outgoing SMS charge may apply.
Access fine location - To capture your location
Access network state - Used to determine if application can post to facebook through network connection.
Run at Startup - Used to enable live track service after reboot
Prevent phone from sleeping - App wakes up the device at interval specified for LiveTrack
Why the application requires Facebook permissions?
Facebook permissions are required only in case you are using LiveTrack, since LiveTrack automatically publishes your location automatically at defined time inteval. Following permission is required:
Post on your behalf
The app posts my old/wrong location through TrackMe SMS
The application tries to retrieve your location from both GPS and cellular network and latest one is used. To ensure accurate location posting, the application will require either of following in order of preference. All of them might not be practically possible because of various reasosn such as battery constraints (GPS) or your current location (WiFi connected)
Your GPS is turned on
Your Mobile Data (2G/3G) is turned on
Your Wifi is connected
If none of the above is true, the application will post your last available location.
The application fails to post my location on facebook
If the application fails to post your location on facebook. Check the below conditions:
Your mobile have working internet connection (2G/3G/WiFi)
Your facebook account is connected in the application
You have selected the friends option (either Everyone, Friends, Friends of Friends, Custom)
If the internet is not available at the specified time of the making a facebook post, the application will post the location as soon as the network becomes available.
What is the ideal data/WIFI/GPS connection for this application
During my testing, the application works well with 2G connection, providing fairly accurate locations. GPS can be turned on if precise location is preferred during LiveTrack
I want to file a bug report, What should I do ?
Check github issues. Create a new issue and include the following details:
Version of the Hermes used
Version of Android/brand of phone used
Screenshots:

[Q] How to enable session tracking in my android app?

hi,
I'm now developing my first Android application.
My application interacts with a web service using SOAP messages.
The web service sits in glassfish4 server.
So I want that every user that interacts with the web service will get a new instance of the class that represents the web service. I read that to do this, I need to add the @httpsessionScope annotation to the web service class. But what should I write on the client side, in the android application to enable the session tracking?
Thanks

[CLOSED] AndroRat Details

Mod edit: Thread closed as no download link or attachment is available!
AndroRat is a client/server application developed in Java Android for the client side and in Java/Swing for the Server. The name AndroRatis a mix of Android and RAT (Remote Access Tool). It’s a remote administration tool that allows to control mobile devices remotely with a computer. Download AndroRat full version.
Features:
Get contacts complete info.
Get all logs
Monitor messages and other conversations
Find out the Location by GPS/Network
Check out Browser History
Monitoring received messages in live
Monitoring phone state in live (call received, call sent, call missed..)
Take a snapshots from the camera
Stream sound from microphone and media played.
Streaming video (for activity based client only)
Do a toast
Send text messages
Make a call
Open an URL in the default browser
Check out installed Apps
Do vibrate the phone

Categories

Resources