integrating mixare into Android app - java

I wrote an Android App using the Mixare (link to mixare project) Framework (for augmented reality).
The first step was to get the App running with my own data source. This was pretty simple since you simply have to create a new Intent for the mixare content like this:
Intent i = new Intent();
i.setAction(Intent.ACTION_VIEW);
i.setDataAndType(Uri.parse("http://myserver:8080/myData"), "application/mixare-json");
startActivity(i);
The problem is that this code simply makes a call to the mixare App on your Android device.
I want to modify the mixare view and integrate the whole source code into my App (it is licensed under GPLv3).
Do I have to use the mixare code as a library? What changes would I have to do to my AndroidManifest.xml for creating a new Intent?

I found out, that my question is not necessarily a mixare problem.
The Solution for integrating an Android app into another one is using the first one as a library.
For anyone who has not done this before this article helped me a lot. It explains how to integrate zxing barcode scanner into an Android app natively.

If you want to integrate mixare into your app then the whole app must be released under the GPLv3 license.
At the moment it's not possible for external plugins to alter the mixare view (i.e. using own icons or modifying the layout), but there are plans to do so, even though there are no estimates.
If you are interested I would suggest you propose your suggested approach to the developer discussion group.
HTH,
Daniele - mixare team

Related

React Native - Opening Android Image Gallery Directly

As the title states, I am wondering how to open the Android image gallery directly from my app. Every single package that is out there, including react-native-image-picker, react-native-image-crop-picker, and yes, even Expo's expo-image-picker all open the "Recents" area!
Opening the gallery MUST be possible, since apps like Whatsapp, Tinder, Facebook, etc. all have this functionality when choosing pictures.
Such a simple functionality - and yet after a month of on and off search I have come up with no solution. Can anybody provide me with a way to do this? Or guide me in the correct direction? At this point I am prepared to write native Android code or custom React Native to get this to work.
i found this library
react-native-multiple-image-picker
it will open camera roll not recent file

using cameraView to show markers on a specific location

I am working on a native android project in which i need to use augmented reality in a section.
It is a like a business application in which user get offers from company.
Now the main part is the offers will get like we get Pokemon in PokemonGo app.
Also the offers will be shown to the user like the restaurants shown in Yelp(Camera View).
Please suggest me what do i do?
Do I use unity for this or this kind of app can be build in eclipse/Android Studio.
I want to know how do I integrate Augmented reality in my native android app.
I don't have any experience in Unity.

Making IPTVCore to work

I am new to android and java development although I am an expert with IPTV and I have made the biggest Greek and Cyprus IPTV but since there is a lack of Greek IPTV android apps I decided to make one application.I found IPTVCore on playstore which is made by the developer of the IPTV app.In the description it has a link on an app that uses iptv core github
I downloaded the zip changed the icons and renamed the files. In MainActivity.java I removed the first comments and added my playlist url and changed package name.
I have android studio and eclipse with android addons.
How to make it an apk?
If you mean to simply be able to load it onto a devices to test then both Eclipse and Studio will allow you do this when you elect 'Run' and have a device attached via the USB (with USB debugging enabled). This will actually install the apk on your device so you can test it.
If you mean actually making the apk available for others (via the play store for example) then you should look and the Android publishing documentation:
http://developer.android.com/tools/publishing/publishing_overview.html
In very broad terms, you develop the app, build it, test it etc and then when it is ready for release you build it for release (remove all debug code, test data etc), sign the app, and release it via a marketplace like Play Store, or avi email or your own web site.
One important thing to remember is to version the app properly - the is important for all the obvious reasons (users or support wanting to know the version) but also because the marketplace update mechanisms may use it to check what versions can be updated etc.
Update - answering the question in the comment below:
There are two approaches suggested in the Readme file with the project:
To build you custom IPTV app you can do one of the following:
Clone iptv.example project, change app name, launcher icon, and
package name.
Blockquote
Create new Android project with empty activity and use
the code from MainActivity.java
The second one might actually be simpler for you if you know how to create a simple Android project - just do that and then replace the MainActivity code in the newly created project with the code in the MainActivity file (the only java source file) in the githib project you have downloaded.

Android/Java - refresh activity like in gmail app

I don't really know how to name it. In android gmail app or google now, etc it's possible to refresh data by all content down and then release it. All data are refreshed, with nice animation.
I'm looking for solution how it's done and how can I do the same in my own application. Do you have any examples, tutorials etc? How to develop this kind of "pull to refhresh"?
[edit]
What is better - 3rd party lib or Android SDK functionality? I'm looking for look like closest to gmail app.
There is a SwipeToRefreshLayout in android which is used to to that.
https://developer.android.com/reference/android/support/v4/widget/SwipeRefreshLayout.html
Here is one of the tutorials
http://antonioleiva.com/swiperefreshlayout/
Read below lib for refresh your page :
https://github.com/chrisbanes/Android-PullToRefresh
This lib support :-
ListView
ExpandableListView
GridView
WebView
ScrollView
HorizontalScrollView
ViewPager
There is a Pull to refresh library which is mostly used. It is very easy to implement. From here you can download it.
Pull To Refresh for Android
Just import the library into your IDE, and add it your project as a dependency. An example is also included form which you can get coding related help.

Allow my Android view to be embedded in other apps

In web-based development and Windows-based development it is possible to develop applets or components that other applications can embed in their own UI seamlessly. I have a component (derived from View) that does some real-time animation that I'd like other apps to be able to embed in their own views or activities. Is it possible to allow other apps to embed this component in them in such a way that, when my app is updated, the other apps will automatically exhibit the updated behavior in their embedded component?
If this is possible, I'm having a hard time figuring out the search terms to use to look up how to do this. How would one app go about embedding a view from another app, and what happens if that other app isn't installed?
You cannot directly allow embeding in the way of an iframe.
However, you could make your View a library project that other developers can include in their app, much like they include another company's SDK. To allow updating automatically, you will need to have your app installed in addition to theirs, and when making the library project, you will have to make a BroadcastReceiver that can react to broadcasts you send from your app to update the Views in other apps.
Your SDK can then receive these Broadcasts, and update your View accordingly.
You can make your current project as Library project. You add the Library project to the project you want use the custom View. Your custom View will be accessible in that project.
You can mark a project as Library project by going to Project Properties > Android and checking the appropriate checkbox.
You can create an app widget for your application, and that widget can be used by any application that acts as a widget host - which few do - but at least you could have it on your home screen. I wonder why this is not done more - that would be a killer feature for many applications.
https://developer.android.com/guide/topics/appwidgets/index.html
Gives more information.

Categories