How can I implement an InApp store into my App? - java

I want to have an InApp store implemented in my app, but after a lot of research I haven't found how I can code it or how it will work overall. My guess is, that I hide some areas of my App and only will reveal them after someone paid in my store? I am glad for every piece of information abut how to code an InApp store.

You are in the right way. You can create a login screen and if user login and pay you can show him the download button (to download some app). You can upload every app (*.apk) in your server and the user will be able to download it.

Related

Tracking of directing user to Google Play Store

I've built a app that directs users to other apps on the play store. Im looking to be able to see which users I directed to this other app. Im using android studio
If you just want to know which or how many users went from your app to the play store, you can achieve this by event tracking for example via (Firebase Analytics). But as soon as your users have left your app, there is no way of tracking what they once left. For example, if there is a list of apps in your app, each linking to their corresponding play store entry, you can track clicks on the different links inside of your app. But as soon as the user clicked on that link and went to the play store, you can't track what he is doing there or if he is downloading the app (as long as you are not the developer of the app the user then downloads)

Can you make an app auto download for android on contact with an nfc tag?

I have an idea for an app and after doing some research I couldn't find anything that would answer my question, what I want is for when a user touches their android phone off a tag, it auto downloads an app for them, kind of like a QR Code, but specifically nfc.
All help appreciated.
No app can be installed without user interaction. This is required because the user is in charge of the device and he has to manually allow an app to be installed, otherwise you have a great recipe for allowing malicious apps to find their way to your device undetected.
Best you can do is direct them to the play store page with your app, but it is up to the user to decide whether to install it or not.

Android demo or trial app

im creating an Android app and i want to put it on Google Play. I want the users to download it, use and test it for about 7 days and then, the app will be blocked and the user has to buy it to continue using it.
I've tried with Backup Manager but it didnt work.
Then i read about Licensing (i have a good tutorial already) but i dont know if its what i need.
Other option is to make a subscrition payment to use, but with a free trial, however this is a bad option because the user has to put the payment method and data to use the app.
What do you think guys? can i use Licensing for what i need or better other tecnology?
EDIT:
Maybe i didnt explain myself very good, i want to know if with the Licensing system i can do a trial version of an app for like 7 days. I've tried the other solutions and didnt work for me (Backup Manager, SharedPreferences...) and want to know if Licensing can help me or if its another technology i can use.
There is no direct solutions for what you want.
Google provides a Subscriptions trial with their Subscriptions library, but then the users should pay "regularly" for the content of your app. (weekly, monthly or yearly etc..)
The best option for your use case in my opinion should be this:
You setup your app as FREE on the store
When the user download the app the first time, you create some sort of key which identify your installation on that device
After trial period ends, you can block the app usage until the user purchase an In-App item which re-enable the app functionality.
This is some sort of FREE/PRO version logic which a lot of developers already use in the store.

Start video chat without user interaction - Android

I am a total noob on this site so please be patient. I am trying to initiate a Video Chat/Call without any user interaction or confirmation.
I found this:
Uri imUri = new Uri.Builder().scheme("xmpp").authority("gtalk").query("call;type=video").appendPath(email).build();
Intent IM = new Intent(Intent.ACTION_SENDTO);
IM.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
IM.setData(imUri);
startActivity(IM);
from here: https://stackoverflow.com/a/8024626/1184256
This gets me very close, but I then have to click an "Invite" button to continue. Is there a way I can emulate a KeyEvent to click this button or skip the popup window entirely with root access?
I don't even necessarily need to use Google Video Chat if someone has found a different way to initiate a Video call to a certain contact via Skype, Vtok,Fringe, ooVoo or whatever without user interaction.
I have also found OpenTok which after building a sample server and client on my site I have found that it works on desktop browsers but not in Android browsers. Please don't steal/use my apiKey or sessionId.
I have also found libjingle which will allow me to use Google Talk's peer-to-peer voice and video chat. I am thinking this will be the way to go, but it means building a video chat app from the ground up and wrapping it around these libraries... yeah. Anybody done this already?
I know this is essentially a duplicate thread, but I have searched for days and days for an answer and this is the closest I have come to getting this done.
BTW the reason I need this without user interaction is for a Telepresence robot, thus there won't be anybody actually holding/using the phone when I initiate this call.
Please HELP!
You'd have to actually change the built in android app (Talk?) that receives this intent to automatically accept these types of intents. There's no way to do it from a standalone app for security reasons.
I don't think that live video streaming will work natively in Android Browsers, since they dont support WebRTC (Yet) and do not support flash. With that said, OpenTok has an Android SDK in beta that lets you stream live video from android phone to browser, another android phone, or even an iOS phone as long as everyone is connected to the same session. Like you said, this does not work over the browser and you would have to build a native app.

Facebook login using java-facebook-api

I am struggling from couple of days, to add facebook login to web app using java facebook api, since my web application is java/j2ee application. I went through few blogs, since facebook doesnt have provide the official java library.
I went through this blog and code and tried to make a prototype, but its not working, i could say i spent lot of time debugging the code and removing the errors which I got instead of testing the code.
Logging in with Facebook Java API
Facebook Java api example to publish on Wall
I also took a look at the facebook javascript login button which is quite simple and easy go, but I have couple of clarifications to be made her.
When the user logins I want to retrieve his email_id,profile_picture and also his name, rest of the things I will ask user to fill it up.
My questions are here
How do I retrieve the profile_picture of the user?
A user should be able to see the name and picture of the users who all are logged in
use facebook login,so should be save the picture in the database or I can get it dynamically?
How do I manage the database, suppose the user A visits my site and clicks on fb login for the first and the same user A visits my site for the site and clicks the fb login button, how should I managing the user sessions?
Kindly help me
thanks in advance
Well, I think the best you can try to do, and I offer my help to do it, is "convert" the php sdk classes (base-facebook.php and facebook.php) into java classes. After that it will be easy to answer your questions. By the way, if you gonna do some server-side processing, why not using php instead of java-ee?

Categories