How to open android app playstore link from browser ?

Android

When we published one our application in playsore, we wanted to make sure our website visitors should directly go to our Android app published in playsote and install it from there. For this, we created a banner and tried to hyperlink with html img and a href links. Initially we tried code as below, ( … Read more

How to use Single Instance Class / Singleton class in Android / Java ?

The single instance classes are mostly used when you don’t know how to create a object of this class from some distant class or instead of allocating memory for the class, just create object once and use it till entire life of the application. The Single Instance class, also called at Singleton class just creates … Read more

How to Start and Stop android service from adb shell

If you have followed our another article “Understanding Android Services with Example” you might be allready able to write a code to create android service and get it compiled. Once you install this service on to your android device using “adb install” command, you will need to start this service to execute the functionality written … Read more

Solved: Error: This view is not constrained. It only has designtime positions, so it will jump to (0,0) at runtime unless you add the constraints [MissingConstraints]

When we were trying to add a simple button into our already existing code of some other project, we got following error after we add a button code by following our another post “Android demo application with button click event” [bash] app/src/main/res/layout/activity_main.xml:9: Error: This view is not constrained. It only has designtime positions, so it … Read more

Booting Androidthings on RaspberryPi3

Follow below steps to boot the Androidthings on Raspberry Pi3 Download the prebuilt image from https://developer.android.com/things/preview/download.html wget -c https://dl.google.com/dl/androidthings/rpi3/devpreview/1/androidthings_rpi3_devpreview_1.zip unzip androidthings_rpi3_devpreview_1.zip this will unzip and create iot_rpi3.img image which we need to install on SD card. sudo dd bs=1M if=./iot_rpi3.img of=/dev/sdb where /dev/sdb is assumed to be device name of SD card which we needs … Read more

Android.mk variable to link system or external library during compilation

LOCAL_LDLIBS This variable contains the list of additional linker flags for use in building your shared library or executable. It enables you to use the -l prefix to pass the name of specific system libraries. For example, the following example tells the linker to generate a module that links to /system/lib/libz.so at load time: LOCAL_LDLIBS … Read more

How to install Android NDK on Ubuntu 16.04 / 18.04

The Android NDK is a toolset that lets you implement parts of your app in native code, using languages such as C and C++. For certain types of apps, this can help you reuse code libraries written in those languages. To install and configure the NDK, follow these steps:Download android ndk suitable for your platform … Read more

How to create a native daemon and run from init.rc in Android

Android’s init is located at the root of the filesystem i.e. /init and also it uses different naming conventions than normal linux init, so its advised to first try and understand the details of android init Language, from system/core/init/readme.txt you can also check in the source code you have or click the link here. Now, … Read more

Mounting android system partition as read/write or read-only

Android’s system partition is by default mounted as read only, but if you are looking to modify some system files or applications, then if you try as is, you will not be able to do so due to restricted user permissions, hence first thing we need to do is mount the system partition as read/write … Read more

How to Install and Uninstall android application as system app / priv-app

To install any android application as a system app, ( which can’t be uninstalled from settings ), first important this is, the device on which we need to install apk has to be a rooted device with all the necessary permissions. The user devices which we purchase from off-the shelves market are mostly “user” devices … Read more