yashsingh1/xdaforums huggingface dataset:
[ONE Android Development] srps:
Apparently this isn't the production build, but the final pre-production build. Phones sold to public will be sold with the next update installed, at least that's implied by the message:
[ONE Android Development] graffixnyc:
I uploaded them to dev host now. Mega doesn't let me see how many people have DL'ed it
[ONE Android Development] srps:
Dev Host links are working, thanks a lot ;)
[ONE Android Development] Rmaier14:
thanks for your post, awaite invite, then buying and testing.
[ONE Android Development] ayysir:
anyone mind adb pulling mixer_paths.xml, media_profiles.xml and audio_conf from this final build for me?

very much appreciated
[ONE Android Development] graffixnyc:
Sure.. where is the audio_conf? In that same dir I have audio_effects.conf, audio_policy.conf is it in a different dir?
[ONE Android Development] ayysir:
should all be in system/etc folder
[ONE Android Development] graffixnyc:
yeah then it's not there only audio_policy.conf and audio_effects.conf

Media_profiles: https://www.dropbox.com/s/3imu2xo4k2k6ebb/media_profiles.xml

mixer path: https://www.dropbox.com/s/eqrd0a1z0q07pbb/mixer_paths.xml

Audio effects: https://www.dropbox.com/s/eyopy7gcuic30oq/audio_effects.conf

Audio policy: https://www.dropbox.com/s/94ewo086v40fn9o/audio_policy.conf
[ONE Android Development] ayysir:
thank you sir
[ONE Android Development] 0.0:
if I ever want to go back to stock everything for RMA purposes, all I need to do is load the fastboot img and it'll restore the phone to factory condition?
[ONE Android Development] webgrafx:
Hi graffixnyc,

I wanted my OnePlus One flashed with this rom: http://xdaforums.com/showthread.php?t=2772511

I'm locked in bootloop.

And now I can not go back to cyanogenmod cm11s via your method.

Look at my screen :
[ONE Android Development] graffixnyc:
Your bootloader is locked.. You need to unlock your bootloader first..Hence the "Failed.. device not unlocked" message you see there.
[ONE Android Development] webgrafx:
Yet it is unlocked with this command: fastboot oem unlock

But I can more TWRP restored and told me that I have not installed OS

Not possible to give me an ADB command sideload with zip cm11s?
[ONE Android Development] graffixnyc:
It's not unlocked.. That's why you are getting that failed error.. I don't know why it's not unlocked if you ran fastboot oem unlock but that failed message in your screen shot means the bootloader is not unlocked. Sorry, I don't have time to make a zip
[ONE Android Development] HtcBigRex:
For the italian users: http://www.smartylife.net/guida-installazione-cm11s-oneplus-one/
[ONE Android Development] vivek_201280:
Hi Graffix

question, once I have flashed the fastboot zip using the individual commands, I can flash teh OTA zip using TWRP or stock recovery ? or is there is any method to flash it?

thanks for your help,
[ONE Android Development] oscarmalo:
I have ver CM11.XNPH16Q (April 16) and wanted to upgrade.

Can I have to say as?

thanks

[MENTION=3537886]graffixnyc[/MENTION]

Explain in detail please
[ONE Android Development] Indicious Flow:
Unable to flash the update on TWRP :(
[ONE Android Development] C13v3r0n3:
it says in the instructions that it can not be flashed in recovery and must be flashed from fastboot.
[ONE Android Development] jammyjamil:
Help plzz developer

i have 64 gb oneplus one. i flashed cm11s over color os. but now my internal memory is only showing 12 gb instead of 57 gb which was showing on color os! What to do? plz help Dev
[ONE Android Development] maurydes:
backup on pc, flash rom/flash gapps and format internal memory and reboot ,if dnt work possibility 2 is flash via fastboot userdata.img (specific from 64gb):good:
[ONE Android Development] luv4greenleaves:
If I root my phone and install a custom recovery, I will not be able to get official updates correct? How would I be go about getting the updates? I'm coming from a note 2 in which I had it rooted and had cwm installed. I am very familiar with flashing via zip files but this fastboot is new to me..

---------- Post added at 02:18 AM ---------- Previous post was at 02:17 AM ----------
[ONE Android Development] bellatrixue:
Help with Flashing CM11S

Guys,

I really need your help. :(((

I tried to flash to the new cm-11.0-XNPH25R-bacon-signed-fastboot but i can't get past system.img. Now my phone doesn't have any OS. tried adb but it keeps detecting as host. I've manage to flash twrp but still don't know what to do. please help.

The Error :

./fastboot_Mac flash system system.img

sending 'system' (765700 KB)...

FAILED (remote: data too large)

finished. total time: 0.003s

Please help. Now my OPO can't boot into a system. only fastboot and recovery.
[ONE Android Development] katinatez:
Simple grab a ROM of your choice and flash in recovery.
[ONE Android Development] Mikey:
Is this the update, 25R?
[ONE Android Development] lemonspeakers:
Where can we find 25R.
[ONE Android Development] m3dd0g:
Here CLICK scroll down and you will find it.
[ONE Android Development] zee24:
Hey this isnt the final build... where can we get that?
[ONE Android Development] dictionary:
Are you serious about life? The post RIGHT before yours ..
[ONE Android Development] zee24:
Lol saw it after I posted
[ONE Android Development] teh roxxorz:
All detailed here:

http://xdaforums.com/oneplus-one/general/64-gb-storage-internal-listings-t2818560
[ONE Android Development] tdamocles:
lost baseband.....which file(s) to fastboot?

which files to fastboot?
[ONE Android Development] sharingspider:
This is based out of 4.4.3 - Correct me if I'm wrong
[ONE Android Development] Ok_Kaleidoscope5109:
Stop replying to this thread. XNPH22R was the retail release and not to mention XNPH25R is out already.

you might as well go bump CM 7.1 threads if you want.
[ONE Android Development] tsang_alan:
In fastboot mode,

fastboot format userdata.img

it will solve the problem.
[ONE Android Development] Murrda:
This is funny reading all the posts.. It amazes me how this like a Nexus device are the most n00b friendly developer friendly crack flashing friendly devices and yet so many people are so lost lol... The quoting the OP is perfect also lol.... Oh boy......
[ONE Android Development] 7ewis:
Why don't they put a flash-all.sh with it like Google does?

It would make it so much easier to flash, without having to manually type all the commands in.

I 'made' one myself, but I don't see why it wasn't included by default. I'm fairly new to the Android scene, and wouldn't have known what to flash without this post, on my Nexus there were a lot less files that you needed to flash. And it came with the script that could do it anyway!
[ONE Android Development] Slorks:
Question,

Has anyone flashed the fastboot images on their phone and have it go from 64GB to 16GB? I have a black 64GB and when I wanted to restore it back I flashed the images from here to get the OTAs then root again. When I flashed, in the memory storage it shows now that I have 16GB instead of 64GB.

When i connect it to the computer it shows that I have only 16GB (12GB) of actual storage.

Anyone?
[ONE Android Development] Heisenberg:
This has been spoken about a fair bit here, there's a thread with the right userdata zip that you can flash. I'm sure with the right search terms you could find it.

Transmitted via Bacon
[ONE Android Development] plantunes:
I'm getting the same error... can anyone help me getting past this? Please help me...
[ONE Android Development] bellatrixue:
Its your fastboot file. Are you on Windows or Mac. Search and install them correctly and you wont have that proble . Im sure. Will help once i get back on the exact link
[ONE Android Development] plantunes:
Thanks!!!! Done that...and it's already up and running!!! :good:
[ONE Android Development] DAHAKA20372:
hi, does anyone has fresh links for the download, above provided links are dead
[ONE Android Development] ze7zez:
This thread should be long ago:

- moved to another department for substantive reasons,

- closed due to the lack of active OP links in the first post

You can find the links in the thread Mirrors for official Cyanogen roms and OTA updates.
[General Topics] RubbaBand:
if you have a slow internet connection and the connection keep closing on your download or your download fail and you cant resume

here is the solution

you gonna need INTERNET DOWNLOAD MANAGER

go to Download tap > Options > Sites logins tap > Click NEW

write this link >> dl.sammobile.com

and >> dl2.sammobile.com

then write your user name and password

you are ready to Resume :highfive:
[General Topics] KillerJM249:
Tnx man I was going crazy without resuming ^^
[General Topics] RubbaBand:
anytime bro ;) hope you enjoy downloading
[General Topics] vincowoo:
Thanks Man spend the whole night in downloading firmware from begining again and again :( and now i know how to resume :)
[General Topics] PremiumISM:
Thanks bro. It should work for me bcz i hve reached 89% download
[General Topics] ChickNrippR:
sammobile free download manager

Free Download Manager also does the job - and it's free! Just fill in your login credentials and load away ... :victory:
[General Topics] orathorn:
Is it the sammobile account or pc account because i entered the sammobile accout it just keep asking me for login again.... T_T
[General Topics] RubbaBand:
its the sammobile account, you need to write the website "dl.sammobile.com" with your login
[General Topics] Interface23:
Trying this method tonight . Today fails five times downloading. If tonight work i will gonna kiss ya.:D
[General Topics] Interface23:
Perfect, its worked. :D
[General Topics] Muhammed Shajeer:
thank you bro..im trying to download a firmware file and i was so much fed up with this disconnect and restart problem from sammobile..im trying your method..hope it works..:good:
[General Topics] Emraan786:
idm wants email and password

where is

go to Download tap > Options > Sites logins tap > Click NEW

write this link >> dl.sammobile.com

and >> dl2.sammobile.com

then write your user name and password

you are ready to Resume

please help me with this
[General Topics] cherremvp:
Thanks, it works !
[General Topics] mandayugana:
You save my day. My 614/672MB download failed. :(

I did similar method using uGet in Linux. Here's what I did.

In browser

1. Login in sammobile from browser.

2. Get the download link from sammobile.com

3. Export the cookie to a .txt file

In uGet

4. Add new download, link (2)

5. Open properties of the download > Advanced. Set "cookie file" field to the exported cookie file (3)

6. Start download

Man. Thanks a lot.
[General Topics] sorry18:
need help getting it to work with freedownload manager.

what did you meed i have to write this link? where?

dl.sammobile.com

login user nad password has been entered still denied.
[General Topics] ChickNrippR:
First you need a valid login to sammobile.com.

After registration log in and choose your ROM and follow "Regular Download". When FreeDownloadManager pops up, you need to fill in your credentials again.

Then hit OK and your download will be added to FDM and is ready to start.
[General Topics] cpedinsantos06:
Thanks man!

This helped a lot! :good::laugh:
[General Topics] amged2012:
Thank you :)

it helped me too
[General Topics] Basrawi96:
thanksssssssssssssssssssssssss
[General Topics] Normusmaxamus:
Thankyou Very Much :D
[Xperia Z2 Q&A, Help & Troubleshooting] duk3r:
It's too bad that the superior auto mode only works on 8mp. Is there any way to get it to work on higher resolutions?

I saw in the Z1 thread that they achieved it somehow a while ago but I do not know if the result is equally good.

Also, selecting HDR or some of the scenes in manual mode would be great as well.

Could it be done somehow?
[Xperia Z2 Q&A, Help & Troubleshooting] KrisPerry:
I'm pretty sure there's an xposed module for this
[Xperia Z2 Q&A, Help & Troubleshooting] Jackos:
Yup. There is.
[Xperia Z2 Q&A, Help & Troubleshooting] duk3r:
For the z2?or it is the same as the z1's?
[Xperia Z2 Q&A, Help & Troubleshooting] se1000:
Same as the Z1 module, works fine.
[Xperia Z2 Q&A, Help & Troubleshooting] duk3r:
Thanks a lot!
[Xperia Z2 Q&A, Help & Troubleshooting] KrisPerry:
Don't be scared to press the thanks button lol ?
[Xperia Z2 Q&A, Help & Troubleshooting] KyleSforza:
Here you go xD

http://www.xda-developers.com/andro...mctr=(not provided)&__utmv=-&__utmk=157388733
[Android General] Mohamed Yaser:
just go there dont forget to hit thanks

http://xdaforums.com/showthread.php?t=2764798
[Android General] hackernor:
That was a helpful tutorial!
[8525, TyTN, MDA Vario II, JasJam General] cyberzeus:
My sony ericcson has a flash that you can turn on like a flash light. Does anyone have or know of a software or hardware solution to be able to work the light with out going thru the camera software.
[8525, TyTN, MDA Vario II, JasJam General] vijay555:
I think VJCandela works on Hermes.

I've never tested it, I don't have one :(, but Paul from Modaco said it does.

V
[8525, TyTN, MDA Vario II, JasJam General] jeremymacmull:
yup i use vjcandela lite mapped to a harware button it works well on my vario II

JEREMY
[8525, TyTN, MDA Vario II, JasJam General] cyberzeus:
light

Thanks for the suggestions, I am going to work on it!!
[8525, TyTN, MDA Vario II, JasJam General] mrvanx:
Having read the website id think twice about using it since the LED WILL be damaged over time according to the developer.
[Java for Android App Development] mohamedrashad:
You are new to java development and want to get buttons working?

Maybe you are a Pro but want a reminder?

whatever you are this Guide is to help you to make buttons/check boxes...etc working and functional

Some people are distracted between guides over internet and want the easiest way to get their project working, me too :p

Steps :

1-Define the button :

Button btn1;
Checkbox chkbox1;
RadioButton radio1;

2- Intialize it :

btn1 = (Button) findViewById(R.id.btn1);
chkbox1= (Checkbox ) findViewById(R.id.chkbox1);
radio1= (RadioButton) findViewById(R.id.radio1);

3-Add the listener :

Button:

btn1.setOnClickListener(new OnClickListener() {

@SuppressWarnings("deprecation")
@Override
public void onClick(View arg0) {

//Write awesome code here
}
});

CheckBox :

chkbox1.setOnClickListener(new OnClickListener() {
public void onClick(View v) {

if (start.isChecked()) {

//if the checkbox checked

} else {

//if not checked
}
}
});
}

radio button:

public void onRadioButtonClicked(View view) {

boolean checked = ((RadioButton) view).isChecked();

switch(view.getId()) {

case R.id.radio1:
if (checked){

}
else{

}

break;

}
}

or use it in a radio Group :

public void onRadioButtonClicked(View view) {
// Is the button now checked?
boolean checked = ((RadioButton) view).isChecked();

// Check which radio button was clicked
switch(view.getId()) {
case R.id.radio1:
if (checked)
//Write code
break;
case R.id.radio2:
if (checked)
//Write code
break;
}
}

Also insted of this you can use a onCheckedChanged for a radio button (Thanks for GalaxyInABox)

@Override
public void onCheckedChanged(RadioGroup radioGroup, int i) {
switch (radioGroup.getCheckedRadioButtonId()) {
//Code
}
}

____________________________________________________________________

____________________________________________________________________

Also you can implement a Onclicklistener for the whole class to save resources : (thanks for [MENTION=4184142]Jonny[/MENTION] )

after defining and initializing your objects add this :

OnClickListener click_listener = new OnClickListener() {
public void onClick(View view) {
int id = view.getId();
if (id == your_id) {
//do stuff for this object
} else if (id == your_id2) {
//do other stuff for diffrent object
} else if (id == your_id3) {
//and so on
}
}
};

To do list :

-add on touch listeners

-add on drag listeners

Note : you can add a click listener to almost any thing (Textview or imageView or even EditText) just using the same method of adding listener to button

also there is some other ways to add a listener but this is the fastest and less disturbing :good:

If this guide is useful, press thanks :D
[Java for Android App Development] sak-venom1997:
@ OP

CheckBox and RadioButtons don't they provide a CheckedChangeListener ?
[Java for Android App Development] giuliomvr:
Yes, and now you can use

@Override
public void onCheckedChanged(RadioGroup radioGroup, int i) {
switch (radioGroup.getCheckedRadioButtonId()) {
//Code
}
}

to get the checked button. They are pretty much the same, but you can use view.getTag() easier in the first one.

And [MENTION=4954352]mohamedrashad[/MENTION] please show how to put the listener into a inner class. Many people don't know/use it, but it's that useful!
[Java for Android App Development] sak-venom1997:
I meant that the op shuld edit this guide and use those instead of OnCickListeners :cool:

ya new with java8 it will be a nice usage scenario of lambadas :D
[Java for Android App Development] mohamedrashad:
ok, i will add this
[Java for Android App Development] rafalniski:
You can also add onClick property in XML and then handle it in a code.
[Java for Android App Development] brian.houaiss:
Awesome tutorial! Thank you very much!

Please, you could share more related knowledge. It's really useful!
[Java for Android App Development] SKAm69:
Also, an activity can be a listener. In this case:

MyActivity implements onClickListener {

btn1.setOnClickListener(this);

public void onClick (View v) {

//your code

}

}
[Java for Android App Development] Tolriq:
For this kind of stuff, using some well known libraries from well known Android dev is a must.

https://github.com/JakeWharton/butterknife

Very powerfull, super easy to use, error prone and without any performance impact.
[Java for Android App Development] mohamedrashad:
will add them both, although I don't like this way :p
[Java for Android App Development] hacimurat:
Mohamedrashad. Thanks a lot.
[Java for Android App Development] Jonny:
If you have multiple clickable objects then it's best to use just 1 onClickListener for all of them and use a switch on their ID's. This reduces resource usage as you only have 1 listener, not 5, 10 or however many you would have otherwise. It's not essential for this but it is a best practice if you want to streamline your code.

Mobile right now so I can't chuck up an example until tomorrow evening or so.
[Java for Android App Development] fikmus24:
You dude had a great thread. Its helping me. Bravoo !!
[Java for Android App Development] giuliomvr:
As [MENTION=4184142]Jonny[/MENTION] already pointed out: Use your class as a listener instead of creating a new (anonymous) inner class! Say you have a ListView, instead of doing this:

class MyFragment extends Fragment {
private void someMethod() {
((ListView) getView().findViewById(R.id.someListView)).setOnItemClickListener(new AdapterView.OnItemClickListener() {
@Override
public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
//Code...
}
});
}
}

you can do this:

class MyFragment extends ListFragment implements AdapterView.OnItemClickListener, View.OnClickListener {
private void someMethod() {
((ListView) getView().findViewById(R.id.someListView)).setOnItemClickListener(this);
}

@Override
public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
//Code...
}
}

This may look stupid, but when you have many listeners, you can un-clutter it. In my opinion this is the best way. You can also add "this" class as listener for as many ui elements as you want(because all of them extend view, you can use one OnClickListener), then you only need to have a switch statement to distinguish between the views. And voila, you prevented cluttering the code with boilerplate stuff.
[Java for Android App Development] Jonny:
Example using code in an app I'm making - app for my school.

@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {

// Some code here for view/layouts etc

websitebutton = (Button) view.findViewById(R.id.website_btn);
facebookbutton = (Button) view.findViewById(R.id.facebook_btn);
twitterbutton = (Button) view.findViewById(R.id.twitter_btn);
websitebutton.setOnClickListener(handler);
facebookbutton.setOnClickListener(handler);
twitterbutton.setOnClickListener(handler);

return view;
}

OnClickListener handler = new OnClickListener() {
public void onClick(View view) {
switch (view.getId()) {
case R.id.website_btn :
Uri website = Uri.parse("http://wirralgrammarboys.com/");
Intent websiteintent = new Intent(Intent.ACTION_VIEW, website);
startActivity(websiteintent);
break;
case R.id.facebook_btn :
Uri facebook = Uri.parse("https://www.facebook.com/WirralGSB");
Intent facebookintent = new Intent(Intent.ACTION_VIEW, facebook);
startActivity(facebookintent);
break;
case R.id.twitter_btn :
Uri twitter = Uri.parse("https://twitter.com/WGSB");
Intent twitterintent = new Intent(Intent.ACTION_VIEW, twitter);
startActivity(twitterintent);
break;
}
}
};
[Java for Android App Development] mohamedrashad:
i'm adding this to OP if you don't mind jonny :cool:
[Java for Android App Development] Jonny:
That's fine - if I didn't want people to use/adapt/learn from the code then I wouldn't put it up, use it as you want ;) :good:
[Java for Android App Development] DeathW1SH:
Keep it up

Great tutorials, keep em coming!
[Java for Android App Development] Rebound.co:
Hey what about starting a new activity with onClickListiner

---------- Post added at 03:57 PM ---------- Previous post was at 03:49 PM ----------

Hey and do u mind sending a source codes.zip file
[Java for Android App Development] Jonny:
in the onClick method just have this code:

startActivity(new Intent(this, YourActivity.class));
[Xperia Z2 General] sud.vastav:
This is an Index

Thread Navigation:

FAQ:

*Why an Index when we have DevDB?

-Because not all projects are posted under DevDB.

*Can we ask related to ROMs/Kernels/Mods/Tools here?

-No! Post your questions in the respective ROMs/Kernels/Mods/Tools Q/A thread or in Xperia Z2 Q&A, Help & Troubleshooting

*Which is the best ROM for my Xperia?

-Best ROM

*I'm new to XDA. What should I do first?

-Read the forum rules. Forum Rules.

*My work isn't listed here/You missed some ROM/Kernel etc. What should I do?

-PM me or post in this thread.

*I just bought my Z2. Where should I proceed to get started?

-This place. [Info/Ref] All you need to know/Guide to Z2. Credits for the guide [MENTION=4895687]Envious_Data[/MENTION]

*Where can I find Stock Firmwares(ftf) for my device?

-Head over to this thread. [FTF] STOCK FIRMWARES for Xperia Z2 (D6503/D6502/SO-03F). Don't forget to thank [MENTION=838895]norti[/MENTION] for his useful thread.
[Xperia Z2 General] sud.vastav:
Kernels

Kernels

*[KERNEL][Sony LP] Abricot kernel

*[KERNEL][D6502/D6503/D6543] AndroPlusKernel

*[CM/CM based][GPU+CPU OC][5.0/4.4]M5 Kernel

*[KERNEL][CM/CM based][CWM]M5-Kernel

*[KERNEL][Z2] DooMKernel

*[FW 402][UB][6502/6503]YadliKernel, almost stock, slight undervolt, notification light mod​

​