Uncategorized

Android app debug over wifi in real devices

Step 1 : Open android studio . Now go to File->Settings->Plugins->Browse Plugins->Android WiFi ADB . Step 2 : Install it and restart . Step 3 : Connect Android Phone/device with cable . Step 4 : Right side ADB Wifi ADB Will… Continue Reading…

Uncategorized

CrossPlatformInputInitialize.cs(91,34): error CS0619: `UnityEditor.BuildTargetGroup.WebPlayer’ is obsolete: `WebPlayer was removed in 5.4, consider using WebGL’

Step 1: Open the script Step 2 : just replace [java]BuildTargetGroup.WebPlayer[/java] to [java] BuildTargetGroup.WebGL[/java]

Uncategorized

Android always run application in background even force killed

Create a service: [java]public class YourService extends Service { @Nullable @Override public IBinder onBind(Intent intent) { return null; } @Override public int onStartCommand(Intent intent, int flags, int startId) { // do your jobs here return super.onStartCommand(intent, flags, startId); } }… Continue Reading…

Uncategorized

android mediaRecorder.setAudioSource failed

Add this two permission on manifest  [java] <uses-permission android:name="android.permission.RECORD_AUDIO" /> <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> [/java] And make sure that permissions are granted. For marshmallow and later it’s need to implement runtime permission . Here you can get how to use runtime… Continue Reading…

Uncategorized

This Activity already has an action bar supplied by the window decor

Add this two line in your style.xml file : <item name=”windowActionBar”>false</item> to your theme declaration inside of your app/src/main/res/values/styles.xml. Also, if you’re using AppCompatActivity support library of version 22.1 or greater, add this line: <item name=”windowNoTitle”>true</item> Your theme declaration may look like this… Continue Reading…

Uncategorized

Android runtime permission – Read Phone State

Step 1 :  Add this uses permission in manifest [java] <uses-permission android:name="android.permission.READ_PHONE_STATE"></uses-permission>[/java] As like this [java]</pre> <pre><?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.arifhasnat.automaticcallrecorder"> <uses-permission android:name="android.permission.READ_PHONE_STATE"></uses-permission> <application android:allowBackup="true" android:icon="@mipmap/ic_launcher" android:label="@string/app_name" android:roundIcon="@mipmap/ic_launcher_round" android:supportsRtl="true" android:theme="@style/AppTheme"> <activity android:name=".MainActivity" android:label="@string/app_name" android:theme="@style/AppTheme.NoActionBar"> <intent-filter> <action android:name="android.intent.action.MAIN" /> <category… Continue Reading…

Uncategorized

could not load exp network response timed out

Run this two commands in project directory [java]npm install -g exp[/java] [java]exp start[/java]

Uncategorized

Java design pattern – Introduction

What is design pattern :  Java is a object oriented programming based language. Software developers are use OOP(Object oriented progamming) to maintain code and structure in well defined. Design patterns are best practices/ways of use of OOP that makes easy to… Continue Reading…

Uncategorized

JAVA_HOME is not set and no ‘java’ command could be found in your PATH windows

Step 1 : Right on my computer/This PC. Step 2 : Go to Advanced Settings Step 3. Go to Environment Variables Step 4. Select PATH Step 5. Edit Step 6. Add New Step 7. Paste Java JDK path (C drive… Continue Reading…

Uncategorized

React Native installation on Mac

Step one : First Visit this one http://arifhasnat.com/2018/08/10/react-native-1-installation-and-project-create/ Step two : Then open terminal and run this command to get react native command line [java] sudo npm install -g react-native-cli[/java] Step three: Create new project [java]react-native init albums[/java]

August 2018
M T W T F S S
« Jul   Sep »
 12345
6789101112
13141516171819
20212223242526
2728293031  

Site Statistics

  • Users online: 0 
  • Visitors today : 2
  • Page views today : 2
  • Total visitors : 3,424
  • Total page view: 3,838