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

Ads not showing

I just changed my ad unit key from the test key to my real one. On the emulator I get a log message "request sent from test device" and then "App not loaded". That's not surprising on an emulator.

But when I generate an APK and install that on my phone, I get a blank space, no ads loading.

How do I test that REAL ads are working correctly?

Is Cerberus still relevant?

All this talk today [in the other thread] led to installing the newest version directly from the Cerberus site. I've now actually gone in to set it up, and I'm left wondering if I should even bother.

Now that Google has provided so much protection, I don't know that Cerberus is still relevant.

For example, thieves will likely find themselves with a shiny, pretty paperweight, what with FRP and all. Hackers would find themselves with none of our personal data since we can remotely wipe them. Thieves and/or hackers may find the law at their door, courtesy of 'find my device.' And so on.

Looking at the permissions and actions Cerberus wants me to approve, like remote wiping, they're basically redundant because of Google.

What do you think? Are there compelling reasons to keep it? In an actual emergency scenario, is one better than the other? Which would you use?

Help Facebook yet again..

My hugest problem right now, on my personal comp, is when switching out accounts and the small red dot with numbers,
shows up and I clear all notifications before I log out, but they are now stuck on three and five, meaning there is none at all.

Even after going through and switching off from chrome to torch, or even ghostery from time to time that connects with the same ammount of notifications no matter what.

So my hugest problem is that, I should just deactivated both accounts for a while now.
I am just wondering why even I keep seeing them over and over?

NFC - 2 Pay Apps - 1 on Galaxy & 1 on Gear

Samsung S8 with Gear 3 Frontier Watch
Part question and maybe part tip for others...

I would have preferred to use 2 different credit cards for one app but in my case it is not possible because of the banks supporting certain apps only.
In my case Canadian Tires "Triangle Master Card" using Google pay and "CIBC" using Samsung pay

So what I did was installed Google Play on the mobile and set it as the default NFC
Then I setup Samsung Pay for the watch using Galaxy Wearable app.

I have not tested it yet but I am guessing all I need to do is tap my phone for one credit card and for the other press and hold button on watch, click on the credit card image and tap...with the odd time having to enter my pin #.
I then went back to the mobile and checked Settings/Connections/NFC/Tap&pay and Google Pay shows that it is still default App.

The simple question is has anyone figured this out or tried it out?

Note that I am aware you can open the according apps before paying but would think and hope this is little more convenient.

LG STYLO 3 issues

I am using a LG STYLO 3 from T-Mobile. The issue I am having is that it will disconnect from my bluetooth devices, (such as a speaker or earpiece), after I answer a call or after make a call. When making a call, I will here the ringing through the earpiece and then it will switch back to either speakerphone or just the internal speaker. My hearing is very poor so I need to get this fixed so I can understand calls better.
Any ideas? :/

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?

Help Google account problen after system update

Hi, 2 days ago I've installed latest update for 1+6 system. After that I cannot login to my google account and google apps (gmail, maps, calendar, keep) work offline in both wifi and LTE mode. I cannot add another google account to this phone (network connection problem). I can login via browser to this gmail with no problem on this phone (so both internet connection and google account works fine). Can you help me with this?
Regards
Arek

Can't import project, says it already exists!? How to delete?

I am running Android Studio 3.3.2.

I start a project called myproject. I then exported the project "myproject".

I tried to remove myproject from studio (close/delete). Also I deleted the myproject folder on the filesystem. BUT when I try to import the previous export of "Myproject", it keeps saying "The project file specified already exists." Studio also seems to re-create the folder "myproject" (albeit blank folder contents)

QUESTION: How do I remove a project from studio 3.3.2 such that I can import the project back into studio???

Thank yoU!

reply-to in email client

I thought this would be an easy one, but I have not yet found an Android client that supports reply-to, and there doesn't seem to be any threads on this forum. Here's what I have:

Company contracts Google to administer email, and turns off Gmail IMAP. I despise web interfaces, so created a new email account and have Gmail forward my company email to that account. This is fine when I'm at my desk, Thunderbird allows me to use reply-to, so I can write mail from my non-company account and replies still go to my company account, forwards to me, system works.

The phone is a different story, of course I can receive and read company mail, but have not found a client yet that has reply-to as an option. Simply using Gmail phone app as a client for company mail directly is not an option, since they have this thing set up through Google where if you create your company account through Gmail app it installs some Google admin crap on your phone which allows the company IT guys access, fine for company phones, but my phone is mine, and that ain't gonna happen. Does anyone know of any client that supports reply-to or plans to include it? I don't want to do some weird workaround, reply-to used to be a common feature, not sure why no one seems to be including it.

Can't connect Rii 8 to android tv

My Rii 8 keyboard won't connect to my jetstream tv box. It finds it, connects then drops connection. I have tried factory resets, clearing cache and data from bt apps. Nothing seems to work. I actually got an old netgear android keyboard remote to connect but not the Rii 8. It is the true bluetooth model without the dongle. Has anyone had any success connecting one to android tv? Thanks.

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 ?

Is there a way to change the font and display size for ONLY one app?

I'm a big fan of Persona 5 so I downloaded a messenger app that looks just like the one in the game. It looks great, but the font and display are way too small. I tried going into my settings and changing the font and display size, and while that made the app look great (exactly like in the game!), it made everything else WAY too big. This is what my home screen looks like now, it made my phone look like it belonged to someone going blind.

So is there any way that I can change the font and display size on that specific app to be bigger while still keeping everything else at default size? I already looked through the settings for the app and there isn't an option in there. Thanks in advance!

Beelink GT King Review: the New King of TV-Boxes

83e7d39bgy1g4tmi1vem5j20m80et15n.jpg


The good:
Attractive design.
Great build quality.
Impressive performance.
Lots of connectivity options.
Android 9 Pie.

The bad:
No Netflix and Amazon Prime Video in HD.
32-bit version Android OS.

It has been a long time since the last time I was excited by a TV box. The other day I saw a video on ASBYT's YouTube Channel, introducing the Beelink GT King. I was so intrigued by the design and specs of this device, and decided that I had to get my hands on the box, and here we are.

The Beelink GT King is the latest addition to Beelink's TV box lineup, and it comes with some of the most astonishing specs ever seen in an Android TV box. Not only is it the first TV Box powered by the all new Amlogic S922X chipset, which has a big-LITTLE hexa-core CPU (4 cores of Cortex A73 clocked at 1.8GHz , 2 cores of Cortex-A53 clocked at 1.9GHz ), a beefy Mali-G52MP6 GPU clocked at 846MHz, and uses very advanced 12nm manufacturing process, it also comes with 4GB LPDDR4 RAM, 64GB eMMc storage, HDMI2.1 and a slew of connectivity options.

But what do those specs mean to us average consumers in our day to day use? Do we really need that much horsepower from a TV box? We will try to find out the answer in this review.


Main Specs of the Beelink GT King

Operating System: Android 9.0 (32-bit)
Processor: Amlogic S922X chipset (big.LITTLE Hexa-core CPU and Mali-G52MP6 GPU )
RAM: 4GB LPDDR4
Storage: 64GB eMMc Internal Storage, TF Card support (up to 128GB)
HDMI: HDMI 2.1 output up to 4K@75fps
Bluetooth: Bluetooth 4.1
Internet Access: dual-band WiFi 2.4G / 5.8G, Gigabit Ethernet
Ports: Ethernet port*1, SPDIF Port*1, DC-in port*1, Micro SD card slot*1, USB 3.0 Port*2, USB 2.0 Port*1, HDMI*1.
Dimension: 4.25 x 4.25 x 0.63 (L x W x H)
Power Supply: 12V DC/1.5A
Weight: 190g
Chassis: Black, Plastic
Retail Package: TV box*1, Remote control*1, HDMI cable*1, Power adapter*1, User manual*1


Retail Packaging

83e7d39bgy1g4tmgpf8vrj20m80fetpn.jpg


The Beelink GT King comes with very refined retail packaging, the half-skull on the front of the black box looks extremely cool.

83e7d39bgy1g4tmgrxrqjj20m80et1au.jpg


83e7d39bgy1g4tmgv2wmdj20m80ettuc.jpg


Inside of the packaging we have found the GT King TV box, and some accessories: including an AC Adapter, an HDMI cable, a remote and a user manual. The user manual offers instructions in different languages: English, German, French and Japanese.


Design and build

83e7d39bgy1g4tmhatne6j20m80et4gh.jpg


The GT-King has a very premium and attractive design, definitely one of the best of all Beelink devices. The matte black finish of the shell looks pretty nice, while the highlighted skull on the top side looks identical to the one on the famous Skull Canyon mini PC.

83e7d39bgy1g4tmh49nktj20m80emwxg.jpg


Also on the top side, there's a raised Beelink logo on the top left corner.

83e7d39bgy1g4tmi2y2p1j20m80etdmm.jpg


The eyes of the skull will light up in green once the box is powered on, giving it a more interesting look.

83e7d39bgy1g4u1enrjovj20m80fh16x.jpg


There're lots of interfaces on the relatively small GT-King. The front plays host to an IR receiver, which works with the stock remote coming with the box.

83e7d39bgy1g4tmh63f9zj20m80dstma.jpg


On the left side, you can find two USB 3.0 ports, which ensure high-speed data transfer between the GT-King and USB-mounted storage such as a portable drive and a flash disk. There is also a MicroSD card slot, which can support cards up to 128GB.

83e7d39bgy1g4tnrz0hhxj20m80dttlz.jpg


The back side of the box sports an DC-in port, a USB 2.0 port, an HDMI 2.1 port, an Ethernet connector, an SPDIF port, a 3.5mm AV (RJ45) port.

83e7d39bgy1g4tmhpa6lxj20m80et4ga.jpg


There are 4 very short feet on the bottom side.

83e7d39bgy1g4u1eoqtxgj20m80etqq5.jpg


The GT-King measures 4.25 x 4.25 x 0.63 inches and weighs 190g, pretty compact even by TV box standards. The build quality is great, as the box looks extremely polished, with no ugly mold lines. It feels pretty sturdy, too.

83e7d39bgy1g4tmhvyw76j20m80ete1l.jpg


The supplied remote is predictably lightweight, and feels very well-built as well. The box responds quickly to its commands and the infra-red range are acceptably long and broad. What puzzled me at first was that the infrared remote came with a USB receiver, which seemed quite unnecessary. I then contacted Beelink and they told me that the remote for the GT-King was designed to feature air mouse functionality, but due to the lack of material, they removed this feature from one batch of GT King. Well, I ended up being the unlucky few.


Setting it up

83e7d39bgy1g4tzduokmcj20m80fxdjx.jpg


Setting up the Beelink GT-King is as easy as setting up any TV box. Connecting it to a TV set (or projector) via HDMI, plugging in the DC power adapter and you are good to go. After being powered on, a skull will show up on the TV screen, with its eyes blinking in different colors.

83e7d39bgy1g4tmi5siyaj20m80et7l6.jpg


The startup is quite fast, as the familiar Beelink homescreen will show up only seconds afterwards.


System & Apps

83e7d39bgy1g4tmfdky6cj20m80ci104.jpg


The Beelink GT-King ships with Android 9.0 Pie, with the very familiar Beelink skin on top. The launcher has everything laid out beautifully and is very easy to navigate. The date and time is located at the top left with the temperature widget below. In the center of the screen you have a link to the media center, internet browser and Google Play Store, There are also shortcuts to "clear memory", app drawer, and settings laying below. To the right is an area where users can pin their favorite apps. Finally, at the bottom left you have shortcuts to power, volume, at the bottom right you have shortcuts to Wi-Fi, Bluetooth.

83e7d39bgy1g4tmfsbppdj20m80ciwpk.jpg


The navigation bar at the very bottom is defaulted to be hidden, but you can bring it up with a mouse. It has many virtual keys, including a power button, a back button, a home button, a recent apps button, a screenshot key, a volume- button, a volume+ button and a hide-bar button.

I personally think that Beelink should design a skin and some wallpapers more in line with the design of the GT-King, since this is such a special device, but developing something completely different for one device may be costly for such a small operation like Beelink.

83e7d39bgy1g4tmff4ywqj20m80ciaft.jpg


The GT-King doesn't come loaded with bloatware, but there are some preinstalled apps. Besides the stock Google Play Store, Chrome, Calculator and Gallery, you can also find Beelink's very own App Store, Bee Files Explorer, Media Center, Movie Player and Bee Music in the app drawer.

83e7d39bgy1g4tmfns18pj20m80cidkj.jpg


The Google Play Store is the normal phone and tablet variant instead of the TV version found on many other Google certified TV boxes. Although there are more apps in the phone-version Play Store, you won't get most of your favorite TV apps here.

83e7d39bgy1g4tmfjktppj20m80cimzx.jpg


Still, you can install the TV version of YouTube, Netflix, Hulu, Amazon Prime Video from Beelink's very own App Store, those apps work better with a remote. If these are still not enough, there's always an option to directly install the apk files of the apps you want.

One thing we need to mention is that the GT-King runs on the 32-bit version of Android 9 Pie. There are a few apps which won't run properly on the device, but it is not really a concern for the majority of TV box users.

Debugging release

I have a signed api and I just pushed an update to it. Still not play store. It works just fine on the emulators, but on my phone it keeps crashing. (Just A Map keeps stopping)

I changed very little since the last version: added an image for a splash screen background (it's a style background so it only shows during startup) and moved a few things around. The big change is the image, but it displays that just fine, and moves on to the next activity before it crashes.

How can I find out what is breaking?

How to download audio files from URL links?

I am creating an app in which I have to play audio from a number of URL links. At the first ever run of the app I am providing user the option of either downloading all of the audio files at once. Right now I am downloading each URL individually using Async Task. The problem with this approach is that since I have some 6000 url links for audio files it takes very long.

My questions is that is there any way I can quickly download audio files from these 6000 urls or any better approach of handling downloads.

Below I am also providing the code that I am using for downloading each url.

public class DownloadAudio extends AsyncTask<Void, Void, String> {

public static final String TAG = DownloadAudio.class.getSimpleName();

ProgressDialog mProgressDialog;

Context context;
String stringUrl;
int index;

public DownloadAudio(Context context,String url, int randomNumber) {
this.context = context;

stringUrl=url;

index = randomNumber;

}

protected void onPreExecute() {
mProgressDialog = ProgressDialog.show(context, "Please wait", "Download …");
}

@override
protected String doInBackground(Void... voids) {
try {

URL url = new URL(stringUrl);
HttpURLConnection c = (HttpURLConnection) url.openConnection();
c.setRequestMethod("GET");
c.setDoOutput(true);
c.connect();
String[] path = url.getPath().split("/");
int temp = path.length - 1;
String mp3 = path[temp];
int lengthOfFile = c.getContentLength();

String PATH = Environment.getExternalStorageDirectory()+ "/MyAudioApp/" ;
Log.v(TAG, "PATH: " + PATH);
File file = new File(PATH);
file.mkdirs();

String fileName = mp3;

File outputFile = new File(file , fileName);


FileOutputStream fos = new FileOutputStream(outputFile);

InputStream is = c.getInputStream();

byte[] buffer = new byte[1024];
int len1 = 0;
while ((len1 = is.read(buffer)) != -1) {

fos.write(buffer, 0, len1);
}
fos.close();
is.close();

} catch (IOException e) {
e.printStackTrace();
}

return "done";
}

protected void onPostExecute(String result) {
if (result.equals("done")) {
mProgressDialog.dismiss();
}
}

}

Please any suggestions would be very helpful.

Thanks​

WiFi drops every couple of minutes

I have the Note 9 with magisk latest the only problem I have is that my WiFi has a exclamation mark next to it and I don't get any connection. I only have WiFi on not mobile data. I have to reconnect again to make it work it happens every couple of minutes. I just downloaded the ROM and the vendor fix when flashing. Any help? I have The Galaxy Project ROM

https://forum.xda-developers.com/galaxy-note-9/development/rom-galaxy-project-t3911947

Attachments

  • SmartSelect_20190813-164101_YouTube.jpg
    SmartSelect_20190813-164101_YouTube.jpg
    3.2 KB · Views: 174

Filter

Back
Top Bottom