yashsingh1/xdaforums huggingface dataset:
[Java for Android App Development] Tsikura:
Hello. New here and I hope this post is okay. The "Is this a question?" checkbox says it not the QA forum but it is?

Working on an app that all it's supposed to do is repeat taking a picture every 5 seconds after pressing a button. Now, I've looked at handler, timer, etc but I can't figure out the right way to do it. This is the code currently, and the onCameraClick of course runs when the button on the screen is pressed. I want that button to activate some kind of repeater so the picture gets taken every 5000ms.

public class CameraImage extends Activity {

public static int cameraID = 0;
public static ImageView image;

[MENTION=439709]override[/MENTION]
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.cameraimage);
image = (ImageView) findViewById(R.id.imgView);
}

public void onCameraClick(View v)
{
cameraID = 1;
Intent i = new Intent(CameraImage.this, CameraView.class);
startActivityForResult(i, 9999);
}
}

Now, this is something I'd definitely like to use but I'm not sure how to implement this correctly into the code above. Been trying trial and error for past few hours and nothing. Tried out a timer example someone put on another website, 10792454/image-capture-in-android-automatically but not much there.

At the same time however though, I'm not sure if the code should go in the other class with all the functions to run the camera. Any suggestions/tip or help I'd greatly appreciate it.
[Java for Android App Development] Acela1230:
Try a loop. I'm not sure if you have tried this or if it will work with launching an activity, but it sounds like that is what you want to do. I don't know how you determine when to stop taking pictures but you can use a "for loop" or a "while loop".

example "for loop":

for (int i; i > someNumber; i++){
//Your code here
}

someNumber would be perhaps the number of pictures you want to take and you can use i to number each picture.

example "while loop":

Boolean buttonClick = false;

onCreate(){
OnButtonClick(){
OnClick(){
if(buttonClick == true){
buttonClick = false;
}else{
buttonClick = true;
}
onCameraStart(buttonClick);
}

public void onCameraStart(boolean runCamera){

while (runCamera == true){
//Your code here
}
}

This example I showed you how you would be able to start the camera on the first click and stop it when clicked again. The OnButtonClick would be the OnClickListener for your button.

Both these examples may need a little refinement but this should point you in the right direction. Hope this helps. You can put these in threads and pause the thread at the end of the loop for 5 secs so it will wait (I think).
[Java for Android App Development] sak-venom1997:
It's simple use a timer and invoke it on first click
[T-Mobile, Samsung Galaxy SIII] chicomostoc:
I'm currently using [ROM][KERNEL][4.2.2] AOKP MR1 Kang Project - d2tmo - May 18, 2013 and LTS2 I'm trying to use the *#197328640#

to fix GPS and I get two responses.

1.USSD code running

and then

2. Connection problem or invalid MMI code.

Is this dialer entry dependent on Radio firmware, Rom or dialer?
[T-Mobile, Samsung Galaxy SIII] Don_Perrignon:
Go back to TouchWiz and do the code.
[One (M7) Q&A, Help & Troubleshooting] sixtninecat:
Has anyone found a way to change the splash. The fastboot flash splash2 command does not appear to work likely due to lack of s-off.
[One (M7) Q&A, Help & Troubleshooting] Wohee:
Once we obtain s-off, it should be possible to flash a custom boot image.
[One (M7) Q&A, Help & Troubleshooting] sixtninecat:
I figured that much. I was just hoping that we could DD it in in the same way we change change radios while still S-on on this device
[HTC EVO 3D] godschildren:
I have an evo 3d cdma running dirty Unicorns 4.2 v1.8 rom. I'm having the issue where my phone won't receive text messages when the phone is sleeping. When I unlock the phone and wait 5-10 seconds, I start getting Text messages that were sent up to an hour before. I have factory reset and cleared cache, clean install the rom again and still have the problem. I earlier reflashed my stock 2.3 sense rom and updated the prl and tested sending text messages from another phone and within seconds I receive them. I'm thinking when the phone sleeps it's somehow losing all signal and not connecting with the network. If anyone is aware of a fix I would love the help! It would be nice to continue to rock the DU rom
[AT&T Samsung Galaxy Note I717] Dilawer02pg12:
hi

i am in extreme trouble i bricked my phone now it is in hanged at samsung start up menu or can go to download menu

i need any your extreme help

my phone details are I717M it is locked to bell

guide me how to

a flash original stock 4.0.4 or higher

b unlock it

c and modified it so it can work with mobilicity

Thanks

i will appreciate your guidance and detailed help
[AT&T Samsung Galaxy Note I717] Dannoid:
Read this thread - post #4 and #6 -

http://xdaforums.com/showthread.php?t=2289759
[AT&T Samsung Galaxy Note I717] rangercaptain:
And you're not bricked. You just have a bad flash.
[AT&T Samsung Galaxy Note I717] Dilawer02pg12:
Thanks for your help

Now my phone is working fine

Have 4.1.2 and have rooted and cwr

Next question how to unlocked and modified with aws so it can worked with mobilicity

Thanks
[AT&T Samsung Galaxy Note I717] Dannoid:
Unlock for GB and ICS was done with an earlier modem so try the same unlock method with the JB modem and tell us if it works.

Otherwise get the ICS modem and try it and then put the JB modem back after the unlock.

Worst case you will have to go to ICS, unlock then back to JB

http://xdaforums.com/showthread.php?t=2124544
[AT&T Samsung Galaxy Note I717] rangercaptain:
Unlocking can be done with a code you input with the dialer, or by using a technique that involves flashing a couple of modems then changing some settings.

Unlock by code is permanent, but I don't know about the other.
[AT&T Samsung Galaxy Note I717] Dilawer02pg12:
The above method which was describe in the link was not working in jb midem

Will you be able to provide me the link of ics or GB modem for i717

I tired couple of modem but say pass but stuck at start up logo

Thanks
[AT&T Samsung Galaxy Note I717] Dannoid:
Changing modems should not stop your rom from working. Just flash the modem with either recovery or Odin.

Here are some ICS:

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

Lots of links here:

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

You may have to go back to stock GB or ICS rom to unlock but try a GB/ICS modem first.
[Motorola Droid Bionic] key5000:
Hello Everyone,

I have successful update my Bionic to 4.1.2 through Verizon OTA update.

Does anyone know how to make the Bionic 4.1.2 to run on Tmobile network? Please help.

(my bionic used to run on Tmobile with 2.3.4 ROM)
[Motorola Droid Bionic] key5000:
Anyone ???
[Motorola Droid Bionic] ldubs:
if you ran it (albeit a while ago on gb) on t-mo before, wouldn't the same steps hold to flash it to t-mo now?
[Motorola Droid Bionic] key5000:
I did try the same procedure as I did b4 for GB but it does not work on JB.

Has anyone able run Bionic with JB on TMobile network?
[Motorola Droid Bionic] DGSafewright:
T-Mobile runs on a GSM network. The Bionic is a CDMA phone. So it is unlikely that the Bionic will work on the T-Mobile network unless it has a hidden GSM radio. From what I can tell GB was needed to enable the GSM radio.
[Motorola Droid Bionic] ar7654321:
You need cdma software to unlock your radio to work with gsm. Also your phone has to be rooted.
[Motorola Droid Bionic] DBoyFresh954:
look up my post on that subject,
[Galaxy S I9000 Themes and Apps] mamoto66:
My coworker PEPETPITUFO from HTCMania (spain),has worked on 5 dialers to JB for Galaxy i9000.Work for almost all roms Jelly Bean(except Tsunami,which has been found).

DIALERS:1º Dialer Azul Oscuro(dark blue)http://www.mediafire.com/download/9ere0riycmg2rad/DIALER_AZUL_OSCURO.zip

2ºDialer Black :http://www.mediafire.com/download/6fdnkpv4h5c5h3r/DIALER_BLACK.zip

3ºDialer Jelly Bean :http://www.mediafire.com/download/79nhgt8g7pb85wm/DIALER_JB.zip

4ºDialer SGS 3 :http://www.mediafire.com/download/d30y0zjmax9r8aw/DIALER_SGS3.zip

5ºDialer Tierra (World) :http://www.mediafire.com/download/rhsqmbj31wyelyt/DIALER_TIERRA.zip

Sorry for my bad English and I hope you enjoy.

Installation for recovery

Screenshot:
[Galaxy S I9000 Themes and Apps] mamoto66:
From HTCMania (Spain) a greeting and hope you like it.:good:
[Galaxy S I9000 Themes and Apps] ts1506:
The jellybean one looks pretty cool.

Good job.
[Galaxy S I9000 Themes and Apps] Bejda:
Always nice to see universal/vrtheme mods,many thanks.

The Black one link always download an empty zip for me,only that one..
[Galaxy S I9000 Themes and Apps] mamoto66:
The black dialer link.working ok.for my.

Enviado desde mi GT-I9000 usando Tapatalk 2
[Galaxy S I9000 Themes and Apps] mamoto66:
Does not work on Tsunami and C-ROM Rom mix.Sorry.Possible solution with time on.
[Galaxy S I9000 Themes and Apps] theFRANCHESCO:
me gusta. Bien hecho.
[About XDA developers] M4io:
Do you like it?

I'm not sure, we will have to see how it turns out. But it would be a shame if Blue Angel users stop reading the Himalaya, Wallaby posts. Because a lot of those guys have experience/answers on those machines.
[About XDA developers] Peter Poelman:
Point is the old hack with two different phone types was both unmaintainable (or at least not on the current time-budget), and it would become unworkable as well when there's 5 or more phones: a 2D matrix of messages would have resulted in a giant mess as well.

More on this later, first some more work...
[About XDA developers] Albondigas:
Peter, thanks for all the hard work!

I have a remark, though.

With the partitioning of the forum in the various HTC phone types, I feel I'm missing a forum entry with a name like "Software" or "Applications". Threads on applications like Zendrui's PocketZenPhone (an app. that runs on at least Wallaby and Himalaya), aren't really at home with one specific phone type.

Of course, there is the "General" forum. But that's so ........... general.

Is that an option?

Regards

Albondigas
[T-Mobile Samsung Galaxy S II SGH-T989] M-man10:
Hey guys, my friend has a T-Mobile Samsung Galaxy S II and it won't boot up properly. Here's what he said.

I'm not sure what could be causing this. He didn't even try to flash a custom rom yet, it just failed when he tried rebooting to recovery mode. I'm guessing it's not a kernel incompatibility problem because he didn't flash a custom rom.

Does anyone know what might be the problem and if it can be fixed?
[T-Mobile Samsung Galaxy S II SGH-T989] richardlibeau:
How did he root it? With what method and what recovery did he use? 99 times out 100 as long as you can get to samsung logo it can be fixed. Has he tried to get into download mode to use odin to fix it?
[T-Mobile Samsung Galaxy S II SGH-T989] magda623:
Not to point out the obvious, but is the battery charged? Sometimes when the battery dies, it still has enough juice to get to the boot screen, then it will die again. Sounds like its a bad battery. If the battery is not the issue, try using Odin to load your stock ROM onto the phone with no root and root it per the post in the developement thread.

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

Good luck. Let me know if it works.
[Atrix 4G Q&A, Help & Troubleshooting] Feche:
Hey all, before I had a Motorola Defy, now I am with an Atrix 4g :)

My basic question is, what should not do to brick my phone? should I update it? Like I said, I came from a Defy, Defy has a locked bootloader so it is almost impossible to brick it, now I am a little scared with the Atrix hehe. Thanks !
[Atrix 4G Q&A, Help & Troubleshooting] palmbeach05:
you shoudn't flash an sbf file that is not the same as your current version. to update or not to update, that is entirely up to you. if yoh're satisfied with a gb os (2.3.x), don't upgrade. if you want ics (4.0 4) or jb (4.1.x-4.2.2), then update. just unlock the bootloader, root your phone, and enjoy
[Atrix 4G Q&A, Help & Troubleshooting] Feche:
Should I use the updater that is under About phone -> Updates?
[Atrix 4G Q&A, Help & Troubleshooting] palmbeach05:
you could if you wanted, but most of the updated versions are available through the rom superthread thread in the development section. just be sure to pay attention to carrier specific roms if you chose to use one of them. and i did just see your post in another thread saying that you were on froyo. after seeing that, i would say yes, upgrade your phone to a better os. gb works great, ics and jb work well and will work better now that we have the new kernel, but expect bugs to be present, but they are still very usable roms
[Atrix 4G Q&A, Help & Troubleshooting] Feche:
Yep, I am currently on Froyo 2.1, it has some lags on lockscreen.

By the way, my phone is unlocked, what rom should I pick up? do you recommend using About phone -> Updates to update it? thanks hehe :good:
[Atrix 4G Q&A, Help & Troubleshooting] ravilov:
How about you do some reading on your own? It's not like the information is not out there. It's all here, in great detail. You just need to read it.

Can you imagine the chaos if every new member decided to skip all the reading and just opened a new thread?
[Atrix 4G Q&A, Help & Troubleshooting] Feche:
I am sorry, but I did read, it's just not clear..
[Sprint Samsung Galaxy Note II] MnRAZB:
Was wondering if anyone could port the new PA 3.55 ROM the one that has halo. I know PA only does the nexus line. If so, let me know what you need and I can gather it.
[Sprint Samsung Galaxy Note II] mr pnut:
http://xdaforums.com/showthread.php?t=2118370

We already have PA bye slickrick so im guess when he has time im pretty sure he'll do it..
[Sprint Samsung Galaxy Note II] slick_rick:
I won't be doing any ports, not a fan of them. Halo source will be out soon, try and be patient :)
[Sprint Samsung Galaxy Note II] MnRAZB:
Patience is my middle name, thanks for the reply guys! I've been checking the PA Google+ page multiple times a day seeing if someone ported it. Once again thanks for the quick responses fellas.
[Sprint Samsung Galaxy Note II] MnRAZB:
Hey found a guy who ported the PA 3.55 rom with halo.

Check it out

http://xdaforums.com/showthread.php?t=2297793
[T-Mobile Samsung Galaxy S 4] JoJo2211:
So I went ahead and flashed the i9505 Wanam Rom from here and it works great on my M919. The rom doesn't have a modem so I figured it would be safe and sure enough it was. Here's the link: http://xdaforums.com/showthread.php?t=2283194

No wipe is required either. I simply flashed it using CWM and I now have a GT-I9505 model with all T-Mo bloatware gone! I really like the blue dialer on this too!

You will get reboot notifications, to remove that simply download "Bloatware Freezer" from Playstore and freeze the app called SEAndroid. That should take care of it.
[T-Mobile Samsung Galaxy S 4] pakraider:
Oh man... :o Fully functional though? I'd imagine Wifi Calling would be a goner, not that I ever use it anyway...
[T-Mobile Samsung Galaxy S 4] Hoggles:
No Tmo features...obviously.

Yes, a lot of people don't realize their options for goodies go beyond just the specific m919 forum. Check out the general international S4 I9505 forums. It's were I spend most my time.

Development is lagging for the m919 variant. There are only a few ROMs & choices, with slow updates.... and plenty of time has passed since release, so I'm not sure how much better it will get. It's the one negative part about Sammy devices....fragmentation of the same model. It would be nice to see a majority of elite Devs working on the same model....like the One.

MANY of the mods/themes/ROMs etc...work great with our device. The radio is the only difference between various 9505 models.

Cheers!
[T-Mobile Samsung Galaxy S 4] gypsy214:
Awesome. But who puts a modem in custom roms now days? Lol Now that I can see that this phone is actually the same hardware as the international we can have roms from there too..... In this case if a leak of a newer android update comes out we can have it port over. And not wait for tmobile,,,

If that the case than AT&T, VERIZON, AND SPRINT can be ported all like on the s3 but the fun part is the even international too
[T-Mobile Samsung Galaxy S 4] aLdaRiS:
I hope this all works so far I'm very happy with wicked but more options are never a bad thing :D

Sent from my SGH-M919
[T-Mobile Samsung Galaxy S 4] takethebox:
Wow I had no idea I could use i9505 roms. I thought i may be able to but wasn't sure. Awesome.
[T-Mobile Samsung Galaxy S 4] JoJo2211:
Working great so far. Only problem I noticed so far was constant notification from SEAndroid. I simply freezed it using bloatware freezer from Playstore.
[T-Mobile Samsung Galaxy S 4] mrvirginia:
lol give us more time, mate. would you rather we release untested ROMs? i'm sure there are a number of us floating around here that have a ROM we can put out right this second but it is good practice to test first and ensure there are no issues. this can take a little bit. i myself am in testing phase. maybe the phone has been out a while, but i personally have only had one for 2 and a half weeks. a lot of stuff in the other sections will be ported over. i have to get a good working and stable base out first before i start adding in more tweaks that will seemingly overwhelm most typical users.

also, please be weary of flashing an entire ROM from i9505 section. if there are CSC bits contained within it, you won't have a signal like you're supposed to.
[T-Mobile Samsung Galaxy S 4] RMXO:
Totally agree with the previous poster. These things take time to make.

With that said this is good news. Hopefully, we can get a dev to port these over with TMO features & Csc files.

I know AT&T GN2 had an awesome dev that ported Int GN2 over with options for TMO, AT&T & Canadian carriers.

-Sent from my TMO Samsung Galaxy S4 using Tapatalk 2
[T-Mobile Samsung Galaxy S 4] chiensibut:
so we could flash any rom from international version?
[T-Mobile Samsung Galaxy S 4] glensta:
not necessarily. It's probably a good idea to ask the OP
[T-Mobile Samsung Galaxy S 4] ktetreault14:
Not any roms from the i9500.. only the i9505 as we share the quad-core processor
[T-Mobile Samsung Galaxy S 4] lysergication:
Anyone know if the international version supports 2 way call recording out of the box?
[T-Mobile Samsung Galaxy S 4] chiensibut:
i flashed one of their rom but got a app permission that tell you to reboot the phone, how do i fix that
[T-Mobile Samsung Galaxy S 4] ktetreault14:
Go into system/app and delte everything that begins with knox
[T-Mobile Samsung Galaxy S 4] JoJo2211:
No don't do this. Simply download "Bloatware Freezer" from Playstore and freeze the app called SEAndroid. That should take care of it.
[T-Mobile Samsung Galaxy S 4] JoJo2211:
Any ROM made for I9505, you can use. Make sure the ROM doesn't have a modem baked into it (ROMs usually don't, but you must make sure). You will then have to download and app called "Bloatware Freezer" from Play Store and freeze the system app called 'SEAndroid'
[T-Mobile Samsung Galaxy S 4] ohcie_evo:
thank for the tip mate
[T-Mobile Samsung Galaxy S 4] dhonzik:
Works great, even support video call like you see in the Korean dramas. Too bad no US provider supports that
[T-Mobile Samsung Galaxy S 4] lizzluv1:
Any way if we manually added or flashed the T-Mobile bloat we could use visual voicemail at least?

Also do you feel that the battery life and overall performance is better in these ROMs?

Can we still use 4g/ 4g lte with these ROMs automatically or do we need to mess with the APN to a certain extent?

Thank you. :) I am considering flashing because I'm loving those ROMs and themes in the international forums especially that dark android theme that doesn't work well with our phones :(
[T-Mobile Samsung Galaxy S 4] Closed Source Project:
Anyone not have wifi working? Im on omega and cant get wifi to work. Any suggestions?
[T-Mobile Samsung Galaxy S 4] bgaccord:
I flashed tge wannalite rom and I still have visual voicemail.

Battery is bettery is better for me.about 4 half hrs screen time . performance is good.

4g n 4glte work perfect without changing apn. When on 4g its going to show h and when on 4g lte its going to say 4g
[T-Mobile Samsung Galaxy S 4] Closed Source Project:
How about WiFi. What baseband are you on?
[T-Mobile Samsung Galaxy S 4] bgaccord:
Wifi works great. uvumadl baseband
[T-Mobile Samsung Galaxy S 4] Closed Source Project:
Okay that might be my issue. My baseband is the older version. I tried to update it with the thread here in the general section by using odin but my device still reports that older baseband in settings>about phone. How did you get the baseband to update? My only guess is to go stock and perform an OTA?
[T-Mobile Samsung Galaxy S 4] bgaccord:
I went to galaxys4root.com got it tgere. I used odin to upgrade .rerooted and flash recovey andbglashed this rom
[T-Mobile Samsung Galaxy S 4] VIIRU§:
Lol I was actually doing a port of this rom lol but since the beans is out now ill use it for myself. PS if your handy eith beyond compare you csn get wifi calling working too.
[T-Mobile Samsung Galaxy S 4] lizzluv1:
Not sure what that is lol but it would be nice if someone got wifi calling to work with those roms. It would open up a lot more rom options for t-mobile users.
[T-Mobile Samsung Galaxy S 4] glensta:
So am I. I flashed Faux's kernel and thar fixed wifi

-------------------------------------

If I have helped you, please hit the "Thanks" button

-Sent from one of my Obsessions
[T-Mobile Samsung Galaxy S 4] Closed Source Project:
Awesome! Which version of the faux kernel did u use? The one for our device or the i9505 version?
[T-Mobile Samsung Galaxy S 4] glensta:
Our device the SGH-M919

http://xdaforums.com/showthread.php?p=41277526
[T-Mobile Samsung Galaxy S 4] crnkoj:
why does SEAndroid need to be frozen to do so?
[T-Mobile Samsung Galaxy S 4] JoJo2211:
SEAndroid will give reboot notifications after the rom is flashed. I believe its samsungs knox security software that is complaining that the phone is modified. So to get rid of that notifications I just freezed the app.
[T-Mobile Samsung Galaxy S 4] RMXO:
I can confirm that the latest Omega v3.1 from 9505 works with our S4 & I'm getting LTE speeds. The baseband doesn't change when flashing but the kernel does, so you have to flash a kernel afterwards. So here's how i did it.

1: reboot into TWRP recovery

2. Complete wipe (dalvik, cache, system & data)

3. install Omega v3.1

4. install Faux kernel but you can use others liike ktoonz which i plan to try by end of the week to see which one gives me better battery life.

5. wipe dalvik & cache

6. reboot & profit

booting up will take some time so don't fret if you see Omega's boot animation for a while. Can take up to 5-10 mins.
[T-Mobile Samsung Galaxy S 4] iwasblown:
Does this Phone have wolfson?
[T-Mobile Samsung Galaxy S 4] :
Yeah... those guys are the cat's meow. Awesome dev work. Also make sure you check out their app for building your own ROM. It's pretty dope.

http://xdaforums.com/showthread.php?t=2253629
[T-Mobile Samsung Galaxy S 4] unciviilized:
Anyone tried bobcat rom from the I9505. This :

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

edit: flashed this morning with ktoonz and its working 100%
[T-Mobile Samsung Galaxy S 4] RMXO:
Couldn't agree more but I think I'm going back to a TMO rom for wifi calling.

-Sent from my TMO Samsung Galaxy S4
[T-Mobile Samsung Galaxy S 4] gsuh54:
Modem

Where can you download compatible flashable modems?
[T-Mobile Samsung Galaxy S 4] gsuh54:
Nvm, found the thread.

What's the easiest way to remove a modem from a rom?
[T-Mobile Samsung Galaxy S 4] Misterjunky:
re: modem

None of the custom roms found in these forums include modems.

If the rom is flashable using CWM or TWRP it has NO modem in it. (all the cwm/twrp flashable roms have no modem.)

These custom roms do not over-write or modify your existing modems so you are free to flash any roms which are compatible with your phone.

Have fun flashing!
[T-Mobile Samsung Galaxy S 4] gsuh54:
Ahhh, gotcha! TY!
[T-Mobile Samsung Galaxy S 4] FirstNoobToBrickHisPhone:
I wonder when the mods will just merge these forums together.