Android

If you have installed the mobile version of Chrome on your device with Android or iOS, you can enter the web in question and ask to see the desktop version from the browser menu. To do so, on either device, open Google Chrome and the page you want to visit. Once there press on the menu (on iOS there are three horizontal lines on top of each other and on Android they are three points, both are on the right corner) and look for the option "See as on a computer" that you can mark to that stays permanently and applies to each website you visit

OperatingSystem:

Technology:

Using RunOnUiThread to see user interface changes in Xamarin

If you are in your own thread and the code looks similar to this:

//1. Code before your UI action

//2. Code that changes UI

//3. Code after your UI action

Than you need to do the following.

First you need to get the current instance of you main activity that you are in, this can be achieved like this:
In your MainActivity.cs you need to change the App loading to
// LoadApplication(new App(this));

In your "App" class you than write:
// public App(Object o)
and
// currentMainActivity = (Android.App.Activity)o;

After that you have everywhere in your code access to the current java main activity.
To do some UI actions in your threads, just use the following code:

//1. Code before your UI action

App.currentMainActivity.RunOnUiThread(() =>
{
// 2. Code that changes UI
});

//3. Code after your UI action

Taggings:

Preventing multiply output lines in Xamarin for Visual Studio on Android developement

I have used an very easy solution for this problem.
Whenever I need to do some output to the console (hint: you should only do this for you own purpose, later on you should Logging with respective logging levels in you app!) I do it the following way:

In the "App" class i have created a new method called "WriteLine" and there I use a dependency service call to execute some native java code on the android device:

public static void WriteLine(String line)
{
DependencyService.Get().WriteLine(line);
}

If you need help for using the DependencyService please look into further tutorials on that!
In the Implementation of the interface IOutput you just need the following code:

public void WriteLine(string line)
{
Console.WriteLine(line);
}

Like this you use the java "Console" class and you get the output at least one time less.

Taggings:

Use Locale in Android Application

I assume that your images are stored in the folder res-drawable. In Android Studio, location-specific behavior can be achieved by right-clicking on res and creating a new Android resource directory. In the following pop-up window, different qualifiers can be set, e.g. the Locale that allows will read out the language that is set on the mobile phone of the user and automatically uses the image from the corresponding directory (see the attached picture for details). You will notice that Android Studio creates the new directory with a specific suffix, e.g. "drawable-de" for german images. The general "drawable" folder will be used in case that the Locale of the user does not match any of your specified qualifiers and can therefore be seen as a default case.

Taggings:

Correctly change version code and name of Android Application

When you create your project with Android Studio, most of the files and settings are automatically created for you. You may therefore have missed that there is another file containing a versionCode and versionName, additional to the Manifest file. In your project directory, you will find a gradle file "app.gradle" that contains all the dependencies of your application. Further, in the defaultConfig section, you will see that there is a versionCode and a versionName that is probably identical to the code and name of your previous uploaded .apk file. Change these parameters and you are good to go for rolling out your file! The Play Store automatically notifies all the users of the old version about the changes and updates your product.

Taggings:

Use test ads in Android Application

What you are looking for are test ads. When you are using AdSense, you received a personal code that refers to your account. If somebody clicks on one of your ads, you receive the payment. Thus, in order to avoid this functionality, a test ad can be used that does not forward the action to your own account. Just replace the unit id of your ad that you have specified in the code with the following id: ca-app-pub-3940256099942544/6300978111. You will then see test ads in the correct size, but you cannot click on them.

Taggings:

OwnCloud for syncing calendars, address book and files

OwnCloud is an Open Source software with a commercial branch. There are many repositories for multiple operating systems and tons of how-to’s on the internet. It is based on the popular MySQL data base and uses Apache and PHP for web publishing. There are clients for file syncing and viewing available for multiple devices including iOS and Android. Syncing calendar and a address book is limited to the calDAV and cardDAV protocol. While Linux, Mac OS and iOS hast built in the protocol, there is also a client for Windows, called eM Client. For Android users, there are also a lot of DAV syncing software available in the Android-Store.

Installing Linux on Android Table

First of all, the Android device must have root access, a file manager application is needed and also busybox must be installed.

Download your favorite Linux distribution to the tablet internal storage.

Install the applications "Complete Linux Installer", "Terminal Emulator" and "androidVNC" from google play.

After the installation, open "Complete Linux installer" and click on Launch. You have to select the operative system and then click on Boot. Follow the instructions and you will have a Linux running on you tablet.

Taggings:

Andyroid emulator

The solution for the problem is to install an Android emulator in your computer.
Andy is one of the best emulator. It can be download here: http://www.andyroid.net/
After installed you can enjoy all your Android application on you windows machine

Taggings:

Install Custom ROMs on Android devices

If you don't want to buy a new smartphone, your best solution is to install an unofficial Android firmware on it.

Android is open-source, so it’s possible for Android users to take its source code and roll their own operating systems – known as a custom ROM – for their smartphones. CyanogenMod is the most popular community-developed ROM for Android. Don’t worry you can choose any other update as long as you are ensuring that the system is stable and without bugs or things that aren’t working properly.

To upgrade, users usually have to back up the original operating system and then "root" the phone, or disable the security settings that protect its OS from being modified. Keep in mind that installing the system incorrectly could render the phone inoperable, and that running an unofficially supported OS could void the phone manufacturer's warranty.

1. Install at your own risk
2. Choose your custom ROM
3. Root your phone
4. Back up your current firmware and phone
5. Prepare Google’s default android apps for installation
6. Install the custom android firmware
7. Enjoy your new android phone!

Each phone can have its own unique steps for doing this, so you should follow instructions for your specific model. You'll find them on the Custom ROM webpage or some Android forum.

Taggings:

Pages

Subscribe to Android