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

Help Partition Problem

Hey all im new to the site.

I can partition a HDD, SSD or SD Card 12 ways to Monday on a windows platform with my eyes closed while asleep.
But dont have access to a windows computer or a windows device. I have an SM-T860 running Android 11-R armarch-64bit Qualcom octi core, 6GB and 128 GB Internal Storage. The device is not rooted, if it were I could take care of this myself. I cant root without the backup and i cant backup without root (anyone seeing circles)

Anyway

I have a Micro SDXC 1TB card installed in the Tablet and the idea is to keep 512gb for backup, 128 for linux mint to emulate windows, 128 for linux (or other similer distro) to emulate a VLE of some sort and 256gb for storage.
Im hoping by running this of the sd card it will keep the android system isolated and protected if i muck things up to much.

I have an adaptor for the Micro sd card and a PS3, I am planning on putting home brew on the ps3 using the adaptor.
I know a PS3 can format an SD card but I dont know if it can partition an SD card.

I have no other game consoles or devices that might do the trick.

If anyone knows a way to partition the SD card that is similer to Storage Manager in windows 10 or maybe a live web vershion of a similer utility please post.
Thankyou.

Just to add the Micro SDXC 1TB card is a 128 bit/s A1 Sandisk card if that helps

Help mxq box stuck on logo

oh damn mine is doing the same thing after i flashed a rom called aidans rom because my box had no Wi-Fi anymore it would not even search for a connection the only difference is mine says "android tv" and the bottom says AIDANS ROMM 7.4 and the device will not go into recovery and cant get the laptop to read it when i plug it into the computer....i was really hoping i could fix it not trash it lol =((

Help Native File Picker could not get Android root

Keep in mind you're trying to do a one-to-one comparison of two very different phones (different models from different manufacturers running different versions of the Android operating system). Both phones are running Android but the changes from 7 to 11 are not just for superficial user interface matters, there's also been a lot of evolving changes in the basic file structure running at a system-level underneath (or 'devolving' depending on your viewpoint).
Regarding '...native file picker' you might instead want to install the same file manager app on both phones so you can at least be using the same visual process to view your files/folders. i'll suggest trying the Ghost Commander app, it's Open Source and no ads but most importantly for this particular situation it's a file manager this already includes Storage Access Framework support, which might be helpful in viewing otherwise restricted directories (...note there's distinction between being to at least view the contents of some folders but, unless you root your device, be able to also edit/alter/delete).
SAF
https://developer.android.com/training/data-storage/shared/documents-files
Ghost Commander
https://play.google.com/store/apps/details?id=com.ghostsq.commander&hl=en_US&gl=US
or
https://www.apkmirror.com/apk/ghost-squared/ghost-commander-file-manager/

Help "Notification sound" list doesn't play the sounds when they're selected

have you tried rebooting the phone?

Of course. You can't wipe the cache partition without rebooting to recovery.

did this just start happening? or has this been an on going issue? was it after an update?

As I said, I'm setting up a new phone. This didn't "start" happening after working, that's how it is as I'm trying to get it configured. It came with Pie and I installed some security update and the upgrade to Android 10. I have no idea how it was before that, I installed the updates before I started configuring anything.

Apps Getting Black application screen while connecting Bluetooth Dongle on Lenovo Tablet

I am trying to connect USB dongle to my Lenovo TB-X505F that time my application showing black screen and also observed that the MainActivity also getting restarted. I add possible configuration changes in the Android Manifest still getting the same problem.

<activity android:configChanges="orientation|uiMode|screenLayout|screenSize|smallestScreenSize|layoutDirection|locale|fontScale|keyboard|keyboardHidden|navigation|mcc|mnc|density"
android:name="org.qtproject.qt5.android.bindings.QtActivity"
android:label="calqlatr"
android:screenOrientation="unspecified"
android:launchMode="singleTop">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>

How would someone have scanned my phone number?

Me neither. Android apps aren't able to see the phone number of the device they're installed on without being granted explicit permission to do so. And your phone doesn't broadcast your phone number in any way - Bluetooth and Wifi IDs, sure, but not phone number. It's not possible for an Android app to determine the phone number of a nearby phone.

Any chance this guy might have been a magician?

Starting to wonder the same thing myself.

Help cannot retrieve data from realtime firebase database

I want to retrieve data from realtime firebase database into my android studio app. I am using TextView to display the data however it gives me an error. The data from firebase won't display in the TextView. can someone help me with this error..tqq

this is my error message

2021-06-09 03:01:09.992 11837-11837/com.fyp.airpollutiondetection E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.fyp.airpollutiondetection, PID: 11837
com.firebase.client.FirebaseException: Failed to bounce to type
at com.firebase.client.DataSnapshot.getValue(DataSnapshot.java:183)
at com.fyp.airpollutiondetection.reading$1.onDataChange(reading.java:30)
at com.firebase.client.core.ValueEventRegistration.fireEvent(ValueEventRegistration.java:45)
at com.firebase.client.core.view.DataEvent.fire(DataEvent.java:45)
at com.firebase.client.core.view.EventRaiser$1.run(EventRaiser.java:38)
at android.os.Handler.handleCallback(Handler.java:883)
at android.os.Handler.dispatchMessage(Handler.java:100)
at android.os.Looper.loop(Looper.java:214)
at android.app.ActivityThread.main(ActivityThread.java:7356)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:930)
Caused by: com.fasterxml.jackson.databind.JsonMappingException: Can not deserialize instance of java.lang.String out of START_OBJECT token
at [Source: java.io.StringReader@2f78e27; line: 1, column: 1]
at com.fasterxml.jackson.databind.DeserializationContext.mappingException(DeserializationContext.java:575)
at com.fasterxml.jackson.databind.deser.std.StringDeserializer.deserialize(StringDeserializer.java:46)
at com.fasterxml.jackson.databind.deser.std.StringDeserializer.deserialize(StringDeserializer.java:11)
at com.fasterxml.jackson.databind.ObjectMapper._readMapAndClose(ObjectMapper.java:2888)
at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:2034)
at com.firebase.client.DataSnapshot.getValue(DataSnapshot.java:181)
... 11 more

I also get this message

2021-06-09 03:00:57.215 11837-11837/? E/lutiondetectio: Unknown bits set in runtime_flags: 0x8000

This is my code

package com.fyp.airpollutiondetection;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;

import com.firebase.client.DataSnapshot;
import com.firebase.client.Firebase;
import com.firebase.client.FirebaseError;
import com.firebase.client.ValueEventListener;

public class reading extends AppCompatActivity {
private TextView nilai;
private Firebase mRef;

@override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_reading);

nilai = (TextView)findViewById(R.id.nilai);
mRef = new Firebase("https://air-pollution-7917c-default-rtdb.firebaseio.com/CARBON");
mRef.addValueEventListener(new ValueEventListener() {
@override
public void onDataChange(DataSnapshot dataSnapshot) {
String CARBON = dataSnapshot.getValue(String.class);
nilai.setText(CARBON);
}

@override
public void onCancelled(FirebaseError firebaseError) {
}
});
}
}

How to show seconds in the status bar clock?

Seriously; why?
I get it on a watch. But why a phone,

I have found the clock on my phone to be off by quite a bit.

Using a clock sync app
OK, installed the SDK and there's an option to show "Clock seconds" on my Samsung Galaxy S9 (Android 10), but while it can be toggled on and off there is no change in the time display. There is a general statement near the top that says that the manufacturer may have disabled some functionality.
Any way to get around this?

Have you tried restarting the device?

Also, I used to use an app called Clock Sync a while back.

It may help with your accuracy.

https://clocksync.en.uptodown.com/android

inflator errors using ?attr/colors in styles

I've been working on an app for awhile and finally decided to add support for different themes. I've read a LOT of articles and seen a lot of examples. What I've ended up doing is creating a list of colors for every theme, created definitions to them in my attrs.xml and added them as custom colors in my themes.xml file. Each time I try to use one of the colors in the theme (i.e. ?attr/automate_PrimaryColorCyan) and assign it to either background or textcolor the inflator would crash and close my app. I then added

implementation 'com.android.support:design:26.1.0' to my gradle build (by suggestion)

to support my actions. This caused android studio to bark about this implementation and had me migrate the implementation to androidX. After syncing my gradle build I was able to actually assign these values to items but instead of producing the color I wanted I ended up with an extremely dark gray background instead of the color defined in my @colors file. Everything appears normal in the designer. My minimum api is 26 and the target is 30. Pulling my hair out with this problem. Here's the code for my theme, attrs.xml and styles.xml

Theme
Java:
<resources xmlns:tools="http://schemas.android.com/tools">
    <!-- Base application theme. -->
    <style name="Theme.AutoMateCyan" parent="Theme.MaterialComponents.DayNight.DarkActionBar">
        <!-- Primary brand color. -->
        <item name="colorPrimary">@color/automate_PrimaryColorCyan</item>
        <item name="colorPrimaryVariant">@color/automate_PrimaryVariantCyan</item>
        <item name="colorOnPrimary">@color/automate_ColorOnPrimaryCyan</item>
        <item name="android:textColorPrimary">@color/automate_textColorPrimaryCyan</item>
        <item name="android:windowBackground">@color/automate_windowBackgroundCyan</item>

        <!-- Secondary brand color. -->
        <item name="colorSecondary">@color/automate_SecondaryColorCyan</item> // background
        <item name="colorOnSecondary">@color/automate_ColorOnSecondaryCyan</item>
        <item name="android:textColorSecondary">@color/automate_SecondaryColorCyan</item>

        <item name="android:statusBarColor" tools:targetApi="l">?attr/colorPrimaryDark</item>
        <item name="android:navigationBarColor">@color/automate_navigationBarColorCyan</item>
        <item name="colorAccent">@color/automate_ColorAccentCyan</item>

        <!--Custom attributes (in attrs.xml)-->

        <item name="automate_PrimaryColor">@color/automate_primary_Cyan</item>
        <item name="automate_PrimaryTextColor">@color/automate_primaryText_Cyan</item>
        <item name="automate_BorderDarkColor">@color/automate_borderDark_Cyan</item>
        <item name="automate_BorderLightColor">@color/automate_borderLight_Cyan</item>
        <item name="automate_LabelTextColor">@color/automate_labelText_Cyan</item>

    </style>

</resources>

Styles
Java:
<?xml version="1.0" encoding="utf-8"?>
<resources>
    <style name="AutoMateTextBox" parent="android:Widget.TextView">
        <item name="android:textColor">?android:textColorPrimary</item>
        <item name="android:paddingStart">5dp</item>
        <item name="android:paddingEnd">5dp</item>
        <item name="android:typeface">sans</item>
        <item name="android:background">@drawable/box_style_rounded_5pt</item>
        <item name="android:textSize">20sp</item>
    </style>
    <style name="AutoMateMyHeader" parent="android:Widget.TextView">
        <item name="android:background">@drawable/box_style_header</item>
        <item name="android:paddingStart">5dp</item>
        <item name="android:paddingEnd">5dp</item>
        <item name="android:paddingTop">4dp</item>
        <item name="android:paddingBottom">4dp</item>
        <item name="android:textAlignment">textStart</item>
        <item name="android:typeface">sans</item>
        <item name="android:textColor">@color/white</item>
        <item name="android:textSize">20sp</item>
        <item name="android:textStyle">bold</item>
    </style>

    <style name="AutoMateMyEditBox" parent="android:Widget.EditText">
        <item name="android:textColor">?android:textColorPrimary</item>
        <item name="android:paddingStart">5dp</item>
        <item name="android:paddingEnd">5dp</item>
        <item name="android:typeface">sans</item>
        <item name="android:background">@drawable/box_style_rounded_5pt</item>
        <item name="android:textSize">20sp</item>
    </style>
    <style name="AutoMateMyEditBoxInverted" parent="android:Widget.EditText">
        <item name="android:textColor">?android:textColorPrimary</item>
        <item name="android:paddingStart">5dp</item>
        <item name="android:paddingEnd">5dp</item>
        <item name="android:typeface">sans</item>
        <item name="android:background">@drawable/box_style_rounded_5pt_inverted</item>
        <item name="android:textSize">20sp</item>
    </style>
</resources>

Attributes
Java:
<?xml version="1.0" encoding="utf-8"?>
<resources>

    <attr name="automate_PrimaryColor" format="reference" />
    <attr name="automate_PrimaryTextColor" format="reference" />
    <attr name="automate_BorderDarkColor" format="reference" />
    <attr name="automate_BorderLightColor" format="reference" />
    <attr name="automate_LabelTextColor" format="reference" />


</resources>

Java:
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:clickable="false">

The textview using my headerStyle
    <TextView
        android:id="@+id/headerText"
        style="@style/AutoMateMyHeader"
        android:layout_width="0dp"
        android:layout_height="wrap_content"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toTopOf="parent" />
</androidx.constraintlayout.widget.ConstraintLayout>

The shape file referenced in the AutoMateMyHeader definition
This should make the background color a nice dark cyan and it's actually very dark gray
Java:
<?xml version="1.0" encoding="UTF-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
    <solid android:color="?android:attr/colorPrimary"/>
</shape>

And finally here's what the view looks like when I run the app
The headers should have the same background color as the toolbar.
ugly_screen.jpg

Help N950F Boots only into recovery and not the OS

The phone randomly started restarting itself and when I would shut it down, it would reboot. I tried to factory reset the phone but then it wouldn't work. So I booted into recovery and cleared the cache and factory reset there and then it wouldn't boot to the OS anymore, just boots into the recovery screen.
sounds like your system partitions are corrupted and if flashing a firmware update does not work, i'm afraid your phone is toast. this phone came out in 2017. i think its time to upgrade your phone.

Keep Screen On

I also have a Note 9 and use this ... https://play.google.com/store/apps/details?id=com.bhanu.screenonmanager ... It can set the screen to stay on on a per-app basis. I use it on my bike (bicycle!) for things like Strava, as well as for things such as OneNote whilst food shopping as it's a pain to have to keep turning the screen on to see the wifes shopping list ... Obviously the power button still works so you can turn the screen off/on if you want or need to.

Filter

Back
Top Bottom