Skip to content Skip to sidebar Skip to footer

Android: Deliver Plain Text Data To Another App User With Clickable Image Via Sms/mms

I have a RecyclerView list of CardViews that hold a small amount of user data. The data is saved to the app's SQLite database. I would like to send a CardView's data from one app

Solution 1:

There are so many questions being asked here, not a single one

How can I attach the data to the image so that when it is clicked on by the user it opens the app, saves the data and then shows the new CardView

The answer is you can't do anything like that automatically. You need to manually implement some code for receiving that push and then create the card instance in your recycler yourself.

My suggestion based on your database comments, is to have your recyclerview monitor your db with live data to create those card instances. You just store each card you receive.

Would an SVG image file work in this case because links can be embedded within the SVG?

That kind of security and privacy violation would probably (deservedly) get an app banned, so don't do that

Would an AppWidgetProvider and RemoteViews work here?

That's completely unrelated to anything here, that's for adding dynamic content to the home screen

when the receiving user clicks on the image in the SMS text, the app would be opened

Monitoring users sms is a touchy subject now, for both users and for Google. Ensuring that your app handles a link clicked in an sms (even a dynamic link) is error prone and difficult now. A much better idea than sending sms (which also costs the user money) is to use any kind of pub-sub model. Lots of libraries and services offer this. Firebase can be used this way too.

Solution 2:

I'm not sure if its possible what you are looking for, but I think your best approach would be to use firebase dynamic links.

Post a Comment for "Android: Deliver Plain Text Data To Another App User With Clickable Image Via Sms/mms"