yashsingh1/xdaforums huggingface dataset:
[Samsung Galaxy S (4G Model)] manohar18:
My phone is stuck on the GalaxyS 4G screen after the flashing. When I try to take it to the download mode, it just reboots and comes back to the same screen. I get the rainbow thingy while the reboot happens. But, getting no where. Do you have any suggestions or my phone is totally screwed?

Thanks
[Samsung Galaxy S (4G Model)] SMASHERSONLY:
Download mode is vol down+power then plug usb in
[Samsung Galaxy S (4G Model)] manohar18:
Tried already. Doesn't work :(
[Samsung Galaxy S (4G Model)] Wes33:
I had to fuss with it a lot to finally get download to work... Try pressing power button + volume DOWN ONLY. (not up and down) also try removing the battery and inserting it with usb plugged in and power+ vol down buttons, have odin running on your pc when you do this as well. I also ended up having to use the "pit" file from the sgs4g bible thread to get it to flash correctly... Good luck!

I think I may have found an issue, tv out isn't working for me. :( I can select the option in settings> display but nothing shows up on the tv screen. The cable I have worked on my old vibrant, so I don't think it's the cable...

Can anyone else confirm this bug?
[Samsung Galaxy S (4G Model)] amalio357:
The sgs unlock app did mine the same way(no imei,no baseband,no signal).I tried EVERYTHING,finally i had to call tmo and get a new phone sent to me.sorry
[Samsung Galaxy S (4G Model)] blsimpson:
I had the same issue you were having, and all I did, with the phone off, was press the vol up + vol down and plug the USB cable in. It booted right into download mode..
[Samsung Galaxy S (4G Model)] manohar18:
Still doesn't work. I order a JIG. But the ebay guy is out of country :(
[Samsung Galaxy S (4G Model)] MrRuckus:
Sorry if this has been answered, but I didn't see it. Is there any difference between KF1 & KF2 regarding the Radio? I installed the KF1 via Heimdall and my radio likes to just die for no reason. Tried to make a call and couldn't, rebooted my phone to come back to 2 days worth of txt's I didn't know I wasn't receiving.

Netflix is nice, but the Radio cutting out and low wifi strength are making me look at possibly flashing back to Froyo. Just wondering if KF2 is any different or worth trying to flash compared to KF1. Thanks.
[Samsung Galaxy S (4G Model)] periwinklewishes:
Can someone please tell me how to get CWM now? I did the download the update.zip and extracted recovery, which I pasted onto /system/bin but whenever I try to go to recovery, the only options are

reboot system now

apply update from sdcard

wipe data/factory reset

wipe cache partition

Thanks!
[Samsung Galaxy S (4G Model)] jager555:
Krylons cwm is for froyo. look into dr honks kernel work cwm built in.
[Samsung Galaxy S (4G Model)] bloodfilledwatr:
I was able to flash this rom fine, except the rainbow screen you get when you boot the phone is also the same screen I get when using the camera. The camera view is all rainbow so you have no idea what you're taking a picture of. This also happens after a reboot and you unlock the phone and you get the rainbow screen until the media scanner is done than all is normal. This also broke the recovery.
[Samsung Galaxy S (4G Model)] stephen_w:
The KF-series were a bit funky. I'd suggest updating to a newer ROM. KJ6 is the most current.
[Samsung Galaxy S (4G Model)] bkoon1218:
Please don't necro this thread. It's gonna make people ask more questions about a ROM that doesn't work well.

Stick to the more popular things on the first page.
[HD7 General] trevor4:
I have an HD7 and I love it..but the thing I really hate (besides not having Flash support) is that I can't attach anything but pics to MMS messages and email. Can't attach sound clips, doc files..will Mango update allow for this? Or is there an XAP that corrects it?

Thanks in advance..
[Acer Iconia A500] cblockle:
I noticed MLB at bat 11 is listed in the market under editor's choice. Does it work for our Iconias? Last time I checked on the internet, honeycomb was not supported.
[Acer Iconia A500] acousticfish88:
ive been running it without any problems. Great app. Go Mariners!
[Acer Iconia A500] richdaley:
I have the app running but are you watching games? I don't want to pay for the mlb.tv subscription until I know that it will work because I went through the refund process with MLB a couple of years ago and I don't want to do it again.
[Acer Iconia A500] cblockle:
I echo the same question from the previous poster, does live streaming video work?
[Acer Iconia A500] rorytmeadows:
Yankees suck!
[Acer Iconia A500] acousticfish88:
This is from the FAQ in the app...

The following devices support MLB.TV. We will add new devices as they are released.

Sprint HTC Evo Sprint Samsung Epic Verizon HTC Droid Incredible Verizon Motorola Droid X Verizon Motorola Droid Verizon Motorola Droid 2 Verizon Motorola Droid Pro Verizon HTC Thunderbolt T-Mobile/AT&T HTC Nexus One T-Mobile Samsung Nexus S T-Mobile HTC Glacier (myTouch 4G)
[Android Software Development] iamsuper123:
I am a newbie in android dev.

I want to develop a very small and simple discount rate calculator.

in which there will be drop down menu with options like:

calculate 10%

calculate 20%

calculate 30%

Based on the selection of option from the drop down menu the discount rate should change.

After selection, there will be a textbox which should ask user to enter price.

and on the click even of "Calculate" button, the resultant amount (discounted rate) should be displayed.

I guess it is very simple for you guys. If anyone can help me with the code, i will deeply appreciate.

thank you
[Android Software Development] iamsuper123:
ok this is what I have done till now:

I created an Android Project names as :MyDC

MyDC.java

package com.super.mydc;

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

public class MyDC extends Activity {

private EditText amount1;
private double x=0;
private double y=2.0;
private double z=0;
private TextView tt;
private Button calculate;
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle icicle) {
super.onCreate(icicle);
// We want to view some very simple text, so we need a TextView
TextView tv = new TextView(this);
// Put some text to the newly created TextVIew
tv.setText("Test");
// Tell our Application to display the textView

this.setContentView(tv);

super.onCreate(icicle);
setContentView(R.layout.main);
initControls();

}

private void initControls()
{
amount1=(EditText)findViewById(R.id.amount1);

tt=(TextView)findViewById(R.id.tt);
calculate=(Button)findViewById(R.id.calculate);
calculate.setOnClickListener(new Button.OnClickListener()
{public void onClick
(View v) { calculate();}});
}

private void calculate()
{
x=Double.parseDouble(amount1.getText().toString());
z=x-(x*y/100);
tt.setText(Double.toString(z));
}
}

This is main.xml

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>
<Spinner android:layout_width="match_parent" android:layout_height="wrap_content" android:id="@+id/spinner1"></Spinner>
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="Enter the price"
/>
<EditText android:layout_height="wrap_content" android:id="@+id/amount1" android:text="" android:layout_width="match_parent"></EditText>
<Button android:text="Calculate Result" android:id="@+id/calculate" android:layout_width="wrap_content" android:layout_height="wrap_content"></Button>

<EditText android:layout_height="wrap_content" android:id="@+id/tt" android:text="" android:layout_width="match_parent"></EditText>

</LinearLayout>

This is string.xml

<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="hello">Hi, MyDC!</string>
<string name="app_name">My, DC</string>
<string name="spinner1">Choose discount type</string>

</resources>

This is what I am able to get:

I am able to calculate discount on the button click, BUT i have hardcoded the discount rate.

I want to select discount rate based on the dropdown menu (I don't know how to set dropdown values with different discount rate in this problem)

In the dropdown menu I would like to have values like this:

Type 1 discount

Type 2 discount

Type 3 discount

Here is the respective discount rate for the above drop-down values:

Type 1 discount - 10%

Type 2 discount - 15%

Type 3 discount - 18%

PLZ HELP ME
[Android Software Development] iamsuper123:
Anyone ? Please Help ?
[Android Software Development] {SBR}_L3GION:
Im sorry to not be of very much help I studied java as a highschool unfortunately it was senior year and I am good at slacking. I would like to add suggestions though. first off i would try to find someway of implementing a way to get closer increments such as 5 or 1 %. such as a text box. let me sift through your code and see what i can see. are you having specific errors or what. we need some info.
[Android Software Development] {SBR}_L3GION:
Ok i looked at your code and im having a hard time reading it just because it isnt the norm that I look at. first off ya need to name your variables more recognizable things then x and y. that will make coding immensely more easy. also I am not seeing where you gathered the information from the drop down or spinner. at some point in the code you have to collect the information from the drop down or spinner and use it for the percent. also i didn't see any point where you gave the drop down any values. if you have any questions or anything feel free to pm I have xda app on my phone so even if not im not online ill get a notification on my phone.
[Android Software Development] iamsuper123:
Hi,

Yes, I know I haven't defined values to drop down because that is the thing I need help with.

I also posted above this:

"Now the question is how to select discount rate based on selected value from spinner.

PLZ HELP ME WITH THE CODE"

I need help - How to define discount rate based on selection of drop down values.

Please help me with the code....
[Android Software Development] {SBR}_L3GION:
I also tried doing this quite awhile with an app I was writing and then discovered I had not enough experience to with the android system to write the program I should look it up and fix both of our programs but I've had a migraine for days and I'm just getting close to sleeping but when I get a chance I will look up giving values to the drop down and collecting them unless you want to google it first.

Sent from my Synergized xda Premium Evo
[Android Software Development] iamsuper123:
I have tried to find the solution on google but didn't get anything but somehow from google I was able to do (whatever I did above)

thanks, I think that would be great, if you can test my program on your side by that we both will be on the same page.

That's fine, you can test it whenever you get some time.

I appreciate your help!
[Android Software Development] Rootstonian:
I would setup radio buttons for the discount percentages

0 10% 0 20% etc.

Name each radio button and use a case statement to set a float to it's value:

switch(radioGroupName) {

case 10Percent:

int discountValue = .10

break;

...

Then do something like:

int discountedAmount = usersAmount - (usersAmount * discountValue);
[Android Software Development] iamsuper123:
Re: Need Help

Hello nemoc 23 ,

Firstly thank you very much for replying back with a solution.

It did work and solved my problem upto some extend.

Now what I only want 2 things to be done:

1) Right now, if we enter price in decimal or anything, if the final result is in decimal, it is being displayed as EXACT something like 99.9999999

How to limit the RESULT upto 2 decimal points only ?

2) What I am trying to do is to have this calculator on 3 different pages (in each page I will just modify the discounted rate). So I want a homepage (which will work as MENU) with 3 or 4 buttons and each button should be connected with specific page that will have ITS OWN above discount calculator.

Could you please show me how to create a homepage screen (which will work as MENU) and 3 or 4 buttons on it which are linked with different pages (in each page you can copy the same above calculator and I will modify the rate by myself)

thank you
[Android Software Development] Rootstonian:
Why 3 pages? Just do this:

Enter discount amount: ___________

Enter discount rate:______

Discounted Amount: ___________

Easy peasy. :-)
[Android Software Development] iamsuper123:
I know it is easy but it is not what I am looking for. My requirement is what I posted above. Thanks
[Android Software Development] iamsuper123:
Help

Hello nemoc 23 ,

Just giving you an update. I did try the tutorial you asked me to try. I am having some problem in it which you can see here: http://xdaforums.com/showthread.php?p=15612542

Coming back my question (this calculator topic) - I created a screen layout to give you an idea what I want to do and need your help with.

This is what I want to do:

In this each button click will open separate page (or I guess it is called activity). I have mentioned on button what each button will open.

Please help me. thanks
[Android Software Development] Rootstonian:
Intent i = new Intent(this, calculator1.class);

startActivity(i);

You are still better off creating just ONE new Activity and passing to it which calculator you want to run. It is poor programming to code 3 activities when one will suffice. You'll need "extras" to do this. :)
[Android Software Development] killersnowman:
You got a couple options. First instead of the startActivity() throw in a Toast so you can see if your onClick() is ok. You can also throw some inline clicklisteners (anonymous inner class) inside the setOnClickListener() instead of using 'this'. I find that way is a bit easier to organize.

Annd might I suggest you follow the Java guidelines for capitalisation of class names. Its confusing when reading your code and seeing testcalculator.class when usually instances of objects are lower case while the class name is capitalized. Like TestCalculator.class

From something awesome
[HTC EVO 3D] simosezj:
Ok, so I have been on Sprint now for about 3 months now, I want a EVO 3d bad since sense 3.0 isn't very smooth on my EVO 4G. How would I go about with talking Sprint to let me upgrade for $200? Since I have not been with them for that long.
[HTC EVO 3D] sand1303:
well since u have been with them for more than 30 days you have nothing to leverage with. u have to wait or open a new line
[HTC EVO 3D] simosezj:
I guess I will have to look around on amazon. Soon I will be rocking that wonder of a phone.
[HTC EVO 3D] Alanmw86:
why on earth would you deserve another discount you just got one 3 months ago.

sell your phone on ebay and put it towards a new phone.
[HTC EVO 3D] JTNiggle:
+1

To even attempt to get an early upgrade, you need to be at least 6 months into your contract.
[HTC EVO 3D] stkiswr:
Lol ok, I'm 9 mo in, my wife has been w Sprint for 10 years...what do I do? Complain? Haha. That E3D is nice! Anyone that hates their locked E3D i'll gladly trade my unlocked EVO 4G to ya hahaha
[HTC EVO 3D] demo27vol1:
If your wife has been with sprint for 10 years then she might be able to get the EVO 3d for you haha.
[Thunderbolt Q&A, Help & Troubleshooting] flooritnfly:
Hi.

I am about to unroot and go back to otb stock. I am wondering if anyone knows for sure when the random reboots that I, and several others encounter, first started because I need to know whether to do the OTA after I go back to stock.

From my memory....... :

Wasn't there 2 OTA's?

And the random reboots started after installing the 2nd one?

So should I just install the first one.......orrrr......does it automatically only give one OTA direct to the 2nd one released?

Or should I not install any OTA's at all and patiently wait for Gingerbread........

:confused:

Thanks!
[Thunderbolt Q&A, Help & Troubleshooting] Beastclaw:
We have MR1, MR2, and MR2.5 but I think only MR1 was an official OTA (dont quote me on it tho since I have been rooted since I got the phone and have never received an OTA). I think the reboot issue has been a problem for a lot of people for the entire time and isnt a new thing. IIRC MR1 caused quite a few reboot issues but not for everyone. I personally ran w/o any reboots until I got to 2.5 and even then I have only ever had 1. Its just what works best for you.

You will be waiting patiently for quite a while for official GB from what I have heard on the boards but you can always try out some of the GB ROMs that we have already.
[Thunderbolt Q&A, Help & Troubleshooting] GMoGoody:
You are correct Beast there has only been one official OTA. My wife is not rooted but I am
[Thunderbolt Q&A, Help & Troubleshooting] flooritnfly:
Well I went back to stock because I was gonna try to go to Verizon today and swap it out.....
[Thunderbolt Q&A, Help & Troubleshooting] panzerfist:
I find it funny this exactly what I was going to ask today myself. I'm also running bamf remix 1.8, have tried all the radios and even installed bamf 2.0 for GB with the Mr 2.0/2.5 radios. Still got reboots. Now I want to go back to stock and unroot so I can go back to the store and swap it

Just wonder if its worth it, maybe if they let me swap SD cards
[Thunderbolt Q&A, Help & Troubleshooting] dbow32:
I just un-rooted my phone about two days ago. After, I did the OTA update. I hadn't seen any problems until today. I live in a 4G area and work in a (up until Monday) 3G area. Since Monday they have been testing out a 4G tower. I have had 4G until this morning, I just figured that they were still testing it out and had switched it off. Well, about an hour ago I got my first Reboot. When the phone came back up I noticed that the 4G had just came back on. I'm pretty sure that's what triggered my reboot. So in short, as long as they keep the 4G going I don't have any issues.
[Thunderbolt Q&A, Help & Troubleshooting] panzerfist:
Just curious is the update worth doing? And if i do it do i go ahead and install the GB bamf rom and radio? or just go back to my current 1.8 remix?
[Thunderbolt Q&A, Help & Troubleshooting] 1Android:
im curious what you guys have your phones overclocked at? I am rooted on the RC3 bamf 3.0 and the only time I have seen reboots is when i had my phone overclocked to high. now that im at 1.42 on the bamf cpu (I disabled my setCPU) and it has been solid.
[Galaxy Tab Q&A, Help & Troubleshooting] JStiner:
http://yfrog.com/h4lguipj

Screen shot of my Tabs about screen

Hahaha why does my Samsung Tab thing its an HTC vision?

send from GTP1010 Rooted, Froyo.
[Xoom Android Development] solarnz:
Team Tiamat Xoom Rom​

First off a note from brd himself :

This rom is presented to you buy the following winners:

bigrushdog

solarnz

TDR

MAD Industries

Nusince

Steady Hawkin​

Special mentions:

Roach`- Without him, we would be nowhere!

Kelvie - Thanks for the wpa_supplicant

Steady Hawkin - Init.d support

Jewremy - For the battery circle mod

Bazar6 - For fixing up the icons left over from themeing.

And now the rom!

Rom Features

This is a completely deodexed rom, based on the 3.2 wifi system image. However just because Google and Motorola haven't released 3.2 for the verizon xoom that doesn't mean we don't support it! Thats right. We support 3g devices on 3.2 before Google have even released it.

EPIC features

NATIVE 3G SUPPORT

SDCard support via mtp. NOTE: your sdcard will now be at /mnt/external1

Modified application permissions to allow applications that can write to /sdcard to write to /mnt/external1

USB OTG (On The Go) support. Your usb drives will now be mounted automatically under /mnt/usbOTG

Android media services scan both internal and MicroSD for media (Gallery, Music, etc)

Fast boot times. Your boot times are simply amazing with this rom!

Storage controls in the notification area and in the settings menu!

General Features

Powered by Tiamat Kernel Katana 2.0.0.

Pre rooted with su and Superuser

Pre-installed busybox and iwmulticall.

Desktop UA String

Modified battery images & animations.

Wi-Fi Ad-Hoc Mode

Quickboot

Estrongs File Explorer

Easy charging light controls

Advanced Features:

Init.d boot scripts enabled

OpenVPN binary and script - Credit CyanogenMod

Applications files (apk) located in /data/tiamat_first_boot_install will automatically be installed.

Applications are zipaligned on boot

Cron service

Important Notes : A MUST READ

Your microsd card is now mounted at /mnt/external1. You will also be able to access this via MTP.

Unless you are upgrading from 1.1 or an private beta, you will need to wipe.

If you're on a EURO 3G device, please note that this rom should install the correct build.prop for you, but you will still need to backup & push your telephony databases. See here.

We know about the layout changes in applications such as Settings. This is due to how we had to decompile framework-res.

Installation Instructions

Prerequisites: Clockworkmod Recovery (Recovery 3.2.0.0 R4C is still reccomended) and a MicroSD card for installation.

OPTIONAL, BUT RECCOMENDED: Backup your internal applications with Titanium backup

Download the 2.0 Rom and the 2.0.1, and place it on your external sdcard

Restart into Recovery

Perform a nandroid backup, and keep this safe!

Perform a factory reset within recovery (Wipe data / factory reset) NOTE: Only required if you're not on the 1.1 rom.

Install the rom

Install the 2.0.1 Update zip.

Welcome to the party
[Xoom Android Development] bigrushdog:
​

Bigrushdog's Tiamat Rom Enhancement Section

Thank You For Supporting Team Tiamat!

Welcome Xoomers! Here is my little spot where you may find all sorts of Tiamat goodies that, for whatever reason, didn't make the release rom. Also, you may find my own tips, trick, even some Official Tiamat Xoom Rom Art. Stop by from time to time!​

These mod packs will only work for their specific rom version. I.E modpacks for 1.1 WILL NOT WORK on 2.0

Tiamat Xoom Rom v1.1 Mod Pack 1

Tiamat Xoom Rom v1.1 Mod Pack 1 Change Log

Added "Native Screenshot"!

You can now take screenshots with your Xoom. Enable the feature in Settings / Display. To take a screenshot, press and hold the "Recent Apps" button for about 4 seconds. You will get a popup indicating the shot was taken and asking if you would like to keep the service running. The shots can be found in /sdcard/screenshot.

Added "Power Button Reboot Options"

I grabbed this from my buddy Roach`, developer of Prime!1.5 Rom for Transformer. Although i plan on further enhancing this feature, it works for now :p :p :p Press and hold the Power button. Your menu will give the opportunity to power down or reboot into recovery or cancel. It's not bad for first time around. Later, we will have a full featured Shutdown Menu.

Added "Maps won't update" fix

Sorry about that one guys. And yes, to whoever posted it, I should have put Maps.apk in data/app. You get 10 Tiamat Points! Ok. This simply removes Maps.apk from system/app and installs the updated Maps.apk in data/app.

Added "Swype won't download" fix

Changes Browser UAString in framework-res.apk from modded Desktop default to Mobile default. This is needed to download Swype from their network. Install Mod Pack 1 first and reboot. Then go back into recovery and flash the Swype fix. One you have Swype up and running. Go back into recovery and flash Mod Pack 1 again if you wish to return to Desktop default UAString. If you wish to stay on Mobile default, no further action is needed.​

Downloads

Download Tiamat Xoom Rom v1.1 Mod Pack 1

Download Default Browser UAString Swype Fix​

NOTE: I apologize to themers out there, but this pack does contain a modified framework-res.apk. I had to add some strings for the reboot mod. You should be able to get away with just grabbing the resources.arcs and dropping into you're themed fw-res.​

Tiamat Xoom Rom Art Album

Tiamat Xoom Wallpapers

Much love and credit goes to MadIndustries and Nusince, our Tiamat Graphics Design Team. They are very talented indeed.

​

Tiamat Xoom ADW Wallpapers

​