yashsingh1/xdaforums huggingface dataset:
[Android Software Development] Rootstonian:
Based on user input, I have to add x number of buttons to a xml file. I have the file hard-coded now and it works, but I need to add the buttons via the program. Do I have to create the ENTIRE xml file via code?

Here is a snippet..actually, the Button and TextView are what I have to create on-the-fly x number of times.

<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
>

<HorizontalScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"
android:layout_height="fill_parent"
>

<TableLayout
android:id="@+id/myTblId"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
>

<TableRow>

<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/person1"
android:text="Rick"
android:onClick="onClick"
/>

<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:paddingLeft="10px"
android:id="@+id/item1"
/>

</TableRow>

Thanks in advance :)
[Android Software Development] Chalup:
You can just add the individual views from within your code. To help identify them, you can use the tag feature. I.e. make the first button's tag "b1", etc.
[Android Software Development] Rootstonian:
Well, I got the program to create 2 buttons for me. I don't want to use setID because it's just an int and I don't want to do case statements on "case 1: case 2: yada, yada"...it's too confusing. So, in the code below, I use setTag. However my onClick method is not working when I click on a button.

for(int i = 0; i < numDrivers; i++) {

Button button = new Button(this);
button.setTag("driver" + i+1); // should be "driver1"
button.setText(driverList.get(i));
button.setClickable(true);
button.setLayoutParams(new LayoutParams(
LayoutParams.FILL_PARENT,
LayoutParams.WRAP_CONTENT));

table.addView(button);
}

And if I try Toast.makeText(this, driver1.getTag().toString(), Toast.LENGTH_SHORT).show(), I get a FC.
[Android Software Development] Rootstonian:
Got 2 buttons created dynamically, and they both work with onClick(), but...

There has got to be a way to assign a meaningful name to the button. Each row I have will have the button (setID 1), and 3 textviews (setId 2, 3, 4). Then another row with ID's of 5, 6, 7, 8. Yeah buddy, coding case statements for that is easy.

I know I can probably set a resource file of some type, but this is still all dynamic. I don't know if I'm going to have 2 rows or 100 until runtime.

I was looking at setTag where I can put a meaningful name in, but you can't do a switch statement with onClick(View v), switch (v.getTag) because getTag returns an Object.

Guess I'll have look into Objects because I can't possibly program "case 29:" and have any idea what the hell 29 represents LOL :)

Worse comes to worse to get this done (client deadline for test run is 3/22) I'll just hardcode 50 "rows" into my XML file and and preface the specs at "Maximum 50 entrants".

Which may be a good thing, because for this client, they won't go over that. But to make some mods and make this app usable in other venues, I might need over 50.
[Android Software Development] Rootstonian:
Thanks for the code snippet; I'll have to look at it in more detail later on.

I have a 3/22 deadline for my app's first test run and just don't have the time to mess around with dynamic buttons. Since I know I only need 2 buttons for the test run, I've just hard-coded them into the app. Yeah, it's pretty ugly, but it's functional.
[Android Software Development] Chalup:
You could just use if else for the tags. Or read an integer from the tag object and then execute the switch statement.

When I use dynamic linearlayouts, I add the children at a specific index and then determine which child is clicked on depending on its index.
[Android Software Development] Rootstonian:
I guess my main hurdle right now is using "setTag" vs "setID" and using setTag in a switch statement since setTag returns type Object vs. type int you get from setID.

Like I said, I'm in "panic" mode (LOL) to get my test version running by 3/22 for a live trial run. Once I get that done, I think I have a few weeks to mess around with the dynamic button creations in my TableView.

I don't think it will be too difficult, but as any programmer knows when they are up against a deadline, you have to cut some corners to get a working model without all the bells and whistles :)

My main bottleneck now is that for each button down the left side, and depending on which order they are hit, I have to redo the layout and put the buttons with labels AND the row data associated with that button in the order in which they were hit. Yeah, fun stuff...thank the maker for databases!
[Samsung Galaxy S (4G Model)] pixelbrain:
The outer shell of the Galaxy S devices are essentially the same. I got the Otterbox Samsung Galaxy S Communter case at teh Amazonz for 24.95 - free 2-day shipping if you sign up for an Amazon Student account.

It fits the phone perfectly :)
[Samsung Galaxy S (4G Model)] v0va:
Dammit! I bought mine on ebay for 26.25 shipped! forgot to check amazon! can't wait to get it, until then I'm super careful with it.
[Samsung Galaxy S (4G Model)] pixelbrain:
It also comes with 1 screen protector but I have never been impressed with the one's Otterbox supplies. I didn't apply it anyway because the screen on this phone can take a pretty good beating. Enjoy the case! I know I am!
[Samsung Galaxy S (4G Model)] Five0nIt:
Good to know it fits. I think I might upgrade to the 4G this week.
[Samsung Galaxy S (4G Model)] princedwi:
I'm glad I stumbled on this thread. I just ordered mine today, should be coming in tomorrow afternoon, perfect since I'll be heading into PAX east, and this baby was paid full price x.x; shouldn't ever go to a convention without a case..
[Samsung Galaxy S (4G Model)] Deleted member 2653512:
it's a good case. the rubber has a tendency to be a lint magnet. but it will def protect your phone.
[Samsung Galaxy S (4G Model)] captmurdock:
Got mine from TheCellGuru.com for 23.39 with shipping. I got the otterbox commuter for the 'Vibrant' though. Should be essentially the same since the only differences physically is the forward facing camera.

Not a bad pick up for a solid case to protect; as I am one clumsy SOB!
[Samsung Galaxy S (4G Model)] lphillips80:
Order the i9000 version. Thats the one I got.
[Samsung Galaxy S (4G Model)] mbernusg:
I'm glad I got to this thread and read about cellguru... got my case for cheap in the mail today love this phone
[Samsung Galaxy S (4G Model)] MrRuckus:
I saw a friend with an Otterbox and liked the grip, so I grabbed one.

I was disappointed to find out they dont make a "Defender" version for the Vibrant/S4G. That was the version my friend had on his Captivate which I liked more then the "Commuter". But the Commuter will suffice for now. Hopefully they release a defender series for ours.

I also didn't care for the screen protector that came with the Otterbox, so I didn't use it and just used the second realook protector I had from my Vibrant which works great.
[Samsung Galaxy S (4G Model)] trexxcrap2:
don't waste money

http://cgi.ebay.com/ws/eBayISAPI.dl...GVKLGSU%3D&viewitem=&sspagename=STRK:MEWNX:IT

got mine in two days, nicest case i have ever owned....its awesome
[Samsung Galaxy S (4G Model)] heartspains88:
My best friend ended up with the otter box, I ended up with the case mate touch case. He likes his more, I like mine more. So I think it's opinion also, but they are both good options.
[Samsung Galaxy S (4G Model)] erymanthus:
Comparing the two, which one tends to attract dust more? (refering to the soft silicone part).

Thanks
[Samsung Galaxy S (4G Model)] heartspains88:
Case mate only does on the silicone part, which isnt really much once the "hard" part covers the back.. mainly on on the top part where the headphone jack is, a quick milisecond wipe when it comes out of my pocket and no dust on the entire phone. Hopefully that description helps.

Otherwise none at all. Refering to the case mate of course.
[Samsung Galaxy S (4G Model)] Kasino Royale:
Yeah, I looked everywhere for the Defender version but settled for the Commuter.

I haven't had many problems with dust on my Otterbox but for those that are, Just wipe it with any microfiber cloth (even old jogging pants refashioned as a dust rag works) and it wipes it clean in seconds.
[Samsung Galaxy S (4G Model)] golmar88:
The only thing is the dust/lint gets in the cut outs for the ffc and ear piece. If your going to use the ffc, which isn't that often, you have to clean that out.

Is anyone else noticing that it seems like the soft part is getting a little loose after awhile? I've had this one since they first released them for the vibrant. It seems like, especially at the top, you can squeeze the edge's in and it buckles up.

That being said, this is the best case I've ever owned. I like how it has the soft rubber touching the phone so you don't get any wear spots on it. Then the hard plastic protects and keeps it from getting stuck in your pocket.
[Vibrant Q&A, Help & Troubleshooting] megaearth77:
I just updated my vibrant from 2.1-update-1 to froyo 2.2 last night, its feel slow sometimes, but today while I was at college campus library I notice my vibrant turn on when I Hear the music. When I took it out of my front pocket I notice it rebooted. I didn't turn it off and it was in my front pocket with the touch screen laying on my wallet. Can it be a problem with froyo?
[Vibrant Q&A, Help & Troubleshooting] rhonal89:
No it's not a problem with froyo. This mostly always happen. I can tell you this happen to most people here on xda with other phones as well. Maybe choose another rom.

Visit www.tomorrowisnews.com For Android news and more.
[Vibrant Q&A, Help & Troubleshooting] Assimilated Android:
our experience...

one of our vibrant phones is still unrooted and stock 2.2. it has, on at least 2 occasions, done this since it was upgraded to 2.2 through kies. when it's done this, the phone just rebooted on it's own and started working normal again. if you are still stock and this keeps happening, you can always get a warranty exchange if you can't find a solution. this is what i am watching for before i root it, lol. you never know, it could be a hardware problem. this unrooted vibrant is our newest one out of the four we presently own. none of the others have done before...ever. :confused:
[Vibrant Q&A, Help & Troubleshooting] oka1:
some of the software is hanging and causing a reboot. Try a custom rom and see if it goes away..... It most likely will
[Vibrant Q&A, Help & Troubleshooting] megaearth77:
Oh, I see thanks for the info, and I can't really exchange it becaues I unlock it for ATT, but on the plus side froyo did fix my sim data refresh problem that kept popping up every 15 to 20 minutes. My suggestion to people is not to update to froyo cause of the auto restart apps feature. Even advance task killer can't stop it, Thanks to that feature it turn on every stock programs in the phone and use up most of my memory. I only get between 60 to 80 mb of free space left. And it drains the battery too. I charge it at night and it would finish charge before 12am and the next morningat 8 am I found the battery life less then 80%.
[Nexus One Q&A, Help & Troubleshooting] abvthegod:
I just did a manual update to 2.3.3 (cuz the OTA was never gonna come). I thought the new thing for the NFC was supposed to be there. Or does the Nexus one not have the capabilites to have NFC?
[Nexus One Q&A, Help & Troubleshooting] rickytenzer:
It's a chip. Of course the N1 doesn't have it.
[Nexus One Q&A, Help & Troubleshooting] Nebucatnetzer:
Im not sure but i thought the N1 haven't a NFC Chip.

The first one with this technology was Nexus S.
[Gen8, Gen9, Gen10 Q&A, Help & Troubleshooting] dicsonleung:
Anyone experienced scrolling problem when in TV mode?

Archos 101 - TV out is working fine, but can't scroll in any screen, and must double tap on icon to activate application.
[Hero CDMA Q&A, Help & Troubleshooting] JohnnyStaff:
Has anyone had the problem t30 from the sprint vvm app? I'm running the cmgb rom its the 1/11 update I think. All it says us error t30 when I run it. Tried uninstall then install and doing it through titanium backup. Nothing seems to fix it...has anyone else had this problem?
[Hero CDMA Q&A, Help & Troubleshooting] JohnnyStaff:
I've looked around and only found people with installing it issues, I can install it. It just wont work
[Hero CDMA Q&A, Help & Troubleshooting] aqualls:
Follow instructions on the wiki. Only way I know of to get it working. You don't restore vvm app and data from titanium. Only data. There is a special vvm .zip to apply. Worked like a charm for me.
[Hero CDMA Q&A, Help & Troubleshooting] xjayman:
Flash sense based rom and update vvm, backup with TB the nand back to gb rom and restore vvm. Data is the only choice you are given.
[Hero CDMA Q&A, Help & Troubleshooting] JohnnyStaff:
I tried that, but it's not working. when I flash the sense rom and back it up and cone back to gb rom I can't restore the vvm app.

its crossed out on the bottom, how would I fix that?
[Hero CDMA Q&A, Help & Troubleshooting] aqualls:
There's a .zip on the wiki for vvm. Flash that and restore ONLY DATA from titanium. You have to backup data from sense or froyo rom first though.
[Hero CDMA Q&A, Help & Troubleshooting] JohnnyStaff:
Alright that worked flashed the zip then restored it. Thanks for the help
[Hero CDMA Q&A, Help & Troubleshooting] aqualls:
No problem. Glad you got it working.
[Hero CDMA Q&A, Help & Troubleshooting] xjayman:
Yeah sorry forgot to tell you to flash the vvm file and then use TB to restore data only. Glad you got it running.
[Android Software/Hacking General [Developers Only]] cedric123:
MOdefied angry birds VErsion!!!!

link:

-no ads

-zipalinged

-batch optimazed

guide:

uninstall angry birds(ONLY WHEN IT FAILS TO INSTALL)(YOU WILL LOSE YOUR save game!)

put this version on sd card

install it with any file explorer

start it and wait till you see a blue bar(the screen may turn black or white here for qvga devices)

Now lock and unlock the screen!

when its started DONT push play but first push the littl round in the down-left corner(landscape looking) and hit the little mauntain icon.

Now hit thanks

NOW START PLAYING AND HAVE FUN!
[Android Software/Hacking General [Developers Only]] Amphor:
thanks! will try
[Android Software/Hacking General [Developers Only]] aalupatti:
Is this legit !!!
[Android Software/Hacking General [Developers Only]] the_scotsman:
No, it's not. This has been done before and xda received a request from the Developers of Angry Birds to remove it, so that is what I will do here too.
[G2 and Desire Z General] EEaudio08:
My G2 is running the stock ROM, not rooted. I rooted my G1 and ran every ROM I could get my hands on, but with free WiFi tethering and a clean OS, I find no reason to root my G2... yet.

Lately, I've been encountering a really slow boot time - almost 2 minutes from power button to OS up and running. I do have a lot of widgets, but I don't have an excessive amount of apps. Do the widgets slow the bootup? They're not even ready when I unlock the screen (after the network becomes available), and I've already waited 2 minutes.

My wife's G2 takes about 20-30 seconds to boot up. What gives?
[G2 and Desire Z General] KiNG OMaR:
It's the widgets. The more you have, the longer the boot time will be in order for everything to load up!
[G2 and Desire Z General] EEaudio08:
Thanks! I got wise and rooted/installed CM7. Bout damn time. WAY faster than before.
[G2 and Desire Z General] lost800:
Yeah I noticed the same thing when I tried out CM6 (which I'm using now).

Before it was taking more than a minute, now it's up pretty quick.
[Nexus One General] brettbellaire:
Is it currently down for anyone else?

(Web version)
[Nexus One General] agentaaron:
not today...but my market was acting really buggy yesterday.

...it kept telling me "download unsucessful" on anything I tried to download or update.

Im in New Mexico
[Nexus One General] brettbellaire:
Sorry, for me it's the web version. It doesn't load at all.
[Nexus One General] RrOoSsSsOo:
Try update your market version with .apk or signed.zip
[Nexus One General] RrOoSsSsOo:
Or simply waiiiittttt
[Nexus One Q&A, Help & Troubleshooting] gnlcp:
hi everyone.

I'm writing cause one of my friend has a problem with a N1 just buoght.

the soft touchkeys always keep lighting on, even if the screen is off or the phone is under charge..

Moreover the problem is still present even after updating via OTA my rom to 2.2.1 (FRG83D).

has anybody ever had the same problem? is there any fix?

thank u
[Nexus One Q&A, Help & Troubleshooting] prettyboy85712:
Wrong section. Move to Q&A
[Nexus One Q&A, Help & Troubleshooting] gIMpSTa:
Yeah this def doesn't belong in dev, it'll get moved.

However, I have had this happen to me twice.

First time, I dropped my phone in slushy wet snow. (NINJA'd the battery out, gave it a 2 day vacation in a bag of rice, and when it came out it was functioning other then those lights coming on). Eventually it stopped.

Second time, I dropped my phone in a cup of coffee (don't ask....), again with the rice and a couple of days later powering it up was causing the touch lights to come on and trackball light to sporadically blink. I didn't feel like waiting it out this time, plus the coffee had made it in between my screen and the front glass, so I tore my phone completely apart, cleaned everything with alcohol and q-tips. Soon as I was done I (half way) put it back together to try powering it up, sure enough the lights were no longer staying on.

My guess, water damage and/or something is shorting out internally.

Just my two cents, YMMV.
[Nexus One Q&A, Help & Troubleshooting] gnlcp:
I apologize
[Nexus One Q&A, Help & Troubleshooting] misterdj87:
same problem as gnlcp describes.. help
[Streak 5 Themes and Apps] eowyn:
Is there by any chance that someone is cooking battery meter for at&t 340?
[Streak 5 Themes and Apps] carhigh:
Some one needs to take the 340 rom and fix it up
[Streak 5 Themes and Apps] eowyn:
340 ROM is a good ROM, yeah just needed someone to make some modifications to get the wi-fi hot spot and tethering function again.
[Streak 5 Themes and Apps] carhigh:
Also need the throttled speeds fixed
[Streak 5 Themes and Apps] Deleted member 3105162:
I would highly recommend trying to do some stuff yourself. There wasnt anything for the 319 froyo and I wanted a gingerbread notification bar so I made one. It took a lot of reading and searching (and some frustration) but I learned a lot in the process and it was worth it. I would make something for 340 but am too lazy to install and dont want to lose all my customization (319 can't make nandroid backups...)

Here are some links if anyone is interested in getting started:

http://xdaforums.com/showthread.php?t=831715

http://xdaforums.com/showthread.php?t=841287

Find someone else's customization you want and build off of that to start out (make sure to give them credit if you use any of their stuff)
[Streak 5 Themes and Apps] aalupatti:
Fards said the 318 tweaks might work... did any one try it ?
[Streak 5 Themes and Apps] Techvir:
http://www.megaupload.com/?d=K3N7983R battery meter for 340

Use recovery.alt http://www.megaupload.com/?d=LQON02O5
[Streak 5 Themes and Apps] Biggzz:
Pics? So you are saying clockworkmod works on 340?
[Streak 5 Themes and Apps] Techvir:
The problem with stock roms is that every time u reboot it, it will flash the recovery .

SO if u flash clockworkmod, it will be erased and stock recovery will be flashed over it .

So the trick is to - boot to fastboot, flash clockworkmod, pull battery , go to clockworkmod ( by holding the vol buttons ) and then flash the necessary files ( in this case battery meter) and then reboot.

So every time u want to flash anything u will have to do this

Hope it helps
[Streak 5 Themes and Apps] marvin02:
You don't have to pull the battery you can use:

fastboot -i 0x413c reboot

to reboot the phone. Hold down both volume buttons as the phone reboots.

You can also prevent the overwrite of the recovery by renaming the file install-recovery.sh to something else. It's in /system/etc. I just added.orig to the file name.
[Streak 5 Themes and Apps] Techvir:
Thanks for the tip
[Streak 5 Themes and Apps] huoyjii:
Any one able to get this work? I tried flash the Batter Meter zip file for Stock 340 thru both CWM Recovery (2501) and SM Recovery (0326-Beta). I got nothing, the battery is still the default stock 340 green icon...

Thanks.

Gopu, any change you can recooking this for me with the following settings? Big Thank you!! I tried using the online kitchen to cook this with the new feature (Patch9 images auto-fix) using framework-res.apk from the Stock 340 ROM with no success...

The battery metter style is "Jazzk" --> Really big battery percent number

Colors for both Color & Number:

0-25 Red F50000

26-50 Yellow FFFF00

51-75 Green 00FF00

76-100 Blue-ish 00BBFF

http://uot.dakra.lt/?c=Uj0yJkI9MjAm...GRkZGRkYmNlY9MCY2VD0wMDAwMDAmRz0mTT0yJlM9Mw==
[Streak 5 Themes and Apps] eowyn:
did not work, also tried using streak recovery, did not work either. wish i have the time to try to make things myself and share it to others and not rely on other people to do it for me. Anyway, Thank you so much for the help! :)
[Streak 5 Themes and Apps] Techvir:
http://www.megaupload.com/?d=92V1VJVL

Try this if it works
[Streak 5 Themes and Apps] huoyjii:
drgopoos, This is fast and THANK YOU VERY MUCH again!! Unfortunately, I tried with StreakMod Recovery ver 0.3.2.6 Beta, reboot and still the stock battery. No luck but big thank you again.

Anyway, I screwed up the yellow color from 26%-50%; those settings work for black task bar but not white (stock). If you happen to recook Jazzk style (big number battery meter) for Stock 340; use any color scheme you like and I will test and report back for you. I am just happy to have any battery meter in Jazzk style.

I am back to Stock 340 because my Steve 1.8.1 was working really great for a while and now, after one week+, it started to auto shutdown (only a battery pull will it startup pressing power button) or constant reboot. No time to deal with this now and I need a stable phone that works 99.99% of the time.

Anyway, I felt (very subjective) that 340 is better than stock 318 + perf fix. Fast and stable so far - Cant nandroid backup though.
[Streak 5 Themes and Apps] Techvir:
I am using clockmod recovery. I could not get streakmod to work for my phone.

I built another one based on JAzzk and it worked well for me.

Here is the file UOT-ZC-03-07-04-42-1.zip
[Streak 5 Themes and Apps] huoyjii:
gopu, no attachment to download...

BTW, saw Stock 341 threads on the Dell Streak General forum. It is ROCKING Android 2.2.2. Yes, 2.2.2

http://xdaforums.com/showthread.php?p=11919328#post11919328

and

http://xdaforums.com/showthread.php?p=11913591#post11913591

Thought you might be interested.
[Streak 5 Themes and Apps] Techvir:
Saw that but din't have time to read much.

Do u know what's different from 340 ?
[Streak 5 Themes and Apps] huoyjii:
340 = Android 2.2

341 = Android 2.2.2 and unlocked - Only good with 322 baseband (no flashing buttons light). Others reported that it has diff version of Dell's UI - Stage (I liked this version better) and very good battery life. And very fast and STABLE!!!!!
[Captivate Q&A, Help & Troubleshooting] Jep56:
I've read alot about Overclocking and setting the UV, I am on a Captivate, Paragon RC6. I understnad how to set the OC, but how do you reset the Voltage? Is that an app other then Set CPU?
[Captivate Q&A, Help & Troubleshooting] DaveyBB:
There is an app that is installed with Paragon called "Voltage Control".