About page android app

About page android app

Based on the «Page» category.
Alternatively, view android-about-page alternatives based on common mentions on social networks and blogs.

* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with «L5» being the highest.

Do you think we are missing an alternative of android-about-page or a related project?

Android About Page

Create an awesome About Page for your Android App in 2 minutes

This library allows to generate beautiful About Pages with less effort, it’s fully customizable and supports opening specific intent

Setup

Available on Jcenter, Maven and JitPack

Usage

1. Add Description

2. Add Image

3. Add predefined Social network

The library has already some predefined social networks like :

4. Add Custom Element

For example app version :

5. Available attributes for Element Class

Function Description
setTitle(String) Set title of the element
setIconTint(Int) Set color of the element
setSkipTint(Boolean) Skip tinting the icon (useful when using non vector drawables)
setIconDrawable(Int) Set icon of the element
setValue(String) Set Element value like Facebook ID
setIntent(Intent) Set an intent to be called on onClickListener
setGravity(Gravity) Set a Gravity for the element
setOnClickListener(View.OnClickListener) If intent isn’t suitable for you need, implement your custom behaviour by overriding the click listener

6. How to use the library in a fragment

7. Styling

The library supports day-night modes. The dependents may use the following styling attributes to create a dedicated style for AboutPage . If the dependents choose not to specify an explicit style, the library falls back to sensible defaults.

First, declare an AboutPage style in your styles.xml .

To apply this style globally, assign its reference to aboutStyle attribute in your app theme.

Or explicitly pass the style resource to the AboutPage constructor to apply it on selective AboutPage instances.

8. Force Night/Day mode

We recommend that the dependents use AppCompatDelegate.setDefaultNightMode() to force enable/disable the night mode across their apps. If the dependents are unable to use the recommended approach, they can use the AboutPage(Context, boolean) constructor to specify the desired mode. The dependents must note that by using this constructor, the AboutPage will use its default styles, ignoring any explicitly specified style.

Sample Project

Translations

The library does supports the following languages :

Please make a Pull request to add a new language.

ProGuard

Nothing to include

License

*Note that all licence references and agreements mentioned in the android-about-page README section above are relevant to that project’s source code only.

About
Your go-to Android Toolbox. Our goal is to help you find the software and libraries you need. Made by developers for developers. The collection of libraries and resources is based on the Awesome Android List and direct contributions here. To add a new package, please, check the contribute section.

Источник

How to Open an Android App from the Browser

Alex Austin

January 8th, 2018

Opening an installed app from a browser is often referred to as “deep linking”, and with this guide you’ll learn how to deep link into your Android app for yourself. We’ll focus exclusively on how to trigger an app open from a website page, rather than from the click of a link inside other apps. For a more detailed look at all of the different deep linking standards required for complete Android coverage, please see our Android deep linking series: Part 1 , Part 2 , Part 3 , and Part 4 .

Android is, by far, one of the most fragmented platforms that developers have ever had to manage, due to Google’s decision to force device manufacturers to be responsible for porting the OS, which requires backwards compatibility and support of a multitude of devices. In this ecosystem, we, the app developers, are left to pick up the pieces. Deep linking on Android is unfortunately no different—over the years, we’ve seen a plethora of technical requirements that must be used depending on the circumstance and context of the user.

Note that Branch will implement all of this complexity for you, host the deep links, and even give you robust analytics behind clicks, app opens, and down funnel events. You can play around with Branch links for free by signing up here . We highly recommend using our tools instead of trying to rebuild them from scratch, since we give them all away for free.

Overview of Changes

There are two places where changes will need to be made in order to successfully open your Android app: your website and your Android app. You can find the details of each change in the corresponding sections below.

Adding Support for URI Schemes to Your App

A URI scheme can be any string without special characters, such as http , pinterest , fb or myapp . Once registered, if you append :// to the end (e.g. pinterest://) and click this link, the Pinterest app will open up. If the Pinterest app is not installed, you’ll see a ‘Page Not Found’ error.

It is simple to configure your app for a URI scheme. To start, you need to pick an Activity within your app that you’d like to open when the URI scheme is triggered, and register an intent filter for it. Add the following code within the tag within your manifest that corresponds to the Activity you want to open.

You can change your_uri_scheme to the URI scheme that you’d like. Ideally, you want this to be unique. If it overlaps with another app’s URI scheme, the user will see an Android chooser when clicking on the link. You see this often when you have multiple browsers installed, as they all register for the http URI.

Next, you’ll want to confirm that your app was opened from the URI scheme. To handle the deep link in the app, you simply need to grab the intent data string in the Activity that was opened via the click. Below is an example:

From here, you’ll need to do string parsing to read the values appended the URI scheme that will be very specific to your use case and implementation.

Adding Javascript to Your Website to Open Your App

Now that your Android app is ready to be triggered from a URI scheme, the next part is simple. You merely need to add some Javascript to your website that will auto trigger your app open. The function below, triggerAppOpen , will attempt to open your app’s URI scheme once you replace your_uri_scheme with the one you added in the manifest above.

You could call triggerAppOpen into window.onload if you wanted to do it on page load, or you could make it the onclick of a link somewhere on your site. Either works and the you’ll get the intended results.

Android is incredibly complicated, and there are edge cases everywhere. You’ll think everything is going well until you get that one user complaining that his links aren’t working on Facebook while running Android 4.4.4. That’s why you should use a tool like Branch—to save you this nightmare and ensure that your links work everywhere. Be sure to request a Branch demo if you’re interested in learning more.

Источник

Best Android About Us Page Libraries – 2021

In web development, for sites like this one of ours, having an about us page is almost a must. Users can read about your services, what you are offering and maybe your email address. Google, the search engine can also use it to learn about your business. In android development, having one is also important. Users of the app can learn more about you as a person, or your business and maybe where to contact you.

It’s thus imperative we look at some options for you to include an about us page in your app. Obviously you can roll out one for yourself, using a dedicated activity or fragment, or even a full screen dialog. Another option is to use existing libraries in github. These have already been designed and do provide you with simple builder methods that you can use to set properties like name, title, email, links etc.

Let’s look at some of the best libraries in this regard.

(a). Android About Page

Create an awesome About Page for your Android App in 2 minutes

This library allows to generate beautiful About Pages with less effort, it’s fully customizable and supports opening specific intent.

Step 1: How to Install

Available on Jcenter, Maven and JitPack

Step 2: How to Use

1. Add Description

2. Add Image

3. Add predefined Social network

The library has already some predefined social networks like :

4. Add Custom Element

For example app version :

5. Available attributes for Element Class

Function Description
setTitle(String) Set title of the element
setIconTint(Int) Set color of the element
setIconDrawable(Int) Set icon of the element
setValue(String) Set Element value like Facebook ID
setIntent(Intent) Set an intent to be called on onClickListener
setGravity(Gravity) Set a Gravity for the element
setOnClickListener(View.OnClickListener) If intent isn’t suitable for you need, implement your custom behaviour by overriding the click listener

Step 3: Example

Here’s an example usage:

(b). EasyAbout

A fully material-designed about fragment for your application.

You can download the sample apk here.

Default Default Dark Colored

Step 1: How to Install EasyAbout

Add this to your root build.gradle file:

Now add the dependency to your app build.gradle file:

Step 2: How to Use

Create the fragment

Your about fragment must extend from EasyAboutFragment

Create a card

Note: all parameters are optional

Create a item

Note: all parameters are optional and common for all item types

Header item

Normal item

Person item

Add cards to the fragment

You can add cards with the addCard(AboutCard aboutCard); method (inside the configureFragment function of the fragment)

Sample fragment

Here’s a sample easyabout fragment:

Customize card color

Simply add this to your app theme. Replace @color/colorPrimary with your desired color.

(c). AboutUsActivity – Library

About Us Activity for Android Application About screen.

It is Simple and Easy to Use

Demo App – Click here

Screen Shot

More Screen Shot

Step 1: How To Install

  1. Add the JitPack repository to your build file. Add it in your root build.gradle at the end of repositories
  1. Add the dependency

Step 2: How to Use

Inside Click Listener:

Syntax : R.raw.credits – structure like

Syntax : R.raw.third_party_library

(d). Nordan Simply Page

Another simple to use About Us Page library.

Step 1: How to Install

Install in your module level build.gradle:

Step 2: How to Use

Settings Page Style

Oclemy

Thanks for stopping by. My name is Oclemy(Clement Ochieng) and we have selected you as a recipient of a GIFT you may like ! Together with Skillshare we are offering you PROJECTS and 1000s of PREMIUM COURSES at Skillshare for FREE for 1 MONTH. To be eligible all you need is by sign up right now using my profile .

Источник

Add GitHub Login to an Android App

Or how I figured out dealing with incomplete documentation

I’m currently searching for a job as a Mobile Developer in the Geneva area so I’m applying to all sorts of positions and companies. One of them asked me to make a simple app that can browse a user’s repositories on GitHub, including authentication so you can see your own private repos (did you know we now have unlimited private repos for free on GitHub!). Here’s the finished code if you just want to have a look, but otherwise read on to see the necessary steps:

adriantache/GitHubExplorer

Explore repositories and download files. Contribute to adriantache/GitHubExplorer development by creating an account on…

I have to preface this by saying that before this assignment I really had no idea how to use OAuth and I’ve only sent simple GET requests to APIs. I’m sure that for some people this article is just a whole lot of duh! but for me it was a learning experience and so I wanted to share it.

The first thing I did to start this app was, of course, to consult the GitHub API documentation:

GitHub API v3

Get started with one of our guides, or jump straight into the API documentation.

The documentation exposes two main endpoints to get a list of repos:

So let’s start with the simple use case:

Getting Public Repos

This is as easy as making a get request to the API and decoding the response. I’ve used OKHTTP inside an AsyncTask to make the request and then I simply decode it into an ArrayList of repo names (code is shortened and simplified):

Getting Private Repos (Basic Authentication)

In order to get private repos we have to log in, of course. And this is where the confusion started for me. The documentation talks a lot about OAuth2 and tokens and secrets and the only examples they give are using curl . So I started searching the documentation and then online and lo and behold, Basic Authentication is a technical term! To summarize, basic authentication is essentially sending an Authorization header which contains the string Basic followed by a base64 encode of :.

So here’s how the code changes:

As you can see, not much changes, we simply change the endpoint and add that authorization header.

Getting Private Repos (Two Factor Authentication — OAuth2 Token)

This is where things get a bit more complex. The process itself isn’t too complicated once you understand how it works, which is like this: if 2FA is active, when you try to log in using basic authentication the API returns a 401 response and the error message Must specify two-factor authentication OTP code. At that point, if SMS 2FA is active, the platform should send out a OTP SMS to the user containing the code. Please note, however, that SMS 2FA for GitHub is finicky and might not work at all in some countries!

So to detect that we add the following in our try block in doInBackground :

Since we’ve returned this we ask the user for their 2FA password. Technically speaking that’s all we need to access their repos list, but if we want to do more than that we need to acquire an authorization token from GitHub. For this, we need to send a login request to the authorizations endpoint:

In order to request an authorization we must send a POST request in which we specify as JSON a title for the authorization. I found the easiest way to do this without using a try/catch block is by creating the JSON object from a HashMap. So we add this to the doInBackground method of the AsyncTask:

If the authentication is successful, the API will reply with a JSON containing a token field with our authentication token. I have made a method to extract it and save it to SharedPreferences for easy access:

Afterwards, we can login as we do with Basic Authentication, the only difference being that instead of sending a header that contains:

we send one that contains “token” instead of “Basic”, followed by the token of our authorization:

And since I’m saving the token as SharedPreferences, we can easily check if we have a token for a certain username by using contains :

And that’s it, we now have full access to the GitHub API! If you have any questions make sure to have a look at the full code on my GitHub page using the link at the top of the article or just leave a comment below!

Thanks for reading this article. You can connect with me on LinkedIn.

I’m currently looking for a job in the Geneva area , Switzerland, so please contact me if you know someone in need of a Mobile Developer with Java/Kotlin (Android) and JavaScript (React Native Android/iOS) experience.

If you liked this article, please hit the clap icon 👏 to show your support.

Источник

Читайте также:  Opera android все пароли
Оцените статью