User Profile

Hemant Sharma QnA VBage

Hemant Sharma

Software engineer
  • 0Followers
  • 0Experience
  • 30Questions
  • Hemant Sharma QnA

    Hemant Sharma started a new conversation Gradle DSL method not found plugins() 0 years ago ago

    I am trying to use this However that gives me error .

    Gradle DSL method not found: 'plugins()'

    Possible causes:

    Your project may be using a version of the Android Gradle plug-in that does not contain the method (e.g. 'testCompile' was added in 1.1.0).

    Upgrade plugin to version 8.2.2 and sync project
    Open Gradle wrapper file
    Apply Gradle plugin

  • Hemant Sharma QnA

    I am trying to use this However that gives me error .

    My website is hosted successfully on AWS ec2 Instance but while visiting a website other than the home page it shows me a 404 page Not found, But if I add index.php in the URL it starts working something like this:

    example.com/about-us =>404 PAGE NOT FOUND

    example.com/index.php/about-us => WORKING FINE

    I have added some code in the .htaccess file but still no change in the flow, it was working for other server but not on AWS Linux server.

    Please help me out

  • Hemant Sharma QnA

    Hemant Sharma started a new conversation How to host Website Over the AWS EC2 Web Server? 1 years ago ago

    I am trying to use this However that gives me error .

    How to host any website on Amazon Web Server (AWS) and Create a Server install PHP or MySQL?

    How can I map my domain to the AWS server? How can I access all server files and edit them through text-editor?

  • Hemant Sharma QnA

    Hemant Sharma started a new conversation How to remove Unused Css and JS from my Website Code? 2 years ago ago

    I am trying to use this However that gives me error .

    I have checked in PageSpeed Insights my website speed is very poor which means google does not index me as I want at top of the list, So there is some issues that i have fixed but there is something like Eliminate render-blocking resources, For more information when I click on View Treemap Button where showing all used resources to check how much is useful from them, I was shocked more than 50% was not using in my project.

    So I don't have any way to remove unused files or code from the CSS and JS some of them using through CDN link how to optimize my website?

  • Hemant Sharma QnA

    Hemant Sharma started a new conversation How To Fix Clickable Elements Too Close Together Error? 2 years ago ago

    I am trying to use this However that gives me error .

    Hello QnA,

    I am running my website and using webmaster to see website performance, I have noticed that an error which is saying 

    Mobile Usability > Clickable elements too close together

    But i think my content has enough space for clicking, I don't have any clue how to fix clickable Elements too close together error on webmaster.

  • Hemant Sharma QnA

    I am trying to use this However that gives me error .

    Firebase Cloud Messaging service is working well in postman but I want to send push notifications to my Mobile Application and Website too at once.

    Firebase has js files for SDK integration to my Web Admin Panel, Help me to Implement FCM in Web Admin Panel to send Any push notification.

  • Hemant Sharma QnA

    I am trying to use this However that gives me error .

    I am trying to create React-native new project it gives me below mentioned error node.js version not compatible.

     

    expo init AwesomeProject
    ERROR: Node.js version 8.11.3 is no longer supported.

    expo-cli supports following Node.js versions:
    * >=10.13.0 <11.0.0 (Active LTS)
    * >=12.0.0 <13.0.0 (Active LTS)
    * >=13.0.0 <14.0.0 (Current Release)

  • Hemant Sharma QnA

    I am trying to use this However that gives me error .

    Latest Android Verison with Android Version name, API level, and Version Code

    Codename Version API level/NDK release
    Pie 9 API level 28
    Oreo 8.1.0 API level 27
    Oreo 8.0.0 API level 26
    Nougat 7.1 API level 25
    Nougat 7.0 API level 24
    Marshmallow 6.0 API level 23
    Lollipop 5.1 API level 22
    Lollipop 5.0 API level 21
    KitKat 4.4 - 4.4.4 API level 19
    Jelly Bean 4.3.x API level 18
    Jelly Bean 4.2.x API level 17
    Jelly Bean 4.1.x API level 16
    Ice Cream Sandwich 4.0.3 - 4.0.4 API level 15, NDK 8
    Ice Cream Sandwich 4.0.1 - 4.0.2 API level 14, NDK 7
    Honeycomb 3.2.x API level 13
    Honeycomb 3.1 API level 12, NDK 6
    Honeycomb 3.0 API level 11
    Gingerbread 2.3.3 - 2.3.7 API level 10
    Gingerbread 2.3 - 2.3.2 API level 9, NDK 5
    Froyo 2.2.x API level 8, NDK 4
    Eclair 2.1 API level 7, NDK 3
    Eclair 2.0.1 API level 6
    Eclair 2.0 API level 5
    Donut 1.6 API level 4, NDK 2
    Cupcake 1.5 API level 3, NDK 1
    (no codename) 1.1 API level 2
    (no codename) 1.0 API level 1
  • Hemant Sharma QnA

    I am trying to use this However that gives me error .

    Upgrading the Flutter SDK and packages

        My-Mac:~ admin$ flutter upgrade
    
        Upgrading Flutter from /Users/admin/Desktop/SDK/flutter...
        error: Your local changes to the following files would be overwritten by merge:
            packages/flutter/lib/src/services/message_codecs.dart
        Please commit your changes or stash them before you merge.
        Aborting
        Updating 2eeeXXXe9..7XXXbf4aX

    I have gone on the flutter SDK and check status and got below things

    My-Mac:flutter admin$  git status
    On branch master
    Your branch is behind 'origin/master' by 565 commits, and can be fast-forwarded.
      (use "git pull" to update your local branch)
    
    Changes not staged for commit:
      (use "git add <file>..." to update what will be committed)
      (use "git checkout -- <file>..." to discard changes in working directory)
    modified:   dev/automated_tests/pubspec.yaml
    modified:   dev/benchmarks/complex_layout/pubspec.yaml
    modified:   dev/benchmarks/macrobenchmarks/pubspec.yaml
    modified:   dev/benchmarks/microbenchmarks/pubspec.yaml
    modified:   dev/bots/pubspec.yaml
    modified:   dev/devicelab/pubspec.yaml
    modified:   dev/integration_tests/android_semantics_testing/pubspec.yaml
    modified:   dev/integration_tests/android_views/pubspec.yaml
    modified:   dev/integration_tests/channels/pubspec.yaml
    modified:   dev/integration_tests/external_ui/pubspec.yaml
    modified:   dev/integration_tests/flavors/pubspec.yaml
    modified:   dev/integration_tests/platform_interaction/pubspec.yaml
    modified:   dev/integration_tests/ui/pubspec.yaml
    modified:   dev/manual_tests/pubspec.yaml
    modified:   dev/snippets/pubspec.yaml
    modified:   dev/tools/pubspec.yaml
    modified:   dev/tools/vitool/pubspec.yaml
    modified:   examples/catalog/pubspec.yaml
    modified:   examples/flutter_gallery/pubspec.yaml
    modified:   examples/hello_world/pubspec.yaml
    modified:   examples/layers/pubspec.yaml
    modified:   examples/platform_channel/pubspec.yaml
    modified:   examples/platform_channel_swift/pubspec.yaml
    modified:   examples/stocks/pubspec.yaml
    modified:   packages/flutter/lib/src/services/message_codecs.dart
    modified:   packages/flutter/pubspec.yaml
    modified:   packages/flutter_driver/pubspec.yaml
    modified:   packages/flutter_goldens/pubspec.yaml
    modified:   packages/flutter_localizations/pubspec.yaml
    modified:   packages/flutter_test/pubspec.yaml
    modified:   packages/flutter_tools/pubspec.yaml
    modified:   packages/fuchsia_remote_debug_protocol/pubspec.yaml
    
    Untracked files:
      (use "git add <file>..." to include in what will be committed)
    
        OLDSDK.zip
    
    no changes added to commit (use "git add" and/or "git commit -a")

    After do above task now try to upgrade again Flutter but got again error mentioned below

    My-Mac:flutter admin$ flutter upgrade
        Building flutter tool...
        Because flutter_tools depends on sockjs_client 0.3.5 which doesn't match any versions, version solving failed.
        Error: Unable to 'pub upgrade' flutter tool. Retrying in five seconds... (9 tries left)
        .
        .
        Error: Unable to 'pub upgrade' flutter tool. Retrying in five seconds... (1 tries left)
        Command 'pub upgrade' still failed after 10 tries, giving up.
  • Hemant Sharma QnA

    I am trying to use this However that gives me error .

    I am new in Flutter technology, Please elaborate, how to start development in the flutter?

    I have followed "GET STARTED DOC" for Flutter but not getting the idea of how to create a new app for IOs and Android using flutter?

    How to run an application in a real Android Device?
    How to setup flutter and create a fresh project in visual studio code

  • Hemant Sharma QnA

    Hemant Sharma started a new conversation How to set Background image Widget flutter 5 years ago ago

    I am trying to use this However that gives me error .

    I have import Image in My Flutter Project How to set Background Image on the Mobile Screen in the Flutter Framework.

  • Hemant Sharma QnA

    I am trying to use this However that gives me error .

    I am developing an app in which I want to integrate PayUMoney payment gateway. I am not able to get pure PayU Money Integration Details. I have an account of PayU Money but there is no Merchant key-salt.

    I have sent a mail to merchantcare@payumoney.com 

    and I got this mail from PayU Team

    Dear QnA, 

    Greetings from PayU! 

    We request you to kindly share Play store application link of your app from the registered email id of the account in order to get your App integrated with PayUmoney. 

    Please note that your website (or app) should be live ( Homepage, Products/Service with proper image, Product/Services Description and rates (in INR), Add to cart and Checkout Page etc.). Be informed that you need to sign an agreement in order to complete the process. 

    Feel free to get back to us for any other clarification. 

    Regards, 
    Sanju
    PayUmoney Team

    _______________________________________________________________________

    APART OF THIS

    I don't have any idea how to Integrate PayUmoney in Android Application? I have use a tutorial with there Testing Details that was working fine when we change testing details to our it giveing issue Like not showing any Guest Account Login for none PayuMoney Users.

    How to resolve all these issues Please have a look.

    Thanks

  • Hemant Sharma QnA

    I am trying to use this However that gives me error .

    I want to show Rs and Doller in my app according to the Country but I don't want to get permission to get User's Current Country.

    I will change Rs. sign to Doller if User's Country is not India that will get by User's Mobile Location.

    I have tried many things like 

    String localeCountryCode= this.getResources().getConfiguration().locale.getCountry();

    it giving me Result for not what I want 

    this code gets User's Default set Location in Setting.

    But I want real Location Only Country.

    How to get Mobiles Current Country Name Or Country Code without any Permission and User's Interaction with android?

  • Hemant Sharma QnA

    I am trying to use this However that gives me error .

    I am requesting for an API but it is returning me 

    I have printed my Objects Value before send to Server that is fine without any \" but when i get it from Server it is looking like below Json

    {"status":false,"statusCode":400,"error":{"paymentId":"Invalid Payment"},"success":"","data":"\"PAY-87941918BKW2EW831LKIA3JI\""}

    Please help

    Why I am getting "\ from my String Object ?

  • Hemant Sharma QnA

    I am trying to use this However that gives me error .

    When I run My Android Application it shows me 

    Instant Run requires 'Tools | Android | Enable ADB integration' to be enabled.

     

    this error in a popup. I am not getting this issue why it is happening before this everything working fine but when I use Onboarding Lib it start me giving this error.

    How to resolve this issue?

  • Hemant Sharma QnA

    I am trying to use this However that gives me error .

    IntentService is a base class for Services that handle asynchronous requests (expressed as Intents) on demand. But I have a confusion when I have to use Services or IntentService?

  • Hemant Sharma QnA

    Hemant Sharma started a new conversation mail() has been disabled for security reasons 6 years ago ago

    I am trying to use this However that gives me error .

    I am using Mail() function to send Email from my website it is response me Error :

    A PHP Error was encountered

    Severity: Warning

    Message: mail() has been disabled for security reasons

    Filename: controllers/MyMail_Controller.php

    Line Number: 12

    How to Send mail with mail() function of PHP

  • Hemant Sharma QnA

    Hemant Sharma started a new conversation How to Work with Retrofit HTTP Library in android 6 years ago ago

    I am trying to use this However that gives me error .

    I was using AsyncTask for getting and posting data in Webservices. that was working fine for my purpose but i need to use Retrofit now. I have heard more about retrofit performance. How can i implement retrofit in my Android project and get and post data on Webservices? retrofit HTTP Library android QnA

  • Hemant Sharma QnA

    Hemant Sharma started a new conversation How can I test CCAvenue Payment Gateway? 6 years ago ago

    I am trying to use this However that gives me error .

    How can I test my Payment integration with CCAvenue test Account details?

    I have searched for the details but CCAvenue removes there pdf link so that link is unavailable.

    How to find details of testing Payment gateway?

  • Hemant Sharma QnA

    I am trying to use this However that gives me error .

    When I trying to log in with facebook in my Android app it gives me this error: Login Error: There is an error in logging you into this application. Please try again later.

    I have searched google many people facing this issue but No one knows the reason why its occurs. Please help How can resolve this issue?

    Image result for Login Error: There is an error in logging you into this application. Please try again later.

  • Hemant Sharma QnA

    I am trying to use this However that gives me error .

    I have configured all things fine for the first time my app was worked perfectly but today it's giving me this error.

    I have tested facebook configuration that is fine. Search whole day but not got any solution they are saying remove configured settings and delete the app from Developer account and then again create a fresh configuration. I have done it also in one-day same issue occur.

     How can I resolve this? 

     

     

    Image result for Invalid key hash. The key hash

  • Hemant Sharma QnA

    Hemant Sharma started a new conversation How to Scroll ListView inside a ScrollView in android? 6 years ago ago

    I am trying to use this However that gives me error .

    I have a Linearlayout which has a scrollView with a number of elements within it. At the bottom of the scrollView I have a listView which is then populated by an adapter.

    It is showing me only first element of ListView.

    The problem that I am experiencing, is that Android is excluding the listView from the scrollView as the scrollView already has a scrollable function. I want the listView to be as long as the content is and for the master scroll view to be scrollable.

    How can I achieve this behavior?

  • Hemant Sharma QnA

    I am trying to use this However that gives me error .

    Android Studio was first announced at a Google I/O conference in 2013 and was released to the general public in 2014 after various beta versions. Prior to its release, Android development was handled predominantly through Eclipse IDE, which is a more generic Java IDE that also supports numerous other programming languages.

    What is Android Studio?
    Android Studio’s job is to provide the interface for you to create your apps and to handle much of the complicated file-management behind the scenes.
     

    Android Studio 3.0 Update

    What is Now for Update Android Studio?
    Android Studio 3.0 has been released to stable. Download it here.

     

     


    Recent updates

    Android Emulator 26.2.0 canary with Quick Boot

    If you've set your Android Studio update channel to canary, the SDK Manager should now show an update to receive version 26.2.0 of the Android Emulator. QnA is Updated with the Android Systems New things. This is the first release to include the new Quick Boot feature, which makes the Android Emulator start up much faster based on a snapshot of your previous AVD instance.

    Quick Boot is enabled by default for all AVDs. Although the first time you start an AVD it must perform a cold boot (just like powering on a device), all subsequent starts are fast and the system is restored to the state at which you closed the emulator (similar to waking a device). Learn more about Quick Boot here.

    Read more


     

    Android Studio 3.0 Update

    Android Studio 3.0 RC 2 now available

    Android Studio 3.0 RC 2 is now available in the Canary, Dev, and Beta channels. This update includes general bug fixes, including a fix to properly update from previously installed versions of the IDE on Linux and Windows.

    Read more



    Android Studio 3.0 RC 1 now available

    Android Studio 3.0 RC 1 is now available in the Canary, Dev and Beta channels. Note: This release does not include patches. So, you must download a full installation. This update includes fixes for the following public issues ...

    Read more

    Android Studio 3.0

    Here’s the rundown of what version 3.0 brings to the table:

    • Kotlin Programming Language — Kotlin
      is now officially supported in Android Studio, including features likes code completion and syntax highlighting.
    • Java 8 Language features — To update your project to support the new Java 8 Language toolchain, simply update your Source and Target compatibility levels to 1.8 in the Project Structure dialog.
    • Layout Editor — The component tree in the Layout Editor has with better drag-and-drop view insertions, and a new error panel.
    • Adaptive Icon Wizard — The new wizard creates a set of launcher icon assets and provides previews of how your adaptive icon will look with different launcher screen icon masks. Support for VectorDrawable layers is new for this release.
    • XML Fonts & Downloadable Fonts — If you target Android Oreo (API Level 26 and higher) for your Android app, you can now add custom fonts & downloadable fonts using XML.
    • Android Things Support — A new set of templates in the New Project wizard and the New Module wizard to develop for the Android Things platform.
    • IntelliJ Platform Update — IntelliJ 2017.1 release, which has features such as Java 8 language refactoring,
      parameter hints, semantic highlighting, draggable breakpoints, enhanced version control search, and more.
    • Instant App Support — You can add Instant Apps features to your project.
    • Build Speed Improvements — A rare breaking API change in the Android Gradle Plugin to improve scalability and build times is one of reasons the version number has jumped from 2.4 to 3.0. If you depend on APIs provided by the previous Gradle plugin you should validate compatibility with the new plugin and migrate to the new APIs. To test, update the plugin version in your build.gradle file.
    • Google’s Maven Repository — To facilitate smaller and faster updates, Android Studio 3.0 utilizes Google’s Maven Repository by default instead of using the Android SDK Manager to find updates to Android Support Library, Google Play Services, and Firebase Maven dependencies. Used in combination with the latest command line SDK Manager tool and Gradle, Continuous Integration builds should migrate to Google’s Maven Repository for future Maven repository updates.
    • Google Play System Images — The emulator system images for Android Oreo now include the Google
      Play Store, allowing developers to do end-to-end testing of apps with Google Play and keeps Google Play services up-to-date in Android Virtual Device (AVD). The emulator system images are signed with a release key so you will not be able to get elevated privileges. You can use the Android Open Source Project (AOSP) emulator system images for that.
    • OpenGL ES 3.0 Support in Android Emulator — OpenGL ES 3.0 support for Android Oreo system images along with significant improvements in OpenGL ES 2.0 graphics performance for older emulator system images.
    • App Bug Reporter in Android Emulator — An easier way to generate a bug report with the Android Emulator with all the necessary configuration settings and space to capture your repro steps.
    • Proxy Support in Android — A user interface to manage the HTTP proxy settings used by the emulator.
    • APK Debugging — Debug an arbitrary APK. As long as you have a debuggable version of your APK, you can use the new APK Debugging features to analyze, profile, and debug the APK. If you have access to the sources of your APK, you can link the source to the APK debugging flow for a higher fidelity debugging process.
    • Layout Inspector — Better grouping of properties into common categories, as well as search functionality
      in both the View Tree and Properties Panels.
    • Device File Explorer — The new Device File Explorer in Android Studio 3.0 allows you to view the file and directory structure of your Android device or emulator. As you are testing your app, you can now quickly preview and modify app data files.
    • Android Test Orchestrator Support — When used with AndroidJUnitRunner 1.0 or higher, the Android Gradle plugin 3.0 supports the use of the Android Test Orchestrator. The Android Test Orchestrator allows each of your app’s tests to run within its own Instrumentation.
    • Android Profiler — A brand new suite of tools to help debug performance problems in your
      app. Once you deploy your app to a running device or emulator, click on the Android Profiler tab and you will now have access to a real-time & unified view of the CPU, Memory, & Network activity for your app. Each of the performance events are mapped to the UI event timeline which highlights touch events, key presses, and activity changes so that you have more context on when and why a certain event happened.
    • APK Analyzer Improvements — Additional enhancements to help you further optimize the size of your APK.

    This release also includes many stability and performance fixes in addition to the new features (full release notes). Google didn’t mention its plans for the next version.

  • Hemant Sharma QnA

    Hemant Sharma started a new conversation Blockchain API for Bitcoin 6 years ago ago

    I am trying to use this However that gives me error .

    I want to use Implement Bitcoins all state, I want Bitcoin's Current Value for USD Doller and INR through APIs. Is there any Free API provide who is almost near to Bitcoin's Real Current Value?

  • Hemant Sharma QnA

    Hemant Sharma started a new conversation How to generate QR Code and read in android? 6 years ago ago

    I am trying to use this However that gives me error .

    I have an Encrypted value which is very lengthy, Every time user should enter that key that is not user-friendly so we decide to create QR code and Scan it for input. I have tried many things but not able to Generate QR Code of Simple String. 
    How can I generate QR Code and read it from Scanner?
    Image result for mobile qr code

  • Hemant Sharma QnA

    I am trying to use this However that gives me error .

    A PHP ERROR WAS ENCOUNTERED

    SEVERITY: CORE WARNING

    MESSAGE: MODULE 'MYSQLND' ALREADY LOADED

    FILENAME: UNKNOWN

    LINE NUMBER: 0

    BACKTRACE:

  • Hemant Sharma QnA

    I am trying to use this However that gives me error .

    Error saying that you have cursor on 0th index in 0length of array and 
    String path = cursor.getString(cursor.getColumnIndex(MediaStore.Images.Media.DATA));
     

    I am getting this error while trying to open the image in android in below Method : 

    //method to get the file path from uri
    public String getPath(Uri uri) {
        Cursor cursor = getContentResolver().query(uri, null, null, null, null);
        cursor.moveToFirst();
        String document_id = cursor.getString(0);
        document_id = document_id.substring(document_id.lastIndexOf(":") + 1);
        cursor.close();
    
        cursor = getContentResolver().query(
                MediaStore.Images.Media.INTERNAL_CONTENT_URI,
                null, MediaStore.Images.Media._ID + " = ? ", new String[]{document_id}, null);
        cursor.moveToFirst();
        String path = cursor.getString(cursor.getColumnIndex(MediaStore.Images.Media.DATA));
        cursor.close();
    
        return path;
    }




    E/AndroidRuntime: FATAL EXCEPTION: main

    Process: com.vbagetech, PID: 30071
    
    android.database.CursorIndexOutOfBoundsException: Index 0 requested, with a size of 0
    at android.database.AbstractCursor.checkPosition(AbstractCursor.java:426)
    
    at android.database.AbstractWindowedCursor.checkPosition(AbstractWindowedCursor.java:147)
    
    at android.database.AbstractWindowedCursor.getString(AbstractWindowedCursor.java:61)
    
    at android.database.CursorWrapper.getString(CursorWrapper.java:114)
    
    at com.vbagetech.upload.test.UploadFilesActivity.getPath(UploadFilesActivity.java:137)
    
    at com.vbagetech.upload.test.UploadFilesActivity.uploadMultipart(UploadFilesActivity.java:80)
    
    at com.vbagetech.upload.test.UploadFilesActivity.onClick(UploadFilesActivity.java:184)
    
    at android.view.View.performClick(View.java:4467)
    
    at android.view.View$PerformClick.run(View.java:18776)
    
    at android.os.Handler.handleCallback(Handler.java:808)
    
    at android.os.Handler.dispatchMessage(Handler.java:103)
    
    at android.os.Looper.loop(Looper.java:193)
    
    at android.app.ActivityThread.main(ActivityThread.java:5292)
    
    at java.lang.reflect.Method.invokeNative(Native Method)
    
    at java.lang.reflect.Method.invoke(Method.java:515)
    
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:828)
    
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:644)
    
    at dalvik.system.NativeStart.main(Native Method)

     

  • Hemant Sharma QnA

    Hemant Sharma started a new conversation How to create html to pdf in php CODEIGNITER? 6 years ago ago

    I am trying to use this However that gives me error .

    I want to create pdf in Codeigniter.I have researched many things but mostly paid or there is not that feature what I want in my pdf, Please developer suggest me any useful pdf generator.
    I want am developing a website for Writer he will write store novel on site and it will be converted to pdf for free distribution.  So pdf has to be Images, Tables Formatted Text. Do you have any suggestion or tutorial?
    Please share.

  • Hemant Sharma QnA

    I am trying to use this However that gives me error .

    I'd like to draw a pie chart in my android application. Would you please suggest me a way to do that in a simple way?I have no idea how to create it So I would appreciate if you tell me a good and high-performance chart library or Pre Define Android widget.Image result for how to create pie chart in android

  • Hemant Sharma QnA

    I am trying to use this However that gives me error .

    I am inserting data but how exactly I can know that my data is Really inserted. is there any predefine function or need to manually? Please help me to do this.