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

Issue with android going to homescreen on its own [FIXED]

Hello i was having an issue where my phone (Note 8) kept going to homescreen even after factory restore and disabling appear on top and picture mode in app settings

This seems to be an issue for Verizon users so go to applications and disable every Verizon app
-Call filter
-Cloud
-Digital Secure
-My Verizon
-Verizon app manager

After disabling all of those my phone stopped going to home randomly i hope this helps out some of you out there and saves you from the headache

Moto G8 touchscreen unresponsive

worked thought the morning, no drops today, no water damage, no big drops either. tried forcing a restart, didnt help, cant launch in safe mode because it would require screen interaction, wipe all data on phone to factory defaults, screen is still unresponsive. bought through amazon from official seller without warranty about 5 months ago, no other issues had. an ideas?

  • Poll Poll
detecting swiping direction

moving player right or left depending on swiping

  • true

    Votes: 0 0.0%
  • false

    Votes: 0 0.0%

Hi;
In my Player.java class, I want to incorporate a function that moves my player according to the left or right swipes. I also used time in seconds in order to vary the movement in an cyclic way:






class MyGestureDetector extends SimpleOnGestureListener {
@override
public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX, float velocityY) {
Calendar cal = Calendar.getInstance(TimeZone.getTimeZone("GMT-4:00"));
Date currentLocalTime = cal.getTime();
DateFormat date = new SimpleDateFormat("KK:mm");
date.setTimeZone(TimeZone.getTimeZone("GMT-4:00"));
String localTime = date.format(currentLocalTime);
try {
if (Math.abs(e1.getY() - e2.getY()) > SWIPE_MAX_OFF_PATH)
return false;
// right to left swipe
if(e1.getX() - e2.getX() > SWIPE_MIN_DISTANCE && Math.abs(velocityX) > SWIPE_THRESHOLD_VELOCITY) {
X-=K;
int currentSeconds = cal.get(Calendar.SECOND);
Y=Y*Math.cos(18.currentSeconds);
} else if (e2.getX() - e1.getX() > SWIPE_MIN_DISTANCE && Math.abs(velocityX) > SWIPE_THRESHOLD_VELOCITY) {
X+=K;
int currentSeconds = cal.get(Calendar.SECOND);
Y=Y*Math.cos(18.currentSeconds);
}
} catch (Exception e) {
// nothing
}
return false;
}
'''






After some research, this is the class I included in player.java. So my question is: Is there a more efficient way to detect swiping directions(without creating any additional class) and what is your opinion about the code structure knowing that the objective is to change X according to swipe direction.

Thank you.

Apps Emulator Failed

When I run my emulator it gives an error like

Code:
Emulator: Failed to sync vcpu reg
Emulator: deleteSnapshot: for default_boot
Emulator: Screenshot failed to find cb 0

I tried lots of setting by finding on google. I Re-install my Android studio but still I am facing same error.
Can anyone tell me the solution.?
I am not using any type of virtual machine.

Help Engaged, or what?

Can someone tell me what it means when I dial someone's number from my Android phone (a Samsung Galaxy A3, in case it's relevant) and the call disconnects almost immediately, after a short, descending 'biddly-boop' tone? There is no 'ringing at the other end' tone or 'engaged' tone to indicate what's happening.

I've Googled this, but the only hits I'm getting are to do with the 'engaged' behaviour of Android phones themselves, not what's happening to calls made from an Android phone. I've noticed it with two land line numbers which I've dialled recently, and in the case of the latest one it's mildly urgent that I contact the person.

Thanks in advance for any help/feedback.

Galaxy S7 shut off then was stuck on boot screen

I have a Galaxy S7 that while I was reading an article with it it just shut off, rebooted itself but was stuck on the boot screen and vibrating like mad. No matter what I did I couldn't turn it off. I tried getting to the developer screen to do a hard reset but it wouldn't even let me do that. I ended up needing to wait until the battery died for it to be off. Once it died I threw it on the charger for a awhile and tried booting it back up...but unfortunately nothing happened. It wouldn't turn on at all. Occasionally I can get it to say that it's charging but it won't do anything past that.

My question is, could this be a battery issue? It was over 2 years old, probably about 2.5 years and I did use it a lot while plugged in which I know is bad juju. I ordered a new battery for it but am second guessing whether that could be the issue since I had to wait for the battery to die to get it to stop vibrating/showing the boot screen.

Samsung Galaxy A8 Touchscreen randomly unresponsive?

Hi all,
So I just fixed and replaced the screen/digitizer on my Samsung Galaxy A8 phone and I am now met with the problem that the touchscreen randomly doesn't work.
The issue works somewhat like this:
Upon pressing the power button to unlock the phone, the touchscreen will not work and is unresponsive to my touch, however - pressing the power button to lock it again, then pressing the power button once more to wake it once more leads to the touchscreen working perfectly fine, this will usually work for the duration that the phone is unlocked, however upon locking again and attempting to unlock to use the phone once more, the screen will be unresponsive once more - rinse and repeat.
It's getting very irritating and I was wondering if there was some sort of fix?
Thanks,
-Jack

Black screen on Elephone Soldier

Bom dia à todos.
Tenho um Elephone Soldier que comecei a usar em 20 de janeiro, e agora em março apresentou alguns problemas. Bloqueava a tela do nada, podia está navegando ou assistindo a um vídeo, isso era constantemente, e começo a ocorrer quando pluguei-o no PC da igreja a qual congrego. Ficou + - um mês fazendo isso até que desligou por falta de energia na bateria e quando voltou foi na tela preta perguntando se deseja formatar ou outra coisa (em inglês), e quando escolhia uma opção apresentava outra tela preta com o ícone do android deitado com a barriga/tampa aberta e um simbolo de exclamação e logo abaixo a palavra ERRO. Isso ocorreu por diversas vezes onde a partir da 2ª vez, antes de desligar aparecia uma caixa de texto informando que o "sistema não responde", em inglês. Por duas vezes levei à técnicos da cidade que fizeram ele voltar ao SO, porém com um tempo ele apresentava a tela preta, e isso ocorreu ontem à noite, após ter retirado do concerto na quinta dia 02 de março.
Será que alguém pode me ajudar?

Desde já agradeço muito, e que o Senhor os abençoe!

  • Poll Poll
Data Usage Shows Double when FTP upload is done though hotspot in IPv6 only network

Data Usage Shows Double when FTP upload is done though hotspot in IPv6 only network.

  • is it a known problem? or does any one knows solution?

    Votes: 0 0.0%
  • Is this QOS issue?

    Votes: 0 0.0%

Data Usage Shows Double when FTP upload is done.

1. Network assigns only IPv6.
2. CLAT daemon is started (192.0.0.4 on Iface V4-rmnetXXX).
3. Eanble Hotspot and connected to PC then Perform FTP upload.


Although its being handled to skip counting "Iface V4-rmnetXXX". when FTP upload done from PC then Data usage shows double.

Developer Options can't access frustrated please help

Hey everyone. New here. Please help me, I can't seem to access my developer options. I go to build number and tap 7 times and this is what I see after ther first tap
"No need, developer options already enabled"

When I go back to my settings page I can see developer options there but when I click it, it says "Turn on developer options first"

screenshots in link below
https://photos.app.goo.gl/x1Woh5SL5ftLXAfS6

shocking lags on Samsung Note 9

Since approximately the last software update on 4th March 2020 that included 1 February 2020 security patch level (Version N960FXXS4DTA5/N960FOXM4DSLB/N960FXXU4DSLA) ....

... my device has been having shockingly long lag times. It had no noticeable lag times til this point.

Device care shows a score of 100, all good!

Are others experiencing the same? How do I fix it please?
TIA ... Greg

Music/Audio app crashes every time I open another app

Previously I have been able to listen to my music/podcast while using my phone for various other things without interruption to the audio. Now any time I open a second app while audio is playing it crashes my audio instantly.
I've tried everything Google has to offer (clear cache, clear cache partition, battery saver exclusion of apps involved, etc.) to resolve this and no luck. It has become infuriating over the last few months as this is a very important function to me. ANY HELP WOULD BE GREATLY APPRECIATED!
PS- My audio crashed when I opened this app.

how to save user input in RecyclerView

Hello everyone. I add “Employee” to the SQLite database. When adding an employee to the database, the user must fill in the fields that relate to the employee, for example, first name, last name, salary, etc. The employee has several attributes such as "skill" and "department" of these attributes the employee may have several, so when the user fills in all the fields with attributes he is invited to add another field, for example, the field "skill" to add another "skill", such a field " skill "you can add as much as you want and I implemented it with RecyclerView. But the problem is this: when the user wants to add another "skill" field, an empty EditText appears and the user fills this field with data, but I don’t know how to save this line, because when you click add skill an empty line is transferred to the adapter, then the user fills this line, but how to save this line to the list that contains the adapter I can not figure out




This is Adapter class

public class AdapterAddSkill extends RecyclerView.Adapter<AdapterAddSkill.MyViewHolderAddEmployee> {
private ArrayList<String> skillsList;
private Context context;

public AdapterAddSkill(ArrayList<String> skillsList, Context context) {
this.skillsList = skillsList;
this.context = context;
}

@NonNull
@override
public MyViewHolderAddEmployee onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {
View view = LayoutInflater.from(parent.getContext()).inflate(R.layout.card_skill, parent, false);
return new MyViewHolderAddEmployee(view);
}

@override
public void onBindViewHolder(@NonNull MyViewHolderAddEmployee holder, final int position) {
holder.closeCard.setOnClickListener(new View.OnClickListener() {
@override
public void onClick(View v) {
skillsList.remove(position);
notifyDataSetChanged();
}
});
}

@override
public int getItemCount() {
return skillsList.size();
}

@override
public long getItemId(int position) {
return position;
}

@override
public int getItemViewType(int position) {
return position;
}



public static class MyViewHolderAddEmployee extends RecyclerView.ViewHolder {
private ImageButton closeCard;
private EditText skillEditText;

public MyViewHolderAddEmployee(@NonNull View itemView) {
super(itemView);
closeCard = itemView.findViewById(R.id.deleteSkillCard);
skillEditText = itemView.findViewById(R.id.skillText);
}
}
}

Here is the activity in which the user fills in the data about the employee and adds it to the database

public class AddEmploy extends AppCompatActivity {
private EditText nameEditText, lastNameEditText, employeeIdEditText,
salaryEditText, departmentEditText, skillEditText;
private ArrayList<String> skillsList = new ArrayList<>();
private ArrayList<String> departmentsList = new ArrayList<>();
private AdapterAddSkill adapterAddSkill;
private RecyclerView skillRecyclerView;
private AdapterAddDepartment adapterAddDepartment;
private RecyclerView departmentRecyclerView;


@override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_add_employ);
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
nameEditText = findViewById(R.id.name);
lastNameEditText = findViewById(R.id.lastName);
employeeIdEditText = findViewById(R.id.employeeId);
salaryEditText = findViewById(R.id.salary);
departmentEditText = findViewById(R.id.department);
skillEditText = findViewById(R.id.skill);
skillRecyclerView = findViewById(R.id.rv_skill);
departmentRecyclerView = findViewById(R.id.rv_department);
adapterAddSkill = new AdapterAddSkill(skillsList, this);
adapterAddDepartment = new AdapterAddDepartment(departmentsList, this);
skillRecyclerView.setLayoutManager(new LinearLayoutManager(this));
departmentRecyclerView.setLayoutManager(new LinearLayoutManager(this));
skillRecyclerView.setAdapter(adapterAddSkill);
departmentRecyclerView.setAdapter(adapterAddDepartment);

}

public void onClickBtn(View view) {
switch (view.getId()) {
case R.id.addDepartmentText:
departmentsList.add("");
adapterAddDepartment.notifyDataSetChanged();
break;
case R.id.addSkillText:
skillsList.add("");
adapterAddSkill.notifyDataSetChanged();
break;
case R.id.saveEmployee_info:
addEmployToDatabase();
addDepartmentToDatabase();
addSkillToDatabase();
}
}

@override
public boolean onOptionsItemSelected(@NonNull MenuItem item) {
int id = item.getItemId();
if (id == android.R.id.home) {
finish();
}
return super.onOptionsItemSelected(item);
}

private void addEmployToDatabase() {
String employeeId = employeeIdEditText.getText().toString();
String name = nameEditText.getText().toString();
String lastName = lastNameEditText.getText().toString();
String salary = salaryEditText.getText().toString();
MyQuery.addEmployee(new Employ(employeeId, name, lastName, salary));
}

private void addSkillToDatabase() {
String employeeId = employeeIdEditText.getText().toString();
String skill = skillEditText.getText().toString();
MyQuery.addSkill(new Skill(employeeId, skill));
for (int i = 0; i < skillsList.size(); i++) {
MyQuery.addSkill(new Skill(employeeIdEditText.getText().toString()
, skillsList.get(i)));
}
}

private void addDepartmentToDatabase() {
String department = departmentEditText.getText().toString();
String employeeId = employeeIdEditText.getText().toString();
MyQuery.addDepartment(new Department(employeeId, department));
for (int i = 0; i < departmentsList.size(); i++) {
MyQuery.addDepartment(new Department(employeeIdEditText.getText().toString(),
departmentsList.get(i)));
}
}

private void showAllEmployees() {
List<Employ> employs = MyQuery.getAllEmployees();
for (int i = 0; i < employs.size(); i++) {
Log.i(".......Employees", employs.get(i).toString());
}
}

private void showAllSkills() {
List<Skill> skills = MyQuery.getAllSkills();
for (int i = 0; i < skills.size(); i++) {
Log.i("......Skills", skills.get(i).toString());
}
}

private void showAllDepartments() {
List<Department> departments = MyQuery.getAllDepartments();
for (int i = 0; i < departments.size(); i++) {
Log.i(".........Departments", departments.get(i).toString());
}
}
}

Help One Plus 5TGuest mode removal?

Hi all,



I'm struggling with a technical issue that I've been trying to get rid of. I'm using a One Plus 5T and I want to completely disable/delete guest mode/ guest users. I'm using android 9.

I know you can remove it, under settings, but it doesn't actually remove it from the system.

A solution I found was by rooting the phone and going into the deeper system settings and changing a couple of values.



My phone is no longer in warranty, but I have never rooted a phone and don't want to take the risk in bricking it, especially now.



Lastly, I was wondering if there's a way to have certain apps act as system admins regardless of what user the app is originally installed on. For example, having app locker app apply to the guest user, if possible.



Please let me know your thoughts!

Filter

Back
Top Bottom