Showing posts with label Mobile App. Show all posts
Showing posts with label Mobile App. Show all posts

Sunday, 13 January 2019

Generate the Signed key for apache cordova


You can generate the sign key for your apache application by the given procedure.

1.       Open the command promt, it is windows command prompt.

2.       Get the  Keystore path
C:\Program Files\Java\jdk1.8.0_111\bin\keystore
Go to that above path in the command window.

3.       Give the Below command

keytool -genkey -v -keystore NAME-mobileapps.keystore -alias NAMEmobileapps -keyalg RSA -keysize 2048 -validity 10000


Tuesday, 8 January 2019

compilesdkversion 'android-26' requires jdk 1.8 or later to compile visual studio


You are getting the build error in the Android Apache Cordova.

>compilesdkversion 'android-26' requires jdk 1.8 or later to compile visual studio

You  are getting this error as your application is not pointing to the valid version of the  java SDK (JDK) 

You need to set the JAVA SDK version from below screen in visual Studio.

Tools > Option > Tools for Apache Cordova  > Environment Variable Override

failed to find target with hash string 'android-26' in: C:\ProgramData\Microsoft\AndroidSDK\25



You are getting the below issue, which is build error from android cordova application

* What went wrong:
> failed to find target with hash string 'android-26' in: C:\ProgramData\Microsoft\AndroidSDK\25


It is happening as you have not installed the particular image which your application is pointing to. You are missing the image where your android SDK is present as 

C:\ProgramData\Microsoft\AndroidSDK\25
You are having the android SDK version mentioned in Build.Gradle as like below.
ext {
    apply from: 'cordova.gradle'
    cdvCompileSdkVersion = 26 //privateHelpers.getProjectTarget()
    cdvBuildToolsVersion = privateHelpers.findLatestInstalledBuildTools()
}

Saturday, 20 January 2018

cordova "no java files found that extend cordovaactivity"

Getting Error as:

Severity Code Description Project File Line Suppression State Error No Java files found which extend CordovaActivity. OilFreeRecipes 1

This issue is causing due to missing of MainActivity.Java File Generally it is residing on the below path.
[Application Name]\platforms\android\src\com
Here it should have the folder name based on the namespace you have given. Suppose I have given namespace as com.passion.oilfreerecipes So there should have folder passion --> OilfreeRecipes

Friday, 27 October 2017

Changing icon on Collapse and Expand Panel


Collapsing and Expanding  for Panel is make very easy by Bootstrap that you can directly achieve using bootstrap.js and Bootstap.css [You can download it from getbootstrap.com]. Than need to write a simple code to change the icon using jQuery. 
Please see below that how to demostrate Changing icon on Collapse and Expand Panel.

It will be look alike below.



Friday, 6 October 2017

Cordova Exit from App

Code to exit from  mobile app using the JQuery Code (Cordova exit app event).

Code for exit from app

  exitFromApp: function () {

        if (navigator.app) {
            navigator.app.exitApp();
        }
        else if (navigator.device) {
            navigator.device.exitApp();
        }

        return false;

    },


Exit from app when click button in android phonegap?

Calling Method

<button name="btnExit" style="background-color:transparent;color: #f82284 !important;font-size:18px;border:0" onclick="app.exitFromApp()" id="btnExit">Exit</button>

Thursday, 12 January 2017

Develop android apps using visual studio 2015

1.       Need to Install the visual studio 2015 Community Version.
Use below link to install Visual Studio 2015

2.       Open Visual Studio and select  Apache Cordova
Open Visual Studio  à  click on New Project .
Select  Type Script à Apache Cordova App like below.




Friday, 24 June 2016

get current location in android example code.

Below demonstration is in Visual Studio 2015, cordova application to get the current location in android. It will give the overview that how you will get your current location in google map. Like Below.


Follow the below steps to get current location in android code.

Thursday, 31 December 2015

single page application angularjs example

Here I am demonstrating a single page application (SPA) in AngularJs example.
Simple application for basic financial calculator like below; As I used it in mobile cordova application showing the sample for mobile application Screen (Single page application in AngularJs for mobile)


We should include the Some javascript file in application that you can download from below resources for single page application angularjs