Accessing another app's files - android

Background information: I am using Ionic framework to make a mobile application that can run on both ios and android.
Fore explanation purpose, I want to use App A(I am making this app) to the music files in App B(ex. Spotify,music player). So users can use my App A to select the App B, and I will import all the music files to my App A. Then the user can select which music to play. All process are done with App A.
Is there a plugin that can do this? Or is there a pre-existing command to do this. I am fairly new to app development. I know this is achievable, but how is it usually accomplished.
Hopefully, my description is understandable.

Content Providers can help you, refer this blog post
And also, this Documentation will give you all about sharing data between apps.

Related

Create iOS / Android shortcut or APP for a website

I have been asked to make an iOS / Android app that simply opens a website on full screen.
I have told them that, by using the iOS / Android native option to "Add to Homescreen" would accomplish the needs, but they insist on making it completelly automatic for the end-user.
Am I doomed to make both Apps for this need? Is there any way to "automatically create" or "share" an already created homescreen shortcut?
Thanks for your time.
Yes, you are doomed to make two apps, but you can start with a cross platform framework that can output to both platforms, allowing you to write it once. From how you describe this project I recommend starting with Cordova.
As maddy points out in the comment, an app that simply displays a website will be rejected by Apple. Yet if you encapsulate them website inside Cordova app, where the app need not access the website, or only access a website for updated information you will probably be approved.

Manually open hyperlinks in specific app in Android

I use the Twitter app to follow a lot of news outlets. Each one of them posts links to articles on their websites. I want to open those articles in the news outlet's dedicated Android app. Some of them, like the NYTimes app, does it by itself. But most of them don't. I'm figuring that's because they haven't declared an intent in their app to do so. So basically I want to write an app that would give me an option to redirect the hyperlink of the article to a specific app, and I want to do it for multiple apps. Would it be possible to create a regex that would run on the URL and redirect it to the proper app accordingly?
Would it be possible to create a regex that would run on the URL
That is impossible to state in the abstract. Android's <intent-filter> system does not allow for filtering on all parts of a URL.
and redirect it to the proper app accordingly?
That is impossible to state in the abstract:
There is no requirement for the app for a news site to have any means for outside apps to tell it what to view
There is no requirement for an app's developers to document how to convert a Web site URL to whatever input would be available to tell the app to go view something
So, what you want may be possible for some news apps, but the details would vary by app.
Not that I am aware of - though this is an interesting concept.
Here are some things to know:
the twitter app doesn't care how the intent is resolved. the purpose of the intent is to share external data. once the twitter app has handed over the intent with the url it is up to the android system to decide which app can resolve.
the NY Times app is capable of opening because of this feature: https://developer.android.com/training/app-indexing/deep-linking.html
Workaround:
Learn to develop your own Android ROM to modify the Android Open Source Project adding your logic for intent resolution, compile and get your new Android ROM ready for deploy, install ROM on phone, keep your fingers crossed the entire time.

How to create google play app with my website?

I want my website should act as Google play store app.
For example, go to-> hytoz
and hytoz app
Both source are same. But when I open this app, website will shown as app and after click back or close, it's asking confirm like application.
How I can make this? I'm not android person. I'm in PHP.
First of all, making Android app isn't a one click process. To make a simple Android app, you can make use of Android WebView. Since you're new to Android, I'd suggest you to take courses on basics of Android.
You've mentioned you're familiar with PHP. You can better try PhoneGap, with basics of HTML5, CSS3 and JS, you can build an app. Also, your needs like back, close can also be done with it, and moreover, it's cross platform, you can ship to other operating systems too.
Good Luck.

Android, iOs & WP8: read QR code -> open app or go to the store

I want to develop an app (Android, iOs and Windows Phone) that reads information from a QR code. But I want to know one thing, before developing it...
is it possible to create a QR Code that does something like the following?
if I read it with another app (anyone) and there is my app installed -> it opens my app with the data read from the code.
if I read it with another app (anyone) and there is NOT my app installed -> it opens the store (app store, play store, ecc...) to download my app.
Sorry if it's not so clear... I'm not english native.
Yes, this is possible on all three of the platforms you mention by defining and using a custom uri schema.
In each case, if the app is not installed the appropriate store will be opened and a search will be done for apps that do support the schema.

Run an app within an app Android

I am creating an app that i would like to have apps running within it like let's say an iframe on a website. Is this possible? For example i will open my app and it will show the Gallery of the phone but while running my app, and not just by opening the gallery app which will make my app minimized. I want it exactly like an iframe, is this possible?
you can not run another app within your own application. You can do any of the following two
start the other app by sending intent message
or create the other app's features similarly in your own app.
According to your question if your need is to create a gallery then why aren't you creating a own gallery in your app? that will be more easier and flexible
You can not run another app's Activities within your app in an iframe style for security reasons, sorry.
Yes, I believe that is is possible for Apps to run cross platform if there exist a common data framework that creates a uniform standard for how data is stored and referenced. So the data can exist in the cloud but referenced via each app independently of the mobile phone platform.

Categories

Resources