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

Blue tooth audio problem

I have a 2019 Mazda with Mazda Connect Infotainment, The blue tooth audio is connected and it will play tracks but will not access playlists, artists etc. the error I get is "unable to read contents of device" Phone is a Verizon Galaxy s8 running Pie. any ideas on how to access the root menu of the device ?

Emulator selection

Hi folks,
I am looking into testing android apps based on emulators. Currently I am using a Nexus One Google APIs Intel Atom (x86) 480x800. My question is, what other emulators should I consider in the top 5 for my testing?
For the testing I consider:
* Apps will be working in rendering, but also accessing different sensors
* I am interested to work with different screen resolutions
* How do you manage testing different Android APIs?

Say if I have 5 emulators and I want to test API 17, 21,26, 28 then I shouldn't have to go into 5 emu x 4 Android APIs = 20 images, right?

prevent pocket pushes, not just calling

So often when I take out my phone from a pocket, the camera is on, email, messaging, various other apps where I have home screen+ icons that got accidentally pushed in my pocket. Generally I'm not on wifi when the phone's in my pocket, so apps use mobile data I didn't intend, plus they have to be Quit.

I know I could just hide the icons back into the system, but then they're submerged into my collection of mostly rarely used apps.

I've looked through the Settings for something to prevent this, any suggestions? Or does anyone know of an app that would make all icon pushes require a LONG push, or maybe a double push, and only bring up a Menu including Uninstall etc with an even longer push? Or something I'm not even imagining?

What most on android want!

Want to know if us, android users know that the majority phones silence phone internal sound under paired blue tooth! Headset! A wonderful feature. In more sound about! No sound come though the phone speakers all come exclusively the paired Bluetooth device! The Nokia of old did it... IPhone does it! Android interdruce as as an update you accept or Deny each android user can decide to keep or not I will keep, as it Is most us get sounabout for it anyhow! I want it like this

Google Keep Sync

This might not be the correct place to submit this question. However, I'm unable to find an answer anywhere else. Ever so often, when I open Google Keep, I get a message at the too that states, "Sync is off. Turn sync back on to make sure all your changes are saved." Not sure why I get this message ever so often. Ibuse Google Keep for many things. Some of which are very important. FYI, I usually have my mobile data turned off, unless I leave my home, in order to prevent over use of my 2GB of data a month plan. If I enable Google Keep sync, does this automatically enable my mobile data? And if so, does it allow all other apps to use mobile data - when needed?

- Matt

Getting could'nt load image error while trying to crop image in my app.

Hi guys please help me with this. i want to crop image which is captured from camera and save it to memory. but am getting could'nt load image error. can anyone please check this code and give me an idea where am going wrong.
Code:
private void launchcamera() {
    Intent intent = new Intent( MediaStore.ACTION_IMAGE_CAPTURE );
    startActivityForResult( intent, REQUEST_IMAGE_CAPTURE );
}

@Override
protected void onActivityResult(int requestCode, int resultCode, @Nullable Intent data) {
 
    //open camera
    if (requestCode == REQUEST_IMAGE_CAPTURE && resultCode == Activity.RESULT_OK) {
       Bundle extras = data.getExtras();
        Bitmap imageBitmap = (Bitmap) extras.get( "data" );
        performcrop();
        long height = imageBitmap.getHeight();
        long width = imageBitmap.getWidth();
        long filesizeinBytes1 = imageBitmap.getByteCount();
        long fileSizeInKB1 = filesizeinBytes1 / 1024;
        Log.d( TAG, "Textview message :"+ height + " , " + width + " , " + fileSizeInKB1 );
        System.out.print( fileSizeInKB1 );

        if (fileSizeInKB1 >= 500) {
            Bitmap convertedimage = getResizedBitmap( imageBitmap, 400 );
            savefile( convertedimage );
        } else {
            savefile( imageBitmap );
        }

        Intent intent = new Intent( ScancodeActivity.this, Display.class );
        startActivity( intent );
    }
}

private void performcrop(){
    try {
        Intent cropintent = new Intent( "com.android.camera.action.CROP" );
        cropintent.setDataAndType( picuri, "image/*" );
        cropintent.putExtra( "crop", "true" );
        cropintent.putExtra( "aspectX", 1 );
        cropintent.putExtra( "aspectY", 1 );
        cropintent.putExtra( "outputX", 256 );
        cropintent.putExtra( "outputY", 256 );
        cropintent.putExtra( "returndata", true );
        startActivityForResult( cropintent, PIC_CROP );
    }catch(ActivityNotFoundException anfe){
        String errormessage="Sorry your device doesn't support the crop action";
        Toast toast= Toast.makeText( this,errormessage,Toast.LENGTH_LONG );
        toast.show();
    }
}

private void savefile(Bitmap image) {
    File destination = new File( Environment.getExternalStorageDirectory(), "capture_01.bmp" );
    picuri= Uri.fromFile( destination );
    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();
    }

}

Help Help - Have a question about lockscreen

Hello everyone. I have a question about my lockscreen. It seems that no matter what method I use to have set up to unlock my phone, when I press the right side button to wake my phone it automatically goes to the unlock screen where I use my pattern and/or pass code. So, I never get to see my notifications on my lock screen because it automatically goes to the unlock screen to type my passwords. Why does it do this?

Help with Android system

I am looking for some help with the information from a System Panel Monitoring app I installed today. Some things look strange to me. I could be paranoid but.... Strange things are going on with every one of the 4 phones I've purchased and brought into this houseand my bank account and credit card was fraudulently used several times. Any suggestions or comments would be greatly appreciated. Sorry for the quality of the pictures

Attachments

  • Screenshot_20190512-235502.png
    Screenshot_20190512-235502.png
    62.1 KB · Views: 130
  • Screenshot_20190512-235508.png
    Screenshot_20190512-235508.png
    61.2 KB · Views: 113
  • Screenshot_20190512-235515.png
    Screenshot_20190512-235515.png
    59.8 KB · Views: 118
  • Screenshot_20190512-235518.png
    Screenshot_20190512-235518.png
    66.5 KB · Views: 120
  • Screenshot_20190512-235523.png
    Screenshot_20190512-235523.png
    75 KB · Views: 154
  • Screenshot_20190512-235529.png
    Screenshot_20190512-235529.png
    72.4 KB · Views: 124
  • Screenshot_20190512-235534.png
    Screenshot_20190512-235534.png
    67.8 KB · Views: 123
  • Screenshot_20190512-235540.png
    Screenshot_20190512-235540.png
    73.5 KB · Views: 118
  • Screenshot_20190512-235545.png
    Screenshot_20190512-235545.png
    73.1 KB · Views: 125

cell phone consumes mobile data when mobile data is off, especially when rebooting

Hi. I have Samsung S9 plus and sometimes use it with a cellphone connection from overseas. While on international roaming, it costs me lots even if I use few kb of data, hence I turned the cellphone mobile data off (WiFi is on). I noticed on Samsung Galaxy S9 plus that even when mobile data data is off , the cell phone uses very little data especially when rebooting. After rebooting it does not consume cell data. On the other hand, I have Google Nexus 6P and it NEVER uses mobile data when mobile data is turned off, even while rebooting. I was wondering why the S9 plus "steals" some data especially when rebooting and Nexus 6P does not. Also, would appreicate an recommendation on any other Google or Samsung phone that will never use or steal data when mobile data is turned off, even while its rebooting. Thank you!

Null Object Reference :/

Hi friends, I've created the following class.
Code:
public class Common {

    public static Location currentLocation;
}

I can see the location using Log.d in the activity I'm assigning a location to.

MainActivity.class (location assignment class)
Code:
private void BuildLocationCallBack() {
    locationCallback = new LocationCallback(){
        @Override
        public void onLocationResult(LocationResult locationResult) {
            super.onLocationResult(locationResult);

            //Common.currentLocation = locationResult.getLastLocation();
            Common.currentLocation = new Location(locationResult.getLastLocation());

            Log.d("Location", Common.currentLocation.getLatitude()+"/"+Common.currentLocation.getLongitude());
        }
    };
}

Okey. But when I copy and paste the same line of Log.d over a different fragment, I get the following error;

TodayFragment.java
Code:
Log.d("Location",
public View onCreateView(LayoutInflater inflater, ViewGroup container,
                         Bundle savedInstanceState) {
    View view = inflater.inflate(R.layout.fragment_today, container, false);

    Log.d("Location",Common.currentLocation.getLatitude()+"/"+Common.currentLocation.getLongitude()));

    return view;
}

Result;
java.lang.NullPointerException: Attempt to invoke virtual method 'double android.location.Location.getLatitude()' on a null object reference

Null object reference error. What could be the problem? Can you help me. Thank you.[/code]

FireBrick Is FireSTUCK

After a couple of years of happy usage last night, my Firestick 2nd gen, got stuck on the home screen, and is now unresponsive to both the selector button, as well as the restart routine, (Holding down select and Play/Pause at the same time until it restarts).
I did a couple of hard restarts by unplugging it, and then plugging it back in, and it went through the entire startup routine, including the red "fire TV"" startup logo, and then it opened to the same frozen unresponsive uncooperative (Like my ex wife) screen.
I tried another remote, and that did not work either.
Just to see what would happen I blocked it on my network, since wifi blocking will take you to the "home is unavailable" firestick screen, which it did, but once I got there, the "Go to network settings" and "dismiss" options were unresponsive as well.
I don't mind having to reset it if I have to, but so far I haven't come up with a way to make it work.

All help appreciated.

Help Android Pie update is coming to the HTC U11 in late May

https://www.xda-developers.com/htc-u12-u11-plus-android-pie-q2-2019/

Over on Twitter, HTC now says that the Android Pie update is coming to the HTC U11 in late May and to the HTC U11+/HTC U12+ in June. It seems odd for the company to roll out the latest release to its current flagship after its previous generation flagship, but we don’t really expect much from the company that’s trying really hard to convince us it’s not dead. In August of 2018, HTC confirmed that all 3 devices (and the U11 Life) would receive the Pie update, but so far only the Android One-powered U11 Life has received the update.

* HTC may not have given up on smartphones just yet, but there is little left for consumers to stick around for. The Taiwanese OEM, which was once a contender for the pole position for the top Android smartphone brand, is now trying hard to attract new customers or even keep the old ones. HTC’s plans for 2019 included focusing on existing U12+ flagships as well as releasing new phones. This plan does not seem to be going as well as, despite the Android Pie announcement in August 2018, HTC has now confirmed that several of its devices will not receive Android Pie sooner than Q2 2019.

HTC’s update plans involved rolling out Android Pie to the HTC U11, U11+, U11 Life (based on Android One) and the U12+. Of these, only the U11 Life has managed to receive an update to Android Pie, despite launching with Android Nougat. The OEM has now taken more than 6 months to ensure that the update is “compatible” with its phones, which is a non-answer as devices like the HTC U12+ already come with a Treble-compatible partition setup. The tweet also does not confirm when exactly these updates would arrive, as the updates will be released “starting Q2’19“, which in turn means that there is no upper limit to when the last of these devices can receive the update.

HTC’s sad state of affairs has led the company to consider licensing its brand to Indian smartphone brands like Micromax, Lava, and Karbonn. The lack of updates will not really add up to be a selling point for its upcoming smartphone, assuming there is one still in the works.

https://www.gizbot.com/mobile/news/...android-9-pie-update-by-june-2019-059799.html

Filter

Back
Top Bottom