Showing posts with label Android. Show all posts
Showing posts with label Android. Show all posts

September 09, 2020

Record Whatsapp Video Call with Audio on Android

 Hi all,

Keeping legal things apart, if you want to record video call of your own Whatsapp, please use below information

Android Play Store Apps

  1. AZ Screen Recorder - Video Recorder, Livestream
  2. Cube ACR Call Recorder 

iOS

Use the iOS screen recorder option to record the video

Hope this helps you to record whatsapp video.

Please send your comments and feedback to psrdotcom@gmail.com

June 22, 2020

Flutter Android Release Failure [INSTALL_FAILED_NO_MATCHING_ABIS] issue fix

Hi folks,
Today I will let you know the flutter issue of Failure [INSTALL_FAILED_NO_MATCHING_ABIS] and its fix.

Procedure

  • Add the following config in your app/build.gradle

android {
    splits {
           abi {
                 enable true
                 reset()
                 universalApk true
               }
    }
}

flutter {
    source '../..'
}


Release AppBundle / APK

  • Run the following command to generate appbundle
flutter build appbundle
  • Run the following command to generate apk
flutter build apk

References

April 07, 2018

Android and Java latest integration changes for AVDManager and SDKManager non-working issues

Hi all,

If you haven't used your Android skills in recent times with latest Java then, you might come across a situation where the SDK Manager and AVD Manager are not working.

Issue

SDK Manager and AVD Manager are not working.

Environment

Java 9 with Android SDK 23

Note

Though, I am able to perform development using Android Studio but when it come to update the SDK build tools and others, I was not able to update with SDK Manager.

Solution


  1. Now, Android SDK Manager have moved to sdk/tools/bin with filename sdkmanager.bat
  2. Edit the sdkmanager.bat file with any text editor
  3. Go to "@rem Execute sdkmanager" command
  4. Update the command with options: -XX:+IgnoreUnrecognizedVMOptions --add-modules java.se.ee 
  5. It should look like below after you add the arguments
    • @rem Execute sdkmanager
      "%JAVA_EXE%" %DEFAULT_JVM_OPTS% -XX:+IgnoreUnrecognizedVMOptions --add-modules java.se.ee %JAVA_OPTS% %SDKMANAGER_OPTS%  -classpath "%CLASSPATH%" com.android.sdklib.tool.sdkmanager.SdkManagerCli %CMD_LINE_ARGS%
  6. If you run android-sdk/tools/bin/sdkmanager.bat, it should be able to run

Note

There is nothing like platform-tools folder now in Android SDK.

So, make sure that you have specified ANDROID_HOME/SDK in your environment variables with your system/pc Android SDK folder

In PATH environment variable, you can specify %ANDROID_HOME%/tools/bin

Thanks for reading my blog. Feel free to post your comments below. Contact me on psrdotcom@gmail.com

January 03, 2016

Nexus 7 Files accessing (storage drive) issue fix after upgrading to Marshmallow

Hi friends,

Today when I connected my Nexus 7 tab, I was unable to see the drive and folder structure. But in the file explorer it is able to detect the Nexus 7 by showing the icon. When you double click to view the files, there is nothing.
  1. After googling, the following solutions worked for me.
  2. Go to device management
  3. Right click Android ADB Interface and do uninstall
  4. After uninstalling the drivers, change the USB type in Nexus to PTP and immediately change to MTP
  5. Unplug and plug the Nexus to your PC
  6. Now the system will re-install the driver
Hope, this post will be useful when OS upgraded and unable to access file system of device

Android 6.0.1 Upgrade fix

After installing the driver, device might be recognized but we need to change the "Use USB for options" from any one of the following options

Notification Panel

  1. Select the "USB for file transfer - Touch for more options"
  2. You will be prompted to choose any one of the following
    • Charging
    • File transfers
    • Photo transfers
    • MIDI
  3. Select File transfers to see the "Internal Storage"

Developer Options

  1. Go to "Settings->Developer Options"
  2. Go to "Select USB Configuration" setting
  3. Choose "MTP (Media Transfer Protocol)" for transferring the files
Now you should be able to see the file storage in explorer

Please send your feedback and comments to psrdotcom@gmail.com

December 24, 2014

Android Application Upload to Google Play Store Minimum Requirements

Hi Friends,
Today, I have prepared a simple document which required once your signed application is ready (.apk file)

Pre-requisites

Google Play Developer Console account

Procedure

The following sections will explain the procedure of requirements

APK

In this section, you can upload the .apk for testing and production
We will have following tabs/sections for the following
1)   Production
2)   Beta Testing
3)   Alpha Testing 

Note:
For Beta and Alpha testing, tester e-mail ids shall be given to access the app)

  • Click on “Upload new APK” to upload the .apk file

Store Listing

App Info

1)   Title (max 30 characters)
2)   Short description (max 80 characters)
3)   Full description (max 4000 characters)

Graphic Assets for Android App Upload

  1. Screenshots
    • Default – English (United States) – en-US
    • JPEG or 24-bit PNG (no alpha). Min length for any side: 320px. Max length for any side: 3840px.
    • At least 2 screenshots are required overall. Max 8 screenshots per type. Drag to reorder or to move between types.
  2. Hi-res icon 
    • Default – English (United States) – en-US
    • 512 px x 512 px 32-bit PNG (with alpha)
  3. Feature Graphic 
    • Default – English (United States) – en-US
    • 1024 w x 500 h JPG or 24-bit PNG (no alpha)

Categorization

1)   Application type
2)   Category
3)   Content rating

Contact Details

1)   Website (Optional)
2)   Email

Privacy Policy

If you wish to provide a privacy policy URL for this application, please enter the privacy policy URL in the specified text box.

Note:
If we don’t have the privacy policy currently, we can skip by selecting “ Not submitting a privacy policy URL at this time” option.

Services and APIs

Licensing and In-app billing

Licensing allows you to prevent unauthorized distribution of your app. It can also be used to verify in-app billing purchases. Learn more about licensing.

Your license key for this application

We will be able to see a Base64-encoded RSA public key to include in your binary. Please remove any spaces. Add it to the, licensing source code of your program for verification with Google Play Store.

Please send your feedback and comments to psrdotcom@gmail.com

December 19, 2014

Android Screencast Configuration Install in Ubuntu

Hi all,

Today, I am going to show you how to show the android screen on your Ubuntu.

Procedure

  • Download the androidscreencast from the official link
  • Just by running the jnlp, you won't be able to see the screen
  • Java has security restictions
  • Now we have to manually add Android screencast url to be allowed in Java Security in Ubuntu
  • Go to jre folder
    • Example: /usr/lib/jvm/oracle-(8/7)-java/jre/bin/
  • Run the following command
    • $ ./ControlPanel
  • Select "Security Tab"
  • Click on "Add" button
  • Enter the following http address
    • http://androidscreencast.googlecode.com

References

https://code.google.com/p/androidscreencast

Please send your comments and feedback to psrdotcom@gmail.com

December 17, 2014

Android insufficient permissions for device

Hi Friends,

I was having an issue when connected my friend's Micromax Doodle to my Ubuntu with the following error
"insufficient permissions for device"

Resolution

  1. Open Terminal
  2. Kill the server by typing the following command
    • $ adb kill-server
  3. Now, start the server
    • $ adb start-server
  4. On your device, a pop-up might come asking for granting the permission
  5. Click on "Yes" for approving the access
  6. Now, check your device status with the following command
    • adb devices
  7. With the above command, you should be able to see devive IMEI and device name
Enjoy the Ubuntu and Android combination :)

Please send your comments and feedback to psrdotcom@gmail.com

December 08, 2014

Adding Company (Exchange) e-Mail account in Android Lollipop

Hi friends,

Today I’ll be explaining the steps involved in adding an e-mail account in Android 5/L (Lollipop)

Procedure

  1. To add acount, you can follow any one of the following approaches
    • Click on “eMail”->Settings->”Add Account”
    • Select “Settings”->”Accounts”->”Add Account”
  2. Select “Exchange”
  3. Click “OK”
  4. Enter the e-mail address
  5. Click “Next”
  6. Enter your password details
  7. Browse the certificate if you have your company e-mail certificate
  8. Click “Next”
  9. Enter username as “domainname\userno” if it’s applicable for your company or else it will be your e-mail address itselft which is by default filled in.
    • Ex: lnties\XXXXXX
  10. Change server to your mail server
    • Ex: “mail.larsentoubro.com”
  11. Click “Next”
  12. Select the sync options
  13. Click “Finish”

Now the sync process will start and fetch your mails.

You can change the sync options in settings

Happy e-mailing guys Smile

Please send your feedback and comments to psrdotcom@gmail.com

Blogger Labels: Company,Exchange,Mail,account,Android,Lollipop,Procedure,Click,Settings,Select,Accounts,Enter,password,Browse,certificate,XXXXXX,Change,server,options,Finish,feedback,sync

August 15, 2014

Android L Preview on Nexus 7

Hi all,

Today I’ve finally loaded the Android L Developer Preview on my Nexus 7 Wi-Fi 32GB

 

Its so simple to load the Android L. Here is the procedure

 

Warning

All the device data will be erased. Please take backup of all your data before doing this upgrade.

Not all the applications will work since it’s just a developer preview OS version

 

Pre-requisites

  • Android SDK with latest update
  • Android L Preview OS image
  • Make sure that, your device has more than 60 to 70 percent of battery
  • Enable USB Debugging
  • Connect the device to computer with USB cable. Make sure that, it has detected by computer

 

If you don’t’ have the pre-requisites, please follow the below procedure

 

Android SDK Installation & Update

  1. Download the Android SDK from this link
  2. https://developer.android.com/sdk/index.html
  3. Open SDK Manager.exe
  4. Install Tools, Android L Preview, Extras
  5. Update latest version if available

 

Android L Preview OS Image Download

  1. Download the corresponding Android L OS image for your device from this below link

 

Installation Process

  1. Extract the downloaded image to a folder
  2. From Android SDK folder, navigate to “platform-tools” folder, copy adb.exe, AdbWinApi.dll, AdbWinUsbApi.dll and fastboot.exe
  3. Paste in the Android L Preview extracted folder
  4. Finally the extracted folder should look like this
    • image
  5. The highlighted files has been copied from SDK->platform-tools folder
  6. Open the command prompt and navigate to OS extracted folder
    • Tip
      • Open the folder in explorer window. Hold “Shift” and right click on mouse
      • Select “Open command Window here” option
  7. Connect the device to computer
  8. Put device into “fastboot” mode by rebooting
    • cmd> adb reboot fastboot
  9. Device gets rebooted to fastboot
  10. If device is locked, then please unlock it
    • cmd> fastboot oem unlock
  11. Now, run the “flush-all” script
    • cmd> flush-all
  12. It takes some time to install the image
  13. After completing the installation process, it asks you to press “enter/return” button to exit
  14. Press enter/return button for confirmation
  15. Device gets restarted, Android L Preview will be displayed on the device
  16. To lock the device, execute following commands
    • cmd> adb reboot fastboot
    • cmd> fastboot oem lock
  17. Like a new device, enter all the details like your Gmail account, Wi-Fi connection etc.
  18. Enjoy the features of Android L Developer Preview OS

 

Please send your feedback and queries to psrdotcom@gmail.com
Blogger Labels: Android,Preview,Nexus,Developer,Here,procedure,device,data,version,requisites,Make,Enable,Connect,computer,Installation,Update,Download,index,Open,Manager,Install,Tools,Extras,Image,developers,Extract,folder,From,platform,AdbWinApi,AdbWinUsbApi,Paste,explorer,Hold,Shift,Select,option,mode,script,confirmation,account,connection,Enjoy,feedback,fastboot,Gmail

April 21, 2014

Cell Broadcast and Push Messages Blocking

Hi friends,

I have re-installed my OS and done the "Reset Factory Settings"

From that day onwards, I am continuously getting "CB Message" --> "Cell Broadcast" messages

To get rid of this spam kind of messages, please follow the below steps

1) Go to message settings (Open Inbox->Settings)
2) Uncheck the "CB activation" under "Cell Broadcast (CB) settings" section

You can block the push messages from network also, by doing the following
1) Go to message settings (Open Inbox->Settings)
2) Uncheck the "Push messages" under "Push message settings" section

Hope you found the above content useful.

Please send your feedback and comments to psrdotcom@gmail.com

April 09, 2014

Best Tutorials for Android Learning

Hi all,

The best blog which described all the possibilities to learn Android

http://www.fromdev.com/2013/07/Android-Tutorials.html

My personal suggestions are
http://developer.android.com/training/index.html (Textual)
http://www.youtube.com/watch?v=lESZqCflB0o (Video)

 Soon, I will also host my presentations on Android on my website ..

January 30, 2014

Android 4.4 KitKat Developer Options

Hi friends,

In Android latest OS version 4.4 (KitKat), by default the “Developer Options” is not available.

How to enable it? That’s what the current topic is all about.

 

Objective

Enable “Developer Options” in Android 4.4 (KitKat)

 

Procedure

  1. Go to “Settings”
  2. Click on “About Phone/Tablet” option
  3. Click 3 times on “Build number” option
  4. For each click it will show you the message like “You are ‘n’ click away to become a developer”
  5. It will enable the “Developer Options” and you can view it by going back to “Settings” main screen

 

Please send your feedback and queries at http://psrtechtips.com/contact

Blogger Labels: Android,KitKat,Developer,Options,version,topic,Objective,Enable,Procedure,Settings,Click,About,Tablet,option,Build,message,feedback

December 12, 2013

PhoneGap Installation and running Sample Application on iOS



Pre-requisites


Softwares

     iOS SDK
     Xcode command line tools
     Node.js
     Cordova (Zip)

Setup Environment Variables


     NODEJS_HOME
     CORDOVA_IOS

PATH Environment Variable Update

1) Open a terminal prompt

2) Type sudo vi /etc/launchd.conf (note: this file might not yet exist)

3) Put contents like the following into the file

# Set environment variables here so they are available globally to all apps
# (and Terminal), including those launched via Spotlight.
#
# After editing this file run the following command from the terminal to update
# environment variables globally without needing to reboot.
# NOTE: You will still need to restart the relevant application (including
# Terminal) to pick up the changes!
# grep -E "^setenv" /etc/launchd.conf | xargs -t -L 1 launchctl
#
# See http://www.digitaledgesw.com/node/31
# and http://stackoverflow.com/questions/135688/setting-environment-variables-in-os-x/
#
# Note that you must hardcode the paths below, don't use enviroment variables.
# You also need to surround multiple values in quotes, see MAVEN_OPTS example below.
#

# Nodejs Installed path. By default the path is your home directory->.npm directory path
setenv NODEJS_HOME $HOME/.npm

# Choose the location where you have unzipped the cordova iOS folder
setenv CORDOVA_IOS /cordova-ios


PATH Environment Variable Update

create .bash_profile file in your home folder
Enter the following content

#!/bin/bash
export PATH=$PATH:$NODEJS_HOME:$CORDOVA_IOS/bin

Install phonegap

If you are behind a proxy please set the proxy to npm (Node.js) command
Syntax:-
(For HTTP) $ npm config set proxy http://proxy.company.com:port
(For HTTPS) $ npm config set https-proxy http://proxy.company.com:port

Run the install command

$ sudo npm install -g phonegap
$ sudo npm install -g cordova

Note: If you face any errors
  • Remove the .npm directory from the home folder
  • Upgrade npm (sudo npm install -g npm)
  • Clear the global npm cache (sudo npm cache clear)
  • Clear the user npm cache (npm cache clear)

Create Project

Syntax: phonegap create
$ phonegap create hello com.example.hello "HelloWorld"

By default the skeleton folder structure will be created.
Note: if you didn’t get the default skeleton (www, js, css folders and other files), please copy from the sample-hello-world project of phonegap to your www project folder

$ cd hello
$ cordova platform add ios
$ phonegap build ios



Adding Plugins to your project

Pre-requisites

                       Install Git
Tip: If you are behind a proxy then please add it your configuration
Syntax: git config —global http.proxy http://proxyusername:proxypassword@server.company:port
Ex: git config —global http.proxy http://abc:123@xyz.com:8081

                       Add git\bin to your PATH environment variable
                       You need to download the git files from https://git-wip-us.apache.org. So make sure that the above specified URL is not blocked by your firewall
                       Navigate to your project directory in command prompt by changing the directory
cd

Note:
If you have some issues download cordova zip (unzip cordova-ios zip) and copy it to your home directory-> ~/.cordova/lib/ios/cordova/3.2.0/

Install Plugin

Syntax: phonegap local plugin add
Ex:- phonegap local plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-device.git

Tip: If this doesn’t run then try with cordova
Syntax: cordova plugin add
Ex:- cordova plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-device.git

Add the Feature to config.xml (Ex: Accelerometer)

    name="Accelerometer">
        name="ios-package" value="CDVAccelerometer" />
   


Remove Plugin

Syntax: phonegap local plugin remove
Ex:- phonegap local plugin remove https://git-wip-us.apache.org/repos/asf/cordova-plugin-device.git

Tip: If this doesn’t run then try with cordova
Syntax: cordova plugin remove
Ex:- cordova plugin remove https://git-wip-us.apache.org/repos/asf/cordova-plugin-device.git

Alternative
You can install “plugman” to plug and play with plugins by following this link
Using Plugman to Manage Plugins
Note: plugman doesn’t take proxy

References

PhoneGap Installation and running Sample Application on Windows


Pre-requisites


Softwares

1.       Node.js
2.       Ant (Zip)
3.       Java SDK 1.7
4.       Android SDK
5.       Eclipse (Zip)
6.       Cordova (Zip)

Setup Environment Variables

1.       NODEJS_HOME
2.       ANT_HOME
3.       JAVA_HOME
4.       ANDROID_SDK
5.       CORDOVA_ANDROID

PATH Environment Variable Update

Add NODEJS\bin;ANT_HOME\bin;JAVA_HOME\bin;ANDROID_SDK\tools;ANDROID_SDK\platform-tools

Install phonegap

If you are behind a proxy please set the proxy to npm (Node.js) command
Syntax:-
(HTTP) C:\> npm config set proxy http://proxy.company.com:port
(HTTPS) C:\> npm config set https-proxy http://proxy.company.com:port

Run the install command

C:\> npm install –g phonegap
C:\> npm install –g cordova
Note: If you get any ”shasum (Checksum)” error, then please
i)                    clear the npm and npm-cache directories from %User%/AppData/Roaming folder
ii)                  Install the latest npm version
Currently it is 1.3.21
npm install https://registry.npmjs.org/npm/-/npm-1.3.21.tgz
npm install -g phonegap


Create Project

Syntax: phonegap create
Ex: phonegap create FirstPhnGpPrj com.pg.firstphngpprj PhoneGapPrj1

·         Now it will create some folders and corresponding files (HTML, CSS, JS)
·         Change the directory to your project directory
o   Ex:- C:\> cd FirstPhnGpPrj

Add Platform

Syntax: cordova platform add
Ex:- C:\FirstPhnGpPrj> cordova platform add android

Tip:
If it’s not working then you need to install the cordova (npm install –g cordova)
Copy the cordova-android\bin from your downloaded&extracted zip file to %User%\.cordova\bin

Run Phonegap for Individual Platform

Syntax: phonegap run
Ex:- C:\FirstPhnGpPrj> phonegap run android

1.       By now, you will be getting your Android project hierarchy in your project_folder\platforms\android\
2.       Import the existing android code from your Eclipse
3.       Create\manage AVD
4.       Run the project

Adding Plugins to your project

Pre-requisites

·         Install Git
Tip: If you are behind a proxy then please add it your configuration
Syntax: git config –global http.proxy http://proxyusername:proxypassword@server.company:port
Ex: git config –global http.proxy http://abc:123@xyz.com:8081

·         Add git\bin to your PATH environment variable
·         You need to download the git files from https://git-wip-us.apache.org. So make sure that the above specified URL is not blocked by your firewall
·         Navigate to your project directory in command prompt by changing the directory
cd

Install Plugin

Syntax: phonegap local plugin add
Ex:- phonegap local plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-device.git
Tip: If this doesn’t run then try with cordova
Syntax: cordova plugin add

Remove Plugin

Syntax: phonegap local plugin remove
Ex:- phonegap local plugin remove https://git-wip-us.apache.org/repos/asf/cordova-plugin-device.git
Tip: If this doesn’t run then try with cordova
Syntax: cordova plugin remove

Alternative

You can install “plugman” to plug and play with plugins by following this link

References


Featured Post

Java Introdcution

Please send your review and feedback to psrdotcom@gmail.com