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

Running using lower target SDK

Hi,
I am running AS 3.4.1 (latest) and my app is launched on the device which has Android API 28.

However, I have setup my manifest and my gradle file for my app (it is sync'd) to targetSDK 26.

When I run my app, I choose my device as the target. I read the SDK which prints 28 using this code and printing it on the screen:

`AndroidAPIver = Build.VERSION.SDK_INT;`

What should I do so my app runs with targetSDK 26 on my phone?
I followed a guide like this (I found a cpl like that) but it did not work: https://abhiandroid.com/androidstudio/change-api-sdk-level-android-studio.html

Default Speakerphone Change

Hi folks, I was having trouble with a bluetooth headset and did something stupid... I accidentally selected S Voice as the default speakerphone on my S5. Dumb, dumb.... I just want to get back to the original setting which is pressing speakerphone and having it come out of the speaker. But I can't find any info that shows where the default is stored and what the default app would be. Any help would be appreciated.

Best, JRH

What NOW

So now GOOGLE is going to comply with the US ban and restriction on HUAWEI'S future android phones with end support for Gmail, YouTube, play store,etc and no upgrade to future upgrades/support for new android OS's. There's been no mention about HUAWEI devices for us in Canada? So far they've been saying that current passed devices will work and function as usual. I just got the P30PRO. Why isn't there any mention about devices used in Canada? How is this ban going to affect us? Should I get rid of my device now?

Aristo 2 Problems with Pictures and App

Hello!

I have an LG Aristo 2 that I've had for about a year. I had no problems with it until recently when I went abroad and purchased a temporary local Sim card (from Vodafone in Italy). As soon as the trip was over and I was back in the US I removed the Sim card and put my original card back in.

Since then, I have been unble to take pictures with my phone. If I try taking a picture I get a "cannot save" notification. I also have a few grayed out apps that were working prior to the trip. I cannot click on these apps and when I try to reinstall I get error notifications that they cannot be installed. I've tried rebooting my phone and clearing the cache however I'm still having problems.

I have no idea if these problems are related to the Vodafone Sim card or not, but my phone worked just fine prior to the trip, and on the trip itself.

Any advice would be much appreciated!
Tracy

Bmi calculator

promo_en.png

BMI calculator
is free app that allows you to calculate Body Mass Index and body fat percentage.
With BMI calculator you can easily to determine underweight, normal weight, overweight or obese.
Knowing Body Mass Index and body fat percentage can help adult men and women understand their overall health.
An indispensable application for maintaining a healthy living!

The BMI calculator calculates your Body Mass Index and body fat percentage based on the next parameters:
- weight
- height
- age
- gender

Features:
✔ Simple and easy to use
✔ Calculate Body Mass Index based on your weight and height
✔ Calculate Body Fat Percentage based on your weight, height, age and gender
✔ No internet connection required for calculation.
✔ Free to use

Google Play link


main_screen_framed.jpg result_screen_framed_1.jpg result_screen_framed_2.jpg result_screen_framed_3.jpg result_screen_framed_4.jpg result_screen_framed_5.jpg

Apps won't load on new phone

Had to go out and buy a new phone.

Old phone Samsung Galaxy J7 Sky
New phone Samsung Galaxy J7 Crown

There are 2 apps which I use to process transactions. I log in with my credentials to the Play Store and select the apps. Screen tells me they're already installed. They're not.

I click the button which says they're installed. It takes me to a screen which says they will download "soon".

Well soon has come and gone by a long shot.

What do I need to do?

Question about Parking app

I was going through my phone and discovered a running app named "Parking Assistant". I looked under my installed apps and it wasn't there. I have no idea how it started or what it does. I finally found it under System apps but I still can't figure out how it got started or what it does. I don't own a car and only use Uber or Lyft. Any information would be appreciated.
Capture+_2019-05-22-07-14-23.png

Settings menu background

I can't really believe I'm asking this but I feel like I'm just going round in circles!

A while ago I picked a completely unsuitable background which I applied to everything. I changed it pretty quickly because I couldn't read any text but for some reason it has remained the background to my settings menu only.

This makes every single menu option illegible!

I've changed the background to my lock screen and home screen multiple times since then with no issue but the settings background always remains the same.

I use Microsoft Launcher personally, but have gone back to Samsung's UI briefly today to see if it makes any difference and it doesn't.

Help!

How to store image captured from camera to internal storage of our phone.

Hi Can you please tell me how to save image in phone internal storage. means if the phone has no SDcard how to store the image?
this is my code but image is saving in external storage.
Code:
ContextWrapper cw= new ContextWrapper( getApplicationContext() );
        File directory = cw.getDir( "imgDir",Context.MODE_APPEND );
        File destination= new File( directory,"capture_01.bmp" );
       
        ByteArrayOutputStream bytes = new ByteArrayOutputStream();
        image.compress( Bitmap.CompressFormat.JPEG, 100, bytes );
        long filesizeinBytes = image.getByteCount();
        long fileSizeInKB = filesizeinBytes / 1024;

        FileOutputStream fo;
        try {
            fo = new FileOutputStream( destination );
            fo.write( bytes.toByteArray() );
            fo.close();
        } catch (IOException e) {
            e.printStackTrace();
            //TODO REMOVE TOASTMESSAGE
            Toast.makeText( this,e.getMessage(),Toast.LENGTH_SHORT ).show();
        }
        Toast.makeText( this,"Image saved sucessfully" ,Toast.LENGTH_SHORT ).show();
    }

Also Tried this but getting error Attempt to invoke virtual method 'android.content.ContentResolver android.content.Context.getContentResolver()' on a null object reference

Code:
 ContextWrapper cw= new ContextWrapper( getApplicationContext() );
        File directory = cw.getDir( "imgDir", Context.MODE_APPEND );
        File destination= new File( directory,"capture_01.bmp" );
       

        try {
            MediaStore.Images.Media.insertImage( context.getContentResolver(),destination.getAbsolutePath(),destination.getName(),null );
            context.sendBroadcast( new Intent(
                    Intent.ACTION_MEDIA_SCANNER_SCAN_FILE,Uri.fromFile( destination )
            ) );
        } catch (FileNotFoundException e) {
            e.printStackTrace();
        }

        ByteArrayOutputStream bytes = new ByteArrayOutputStream();
        image.compress( Bitmap.CompressFormat.JPEG, 100, bytes );
        long filesizeinBytes = image.getByteCount();
        long fileSizeInKB = filesizeinBytes / 1024;

        FileOutputStream fo;
        try {
            fo = new FileOutputStream( destination );
            fo.write( bytes.toByteArray() );
            fo.close();
        } catch (IOException e) {
            e.printStackTrace();
          
            Toast.makeText( this,e.getMessage(),Toast.LENGTH_SHORT ).show();
        }

        Toast.makeText( this,"Image saved sucessfully" ,Toast.LENGTH_SHORT ).show();
    }

Charging Problem

Hi Guys,
I'm a Lenovo A7000 user. I'm facing an issue from several days. My phone's battery is draining on its own. At first I thought that it's the problem of Battery itself so I managed to replace it but there was no change. So I replaced the Charing port instead which eventually must solve this problem but still there's no change at all. The phone would sometimes not increase the percentage while charging and sometimes would drain the battery percentage within 5 mins of usage.

What could be the cause?

Galaxy S7 Edge, factory reset, phone locked. "FRP"

Hello all.
I recently received a used at&t Galaxy S7 (variant SM-G935A) that hadn't been used in over a year, and was looking forward to using it. The previous owner, was elderly, didn't like smart phones to begin with, and doesn't remember any password. I factory reset it, and was preparing for a lifetime of joy and happiness with my new S7 Edge, When I encountered this message:

"This device was reset, To continue, sign in with a google account that was previously synced on this device"

I tried numerous sign in's all to no avail, and the previous owner doesn't even remember the password, (Probably why I was given this phone) so now I am stuck with a beautiful looking brick. After the factory reset, I assumed it would be blank and that I could sign in with my google account, but that is not working. I've seen a few "FRP" solutions, that include downloading apk's, but some of the sources look questionable.
I was thinking maybe I'd have to re-familiarize myself with the ODIN panel, or something else like that, but for now I appear stuck.

Does anyone know how to overcome this problem?
thanks!
PM

Problem Loading .MP3 Files

So, I've been having issues with the music player. I use to have a huge file of .mp3 files that I listened to through the "Play Music" app with no issues whatsoever. Recently I updated this list of mp3 files and deleted the current mp3 files from my phone. I moved the file from my computer to my phone through USB and for some reason it would recognize only eight of the mp3 files. So, I tried deleting and re-downloading all the songs onto my phone but that didn't work, so I put it on Google Drive so I could download it directly from my phone. Which had the same result, exact same eight songs showed up and no other ones. I tried clearing the cache on my app, but was met with the same issue. I also tried loading the songs from the Google Play Music app but it consistently crashed was buggy and uploaded duplicates so I gave up with that. I tried two other audio players, still doesn't work. I tried reducing the number of items in the file because it has 200+ items in it, but I reduced it and tested it at 150, 100, 50, and 25. Same result. I have been scratching my head at this and really need help.

Protect Bugs Fly Up --free game

GooglePlay:https://play.google.com/store/apps/details?id=com.lcfeng.riseup

Appstore :https://itunes.apple.com/us/app/id1461017972

【Game Features】
- Collect coins to unlock new bugs
- Free to play
- Multiple types of bugs to choose from
- One finger control
- Different obstacles and experience every time
- Endless gameplay
- Fun and relaxing theme that will make you stay for quite some time

QQ截图20190521121115.png

Are Antivirus apps really needed?

Are they really needed for the android OS??

Still quite new to android. The only things I've been downloading are from the Play Store and I can't see android letting apps from there official store give me any viruses, can they? Also been streaming things online like movies, not exactly from things like Netflix or Hulu so idk if we can get viruses from streaming from unofficial websites. But if only downloading from the play store I'm wondering if I can save my phones storage and ram by not getting an Antivirus app.

Permission Problems passwd adduser addgroup usermod etc.

Hello.

I found that a lot of people have problems like:

usermod: failure while writing changes to /etc/group

or

passwd: u:r:init:s0 is not authorized to change the password of ubuntu

or

Authentication token manipulation error

or

groupadd: failure while writing changes to /etc/group
adduser: `/usr/sbin/groupadd -g 1001 ich' returned error code 10. Exiting.

And the problem, in my case, was one line in the "bootscript.sh":

$bbox mount -o bind /sys/fs/selinux $mnt/selinux.

You don't need that line.

$bbox mount -o bind /sys/fs $mnt/sys/fs
if [ $? -ne 0 ];then error_exit "Unable to mount $mnt/sys/fs!"; fi

is enough.

There is nothing in the /selinux- or /sys/fs/selinux-directory (on the Linux-side), but now it works. More or less. There are still other problems to fix, e.g. "sudo [user] [command]". There is still this problem:

sudo: PERM_ROOT: setresuid(0, -1, -1): Permission denied

But that was the solution for the permission (SELinux???) problems named above.

Filter

Back
Top Bottom