Skip to content
Browse files

Merged Japanese Resources from Master

  • Loading branch information...
michaelachmann committed Feb 4, 2017
2 parents 37e299f + ce6a59c commit ce970f72266eccc3be5a86fee446f81d4418b66c

This file was deleted.

Oops, something went wrong.
@@ -12,14 +12,14 @@ android:
- extra-google-m2repository
- extra-android-m2repository

- chmod +x gradlew

- 'android-sdk-preview-license-.+'
- 'android-sdk-license-.+'
- 'google-gdk-license-.+'

- chmod +x gradlew

# install timeout in minutes (2 minutes by default)
@@ -1,23 +1,44 @@
# LnkShortener
<img src="/icons/LnkShortenerRobo114.png">
[![Build Status](]( [![Licence](](
<img src="/icons/LnkShortenerRobo512.png" align="left" height="114">
# LnkShortener [![Licence](]( [![Twitter Follow](]( <sup> [Facebook]( | [Website](</sup>

LnkShortener is an Android app for shortening URLs. It is using [Polr](, an open-source URL shortener

**[Getting Started](#getting-started) | [App Stores](#app-stores) | [Contribute](#contribute)**

## Getting Started
LnkShortener is an android app which makes use of the API provided by a [Polr]( installation. You can enter the endpoint of your own Polr installation as well as an API-key. You can [Download the binary]( and install it on your android smartphone, clone the source and compile it for yourself or find it on the [Google Play Store](
<img style="float:right; height:500px" height="500" align="right" src="/metadata/images/ScreenshotFramedEnglish.png" >

# Getting Started
You can download LnkShortener from one of the following App Stores or obtain the latest binaries from the [Releases]( page.

## App Stores
LnkShortener is at the moment available on <br />
<a href=''>
<img alt='Get it on Google Play' height='100' src=''/></a>
<a href=''><img alt='Get it on the Amazon App Store' src=''></a>

## Contribute
On the wiki there is a [ToDos Page]( which states the next goals for following releases. If you want to contribute send pull requests, help out finding bugs or send me a pm for the coordination of jobs.
<div style="height: 100px; vertical-align: middle; width: 260px; margin: 0; margin-left: auto; margin-right: auto;">
<a href=''> <img style="vertical-align: middle;" alt='Get it on Google Play' height='100' src=''/></a>
<br />
<a href=''><img style="vertical-align: middle;" height="66" alt='Get it on the Amazon App Store' src=''></a>
<br />
<a href=""><img style="vertical-align: middle;" src="" alt="Get it on F-Droid" height="80"></a>

## Use
LnkShortener is working out of the box. Simply share a link via the share function of your browser or any other app with LnkShortener and it will instantaneously display a shortened URL.
If you have a workin polr installation enable the API and obtain an API-Key. Open the Settings in LnkShortener and enter the address of your Polr server (e.g. including the protocol (e.g. https://). Afterwards copy and paste the API-Key to the next field and you're ready to go with your own domain.

## Using
If you don't have your own polr server there's still the possiblity to keep on using If you want to receive analytics and click counts you need to [sign up]( After activating your account (please check your spam folder since the activation e-mail might have ended up there) you can [login]( with your credentials.
In the righthandside corner there's a new drop-down menu with your username. From the drop-down choose [Dashboard]( On the next page select [Developer]( Finally there is your API Key. Copy & Paste it into the API Key field in LnkShorteners Settings.

Finally after all every Link you shorten via the LnkShortener App will be saved on your account and available for analytics. In order to see your history visit the [Dashboard]( and choose [Links](

This generally should work for every polr installation *as long as public sign up and analytics were activated by the administrator*.

# Contribute
Contribution is always welcome. On the [Projects Page]( there is a ToDos board with a schedule for the upcoming releases. Feel free to work on one of the issues. Also translations are always needed and always appreciated. So fare the app is available in English and German, these two languages will also stay in the main focus for upcoming releases.

If you have Ideas feel free to open an Issues or contact [Michael]( via mail.

## License
# License
> Copyright (C) 2017 Michael Achmann
>This program is free software: you can redistribute it and/or modify
@@ -33,19 +54,19 @@ On the wiki there is a [ToDos Page](
>You should have received a copy of the GNU General Public License
>along with this program. If not, see <>.
## Dependencies
# Dependencies

* For QRCode support LnkShortener depends on [QRGen](, which is licensed under Apache 2.0

## Legal Attributions
### Google Play Logo
# Legal Attributions
## Google Play Logo
>Google Play and the Google Play logo are trademarks of Google Inc.
### Amazon Logo
## Amazon Logo
>Amazon and the Amazon logo are trademarks of Amazon Inc.
### Android Robot
## Android Robot
>The Android robot is reproduced or modified from work created and shared by Google and used according to terms described in the Creative Commons 3.0 Attribution License.
### Material Icons
## Material Icons
>We have made these icons available for you to incorporate them into your products under the Apache License Version 2.0. Feel free to remix and re-share these icons and documentation in your products. We'd love attribution in your app's about screen, but it's not required. The only thing we ask is that you not re-sell these icons.
@@ -18,6 +18,9 @@ android {
proguardFiles getDefaultProguardFile('proguard-android.txt'), ''
lintOptions {
abortOnError false

dependencies {
@@ -29,10 +32,12 @@ dependencies {
compile ''
compile ''
compile ''

compile ''
compile ''
compile ''

compile 'com.github.kenglxn.QRGen:android:2.2.0'

testCompile 'junit:junit:4.12'
@@ -57,6 +57,7 @@
String shortUrl;
String originalUrl;

protected void onCreate(Bundle savedInstanceState) {

@@ -270,7 +271,6 @@ public void openLink(View view){

public void onStart() {
@@ -21,7 +21,6 @@
import android.preference.PreferenceManager;
import android.os.Bundle;
import android.util.Log;
import android.util.Patterns;
import android.view.Menu;
import android.view.MenuInflater;
@@ -68,7 +67,7 @@ protected void onCreate(Bundle savedInstanceState) {
originalUrl = intent.getStringExtra(DisplayShortenedUrlActivity.EXTRA_MESSAGE);
errorMessage = intent.getStringExtra(DisplayShortenedUrlActivity.ERROR_MESSAGE);

// If an error occured in in DisplayShortenedUrlActivity they are passed on to MainFragment
// If an error occurred in in DisplayShortenedUrlActivity they are passed on to MainFragment
if (intent.getBooleanExtra(DisplayShortenedUrlActivity.ERROR_BOOL, false)) {
mainFragmentBundle.putBoolean("error", true);
mainFragmentBundle.putString("errorMessage", errorMessage);
@@ -0,0 +1,25 @@
<string name="app_name">LnkShortener</string>
<string name="activity_settings">設定</string>

<!-- Strings for MainActivity -->
<string name="shorten">短縮</string>

<!-- Strings for DisplayShortenedUrlActivity -->
<string name="error_toast">エラーが発生しました。</string>
<string name="chooser_title">このリンクを共有...</string>
<string name="error_valid_url">正しい URL を入力してください。</string>
<string name="error_unauthorized">API バックエンドが認証されていません。</string>
<string name="error_404">もう一度やり直してください。</string>
<string name="error_quota">割り当てを超過しました。</string>
<string name="error_internal">内部サーバーエラー。</string>
<string name="error_misc">Polr の設定を確認してください!</string>
<string name="open_chooser_title">このリンクを開く...</string>
<string name="copied_to_clipboard">クリップボードにコピーしました</string>

<string name="activity_display_url">短縮した URL</string>

<string name="settings_domain">ドメインを設定</string>
<string name="settings_api_key">API キーを設定</string>

Binary file not shown.
Binary file not shown.
Binary file not shown.

0 comments on commit ce970f7

Please sign in to comment.
You can’t perform that action at this time.