yashsingh1/xdaforums huggingface dataset:
[OnePlus 2 Accessories] malithnl:
The cover that I have - http://www.spigen.com/products/oneplus-2-case-rugged-armor - SGP11767

The tempered glass to protect the screen - http://www.spigen.com/collections/oneplus/products/oneplus-2-screen-protector-glas-tr-slim - SGP11812

Still the phone is doing good :) (Apart from my abusive behaviour lol. Just kidding, accidentally dropped from about 3 feet display facing down, tempered glass, display and phone was not harmed). I think that the choice I have made on buying the Spigen and GlastR was worth the money :D
[OnePlus 2 Accessories] manohar3787:
I got a Nillkin H+ Pro and a Spigen Rugged Case , both are perfectly in place and look great . The Spigen is slightly expensive but has protected well from a few drops .
[OnePlus 2 Accessories] Gforce083:
I always debate over dbrand skins or a case and usually end up with a skin and clear case.

The one day I took the case off my phone, it slipped off my lap and onto the sidewalk resulting in a couple dings on the metal trim.

The issue with my method of skin with clear case to show it off is that clear cases, regardless of brand, quality or price all end up yellowing after some time. I've used both the Rinke and the Spigen crystal clear cases and both had the same yellowing effect over time. I would recommend the Spigen over the Rinke though.

However, I gave up on the clear cases... they just look nasty after a few months. I'm currently rocking the official white silicon case from OP. The feel in hand is awesome and it looks great.
[OnePlus 2 Accessories] PiyushSitholay:
Spigen rugged armour......life saver
[OnePlus 2 Accessories] iewl:
Working with this one now: http://www.ebay. nl/itm/For-One-Plus-Two-Oneplus-2-X-Kickstand-Mesh-Net-Armor-Case-Cover-Tempered-Screen-/262516216213?var=&hash=item3d1f2f9195:m:mpINEibl6rw-aT9tWHv0PXw

It's simple and it's good protection!
[OnePlus 2 Accessories] rockinsnake:
Spigen rugged Armour case......doen't get any better than this.
[OnePlus 2 Accessories] kenwo91:
I work outside most of the day with heavy equipment and the Spigen rugged armor case feels good.

Used to have a cheeper case for my opo one with a similar feel and it protected my phone very well while gettin dropped on concrete from about 3' a couple of times.

Just hoping the spigen case will follow.
[OnePlus 2 Accessories] Akilesh Akil:
no case.NAKED
[OnePlus 2 Accessories] fabrquila:
I use (and it's the only one I have lol) an otterbox. It saved my phone many times so I'm happy with that.
[OnePlus 2 Accessories] sbhas2k:
Using it with Nillkin Frosted shield black. Didn't add any bulk and happy with it. :)
[OnePlus 2 Accessories] dyablos:
I use a GHOSTEK SLIM HYBRID
[OnePlus 2 Accessories] WinterScorpion:
Just a small update, I used to use the Spigen Rugged Armor, but after a year I got quite bored of the feel of the phone and decided to buy dbrands carbon back (the mkbhd 3pack) and go with a rhinoshield bumper, so the phone looks great and also has super good protection from drops. The only drawback of this is that I can no longer use the type-c wireless receiver to charge my phone as it used to be hidden in the Spigen case...

Also that combination was a bit expensive but I think it's worth...
[OnePlus 2 Accessories] Scarface05:
Spigen Rugged Armour for me.

Gives decent protection and is not too bulky
[OnePlus 2 Accessories] Rebel7022:
I just got the op2 styleswap white oak for 5 dollars on Amazon from Veda electronics, its the authentic case for sure, I was worried that it would be a generic but its legit oneplus bamboo Dogg for 5 bucks;) I also bought my 2 from Veda electronics and everything was all good with that order, Someone listed a new oneplus 2 for 130 on Amazon, so I bought it, but turns out it was a scam so Amazon honored the 130 and I bought through Veda, that's the best deal 130 for a brand new op2. I also got a 3 dollar clear case too. So for ten bucks on Amazon and a upgrade to RR 5.8.3 MY oneplus 2 is dooziN it. Rooted N bOOTed:eek:ooted

P.s nothing is hotter than my midnight black 3t with the ebony wood op3t case. NOT even a s8
[OnePlus 2 Accessories] krnmadan5:
Hi

I really want this cover ...i am not able to find it anywhere...if someone can find would be so great ..i will give fair price ..

Thanks
[OnePlus 2 Accessories] PhoenixNghi:
It's 2019 and I'm still using OP2, can't find any case for it ?
[OnePlus 2 Accessories] vinpilu:
I still use a navy blue Diztronic TPU case. Really like it.
[Nexus 6 Q&A, Help & Troubleshooting] goinflyn:
Anyone using radio for Android M for T-Mobile? Any improvement?
[Nexus 6 Q&A, Help & Troubleshooting] RCGAndroid:
I flashed it recently, and phone conversations were garbled and broken. I went back to 98r, which works best for me in my area.
[Nexus 6 Q&A, Help & Troubleshooting] simms22:
I'm using 95r myself, haven't tried the m radio yet. but if you want WiFi calling on m, then you need to use the m radio.
[Verizon HTC One (M8)] nty123:
Hey guys i am wondering can i flash other carriers roms? currently im not supercid. but i am unlocked and s-off, i want to install skydragon but still want my network connection working and everything.
[Upgrading, Modifying and Unlocking] microsd28:
Hi good day,

I just want to ask what tools to use in rooting samsung galaxy style m340s. thanks and more power hda community
[Android Studio] tuliobarata:
Hi all,

Some days ago I decided to make an app to help me in my job with some Maths, so I'm reading a lot and watching some classes on youtube to make it possible. I'm trying to make, basically, a calculator for some specific maths.

By a simple way, I learned how to make my EditText,TextView , and do the Math when I push one BUTTON, but in some cases, for a fast and easy result, would be better to update the "children" field, just when I edit the "parent" field, or when I leave it.

Like, if I type the number 1 in my first field, the second field that depends on it should update automatically using this reference that I just edited.

Is there possible ? If yes, recommended or it makes the app too "heavy" ? Considering that each activity would have just few maths, far from any big known app.

Thanks in advanced.

Barata
[Android Studio] tuliobarata:
Hello again!!

I was watching some classes now on youtube, and I made some tests that almost worked for what I want.

In this code, I cant edit one EditText and show a message in the 3 situations, before, on and after change the text.... and I did changes in the TextView created with AFTER, but just changed to a simple word, a text. That worked perfectly.

Now I'm trying to make a simple math, but I'm making some mistake with numbers and texts. I just need to multiply the EditText for a number (0.7354988) and put the result in the TextView, so I would convert CV to kW, but it gives me a message that I cant do it. I create one double CVtokWfactor with that value, but I'm not sure if I did it right.

this is the error:

Error:(44, 49) error: bad operand types for binary operator '*'

first type: EditText

second type: double

Below the JAVA:

package com.example.tbarata.textvalidation;

import android.app.Activity;
import android.support.v7.app.ActionBarActivity;
import android.os.Bundle;
import android.text.Editable;
import android.text.TextWatcher;
import android.view.Menu;
import android.view.MenuItem;
import android.widget.EditText;
import android.widget.TextView;
import android.widget.Toast;

public class TextValidation extends Activity implements TextWatcher{

EditText ed1;
TextView tv2;
double CVtokWfactor = 0.7354988;

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_text_validation);
ed1=(EditText) findViewById(R.id.editText1);
ed1.addTextChangedListener(this);
tv2=(TextView) findViewById(R.id.textView2);
}

public void beforeTextChanged(CharSequence charSequence, int start, int count, int after) {
Toast.makeText(this, "before", Toast.LENGTH_SHORT).show();
}

@Override
public void onTextChanged(CharSequence charSequence, int start, int before, int count) {
Toast.makeText(this, "on change", Toast.LENGTH_SHORT).show();

}

@Override
public void afterTextChanged(Editable editable) {
Toast.makeText(this, "after", Toast.LENGTH_SHORT).show();
tv2.setText(String.format("%.2f", (ed1 * CVtokWfactor)));

}
}

What should I change to multiply these numbers ?

Thanks again.

Barata
[Android Studio] mantlabs:
Hello :)

For your first reply:

You have to put the code with the EditText inside the onCreate method. You made it work in the above code that you posted (outside onCreate) because you implemented the TextWatcher interface. You could avoid that by adding the code related with TextWatcher inside the onCreate method as I posted above ;)

For your second reply:

In the afterTextChanged method, at

tv2.setText(String.format("%.2f", (ed1 * CVtokWfactor)));

You multiply the EditText ed1 with the double CVtokWfactor. You can't multiply an EditText with a number. The operand * needs numbers (int, double, float, etc ;) )

You need to get the text of the ed1, convert it to double (I suppose edittext has double number) and then multiply, like this:

tv2.setText(String.format("%.2f", (Double.parseDouble(ed1.getText().toString()) * CVtokWfactor)));

Also I recommend to remove the Toasts from the methods beforeTextChanged, onTextChanged and afterTextChanged. They are called each time you type something on the EditText ed1.

If you still need help, feel free to ask :)
[Android Studio] tuliobarata:
Hi!

Now it worked perfectly [MENTION=3873834]MMDeveloper[/MENTION]!! really thanks !

Agree with you about the Toast code, I forgot to delete it before paste here, it was just a test to see the events :)

About the way of using the TextWatcher, should I use the first way that you said, for some specific reason or basically both are the same ?

And now that's working, came the idea to improve the math, for an easy way of using it.

Now I can convert power in CV to kW, but lets say that I have one value in kW already, and need to convert to CV, would be posible using this same code/activity ? So I would convert in the same activity both units. Or, its gonna be some redundant thing ? My idea to save space, is use just the 2 fields, without one third to get the result.

This is the code now, already changed for a second EditText and not TextView anymore, until now it's working to convert the unit CV to kW, just when I clean out the EditTex1 field, the EditText2 keeps the conversion from the last number in the EditText1. Actually it's not a problem for now, the important is just convert it :D

public class Calc001Activity extends Activity implements TextWatcher {

EditText ed1;
EditText ed2;
double CVtokWfactor = 0.7354988;

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_calc001);
ed1=(EditText) findViewById(R.id.editText1);
ed1.addTextChangedListener(this);
ed2=(EditText) findViewById(R.id.editText2);
}

@Override
public void beforeTextChanged(CharSequence s, int start, int count, int after) {

}

@Override
public void onTextChanged(CharSequence s, int start, int before, int count) {

}

@Override
public void afterTextChanged(Editable s) {
try {
ed2.setText(String.format("%.2f", (Double.parseDouble(ed1.getText().toString()) * CVtokWfactor)));
}
catch (NumberFormatException e) {}

}
}

Thanks in advanced.

Barata.
[Android Studio] mantlabs:
Let's fix the issue with the old conversion first :)

When you clear the ed1 your

ed2.setText(String.format("%.2f", (Double.parseDouble(ed1.getText().toString()) * CVtokWfactor)));
}

should cause your app to crash, because Double conversion from an empty string would throw the NumberFormatException.

You are already catching it so it silently ignores it, and the ed2 is not updated.

To solve this just make a check:

@Override
public void afterTextChanged(Editable s) {
if(doNoEnterEd1==true){
return;
}
doNotEnterEd2 = true;
try {
if(ed1.getText().toString().equals("")){

ed2.setText("");

}
else{
ed2.setText(String.format("%.2f", (Double.parseDouble(ed1.getText().toString()) * CVtokWfactor)));
}

}
catch (NumberFormatException e) {}
doNotEnterEd2 = false;
}

Now it should clear the ed2 too, when you clear the ed1.

Now for the TextWatcher, you should do it as I mentioned in my first reply, only for having a separate TextWatcher for each EditText, but there is no problem with implenting the TextWatcher, as you did. Just for code clarity. Furthermore, for code clarity (and reusability), the text watcher should be in a separate Java class, but no need for such a small application :) So you are ok with that.

You can easily do the reverse conversion (from ed2 to ed1) as follows:

Inside your class outside any method, where you declared your EditText add:

boolean doNotEnterEd1=false;
boolean doNotEnterEd2=false;

in the onCreate method:

ed2=(EditText) findViewById(R.id.editText2);
ed2.addTextChangedListener(new TextWatcher() {

@Override
public void afterTextChanged(Editable arg0) {

if(doNoEnterEd2==true){
return;
}
doNotEnterEd1 = true;
try {
if(ed2.getText().toString().equals("")){
ed1.setText("");
}
else{
ed1.setText(String.format("%.2f", (Double.parseDouble(ed2.getText().toString()) * CVtokWfactor))); //Here do the conversion as you like, replace CVtokWfactor.
}

}
catch (NumberFormatException e) {}

doNotEnterEd1=false;
}
@Override
public void beforeTextChanged(CharSequence s, int start, int count, int after) {

}

@Override
public void onTextChanged(CharSequence s, int start, int before, int count) {

}
});

I think it should work like intended now.

If you still encounter a problem feel free to ask ;)
[Android Studio] tuliobarata:
Hello!

[MENTION=3873834]MMDeveloper[/MENTION], thanks man!!!

The code is working perfectly!! I changed the code as in the first reply and with these last modifications, its 100%!

Now I'm gonna improve the layout and add the others inputs for the math, but the base code is fully working :)

Really thanks for you time, helping me.

As reference, this is my code now (still without the improvement):

package com.example.barata.calc001;

import android.app.Activity;
import android.content.Intent;
import android.support.v7.app.ActionBarActivity;
import android.os.Bundle;
import android.text.Editable;
import android.text.TextWatcher;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.widget.EditText;
import android.widget.TextView;

public class Calc001Activity_002 extends Activity {

double CVtokWfactor_2 = 0.7354988;
boolean doNotEnterEd1=false;
boolean doNotEnterEd2=false;

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_calc001_activity_002);

final EditText ed1_2 = (EditText) findViewById(R.id.editText02_1);
final EditText ed2_2 = (EditText) findViewById(R.id.editText02_2);

ed1_2.addTextChangedListener(new TextWatcher() {
@Override
public void beforeTextChanged(CharSequence s, int start, int count, int after) {

}

@Override
public void onTextChanged(CharSequence s, int start, int before, int count) {

}

@Override
public void afterTextChanged(Editable s) {

if(doNotEnterEd1==true){
return;
}
doNotEnterEd1 = true;

try {
if(ed1_2.getText().toString().equals("")){
ed2_2.setText("");
}
else{
ed2_2.setText(String.format("%.3f", (Double.parseDouble(ed1_2.getText().toString()) * CVtokWfactor_2)));
}

}
catch (NumberFormatException e) {}
doNotEnterEd2 = false;

}
});

ed2_2.addTextChangedListener(new TextWatcher() {

@Override
public void afterTextChanged(Editable arg0) {

if(doNotEnterEd2==true){
return;
}

doNotEnterEd1 = true;
try {
if(ed2_2.getText().toString().equals("")){
ed1_2.setText("");
}
else{
ed1_2.setText(String.format("%.3f", (Double.parseDouble(ed2_2.getText().toString()) * CVtokWfactor_2))); //Here do the conversion as you like, replace CVtokWfactor.
}

}
catch (NumberFormatException e) {}

doNotEnterEd1=false;
}
@Override
public void beforeTextChanged(CharSequence s, int start, int count, int after) {

}

@Override
public void onTextChanged(CharSequence s, int start, int before, int count) {

}
});

}

public void vemPara001(View view) {

Intent vem001 = new Intent(this, Calc001Activity.class);
startActivity(vem001);
finish();
}

public void vaiPara003(View view) {

Intent vai003 = new Intent(this, Calc001Activity_003.class);
startActivity(vai003);
finish();
}

}

Thanks again!

barata.
[Android Studio] tuliobarata:
Hi again!!

Sorry bring this topic back, but I gave up of doind my sliding tabs to get a nice layout in this app... so I got this one with a sliding menu from left, the I thought would be nice to use.

This is the link:

https://github.com/JulienGenoud/android-percent-support-lib-sample

Actually, the focus on its sample is to use the PERCENT lib, but that I don't care, just need to use the sliding menu;

I tried to replace the view1.xml for that with the code above (with textWatcher) and created one view_1.java with the codes, but nothing happens when I type a number in the editText....

Because the app uses a Drawer or fragment, should I change the way of doing that and automatically update the fields?

Thanks again!

Barata
[General Questions and Answers] Pawprints1986:
So ive had this error several times, while charging my phone, powered off....

i plug it in... it seems all is fine, until at some point, my phone stops responding. i push the power button expecting it to show me where its at in its charge, and absolutely nothing happens. i try to turn it on... and have to hold the power button down for significantly longer until it finally shows the splash screen

in this instance im trying to calibrate my battery and was looking to see if it was at 100% yet, but normally i unplug around 80% - ive had this same bug when intending to unplug around 80..... but only sometimes.

ive gone in and wiped battery stats, several times, thinking that was a good idea when i celar out my caches...

no new rom, os, kernel.... its all the exact same.... and i can duplicate this error with 2 different (one very old, one new) batteries.... so its not the battery. i have tried playing around with some different keyboards, but have since deleted those apps as i didnt like them. no other newer apps besides things like wakelock detector, and sd maid - downloaded legit from the play store

so when this is happening, what is happening to my phone? Why does it stop responding?

this happens via wall or USB port - 2 different cords, same issue

but it hasnt been *always* an issue. so..... whats the deal?? when it just happened now it was barely even warm to the touch.
[ZenFone 2 Q&A, Help & Troubleshooting] caaznkid:
I was wondering if anyone could help me since Asus support has told me that this phone doesn't support LTE even though the specifications sheet says that the phone supports band 2 and 4.

The phone is able to connect only for like 2 seconds to LTE, then it disconnects, then reconnects, and so on.

If I force it into using only HSPA+, then the phone functions normally.

If anyone has any advice or anything regarding my situation, I'd sincerely appreciate it. Much thanks XDA community!
[ZenFone 2 Q&A, Help & Troubleshooting] caaznkid:
I did a little more research and found that I have the WW version, whatever that means. Is it true that different versions of phones from different parts of world other than US would not function correctly?
[ZenFone 2 Q&A, Help & Troubleshooting] rlaw:
I'm on t-mobile in NY and get 4G most places. Rarely drop down to HSPA. Might be due to your area or defective radio in your device.
[One (M8) Q&A, Help & Troubleshooting] Tohiii:
Hey everyone.

There's this dark patch that is on the top left side of my HTC One M8. I recently just noticed it and it has really been bothering me ever since. It still has the color that is on the screen but it's a darker shade of it.

Anyone know what caused this and if there's a solution to fix this?

Thanks in advanced.
[Huawei Ascend G6] :
Q&A for miui v5?

Some developers prefer that questions remain separate from their main development thread to help keep things organized. Placing your question within this thread will increase its chances of being answered by a member of the community or by the developer.

Before posting, please use the forum search and read through the discussion thread for miui v5?. If you can't find an answer, post it here, being sure to give as much information as possible (firmware version, steps to reproduce, logcat if available) so that you can get help.

Thanks for understanding and for helping to keep XDA neat and tidy! :)
[Huawei Ascend G6] tadeo.sterling:
Hi

Do you know if it work on a Ascend G6-U251?

Thank you!
[Huawei Ascend G6] tadeo.sterling:
Hi

Does anyone knows if this MIUI Rom for the Huawei G6 T00. (en.miui.com/download-242.html)

Will work on the Ascend G6-U521?

Thanks
[LG G Watch R] romeo_coi:
Sorry for my noob question and my bad English.

I have a G watch R, after 4 days without using, my G watch now cannot turning on, even when i connect it to the charger, it just does a short vibrate and nothing happens (G watch still warm up). I try to search in google and our forums but there's no solution for my case. Is it a hardware or software problem?
[LG G Watch R] madds:
I had the same problem. Sent it to repair and got a motherboard replacemant on warranty.

Enviado do meu PadFone 2 através de Tapatalk
[LG G Watch R] weel3000:
Dead watch

I had the same exact issue. 4 month old watch and LG doesn't want to fix it even though it's still in warranty .
[LG G Watch R] wilsonliang777:
What was LG's reason for not repairing the watch.
[LG G Watch R] weel3000:
They say it is guarantee void due to contact with water. I'm the type of person who takes watches off to wash hands. Live in a city so don't swim in sea. Spent the past 3 months trying to have it replaced but it keeps coming back as out of guarantee.
[LG G Watch R] Tjotte:
It's supposed to be water resistant to so that sounds really weird ?
[JASJAR, XDA Exec, MDA Pro General] BraveDruid:
Has anyone seen any recent news or indeed heard any rumours regarding HTC's plans to replace the Universal? Does anyone know when we might hear more?

The news at the end of last year was that a product would be launched in the first quarter of this year code-named the Omni. It was apparently going to have the same clamshell design as the Universal with an updated spec and be slightly slimmer. Since then we've seen the more capable Athena launched and now the more compact Kaiser is being launched.

I'm starting to lose hope that we'll see the Omni :(

I can't be the only Universal owner still hanging on to an aging phone, waiting desperately for the Omni launch before upgrading!
[JASJAR, XDA Exec, MDA Pro General] Bulldog:
In some of the report it has been mentioned that the HTC put omni aside.

Be frank I don't fully believe on that. However I guess due to other important developments they will give the poirity to devices which have higher competition and of course expectations of higher sales.

Anyhow Universal is some 1,5 years old but still it is one of the most advanced device that exist, included the one which just has been recently released.well you can say More or less have no competition from other manufacturer.
[G4 Q&A, Help & Troubleshooting] Fma15:
I looked at the root progress thread there doesn't seem to any news on it.
[G4 Q&A, Help & Troubleshooting] Dennisg34:
Can people stop asking please?

Sent from my G4 using your mom
[G4 Q&A, Help & Troubleshooting] Fma15:
Well it's not like I didn't look.
[Fire HD 6 and 7 Q&A, Help & Troubleshooting] limitedxj:
So, my fire HD has the Android composite ADB interface as the driver.. I can find the tablet on prompt ADB devices but when I put the device into adb reboot recovery I lose it.. The cme can't see the tablet anymore, any thoughts on a solution? Windows 8 x64

Thanks very much