Android google map from a fragment like a browser - java

for my GoogleMaps API to run, the user needs to install Google Services.
I don't want my user to feel obligated to do that. I wonder if it is possible for me to create a fragment or something like a WebView and access Google Maps through browser (frame in my app) and the user doesnt need to install google services.
Any advice, tutorial or example would be very appreciated. Thank you very much for your time!

You have to use WebView element and simply use this:
WebView browser = (WebView)findViewById(R.id.browser);
browser.loadUrl("maps.google.com");
Or use this

Related

Instagram follow on button click

I'm currently trying to add a feature which allows users to follow an instagram account by clicking a button. I've seen other apps use that but I could not figure out how. As you can see in this post, following people by using the api is no longer availible. https://developers.facebook.com/blog/post/2018/01/30/instagram-graph-api-updates/
Maybe some of you know how to do what I want.
You can do it with a hack that is..
Intent externalIntent = new Intent(Intent.ACTION_VIEW,Uri.parse("instraURL"));
startActivity(externalIntent);
App will move user to external Browser and browser will move user on Instagram app..
As it is not perfect solution but i am just sharing because it can help developers when they don't have SDK.

How to show Google Translate popup from my app?

Is it possible to call Google Translate popup (only the popup, and not the whole Google Translate app) from my application, using intent or something else?
I'm using B4A (Basic for Android) platform, so if it is possible, please guide me based on B4A. However Java solutions can be useful too and they are also welcomed. Thanks.
You can use Google Translate api in php and call it from b4a

Android Studio creating tabs for a app , beginner

I am currently working on a project and I want to make different tabs. Like the app flipboard
I am making my app in android studio and I am done with the "home page", but I don't know how to make a new tab.
I also want to make like a sign in page for when people first open the app like facebook.
For lasst I also want it to have google maps in it.
But I don't know how to do that either.
So my question is how do you do that or is there a book / website where you can get all the information about this and android studio in general.
Your question is too broad and I don't think anyone is going to write up the code for you. A simple google search has given me this:
For Facebook login, implement Facebook SDK:
https://developers.facebook.com/docs/android/getting-started
Google Maps:
https://developers.google.com/maps/documentation/android-api/?hl=en
Google's SDKs also support user login, which you could use together with Facebook.
For "creating new tabs", apparently I can't post more than two links in my post since I don't have enough reputation, but google "android how to make new activity".
For the Tabs you can use the Android Action Bar:
Tutorial
For the Map you can use the Google Maps API, its easy to understand ;)
Google Maps
I am using this guide based on SlidingTabLayout . And i think it will help you perfectly .

Want to create a login page like facebook login, but have no idea where to start

I'm in the process of making an alternative facebook app for android, but I have no idea where to start. I'm looking at the Facebook SDK but that seems like it's used for people who want to use Facebook as their platform for their own seperate apps. I want to make a login screen like facebook login screen, and I'm looking at their SDK but their SDK seems like it's for completely different apps that use facebook as their platform. I'm just really dumbstruck about how I would do this facebook alternative. I'm pretty new to programming aswell. However, making something like a facebook app alternative, where would I start?
well, the Facebook SDK fits your need flawlessly.
users will have to grant you the privileges to read & write on their behalf and then, the SDK is the limit.
i suggest you take a look at the Getting Started guide & search 4 a good library.

Android app for a web application without an API

Is it possible to create an Android app for an existing web application which doesn't provide any API?
Webview just provides a crude view of the same web app in Android, but interface with webview looks crappy.
What you're asking is very possible. Just load up your URL in the webview and then redirect all clicks to go back to the same view. There you have an embedded website into an application.
What do you mean by interface for WebView looks crappy? You can make it look like anything native on the phone.
If you want your web page to have the look and feel of a native android app without creating the native app, you'll need to do so using javascript on your served page. Take a look at http://jquerymobile.com/ which seems to do a lot of the leg work. You can use that javascript and a little elbow grease to accomplish what you describe.

Categories

Resources