yashsingh1/xdaforums huggingface dataset:
[Java for Android App Development] TwilightLoz:
Ok so I made my first tab class. Has 3 tabs. Everything works fine but was wondering how make put a class into one of the tabs.

This is my class that contains the tabs:

public class TABS extends Activity {

[MENTION=439709]override[/MENTION]
protected void onCreate(Bundle savedInstanceState) {
// TODO Auto-generated method stub
super.onCreate(savedInstanceState);
setContentView(R.layout.tablayout);
TabHost th = (TabHost) findViewById(R.id.tabhost);
th.setup();
TabSpec specs = th.newTabSpec("tag1");
specs.setContent(R.id.tab1);
specs.setIndicator("Practise");
th.addTab(specs);
specs = th.newTabSpec("tag2");
specs.setContent(R.id.tab2);
specs.setIndicator("Main Activity");
th.addTab(specs);
specs= th.newTabSpec("tag3");
specs.setContent(R.id.tab3);
specs.setIndicator("Pracfg4tise");
th.addTab(specs);
}
}

XML Layout for the tabbed class:

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
tools:context=".TABS" >

<TabHost
android:id="@+id/tabhost"
android:layout_width="match_parent"
android:layout_height="match_parent" >

<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >

<TabWidget
android:id="@android:id/tabs"
android:layout_width="match_parent"
android:layout_height="wrap_content" >
</TabWidget>

<FrameLayout
android:id="@android:id/tabcontent"
android:layout_width="match_parent"
android:layout_height="match_parent" >

<LinearLayout
android:id="@+id/tab1"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal" >

<Button
android:id="@+id/button1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Tab 1 Button" />
</LinearLayout>

<LinearLayout
android:id="@+id/tab2"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal" >

<Button
android:id="@+id/button2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Tab 2 button" />
</LinearLayout>

<LinearLayout
android:id="@+id/tab3"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal" >

<TextView
android:id="@+id/textView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Tab 3 Text View" />
</LinearLayout>
</FrameLayout>
</LinearLayout>
</TabHost>

</LinearLayout>

So I have another class called mainactivity. nothing special on it, just a few textviews and buttons and what not. So how do I set up the mainactivity into the tabs so that if i press the tab that says 'Main Activity', it will take me to the main activity class.
[Java for Android App Development] zalez:
When setting the "setIndicator" property is where I set my class back when I used TabHost's.

fourthTabSpec.setIndicator("BlackList", res.getDrawable(R.drawable.blacklist_32)).setContent(new Intent(this,BlackList.class));

There is a different way to do this now using fragments though
[Java for Android App Development] calavera69:
Hi,

in my application i used tabs too, the main class that contains tabs usually extends TabsActivity

Then, to use another class as content of a tab just use intents, here a sample:

Intent lendsActivityIntent = new Intent(this,LendsActivity.class);

Intent objectsActivityIntent = new Intent(this,ObjectsActivity.class);

firstTabSpec.setIndicator(getString(R.string.lends_tab), getResources().getDrawable(R.drawable.ic_lends)).setContent(lendsActivityIntent);

secondTabSpec.setIndicator(getString(R.string.objects_tab), getResources().getDrawable(R.drawable.ic_catalogue)).setContent(objectsActivityIntent);
[Java for Android App Development] zalez:
I did forget to mention it needs to extend TabActivity
[Java for Android App Development] nikwen:
The recommended way is to do it using tabs in the ActionBar now.

Google just released its new support-v7 library which brings the ActionBar to apps on Android 2.1 and above.

So there is really no excuse not to use it anymore. ;)
[Galaxy S 4 Accessories] cesardrgn:
I been really interested on getting the Samsung Smart Dock Multimedia Hub for my Galaxy S4

https://www.samsung.com/us/mobile/cell-phones-accessories/EDD-S20JWEGSTA

I know there was coupon code flying around in therefor $49.99 and I was wondering if anyone knows of a code that will work or the best lowest place to get it from
[Galaxy S 4 Accessories] 3's&7's:
Mine was $80 on ebay; $70 new was the cheapest I've seen so far.
[T-Mobile Samsung Galaxy S 4] 02CWRX:
I have poked around a little, but haven't really seen what I am after. I am trying to find a ROM that is basically stock, but has the bloatware pulled out, cleaned up, performance tweaked, possibly deodexed, etc. Just a "clean base" to get me going. Is there anything like that floating around that I simply missed?

EDIT: I meant to say "stock" as in stock Samsung, not Google/AOSP/etc.

EDIT #2: I guess really I don't mind the Google/AOSP ROMs (in fact I like a lot of it better), I just want the stock camera app and wifi calling. I had the CyanogenMod nightlys installed for a couple days, I really liked that, but I also really missed the stock camera application and wifi calling.
[T-Mobile Samsung Galaxy S 4] AxAtAx:
Wifi calling is only going to be on roms cooked for t-mobile only, the other roms will not have that option.
[T-Mobile Samsung Galaxy S 4] lancemoreland:
What you are looking for is here: http://xdaforums.com/showthread.php?t=2261013 This is what I am on and it works great. This is the stock rom de-odexed with a script you run to remove the bloat. Follow instructions closely because you do not perform a full wipe. You just flash the de-odexed rom over your existing stock rom.
[T-Mobile Samsung Galaxy S 4] KennyG123:
Questions go in Q&A

Features are listed in the OP of each ROM thread

Thread moved
[Galaxy Grand Duos i9082 Themes and Apps] Sredhu:
Is it working in balli's gennext 4.2.2 ?????
[Galaxy Grand Duos i9082 Themes and Apps] codekidX:
Yes it will work great !!!
[Galaxy Grand Duos i9082 Themes and Apps] jayc137:
Any way to make it work on stock 4.2.2 without CWM ?
[Galaxy Grand Duos i9082 Themes and Apps] codekidX:
If rooted YES

Download zip go to app folder . push the Gallery2.apk manually to system using root explorer and set permission rw-r-r
[Galaxy Grand Duos i9082 Themes and Apps] xenon92:
How to revert back to original?

Also can you please post a screenshot of the camera interface itself in the OP.
[Galaxy Grand Duos i9082 Themes and Apps] codekidX:
It is same as cm10.1 camera...ok i will post it !

IF you flash over stock there will be 2 cameras 1 stock and other this one

If you want remove the delete gallery2.apk in system
[Galaxy Grand Duos i9082 Themes and Apps] simplyanin:
We already have 4.3 camera apk ... and even this from a very long tym ...

With full working photosphere ...

And ultra pixel is totally based upon the hardware sensor of the camera ...where each pixel is quite big which results in good low light pics ...

How can a software able to do that...

sent from Samsung Galaxy Grand
[Galaxy Grand Duos i9082 Themes and Apps] codekidX:
LOL you misunderstood the power of software :P

If you understand codes see this : LINK

Pixels can be easily controlled through codings ...AOSP camera are source based one ...when the changes comes to the source(by google/cm) we can fork it/merge it which apply changes in our codes else the above method can be applied manually too

About the 4.3 camera ...it is the same with UI change !!! It works same

image sensors are mostly updated and the same in every android phone ! I cannot explain that my hand will pain if i do :) :D
[Galaxy Grand Duos i9082 Themes and Apps] simplyanin:
Ok I will try it today ...

Lets see if I get better results in low light photography also more details and better dynamic range .

sent from Samsung Galaxy Grand
[Galaxy Grand Duos i9082 Themes and Apps] xenon92:
Also 4.3 camera doesnt give the option to store pics on external SD Card. This one does.
[Galaxy Grand Duos i9082 Themes and Apps] kramzkie10:
Will it work on balli's 4.1.2 gennxt_xperiaz rom?
[Galaxy Grand Duos i9082 Themes and Apps] codekidX:
yes it will, in all rom
[Galaxy Grand Duos i9082 Themes and Apps] kramzkie10:
I got an error. It says gallery has stopped and it closes the app. Need help sir.

---------- Post added at 03:18 PM ---------- Previous post was at 03:06 PM ----------

I downloaded it again from the main thread but its not a .rar anymore. Rather its .bin. What must be done in order for me to flash it?
[Galaxy Grand Duos i9082 Themes and Apps] codekidX:
download the v 1.46 from the main thread if you are in 4.1.2 ballis rom

if you r in 4.2.2 ballis rom download the camera from here

flash it like normal zip from CWM
[Galaxy Grand Duos i9082 Themes and Apps] kramzkie10:
Chotu. Can u just give me the link please so i can download it correctly.

Spoonfeed me just this time please.
[Galaxy Grand Duos i9082 Themes and Apps] parag tetambe:
is it compatible with cm 11???
[Galaxy Grand Duos i9082 Themes and Apps] Zephyr!:
Don't quote whole post.
[Galaxy Grand Duos i9082 Themes and Apps] parag tetambe:
Sorry for that.... New to it so learning!!

Sent from my GT-i9082 using pawitp's cm 11
[Galaxy Grand Duos i9082 Themes and Apps] PAWAN G:
should i use on.....cm-Resurrection_Remix_LP_v5.3.8-2

plz reply
[Galaxy Grand Duos i9082 Themes and Apps] Rommel Espinosa:
its only for 4.2 jellybean
[Galaxy Grand Duos i9082 Themes and Apps] Mehul.S:
Can I flash it on cm 12?
[Galaxy Grand Duos i9082 Themes and Apps] RichyE:
Read the post above you.

Only jellybean roms.

Cm12 is lollipop rom
[Galaxy Grand Duos i9082 Themes and Apps] takios101:
Download link doesn't work.

I am new here sir. But I tried downloading the file through my phone and through my PC, but the download link doesn't seem to work.
[Galaxy Grand Duos i9082 Themes and Apps] Rommel Espinosa:
here is the files just flash thru recovery after downloading
[T-Mobile Samsung Galaxy S 4] frankinstine:
​

I will try to keep updated but remember we all have lives to live and money to make ;). Please no drama on this thread...Or on any lol. Hope you enjoy!!

Downloads

All Downloads Here @ Goo.im

Standard disclaimer

Your warranty is now void.

I am not responsible for bricked devices, dead SD cards, thermonuclear war, or you getting fired because the alarm app failed.

Please do some research if you have any concerns about features included in this ROM before flashing it! YOU are choosing to make these modifications, and if you point the finger at me for messing up your device, I will laugh at you

[B][CENTER]Changelog[/CENTER][/B]

[B]**v2**[/B]
Fixed alarm not working in deep sleep
Added call recording
Added torchlight on volume up w/screen off
Speed tweaks in launcher
Removed volume mod (needed for call recording)
Unlimited recipient messaging list
Unlimited text message limit
Unlimited multimedia message limit
More...

[B]**v1**[/B]
-Based on latest TW Release XXUBMGA (Build Date: 11.07.2013)
-Stock TW Kernel
-Long Press Menu To Close Apps
-Moderate Sound Boost
-Added Google Edition Boot Animation
-Disabled scrolling cache
-No T-mobile bloatware
-3Way reboot (Recovery,Download,Reboot)
-Stock Keyboard with Auto Correction (Must Be Enabled)
-Kies support
-SuperSu
-Auto wipe cache & dalvik-cache before flashing
-Busybox
-LTE support
-Updated Play Store
-Updated Earth
-Added Flipboard
-Added Goo Manager (OTA Notifications Soon)
-Added Adaway
-More to come
[T-Mobile Samsung Galaxy S 4] frankinstine:
+1
[T-Mobile Samsung Galaxy S 4] metallized:
first..... will try for sure
[T-Mobile Samsung Galaxy S 4] frankinstine:
Have to Fix a few things...Uploading Soon...Sorrry
[T-Mobile Samsung Galaxy S 4] Airtioteclint:
Since this is built off MGA, will it still include wifi calling?
[T-Mobile Samsung Galaxy S 4] frankinstine:
No wifi calling...uploaded...Ready, enjoy!
[T-Mobile Samsung Galaxy S 4] mrvirginia:
lol no one wants T-Mob ROMs i'm seeing. they're taking their sweet time with updating our firmware.

3 different Google Play Edition builds have come out and countless other int builds, not to mention other carriers have already updated their stock TW ROMs for apps2sd support.

don't mind me, just dropping in :silly:
[T-Mobile Samsung Galaxy S 4] frankinstine:
You are right though, sucks, but I am starting to think T-mobile has something to do with that...oh well ...
[T-Mobile Samsung Galaxy S 4] mrvirginia:
oh yeah, most def mate, most def.
[T-Mobile Samsung Galaxy S 4] AxAtAx:
Kinda noticed that to, the tmo updates are not coming to fast..wow...

I am gonna flash this and see whats up...

Thanks for the rom. Should be good.
[T-Mobile Samsung Galaxy S 4] epsix:
Good stuff frankinstine, when I fkash 9505 MGA base, my HD voice wasn't enable. This rom does enabled it, I guess you're like me choose S4 iver One. :) nice to see you here.
[T-Mobile Samsung Galaxy S 4] frankinstine:
Yeah, It was time for a change, I been sticking with HTC for years till now
[T-Mobile Samsung Galaxy S 4] vakaviti:
Sweeeeet going to try this tonight on my international S4 looks good
[T-Mobile Samsung Galaxy S 4] akapaul26:
Welcome Frankie...looks good.

Deviant Development *Team Member*
[T-Mobile Samsung Galaxy S 4] Gheng68:
For some reason, this isn't booting up on my phone. Can anyone help me? I wiped my data twice, wiped cache twice, and wiped dalvik twice... Flashed this rom and now it's just boot looping on the Google logo for about 15 to 20 minutes now.

Ideas?
[T-Mobile Samsung Galaxy S 4] pluginre:
Maybe you have a bad download. Try re- downloading a new copy and flashing again
[T-Mobile Samsung Galaxy S 4] ScottBroker:
Booted fine. Only problem is the borked contacts because of the dialer. Forgot how but edit some xml file will get rid of it.....
[T-Mobile Samsung Galaxy S 4] Linkmeup82:
Good work bru.
[T-Mobile Samsung Galaxy S 4] frankinstine:
Borked?
[T-Mobile Samsung Galaxy S 4] ScottBroker:
Squished
[T-Mobile Samsung Galaxy S 4] I[E:
Thank you for providing a very close to stock rom. Keep up the great work.
[T-Mobile Samsung Galaxy S 4] 92drls:
Ha VERY nice single setup on that GTE, I'm NA-T in my SC300...
[T-Mobile Samsung Galaxy S 4] AndroidKing:
i really LOVE the 2jz gte wallpaper:d
[T-Mobile Samsung Galaxy S 4] frankinstine:
I'm doing a gte swap as we speak I'm my sc300
[T-Mobile Samsung Galaxy S 4] 92drls:
You on Clublexus?
[T-Mobile Samsung Galaxy S 4] frankinstine:
Yeah, it's lowlexus and I have not posted my build yet
[T-Mobile Samsung Galaxy S 4] AndroidKing:
Sweet my friend has one GTE swapped too and but its auto tranny but it take off's like a bullet
[T-Mobile Samsung Galaxy S 4] frankinstine:
Lol nice mine is 5 speed
[T-Mobile Samsung Galaxy S 4] boterkaaseneieren:
Please remove the YouTube link. It doesn't do your rom any good. The most stupid movie ever!! He is only scrolling and scrolling and talking about lag. Noob first class
[T-Mobile Samsung Galaxy S 4] frankinstine:
Come on...be nice...lol, make me a better one and I'll replace :)
[T-Mobile Samsung Galaxy S 4] onurd:
Wallet fix

I have downloaded the google wallet fix from one of the threads but I get NFC payment service has stopped error. Any idea why? Previous MF8 roms were working just fine...
[T-Mobile Samsung Galaxy S 4] frankinstine:
I'll look into that when I get a chance and post a flashable fix to test,I'm currently at work so I can't do anything,but you have not been the first to report this, I'll get on it,thanks again
[T-Mobile Samsung Galaxy S 4] I[E:
That's the only issue I've been having as well.
[T-Mobile Samsung Galaxy S 4] frankinstine:
Do you guys get to this screen?
[T-Mobile Samsung Galaxy S 4] I[E:
Yes. Using this mod ( http://xdaforums.com/showthread.php?t=2282892) I have wallet activated and working perfectly.
[T-Mobile Samsung Galaxy S 4] frankinstine:
Yeah, I set one up as you can see and all is good, I get the error only on reboot
[T-Mobile Samsung Galaxy S 4] onurd:
As I said, it activates fine and let's me select a funding source etc. Never tried to actually use it though. As the other person said, I get the error when I boot up. Despite of the error, I can start wallet.
[T-Mobile Samsung Galaxy S 4] rigel1326:
I was wondering if anyone else has had a bootloop after popping out the battery hot? Happened to me obv and I ended up having to fully wipe and reinstall.
[T-Mobile Samsung Galaxy S 4] BurnOmatic:
yes i had bootloop also, after flashing this, it worked good at first, then i rebooted and bam bootloop. luckily i had my nandroid from my original rooted stock rom. i thought it was just me that had this issue, glad it wasnt just me.
[T-Mobile Samsung Galaxy S 4] frankinstine:
I've been running this for about three weeks and not a single bootloop, Did you flash a different kernel or Mod?
[T-Mobile Samsung Galaxy S 4] BurnOmatic:
nope only flashed the rom and that was all. could be flasher fault though possibly i missed a step or something.
[T-Mobile Samsung Galaxy S 4] frankinstine:
New update it available...lots of changes
[T-Mobile Samsung Galaxy S 4] dingila:
This ROM work on normal i9505 Qualcom 4 core or only for SGH-M919 ??? :confused:

Thanks!
[T-Mobile Samsung Galaxy S 4] frankinstine:
It should work, just flash rom and right after flash the kernel from the i9505
[T-Mobile Samsung Galaxy S 4] BurnOmatic:
well ive flashed the version 1 and 2 of the rom, and after flashing it, if i reboot on the first try it goes to boot loop on the google screen and wont reboot, can someone post their method of flashing encase i missed something. thanks guys really wanna rock this :D
[T-Mobile Samsung Galaxy S 4] frankinstine:
Did you do a full wipe/factory reset?
[T-Mobile Samsung Galaxy S 4] BurnOmatic:
yeah full wipe/ factory reset , i also should add that even after going back to "stock root restore" it will still do the boot loop after rebooting after the flash, if i don't reboot, the phone works like normal, just if i reboot one time it will go to bootloop and i will have to reflash to get it to boot up for first time after restore if i flash a new rom first boot always works setup of gmail etc.. but if i do reboot that one time it will go to bootloop.
[T-Mobile Samsung Galaxy S 4] frankinstine:
I'll pm you so we can figure out what's going on with your device, don't want to crowd the thread
[T-Mobile Samsung Galaxy S 4] 92drls:
I've been traveling the country for the last couple of weeks for work and V1 has been my daily driver without a single hiccup. I use gps, bluetooth and wifi daily. I use the square card reader to run some transactions and still, flawless. A huge plus is the S Health actually works, most other guys removed it or force closes, sucks because its one of the reasons I bought this phone, great feature for those that are health oriented. I'd say my best single run on a battery charge was 17-18 hours with again, all the radios active and screen is always at 100%, just not always on. Thanks again for the killer ROM.

Has anyone noticed any issues on V2? I want to flash it as I have some downtime on the plane but don't want to deal with restoring while hunting for a hotel and taxi in Syracuse.

BTW, hope your car is still running strong. Nothing beats boost!
[T-Mobile Samsung Galaxy S 4] frankinstine:
I've been running v2 daily and no problems at all, just like v1

BTW, thanks and yes my car is still running strong and all is good so far
[T-Mobile Samsung Galaxy S 4] mike28:
Great rom op very smooth Thanks for the hard work.

Edit found a little bug when settings from home screen to change wallpaper on lock screen touchwiz forced close I instead did it through settings and wallpaper. Also with es file explorer or astro It doesn't want to open the sd content no biggie I figure I report it :)
[T-Mobile Samsung Galaxy S 4] tino888:
Tether

Sorry if i didn't read in detail :), Does this Rom have free tether and wifi calling I didn't see in the first post ? just want to know before flash this rom thank you
[T-Mobile Samsung Galaxy S 4] jwgizmo:
All Set... I think?

Frankie, looks good. Came over from your Sensation ROM. Really looking forward to this. Do I need to install anything else (like Gapps) after flashing this.

Disregard.. I got it. In and it's running.

Love it!
[T-Mobile Samsung Galaxy S 4] frankinstine:
Sorry so late but no need for gapps,that's only for aosp,aokp,cm

Thanks,great find, I'll check into it
[T-Mobile Samsung Galaxy S 4] jwgizmo:
Ok, I had everything up and running. Booted into recovery, tried to do backup, got an error - something to do with error and boot image, rebooted and now stuck in a boot-loop?

I have the same prob as BurnOmatic...

Booted into recovery after the 4 circle boot-loop for 15 minutes. Full wipe/reset >reinstalled your ROM > rebooted, > its running again. Seems there is a problem with rebooting the phone. Other than that it seems to run fine. I saw some nice changes with your Exotic S4 v2 ROM, but the reboot issue is frustrating.

Now the task of SET-UP... Uggh!
[T-Mobile Samsung Galaxy S 4] frankinstine:
Maybe it corrupt your files after the error, reflash the rom without wipe, it should keep your info intact
[T-Mobile Samsung Galaxy S 4] jwgizmo:
OK, i will try that next time. In the process of RE-setup now. TTYl
[T-Mobile Samsung Galaxy S 4] frankinstine:
Btw what recovery are you using...just curious
[T-Mobile Samsung Galaxy S 4] ssfirme:
does smart scroll work on this rom:confused:
[T-Mobile Samsung Galaxy S 4] jwgizmo:
PhilZ ultra sensitive Touch Recovery with your v2 ROM. I say ultra sensitive because you can barley touch the screen... phew!
[T-Mobile Samsung Galaxy S 4] frankinstine:
Yes it does

I use the same, but I use the double tap feature in philz settings
[T-Mobile Samsung Galaxy S 4] epsix:
Just a heads up, if anyone here use 3minit3.2+. Make sure you uninstall 3minit app first then install the framework then reinstall the app or else you will get bootloop. Its not the ROM issues.
[T-Mobile Samsung Galaxy S 4] mike28:
Now the mint app is basically to theme and few other things right is not a most on the rom?
[T-Mobile Samsung Galaxy S 4] 92drls:
Confirmed. Version 2 is just as fast and reliable as V1. No complaints at all.
[T-Mobile Samsung Galaxy S 4] 92drls:
Is there any chance we could get all apps in multi window? If there's an easy fix already I apologize in advance but please link me to it if so.
[T-Mobile Samsung Galaxy S 4] frankinstine:
Use this from the play store....

https://play.google.com/store/apps/details?id=com.bjbinc.multiwindowmanager
[T-Mobile Samsung Galaxy S 4] xda23:
@ frank are you still developing bud. :cool:
[T-Mobile Samsung Galaxy S 4] 92drls:
This is still my daily, very smooth and great battery. Thanks man.
[T-Mobile Samsung Galaxy S 4] jwgizmo:
Question

Frankie, I know it's not proper to ask, but any proposed update to 4.3?
[T-Mobile Samsung Galaxy S 4] marcoxx626:
4.3 isn't out yet for touchwiz. The one that's that's out is a leaked test version that still has issues, so probably no update to 4.3 until an official release.
[T-Mobile Samsung Galaxy S 4] jwgizmo:
Portable WIFI Hot Spot Problems

I have a Macbook, Ipad, and Macbook pro. None of which work on portable hot spot. I can connect, but the browser goes nowhere. Any suggestions?

TIA :confused:
[T-Mobile Samsung Galaxy S 4] rigel1326:
Mail app mobile data errors constantly complaining of password errors even though it works on wifi. I know this is a known error with the app. Anyone have a fix. I use this rom as my dd and just want to fix this annoyance.
[Nexus 7 Q&A, Help & Troubleshooting] androidfr33k:
Please delete