yashsingh1/xdaforums huggingface dataset:
[Sony Xperia Z Ultra] bASKOU:
Impossible, only do it of you wish to hardbrick your phone. Can't restore it by any mean, guess you just have to wait there is a way to use x-reality without the DRM for you to can see it on your phone again
[Sony Xperia Z Ultra] Andrewtst:
No way and don't do it.

Doing such = permanent hard brick.
[Galaxy S III Q&A, Help & Troubleshooting] sperelli:
Weird enough suddenly I found all my external SDCard files have all permissions like:

---rwxr-x

Why !?? This happens to every file I copy onto it.

I needed them like:

rwxrwxr-x

so far, the only rough and long way I found is through Aromafilemanager and PhilzTouch recovery.

Yet I have to change the permissions one file at a time.

Can anybody help?
[Galaxy S III Q&A, Help & Troubleshooting] boomboomer:
Sounds like a problem unique to you, I've never heard of it.

Flash the official stock rom, format your sd card in your pc using the industry formatting tool and test.

If the problem disappears then it was probably some combination of your individual setup.
[Galaxy S III Q&A, Help & Troubleshooting] danarama:
Yep. Also ensure you haven't got any scripts running at startup. Sd permissions are set on boot and cannot be changed afterwards
[Galaxy S III Q&A, Help & Troubleshooting] sperelli:
Thank you, I'll surely restart from the beginning and report back
[Galaxy S III Q&A, Help & Troubleshooting] sperelli:
Which script could do that?
[Galaxy S III Q&A, Help & Troubleshooting] danarama:
Any mods that mount folders or swap storage.

Otherwise, something built into the rom.
[Galaxy S III Q&A, Help & Troubleshooting] sperelli:
[MENTION=2706741]boomboomer[/MENTION]

which filesystem do i have to use in formatting extsdcard 8gb via pc? exFAT / FAT32 / EXT4 / NTFS ?

moreover, in this post and following on dev rom thread, it seems it's a normal behaviour... am i missing sth?
[Galaxy S III Q&A, Help & Troubleshooting] boomboomer:
https://www.sdcard.org/downloads/formatter_4

Fat32 is the normal filesytem.

If it's common to your rom then your chef is the best one to approach, he may have set a script or mod.
[Galaxy S III Q&A, Help & Troubleshooting] Mushtaqs:
I read through about 7 pages of sd card issues on the s3 and thought i cant read anymore, so i thought i would just ask. I've just bought an s3 and i got my 64gb sd card from my old phone to my new one. Problem is i have data from other games in the SD and titanium back up files in the externel sd card. Seems the S3 has its own built in SD card and only reads from that. I copied my TB files from externel to the internel. Now the games still require Extra files although they are in the externel SD. So how in the world do i get it to read my Externel sd instead of my internel? I thought of copying the files but i have 16 gb internel, 64 externel so its not gonna work considering i have 39 gb left in my 64 gb one,
[Sony Xperia P, U, Sola, Go] myawan:
Any mods for Xperia U stock GB?
[Sony Xperia P, U, Sola, Go] Pandemic:
wrong topic and just search !
[Sony Xperia P, U, Sola, Go] myawan:
I wish you delayed this useless post of urs for atleast a couple of hours.:thumbdown:
[Sony Xperia P, U, Sola, Go] guitarfreedom:
Here there's my thread: http://xdaforums.com/showthread.php?t=2419791 ;)
[Sony Xperia P, U, Sola, Go] Toledo_JAB:
Thread closed @ OP Request
[One (M7) Q&A, Help & Troubleshooting] Atrax_:
It's in the title, is there any way to get s-off and root without downgrading and htc unlock? If not, how can i downgrade?
[One (M7) Q&A, Help & Troubleshooting] smartanks:
Hey man , sorry but currently there is no way to go s-off or downgrade on 1.54 hboot and htc dev is the only way to unlock so that you can root your phone.
[One (M7) Q&A, Help & Troubleshooting] Atrax_:
And when I use HTC dev I can't lock the bootloader without loosing my warranty?

Gesendet von meinem HTC One mit Tapatalk 4
[One (M7) Q&A, Help & Troubleshooting] AllAboutTheCore:
HTCDev is meant for developers, even though anybody can register and unlock their bootloader. The only way to not void your warranty is to be S-Off and remove the tampered flag and change the relocked back to locked. As the previous poster mentioned, there is no way to downgrade Hboot 1.54 unless you are already S-Off so the risk of voiding your warranty will always be there until you can go S-Off, but as you are already on Hboot 1.54 and are S-On, you have no other choice than to remain as you are until a solution is available for the newer Hboot versions.

Btw, you only use HTCDev to get an initial unlock code for your bootloader, flashing that code requires you to use fastboot commands which is the same for relocking your bootloader ... HTC only provide you the code at first unlock.
[One (M7) Q&A, Help & Troubleshooting] Atrax_:
Okay and when i unlock my bootloader via htcdev, will there be at any point of time a solution to get rid of the tampered and relocked and make it only locked?
[One (M7) Q&A, Help & Troubleshooting] phab3k:
the only way I know to get rid of the tampered flag is through having s-off
[One (M7) Q&A, Help & Troubleshooting] Atrax_:
Lets say i'm running a custom rom with e.g. the TWRP recovery and i unlocked the bootloader with htcdev.

when i just flash CWM Recovery, restore the RUU (its not an exe, a backup of course :D) and lock the bootloader again it will say "relocked" won't it? How can i get s-off in the state i mentioned above?
[One (M7) Q&A, Help & Troubleshooting] CoryTallman:
Yes it will say relocked.

You can not get s-off. There is no exploit, and no work around to use the old exploit.
[Captivate Q&A, Help & Troubleshooting] imiten:
Hi,

Semaphore's ClockworkMod when I flash on samsung captivate sgh-i897 it using heimdall as per instruction at Cyanogenmod it flashes fine. Then when I try to boot into recovery it stuck / flashes ATT world phone screen and never shows recovery menu.

can one guide on alternative.

Regards,

Miten.
[Captivate Q&A, Help & Troubleshooting] Val D.:
Are you trying to install CM coming from stock ROM?

Read this guide, easy to follow and no Heimdall needed:

https://docs.google.com/document/d/1YvC_lLbjk06WOttsifG8fD2QUHvC9_rDtZdNrDZKAFc/edit?pli=1
[Captivate Q&A, Help & Troubleshooting] imiten:
Hi, I was looking for this and shall give it a try and provide feedback.

After installing corn kernel as CWM can I install stable version of CM for captivatemtd ? I read on android site that bootloader needs to be compatible with rom being flashed unless I misunderstood. So corn kernel you providing will be having a boot loader too which will be compatible with stable version of captivatemtd ?

I do not quite know how to verify this combination of boot loader with rom.

could it be that my stock rom boot loader is not unlocked and thus the captivatemtd instructions to install CWM is ineffective even though it says successfully installed using heimdall ?

thanks.
[Captivate Q&A, Help & Troubleshooting] Val D.:
This very same guide contains answers to all your questions. Just read it and follow the instructions.

For CM10.1 you need to have GB bootloaders. If you ever had GB running on your phone, don't worry about bootloaders.
[Java for Android App Development] Paulius7:
Hello all, I have problem in I developing a program for learning purposes also for my school. So here is the code, also my code not completed so there any problem please write how to fix ;)

package com.leftas.vidurkioskaiciavimas;

import android.os.Bundle;
import android.app.Activity;
import android.view.View;
import android.widget.TextView;

public class vidurkioskaiciuokle extends Activity {
int c;
TextView mUserOutput,mUserInput;

[MENTION=439709]override[/MENTION]
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.vidurkio_skaiciuokle);

TextView mUserOutput = (TextView) findViewById(R.id.textView2);
TextView mUserInput = (TextView) findViewById(R.id.textView);

}

private void buttonEventHandler(View v) {
switch(v.getId()) {

case R.id.button1 :
mUserInput.setText(mUserInput.getText() + "1");
c = +1;
break;

case R.id.button2 :
mUserInput.setText(mUserInput.getText() + "2");
c = +2;
break;

case R.id.button3 :
mUserInput.setText(mUserInput.getText() + "3");
c = +3;
break;

case R.id.button4 :
mUserInput.setText(mUserInput.getText() + "4");
c = +4;
break;

case R.id.button5 :
mUserInput.setText(mUserInput.getText() + "5");
c = +5;
break;

case R.id.button6 :
mUserInput.setText(mUserInput.getText() + "6");
c = +6;
break;

case R.id.button7 :
mUserInput.setText(mUserInput.getText() + "7");
c = +7;
break;

case R.id.button8 :
mUserInput.setText(mUserInput.getText() + "8");
c = +8;
break;

case R.id.button9 :
mUserInput.setText(mUserInput.getText() + "9");
c = +9;
break;

case R.id.button10 :
mUserInput.setText(mUserInput.getText() + "10");
c = +10;
break;
}
}

public void computeAverage(int [] scores)
{
double average = 0;
for (int c : scores) {
average += c;
}

average /= scores.length;

mUserOutput.setText(Double.toString(average));
}
}

So when I press 1,2,3,4,5,6,7,8,9,10 it doesn't change any text..

Also if this not Q&A Forum please move it(Report it) Because I searched where i can post and only found here

My solution

mUserOutput = (TextView) findViewById(R.id.textView2);
mUserInput = (TextView) findViewById(R.id.textView);
[Java for Android App Development] nikwen:
Could you please post your xml file, too?

What happens if you add this to the switch statement?

default:
Log.d("switch", "default");
break;

Do you see it in the logs?

Btw, it is the right subforum. ;)
[Java for Android App Development] nikwen:
Ah, add this to all buttons:

android:[U][/U]onClick="buttonEventHandler"
[Java for Android App Development] nikwen:
Your buttonEventHandler method needs to be public.
[Java for Android App Development] Paulius7:
Still Force Close even Public void. Also When I go to "About" also crash

package com.leftas.vidurkioskaiciavimas;

import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.content.res.AssetManager;
import android.net.Uri;
import android.os.Build;
import android.os.Bundle;
import android.preference.DialogPreference;
import android.util.AttributeSet;
import android.util.Log;
import android.view.View;
import android.widget.EditText;
import android.widget.TextView;

import com.leftas.vidurkioskaiciavimas.vidurkioskaiciuokle;

public class About extends Activity implements View.OnClickListener {

TextView bug ;
[MENTION=439709]override[/MENTION]
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.about);
bug = (TextView)findViewById(R.id.textViewbug);
bug.setOnClickListener(this);
}

private String bugReport = "Description\n" + "===========\n" + "Enter Your Problem" + "\n" + "\nAdditional Info\n" + "===========\n" + "App version: "
+ "1.0" + "Device: " + Build.MODEL + "\n" + "Android version: " + Build.VERSION.RELEASE + "\n" + "Firmware fingerprint: " + Build.FINGERPRINT + "\n";

public void onClick(View v) {

Intent gmail = new Intent(Intent.ACTION_VIEW);
gmail.setClassName("com.google.android.gm","com.google.android.gm.ComposeActivityGmail");
gmail.putExtra(Intent.EXTRA_EMAIL, new String[] { "..." });
gmail.setData(Uri.parse("..."));
gmail.putExtra(Intent.EXTRA_SUBJECT, "Bug Report: Vidurkio Skaičiavimas");
gmail.setType("plain/text");
gmail.putExtra(Intent.EXTRA_TEXT, bugReport);
startActivity(gmail);
}

}

Xml

<?xml version="1.0" encoding="utf-8"?>

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical" android:layout_width="match_parent"
android:layout_height="match_parent"
android:baselineAligned="false">

<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceLarge"
android:text="Kurėjas:Paulius Karlonas(Leftas)"
android:id="@+id/textView"
android:layout_gravity="center" />

<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceMedium"
android:text="El.Paštas:...."
android:id="@+id/textView2"
android:layout_gravity="center" />

<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceLarge"
android:text="Radai Klaidų ? Rašyk"
android:id="@+id/textViewbug"
android:layout_gravity="center"
android:clickable="true"
android:onClick="onClick" />

</LinearLayout>

It's Lithuanian Language, So you could don't understand that ;)
[Java for Android App Development] nikwen:
Please post a logcat. (Just the part with the crash.) ;)

We need the information in it to help you.

---------- Post added at 12:39 PM ---------- Previous post was at 12:36 PM ----------

In the second example you already set a listener:

bug.setOnClickListener(this);

So no need for

android:[B][/B]onClick
[Java for Android App Development] Paulius7:
Problem is that I am programming in my phone with aide. I can see logcat but I can't copy it... maybe you know how to debug from ?
[Java for Android App Development] nikwen:
I developed with AIDE, too. I always used aLogcat for that.
[Java for Android App Development] Paulius7:
Now build with aide and even not start in Windows developing with android studio

I/PackageManager( 2911): Package com.leftas.vidurkioskaiciavimas codePath changed from /data/app/com.leftas.vidurkioskaiciavimas-2.apk to /data/app/com.leftas.vidurkioskaiciavimas-1.apk; Retaining data and using new
E/AndroidRuntime(26441): java.lang.RuntimeException: Unable to instantiate application com.leftas.vidurkioskaiciavimas.ApplicationContextProvider: java.lang.ClassNotFoundException: com.leftas.vidurkioskaiciavimas.ApplicationContextProvider
E/AndroidRuntime(26441): Caused by: java.lang.ClassNotFoundException: com.leftas.vidurkioskaiciavimas.ApplicationContextProvider
I/ActivityManager( 2911): Process com.leftas.vidurkioskaiciavimas (pid 26441) (adj 9) has died.

when I will be with pc will try to build and save logcat then.
[Java for Android App Development] Paulius7:
Sorry for double post...

Button logcat

E/AndroidRuntime( 3887): at com.leftas.vidurkioskaiciavimas.vidurkioskaiciuokle.buttonEventHandler(vidurkioskaiciuokle.java:96)
I/ActivityManager( 2911): Process com.leftas.vidurkioskaiciavimas (pid 3887) (adj 1) has died.
I/Icing.InternalIcingCorporaProvider( 4100): Updating corpora: A: com.leftas.vidurkioskaiciavimas, C: MAYBE
D/PackageAddedReceiver( 856): package added com.leftas.vidurkioskaiciavimas

Android Studio

09-01 17:35:06.414 5616-5616/com.leftas.vidurkioskaiciavimas W/dalvikvm: threadid=1: thread exiting with uncaught exception (group=0x41b202a0)
09-01 17:35:06.442 5616-5616/com.leftas.vidurkioskaiciavimas E/AndroidRuntime: FATAL EXCEPTION: main
java.lang.IllegalStateException: Could not execute method of the activity
at android.view.View$1.onClick(View.java:3704)
at android.view.View.performClick(View.java:4232)
at android.view.View$PerformClick.run(View.java:17298)
at android.os.Handler.handleCallback(Handler.java:615)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:4921)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1027)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:794)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.reflect.InvocationTargetException
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at android.view.View$1.onClick(View.java:3699)
... 11 more
Caused by: java.lang.NullPointerException
at com.leftas.vidurkioskaiciavimas.vidurkioskaiciuokle.buttonEventHandler(vidurkioskaiciuokle.java:96)
... 14 more

"About" I was didin't declarate in AndroidManifest
[Java for Android App Development] nikwen:
Is that the logcat for the clear button? If it is, this might be the solution:

Replace

mUserOutput.setText(null);
mUserInput.setText(null);

by

mUserOutput.setText("");
mUserInput.setText("");

There should be a different logcat for the other buttons though.
[Java for Android App Development] Paulius7:
Clear Button

Android Studio

4590-4590/com.leftas.vidurkioskaiciavimas E/AndroidRuntime: FATAL EXCEPTION: main
java.lang.IllegalStateException: Could not execute method of the activity
at android.view.View$1.onClick(View.java:3704)
at android.view.View.performClick(View.java:4232)
at android.view.View$PerformClick.run(View.java:17298)
at android.os.Handler.handleCallback(Handler.java:615)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:4921)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1027)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:794)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.reflect.InvocationTargetException
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at android.view.View$1.onClick(View.java:3699)
... 11 more
Caused by: java.lang.NullPointerException
at com.leftas.vidurkioskaiciavimas.vidurkioskaiciuokle.buttonEventHandler(vidurkioskaiciuokle.java:101)
... 14 more

ALogCat

E/AndroidRuntime( 2599): at com.leftas.vidurkioskaiciavimas.vidurkioskaiciuokle.buttonEventHandler(vidurkioskaiciuokle.java:101)
I/ActivityManager( 2911): Process com.leftas.vidurkioskaiciavimas (pid 2599) (adj 1) has died.

10

ALogCat

E/AndroidRuntime( 6531): at com.leftas.vidurkioskaiciavimas.vidurkioskaiciuokle.buttonEventHandler(vidurkioskaiciuokle.java:96)

All codes same just change : "number" of their line ;)...
[Java for Android App Development] nikwen:
Could you please tell me which line it is? (I mean the line in the source code, not just the number.)
[Java for Android App Development] Paulius7:
"Clear"

mUserOutput.setText("");

"10"

mUserInput.setText(mUserInput.getText() + "10");

If you want that ?
[Java for Android App Development] nikwen:
Yes, that's what I wanted. Thanks. :good:

That means that both TextViews are null. I guess that the Activity cannot find them.

Do you get a output in the logs if you replace your onCreate method with this:

[MENTION=439709]override[/MENTION]
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.vidurkio_skaiciuokle);

TextView mUserOutput = (TextView) findViewById(R.id.textView2);
TextView mUserInput = (TextView) findViewById(R.id.textView);

if (mUserOutput == null)
Log.e("output", null);
if (mUserInput == null)
Log.e("input", null);
}

---------- Post added at 10:13 PM ---------- Previous post was at 10:11 PM ----------

Oh, just saw a big mistake:

You always use @+id/...

However, @+id is just used to introduce new ids in the android:id attribute.

In all other cases use @id/ (without the +).

---------- Post added at 10:15 PM ---------- Previous post was at 10:13 PM ----------

One example (needs to be fixed for all views):

<TextView
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:id="@+id/textView"
android:layout_above="[COLOR="Red"]@id[/COLOR]/textView2"
android:layout_alignRight="[COLOR="Red"]@id[/COLOR]/textView2" />
[Java for Android App Development] Paulius7:
Fixed:

mUserOutput = (TextView) findViewById(R.id.textView2);
mUserInput = (TextView) findViewById(R.id.textView);

But now problem that don't change text(Input works but Output just don't output anything)

public void computeAverage(int [] c)
{
double average = 0;
for (int i = 0; i < c.length; i++)
{
average += c[i];
Log.d("TAG", "Average calculated");
}

average /= c.length;

mUserOutput.setText(Double.toString(average));
Log.d("TAG", "Showing average");
}

No log, too.

But output works

case R.id.button3 :
mUserInput.setText(mUserInput.getText() + "3" + "+");
mUserOutput.setText("3.0");
c = +3;
break;

It changes text.

I know that is nothing calling computeAverage how to do that when I click 10(It show only 10) and 9(It show 9.5 in output) that show mean(9.5) of these numbers ?
[Java for Android App Development] nikwen:
You need to cast the length to double:

public void computeAverage(int [] c)
{
double average = 0;
for (int i = 0; i < c.length; i++)
{
average += c[i];
Log.d("TAG", "Average calculated");
}

average /= ((double) c.length);

mUserOutput.setText(Double.toString(average));
Log.d("TAG", "Showing average");
}

For question #2:

Add another field "lastNumber" of type double to your class:

double lastNumber = -1;

Then do this in onClick:

case R.id.button3 :
c = +3;
if (lastNumber == -1) {
mUserInput.setText(mUserInput.getText() + "3" + "+");
mUserOutput.setText("3.0");
lastNumber = 3;
} else {
//call your computeAverageMethod here

lastNumber = 3;
}
break;
[Java for Android App Development] Paulius7:
My question just one, How to make that computeAverage will work ? because now none calling him so it's give no result(It don't change text when I click on buttons :/)

About Question #2 I just showed that mUserOutput works ;)

My English sucks.....
[Java for Android App Development] nikwen:
So what's working and what isn't?
[Java for Android App Development] Paulius7:
public void computeAverage(int [] c)
{
double average = 0;
for (int i = 0; i < c.length; i++)
{
average += c[i];
Log.d("TAG", "Average calculated");
}

average /= ((double) c.length);

mUserOutput.setText(Double.toString(average));
Log.d("TAG", "Showing average");
}

This class don't work because(I think none calling it) It just don't change "mUserOutput" text And in logcat it dosen't appear :) But everything else works ;)
[Java for Android App Development] nikwen:
OK, then try this:
[Java for Android App Development] Paulius7:
I think you don't get me :/ I need to that in mUserInput appear number that user clicked. And in mUserOutput shows average of that number ;) I don't need LastNumber I just need that somehow that "computeAverage" show average of written numbers :/
[Java for Android App Development] nikwen:
Another try:

Add this to your class:

double average = 0; //stores the current average
int count = 0; //stores the number of values used to calculate the average

Then in the buttonEventHandler method:

switch(v.getId()) {

case R.id.button1 :
mUserInput.setText(mUserInput.getText() + "1");
average = (average * count + 1) / ((double) count + 1); //calculate the average
count++; //one more number has been used to calculate the average
mUserOutput.setText(String.valueOf(average));
break;
... //your other cases like this

That should do the trick. You will not need your other method anymore.
[Java for Android App Development] nikwen:
For number 2 this will be:

switch(v.getId()) {

case R.id.button2 :
mUserInput.setText(mUserInput.getText() + "2");
average = (average * count + 2) / ((double) count + 1); //calculate the average
count++; //one more number has been used to calculate the average
mUserOutput.setText(String.valueOf(average));
break;
... //your other cases like this

---------- Post added at 09:00 PM ---------- Previous post was at 08:41 PM ----------

Hm, the code didn't work for you? I just wrote a small console program and it works for me:

import java.util.Scanner;

public class AverageTest {

static double average = 0;
static int count = 0;

public static void main(String[] args) {
Scanner s = new Scanner(System.in);
while (true) {
int i = s.nextInt();
average = (average * count + i) / ((double) count + 1); //calculate the average
count++; //one more number has been used to calculate the average
System.out.println(String.valueOf(average));
}
}

}

The code should be working for you, too. (In your Activity don't make the fields static.)

Did you really try the last code? (I changed it a few times.)
[Java for Android App Development] Paulius7:
I changed these two numbers :D I thinked about chaning to just one number but :DD
[Java for Android App Development] nikwen:
So does it work?

The change was for the second button. For the third one you will need to replace all 2s to 3s.