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

My new battery is not charging upto 100 percent

I just replaced the battery in my Lenovo K6 Power. Now my new battery isn't charging upto 100 percent. Once it reaches anywhere between 95 to 98 percent, the battery stops charging and the phone displays the "Charge complete" message. The battery is also loosing its charge much quicker than before.
The tech who changed the battery has no clue how to fix it. He had told me to charge the phone after switching it off, which didn't help. He had also suggested that I take the phone back to factory settings which again wasn't able to fix the issue. I've tried changing it using a new charger and different sockets but nothing seems to work. Please suggest how can I fix the problem?

Adding text to an imageview in a BaseAdapter

I have a BaseAdapter I am using to put up some images in a gridview which will be used for categories of a sort. When adding the adapter to the gridview I can currently only get the images to show up on my activity. I would also like to have a small text box below the image with the name of the category. So the finished grid will be something like 2x6 with an image of lets say a movie and the name of the movie under the image. My adapter code currently looks like below. What's the easiest way of adding some text below the images?

Code:
package com.example.recommended

import android.content.Context
import android.view.View
import android.view.ViewGroup
import android.widget.BaseAdapter
import android.widget.ImageView
import com.example.recommended.R
import kotlinx.android.synthetic.main.list_item.view.*

class ImageAdapter internal constructor(private val mContext: Context) : BaseAdapter() {

    // References to our images
    private val mThumbIds = arrayOf(
        R.drawable.sample_0,
        R.drawable.sample_1,
        R.drawable.sample_2,
        R.drawable.sample_3,
        R.drawable.sample_4,
        R.drawable.sample_5,
        R.drawable.sample_6,
        R.drawable.sample_7)

    override fun getCount(): Int {
        return mThumbIds.size
    }

    override fun getItem(position: Int): Any? {
        return null
    }

    override fun getItemId(position: Int): Long {
        return 0
    }

    // Create a new ImageView for each item referenced by the Adapter
    override fun getView(position: Int, convertView: View?, parent: ViewGroup): View {
        val imageView: ImageView
        if (convertView == null) {
            // if it's not recycled, initialize some attributes
            imageView = ImageView(mContext)
            imageView.layoutParams = ViewGroup.LayoutParams(300, 300)
            imageView.scaleType = ImageView.ScaleType.CENTER_CROP
        } else {
            imageView = (convertView as ImageView?)!!
        }

        imageView.setImageResource(mThumbIds[position])
        return imageView
    }
}

Android Q update for mid range Smartphones.

Hi all,

Planned to buy a new mid range smartphone in few days.. Am keen with Android Q quick update for my new phone..
Let me provide the list below of my choices, can any one specify about which smartphones will get the Q update and if possible order.

1. Real me 3 pro
2. Redmi note 7 pro
3. Samsung M40
4. Nokia 6.2 plus or 8.1
5. Motorola one vision
6. Honor 20i


Thanks and regards,
Kalaiselvan R

[DISCONTINUED] /e/ Pie for Payton

/e/

As always, you take responsibility for what you do to your phone. Don't go filing civil lawsuits against me if your alarm fails to get you up for work in the morning.

The Hell's An /e/?
"/e/ is a non-profit project, in the public interest. We build open-source mobile operating systems that respect users’ data privacy. We’re an international core team of experienced entrepreneurs, developers and designers, and a growing community of contributors." --taken from their website.

Basically think Lineage AOSP but instead of just leaving gapps out of it, they're trying to take it a step further and really give Google the finger. Their ultimate goal for the future is to make a mobile OS featuring an entire ecosystem (/e/cosystem?) that respects users' privacy and avoids the "big-companies-that-sell-your-data". They will have alternatives to the most popular Google services baked in: F-Droid instead of Google Play, something like Telegram instead of Google Hangouts, Lawnchair instead of a proprietary Google launcher, etc. As of the time I'm writing this message this is still really early on in the /e/ project though, so don't expect too much just yet.

What Works?
Exactly the same as what's in Lineage 16 for Payton, WITH THE ADDITION OF VIPER AUDIO (YOU NEED TO USE V2.7.X FROM MAGISK THOUGH)

What Don't Work?
There's no market for apps built in yet (or web browser) so be prepared to sideload your own APKs over ADB to get that stuff on for now, until I fix it in a new build

Where's My Source Code, and How'd You Build this?
Don't worry, this took me forever to find too. I used the v1-pie branch which is Lineage 16.0 based

Here's the roomservice XML I used so you don't have to manually add all the trees yourself:

<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<project name="LineageOS/android_device_motorola_payton" path="device/motorola/payton" remote="github" />
<project name="LineageOS/android_device_motorola_sdm660-common" path="device/motorola/sdm660-common" remote="github" />
<project name="LineageOS/android_kernel_motorola_msm8998" path="kernel/motorola/msm8998" remote="github" />
<project name="LineageOS/android_packages_resources_devicesettings" path="packages/resources/devicesettings" remote="github" />
<project name="LineageOS/android_external_bson" path="external/bson" remote="github" />
<project name="LineageOS/android_system_qcom" path="system/qcom" remote="github" />
<project name="TheMuppets/proprietary_vendor_motorola" path="vendor/motorola" remote="github" />
</manifest>


To get the custom /e/ apps in your build you have to edit the portion of vendor/lineage/config/common.mk that talks about "Custom CM Packages". Go to /prebuilts/prebuiltapks for a list of folders' names you can add to this list. Note that not everything will add properly, and adding some things may mess up your ROM, so experiment at your own risk

Where's My Download Link?
  • MY MEGA BUILD FOLDER
  • To run this ROM you need to have installed Pie stock firmware for the phone. If you were on Oreo stock and never upgraded before flashing this ROM things will probably break. Look for the latest firmware for you specific variant HERE.

Who Should You Give a Special Thanks To?
  • The /e/ team (including but not limited to Gael Duval)
  • All the guys here on the payton forums for their hard work in building the trees for this thing
  • @bcrichster for showing me how to get the /e/ apps to build with the ROM on this thing so I don't have to steal from AOSP anymore, also for letting me steal his manifest to build with
  • XDA user erfanoabdi for his excellent work maintaining Lineage 16 trees for Payton to get this thing stable

Boss Fight?

In new update there will be a boss fight incoming after level 6, and post processing effects added.
Steering sensitivity and speed will be adjusted a bit.
New update coming to Google play this week.
I'd like to hear your opinions about it &#128514;

Attachments

  • 20190611_155320_rmscr.jpg
    20190611_155320_rmscr.jpg
    677 KB · Views: 125

Help Galaxy A5 no longer able to connect to vehicle via BT

I was having some issues with my wifi recently, so I performed a reset on my network settings. This fixed my wifi issue, but now my Bluetooth no longer works with my vehicle.

I have a Boss BT speaker that I was able to pair after some headache, but I just can't pair my phone with my vehicle anymore.

The vehicle in question is a 2015 Acura MDX that doesn't have Google software installed. I was able to pair my phone in the past. I would set my vehicles audio source to BT, and my phone would detect "HandsFreeLink" (which is the BT name of the vehicle), and they would pair.

Now, I'm not sure if my phone sees my vehicle. When I search for BT devices, it never shows "HandsFreeLink" anymore. It just shows a list of MAC addresses. I'm not sure which represents my vehicle. I tried connecting to all of the ones in range (it shows a lot no matter where I am.. I should drive out to the desert and scan from there to make sure I just see my vehicle I guess).

I will randomly get message pop ups on my screen saying HandsFreeLink wants to pair with my phone, and will give a key number, but sometimes I can't click "ok" before it disappears, and other times I click "Ok", but it still fails to pair.

What I've done so far to try to fix it:

1) I've reset the settings again. No effect.
2) I've cleared my BT cache. No effect
3) I've ensured my phone is visible. No effect
4) Rebooted the phone (obviously). No effect.

I am at a loss at this point. I don't know what else it could be, and can't imagine resetting network settings would destroy Bluetooth functionality on my phone.

Any help would be appreciated!

Help Bluetooth no longer works with vehicle after network reset

I was having some issues with my wifi recently, so I performed a reset on my network settings. This fixed my wifi issue, but now my Bluetooth no longer works with my vehicle.

I have a Boss BT speaker that I was able to pair after some headache, but I just can't pair my phone with my vehicle anymore.

The vehicle in question is a 2015 Acura MDX that doesn't have Google software installed. I was able to pair my phone in the past. I would set my vehicles audio source to BT, and my phone would detect "HandsFreeLink" (which is the BT name of the vehicle), and they would pair.

Now, I'm not sure if my phone sees my vehicle. When I search for BT devices, it never shows "HandsFreeLink" anymore. It just shows a list of MAC addresses. I'm not sure which represents my vehicle. I tried connecting to all of the ones in range (it shows a lot no matter where I am.. I should drive out to the desert and scan from there to make sure I just see my vehicle I guess).

I will randomly get message pop ups on my screen saying HandsFreeLink wants to pair with my phone, and will give a key number, but sometimes I can't click "ok" before it disappears, and other times I click "Ok", but it still fails to pair.

What I've done so far to try to fix it:

1) I've reset the settings again. No effect.
2) I've cleared my BT cache. No effect
3) I've ensured my phone is visible. No effect
4) Rebooted the phone (obviously). No effect.

I am at a loss at this point. I don't know what else it could be, and can't imagine resetting network settings would destroy Bluetooth functionality on my phone.

Any help would be appreciated!

Samsung Galaxy S7 Edge FRP Locked&SW REV. check fail Device:4, Binary:3

Hey guys, I recently tried to root my phone, went kinda wrong --> my phone got stuck in boot loop. I had to root it correctly to make it work again. Now, I wanted to buy something online but I couldn't bcs that came with the root or something? I got the notification to switch on OEM and something else with USB so, I did, without knowing to turn it off again. After a few weeks, visited another country but didn't got signal and stuff so I thought it would help if I'd put my phone off and back on. Y'all be facepalming right now, for sure. And yeah, I shouldn't have tried to root it in the first place because I had almost no knowledge about any of this so please spare me. Well, as you all know probably, I got the message that my FRP is locked so I tried to unlock it, using forums like these ones and others. They all said the same things but somehow they don't work with me. I downloaded a few Odin version because they all got stuck in SetupConnection or failed. I have downloaded the stock firmware and did everything I should (I think).
I downloaded this firmware:
[URL="https://updato.com/firmware-archive-select-model/?record=9A306FC2821911E9951FFA163EE8F90B"[/URL]

Like I said, I downloaded a few Odin version because I read somewhere that if your device has Android 8.0.0 or higher, your Odin had to be Odin3_v3.13 or higher. So I did, I downloaded 2 higher versions (Odin3_v3.13.1 and Odin3_v3.13.3) but also Odin3_v3.12.3. I tried my firmware on all of them but it keeps saying "FAIL", I know that's because it's not the right firmware but idk which other it could be then...

Also, does that new message I've got have impact on certain things? "SW REV. CHECK FAIL (BOOTLOADER) DEVICE: 4, BINARY: 3

I've spend hours and hours searching for a solution but there's always something in my way. And yes, I downloaded the Samsung USB driver and stuff, I tried the Samsung Switch method but the app doesn't 'support this device'. I've seen guys with the same problem getting send from one link to another to download things, I'm willing to delete all I've already downloaded before if it just works... I feel like apologizing for doing stuff I didn't know much about. Please let me know if I explained something poorly, my head is just everywhere it shouldn't be right now. Thanks in advance.

Phone model: Samsung Galaxy S7 Edge
Version: SM-G935F
Android version 8.0.0 Oreo

Column layout

I have the following layout which is fine for portrait layout on a mobile. For landscape mode I want to have the two columns side by side (even though they are a different length). I'm wondering what the best way to achieve this would be. (If it was a web page I would use CSS columns but I'm not sure there is an Android equivalent.)

Help Help I think my ex partner has hacked my phone & accounts

I need help with ways I can stop my ex from accessing my phone and all my accounts from email to PayPal amd fb , I think she is using developer tools and adb, shell , making certificates amd tokens how and what can I do to stop her she is a lot more tech savvy then I amd is always on her pc either a win7 hp, chromebook or Mac she sits with all of them around her constantly I need to get her out of my life p,ease someone help me my device is a Samsung galaxy tab a 8.1.0 sm-t385 carrier Vodafone

Please anyone with the know how or time to help me I'll be willing to pay you if u can make sure my accounts are mine again and she can't access them no more everything I try just never works, i used to have heaps of phones and computers but somehow they all have now stopped working I'm limited to just this tablet atm it's driving me crazy.

How to save image locally after choose image from gallery

Hi.. Im new in Android development. So right now i am doing Tutorial. The tutorial is about take picture from camera and choose pic from gallery to show as profile pic.
So.. here is the link to download the zipfile for source code. There are 2 page. Main PAge and Profile PAge.

https://drive.google.com/file/d/15Kyyvb_68MAWWp9eIIoTzj8Au8Nzzbo5/view

In Profile Page. I success to program the code so the app can take photo from camera or choose from gallery and set as profile pic. The problem is to save the pic locally so that if i back to main page, the image on Profilepic not disappear. I try many ways but i juz found error in my code. please help me .

Question just for men

Assuming you're clean-shaven, or have some facial hair like a mustache, but still have to shave the rest of your face: does shaving daily drive you nuts? :o

It would me! I would feel so annoyed and unhappy about having to shave every day, just because I want my face visible. I would view it as an unwanted, dreaded chore, and a waste of time I could've spent on something else.

So, guys, what's your relationship with this daily drudgery, er, necessity? Love it, hate it, wish you could stop but can't for some reason, etc.?

Spinner's currently selected item is repeatedly selected

I would like to have the event occur even when the Spinner's currently selected item is repeatedly selected. For example, if 0 is selected and 0 is selected again, I want to make the event fly again.


```
public class MySpinner extends Spinner{

OnItemSelectedListener listener;

public MySpinner(Context context, AttributeSet attrs)
{
super(context, attrs);
}

@override
public void setSelection(int position)
{
super.setSelection(position);

if (position == getSelectedItemPosition())
{
listener.onItemSelected(null, null, position, 0);
}
}

public void setOnItemSelectedListener(OnItemSelectedListener listener)
{
this.listener = listener;
}
}
```

I used this code to define an extension class. How do you apply this to your existing Spinner?

Below is the current source.

```
public static TextView mTXT_DRS4DL, mTXT_DRS4D_NXT;
public static Spinner mSPI_DRS4DL, mSPI_DRS4D_NXT;
public static ArrayList<String> mLIST_DRS4DL, mLIST_DRS4D_NXT;
public static ArrayAdapter<String> mADAPTER_DRS4DL, mADAPTER_DRS4D_NXT;
private static boolean isFirstSelected = true;
private static String mCheckString = "";

{

mSPI_DRS4DL = PlatMainActivity.instance.findViewById(R.id.spi_DRS4DL);
mLIST_DRS4DL = new ArrayList( Arrays.asList());
mADAPTER_DRS4DL = new ArrayAdapter<>(PlatMainActivity.instance, R.layout.support_simple_spinner_dropdown_item, mLIST_DRS4DL);
mSPI_DRS4DL.setAdapter(mADAPTER_DRS4DL);

mSPI_DRS4D_NXT = PlatMainActivity.instance.findViewById(R.id.spi_DRS4D_NXT);
mLIST_DRS4D_NXT = new ArrayList( Arrays.asList());
mADAPTER_DRS4D_NXT = new ArrayAdapter<>(PlatMainActivity.instance, R.layout.support_simple_spinner_dropdown_item, mLIST_DRS4D_NXT);
mSPI_DRS4D_NXT.setAdapter(mADAPTER_DRS4D_NXT);
}
```

```
public static void Search(String mSearch)
{
String mRemoveName;

if(mSearch.contains("DRS4DL")) {
mRemoveName = mSensorSearch.replaceAll(":DRS4DL", "");
mADAPTER_DRS4DL.add(mRemoveSensorName);
mADAPTER_DRS4DL.notifyDataSetChanged();
}
else if(mSearch.contains("DRS4D-NXT")) {
mRemoveName = mSensorSearch.replaceAll(":DRS4D-NXT", "");
mADAPTER_DRS4D_NXT.add(mRemoveSensorName);
mADAPTER_DRS4D_NXT.notifyDataSetChanged();
}
}
```

```
public static void SensorSpinnerEvent()
{
mSPI_DRS4DL.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {
@override
public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {

//AbstractDataInterface.SendCmdMessage(mMessage, AbstractDataInterface.SEND_TO_DATA, PlatCmdMessage.MsgTouch.Req.SelRadar, 0);
}

@override
public void onNothingSelected(AdapterView<?> parent) {

}
});

mSPI_DRS4D_NXT.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {
@override
public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {

if(isFirstSelected)
{
isFirstSelected = false;
} else {
switch (position) {
case 0:
mCheckString = mLIST_DRS4D_NXT.get(0);
Log.e("LOG", "---------------------------------------------------->> DRS4D_NXT Check String : " + mCheckString);
break;

case 1:
mCheckString = mLIST_DRS4D_NXT.get(1);
Log.e("LOG", "---------------------------------------------------->> DRS4D_NXT Check String : " + mCheckString);
break;

case 2:
mCheckString = mLIST_DRS4D_NXT.get(2);
Log.e("LOG", "---------------------------------------------------->> DRS4D_NXT Check String : " + mCheckString);
break;
}
}
}

@override
public void onNothingSelected(AdapterView<?> parent) {

}
});
}
```

How to auto backup phone before it is faulty or lost?

I want to be prepared so if one day my android phone is lost or faulty, I can just buy a new phone to recover all the data and make the new phone to have everything like the old phone (sms history/whatsapp/telegram/call/messages history/app settings/photos...)

What are the steps to properly backup everything?

If possible, I would prefer to set and forget, something like auto-scheduled backup.

I do not want to root the phone.

Thanks.

Can you rely on midrange soc for few years.

Im planning to buy a new phone with snapdragon 730, and that soc is the most powerful midrange in 2019. People saying you wont notice the difference when playing graphical games on max setting when compared to flagship, youll only notice few seconds slower loading time. 700 chips is also far power efficient making them better experience. Can you rely on it for about 4 years just like flagships especially for graphical games?

Bluetooth Headset

While using Bluetooth headphones with the accessability settings turned on it seems that the sound comes out of the phone as well at the same time. I would like to keep this from happening, I'm visually impaired so it also speaksmy text messages out loud. Am I missing a setting to go to headphones only when they are connected?

Root How can i root my Oppo AX7?

Hello i have an oppo AX7 (model number is CPH1903) i really want to root it i Have a MacBook Air running BootCamp Windows 10 as my OS i tried pressing the OEM unlocking under developer options and enabling USB debugging using kingoorot on windows i got too around 80% then it said root failed any ideas?

International number not picked up by WhatsApp

Hi,

I'm having some trouble with WhatsApp.

I am trying to add a friend from Ukraine. I am currently in Canada but I still log in to WhatsApp using my British phone number, on my British bought Samsung S7.

I already know about adding + and country codes etc.

I saved my Ukrainian friends number into my phone contacts list. It does not show up in Whatsapp. He definitely has the app.

He told me his number starts with +38, but online I read the country code is +380. I have tried using both codes and tried many combinations of his number. WhatsApp does not pick up the number.

How do you get WhatsApp to pick up a Ukrainian number?

Thanks,
Kai

Filter

Back
Top Bottom