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

Debugging release

After debugging on my phone directly, i found it was completely unrelated to any changes I had made.

I had, for unrelated reasons, disabled location services. Permission was granted, but there was no location to get, and I wasn't handling the null object correctly!

So, even though an unrelated issue, it led me to a bug I didn't know I had. A fortunate accident.

Custom Notification - Paddings

That would seem to indicate that you need to provide multiple layouts for different screen resolutions and pixel densities, with the padding different for each, if it's really that important to match exactly.

I think at this point I would be questioning if it's that important to get that close of a match, or look at alternative approaches to accomplish the desired result.

Feature Graphic

If you want to see featured graphics in action, open the play store app on your phone and scroll down till you see "[Ads] Suggested for you". Those are all featured graphics.

edit:
There's a few rows of "[Ads] Suggested for you". Scroll down till you get to the row displaying rectangular images. Those are all featured graphics.

Thanks - now I can see some! I appreciate all the help!

Apps Android 6 - how to open Firefox from my app?

In Android 4 & 5 the following code worked perfectly:
Java:
private void shareImageWithUri(Uri uri) {
        Intent intent3 = new Intent(Intent.ACTION_MAIN, null);
        intent3.addCategory(Intent.CATEGORY_LAUNCHER);
        intent3.setComponent(new ComponentName("org.mozilla.firefox", "org.mozilla.firefox.App"));
        intent3.setAction("org.mozilla.gecko.BOOKMARK");
        intent3.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
        intent3.putExtra("args", "--url=" + uri.toString());
        intent3.setData(uri);
        startActivity(intent3);
    }

It opened a FF instance and navigated the Firefox at the passed url. In Android 6 I am still getting the FF opened, but it does not recognize the passed url and therefore leave the tab clean. How can I pass an url in app start arguments in Android 6?

Questions about Gallery Apt

It's probably not the gallery app saving things, but some other app saving things and them showing up in the gallery (because that will show any images it find anywhere on the phone). Have you checked which folder these images are actually stored in? It may be something unhelpful like "Downloads", but there's a chance that the location will help identify what is doing it.
Thanks for the tip. I checked and they are all in "UnityAdsCache". So they are from the ads in a game. And I know which game. If I put the .nomedia file in that folder and I it worked as far as the Gallery app. Of coarse the pictures are still on my phone. So I found an app that cleans out the caches on my phone and it does clean out these ads also. So again, thanks for the tip that got me started.

Help Sonim XP8800 Bluetooth pairs to radio but no audio?

Thanks for the information-I was not aware of what version of Bluetooth the Sonim had until now. I went back and decided to play with the settings some more and found this screen (screenshot attached)-both the media box and the HD audio box were checked. I unchecked and rechecked media which did nothing, but when I unchecked HD audio I got audio over my truck stereo. I am guessing that the HD audio is a feature of 5.0 that is not backward compatible to/supported by 3.0:

n6Fxebw.png

Yes, that's correct. Although I thought Bluetooth was supposed handshake and deal with different version compatibility itself, like NOT trying to send HD audio to a device that can't decode and play it. The Media Audio is most likely SBC(Sub Band Codec) that all BT audio devices support, the A2DP profile, but doesn't necessarily give the best SQ because it's a lossy codec. Some BT devices support AAC, that is apparently better SQ, but is still a lossy codec.

Gradle testOptions not working

My build.grandle:
Code:
apply plugin: 'com.android.application'

android {
    compileSdkVersion 29
    buildToolsVersion "29.0.1"
    defaultConfig {
        applicationId "com.example.app5"
        testApplicationId "com.example.app5.test"
        minSdkVersion 16
        targetSdkVersion 29
        versionCode 1
        versionName "1.0"
        testInstrumentationRunner "android.test.InstrumentationTestRunner"
        testHandleProfiling true
        testFunctionalTest true
    }
    testBuildType "debug"
    testOptions {
        reportDir "$rootDir/test-reports"
        resultsDir "$rootDir/test-results"
        unitTests {
            returnDefaultValues true
            all {
                jvmArgs '-XX:MaxPermSize=256m'
                if(it.name == 'testDebugUnitTest')
                    systemProperty 'debug', 'true'
            }
        }
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])
    implementation 'androidx.appcompat:appcompat:1.0.2'
    implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
    testImplementation 'junit:junit:4.12'
    androidTestImplementation 'androidx.test:runner:1.2.0'
    androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
}
I specified reportDir. but when I run the unit test, I don’t see anything in the project folder in the test-results folder, that is, this option does not work, it seems to have to save the results to that folder automatically, and it seems the whole testOptions block does not work. What could be the problem ?

Gradle DSL method not found: 'testImplementation()' when creating a separate test module

I wrote that the error is not in grandle! And I already saw these links and in them useless information that did not help me.
You can take it and not be lazy and reproduce my steps, and then try to fix it and you will see that the problem is completely different. Either someone will already help me, or android studio is a garbage pit that you should not study

Looking for the Mate 20 Pro forum

Is it a China "00" variant, that doesn't have any Google on it at all? You might be able to install the Google Play from the Huawei AppGallery that's on your phone already.

Screenshot_20190815_134132_com.huawei.appmarket.jpg

"87 million installs" ... really? That many users have installed Google Play on Googleless Huaweis?

I'm sure this is a hacked version of Play that Huawei puts in their app store. But I've been using it no problem for nearly two years on a China variant Mate 10. It didn't need the phone to be rooted.

Oppo and Vivo have the same thing for their China variant phones.

Filter

Back
Top Bottom