• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Search results

  1. R

    Installed Build Tools revision 33.0.1 is corrupted. Remove and install again using the SDK Manager

    I have done a clean install of Android Studio Giraffe. I previously had Dolphin. I am creating a new project trying just a basic Empty Project with the Java. I get the error Installed Build Tools revision 33.0.1 is corrupted. Remove and install again using the SDK Manager I have tried the...
  2. R

    Async Function Needs Context

    [Edit: I think I am asking, how do you access the calling Context in an Async callback function that has just got the Sku details?] I have an async callback function within another function (onSkuDetailsResponse) public void querySkuDetailsAsync(@BillingClient.SkuType final String itemType...
  3. R

    Will A Consumed IAP Still Appear in Purchases?

    I am in Android Studio. When I get my purchases it still shows a purchase I thought I had consumed. Here is my handlePurchases: void handlePurchases(List<Purchase> purchases) { String str; int numberOfPurchases = 0; for(Purchase purchase:purchases) {...
  4. R

    consumeAsync Return Error Code 5

    I am getting error code 5 which I believe is 'Developer Error'. The mDebugMessage in the BillingResult is Invalid Token. (I have checked the name and I am sure it is correct.) I am calling consumeAsync("noadverts"); where "noadverts" is the name of my in app product. When I check my purchases...
  5. R

    Adding *Existing* html and js files to the assets folder in Android Studio 2019

    I have an existing Android Studio project with an assests folder called www. It presently has an html file in it. Outside Android Studio I have moved some other html/javascript files to the www directory on my hard drive using the standard windows file manager. How do I get Anrdoid Studio...
  6. R

    Google Play Download Has Error, Debug Version Through Android Studio Does Not

    When I purchase an in-app product in my program when installing the apk through Android Studio, my code works perfectly. My button which shows the price when unpurchased updates to showing a tick, indicating the user has got it. However, when I use the exact same apk (but obviously signed etc)...
  7. R

    Audio Base64 in a Webview not loading

    I have a html page (on the desktop and/or the server) which loads base64 audio in the Chrome browser perfectly fine. However, when I put this html page as an asset in an Android App which appears in a webview in the app, it just will not load the sound. When I run the app, bypassing the check...
  8. R

    Google Play - In App Purchase - Testers are not being told they won't be charged

    I have put two In App Puchases in my Google Play Android app. The testers (not me - you cannot buy your own IAPs) are clicking the buy button and cannot see the line in the purchase sequence that is meant to tell them they will not be billed. See the picture under the title Instruct testers to...
  9. R

    In App Purchase - Android In-App Billing v3 Library

    I am using Android In-App Billing v3 Library. I have created an InAppPurchase called test1 in the Google Console. It is active. However when I do: bp.purchase(this, "test1"); I get the error from Google Play: Error The item you requested is not available for purchase When I do...
  10. R

    Phone on Permanent Charge when Developing

    OK, I am completely new to phones, so this might be a dumb question. There are many stories about how to prolong battery life for laptops (which I know about) and from what I have read things are reasonably similar for phones. The only thing I do with my phone is program. So it is connected to...
  11. R

    Android Phone No Longer Recognised

    I bought my phone yesterday and managed to get it recognised in Android Studio in the 'Select Deployment Target' dialog. Today I have plugged it in and it is no longer there. When I plug in the phone to the computer (Win10) I do not get the usual beeping noise you typically get when a usb is...
  12. R

    Amazon Fire - Android Studio - Is Connection Possible?

    I am programming with Android Studio on Windows 10. I need to get an Android device to check my In App Purchases code. (It needs a device, it cannot be done on the emulator.) Can you connect an Amazon Fire Android device to Android Studio, or do you need a proper Android phone or Tablet?
  13. R

    Genymotion Virtual Android Machine not showing up

    I have been having a few problems getting the Android Studio virtual machine to run, so decided to give Genymotion's virtual machine a try. I can get it running; Hoorah. I can get the Genymotion icon showing in Android Studio using the sequence: To install the Genymotion plugin for Android...
  14. R

    Android Studio - Virtual Machine Freezes or In Perpetual Loop

    I have installed Android Studio. When I Create a New Device I have to be careful. When I created a Nexus 5X 1080x1920 it does not allow me to change from Emulated Performance|Graphics|Automatic This kept on causing the virtual device to freeze or the emulator timing out before coming online...