yashsingh1/xdaforums huggingface dataset:
[Java for Android App Development] SimplicityApks:
OK, I guess you want to do it in xml, because you could also add it programatically in a for loop to your list view.

The idea with an own xml file is not bad, though normally you'd want to extend a custom View. This means you create a new xml file with a single text view in your layout folder and then add it to your activity layout via

<com.example.app.custom_view
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>

I don't think you can go shorter using xml. If it is only a list view, you might want to look at some custom list views or at this question here.
[Java for Android App Development] Moonbloom:
Thanks for the reply :)

I'm still very new to this, so "extend a custom View" says little to me i'm afraid (i'll try and google it and get a better understanding though)

I can easily make a new xml file with a android:shape="line" and set the width to 1dp, but then it ends up like this:

(Just talking about the 1st line)

I don't see any way of forcing it to move further down

I'm currently simply using <LinearLayout> with 7x <Button>. It can most likely be done in 47 other ways, all much smarter, but this currently works for my skill level and for what i need :P

Would really like to simply create 1 xml file with the properties of the line and then be able to call that xml file whenever i need to input a line in my UI. So if i ever need to change the line width, color or something, i can just change it 1 place and it'll do it all over my app.

I've done this with the actionbar dropdown in the .java files with Extend, but not sure how to go about doing it with xml (prefer xml for the UI)

It's probably extremely easy, but.. ye.. :/

- Moon
[Java for Android App Development] SimplicityApks:
OK so I googled a bit and it seems to be much easier using a ListView, consider this artcle for how to use it. Then customize the deviders as asked here.

If you really want to stay with the LinearLayout (don't do it!), do it like this:

For the Buttons (not necessarily):

1. create a new xml file (something like "mybutton.xml") in the layout folder.

2. copy your Button code in a single <Button ... /> but leave out the id (and text probably).

3. in your LinearLayout, insert Buttons like this (com.example.app is your appname):

<com.example.app.mybutton
android:id="@+id/whatever
android:text="@string/thiscanbedoneprogrammaticallyalso"
android:layout_width="match_parent"
android:layout_height="wrap_content"/>

For the seperators:

1. same as above ("mydevider.xml")

2. something like this:

<TextView
android:background = "#FFFFFF"
android:height= "1px"
android:width = "match_parent"

(use 1px and not dp!)

3. same as above (with .mydevider and no text :p)
[Java for Android App Development] Moonbloom:
I fiddled around with it a bit before seeing your latest post, and got it to work :)

Added an xml file named "button_divider" and added this code into it:

<?xml version="1.0" encoding="utf-8"?>
<View xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="1px"
android:background="@android:color/white"
/>

then i simply added

<include layout="@drawable/button_divider" />

where ever i wanted to draw a line, and it works exactly how i wanted it to :)

(i know it should probably be in the layout folder, but just added it in drawables to test it out, can always move it, not like it does anything differently)

I'll definately look into ListView, seems like it's build exactly for what i need ^^

But now i at least have a working'ish version of what i needed :)

Thanks alot for the help, i might be back here on these forums again at some point :)

- Moon
[Java for Android App Development] Zatta:
Shouldn't you just use a listview?
[Java for Android App Development] Moonbloom:
Tried to get this to work, while im working on figuring out how to use ListView instead as it seems (according to the two of you) that it's much better :P

I ran into a problem though.. I made a new xml file in the layout folder named "master_button", pasted this code in there:

<Button xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:gravity="center"
android:textSize="25sp"
android:textColor="@color/Blue"
android:background="@android:color/transparent" />

Then i tried using your solution with <com.example.app.mybutton> (i ofc changed to the real name) but nothing would show up at all.. It seemed to need a class (java file) to be able to do it, but that just went horribly wrong when i tried adding it..

Then i tried to use <Include layout="xx"> as i did with the line earlier.. I can set the android:id="xx" easily, but it seems i cant set the android:text="xx".

Off to try out some more stuff and see if i can get anything working ^^
[Java for Android App Development] SimplicityApks:
I think that is because you use the weight in the Button. If you set the width to 0 and it's ignoring the weight you will not see anything ;) Try removing the weight(and probably width and height as well) in the Button and put it in your LinearLayout, where you insert your Button.
[Java for Android App Development] SimplicityApks:
Found an easier solution for your Seperators:

here's the link: linklinklink
[Java for Android App Development] out of ideas:
Should really just use listview next time. it does it automagically.
[Sprint HTC One (M7)] flimsy888:
Viper Rom keeps changing my wallpaper back to the viper rom logo...any help?
[Sprint HTC One (M7)] tyler.durden:
Been running it for almost two months without problems. I can't imagine what would be causing thing unless it's something else you have flashed on top of it.
[Sprint HTC One (M7)] FrostyF7:
It could be because the launchers cache keeps getting erased. If you have an app that wipes cache try to take the launcher out of the lost or something.
[Sprint HTC One (M7)] coal686:
You'll use the Viper ROM logo and you'll like it! ;)

In all seriousness, I've had that happen when changing launchers before. The wallpaper from the old continues being used in the new for some reason.
[Sprint HTC One (M7)] flimsy888:
I'm using the stock launcher, haven't changed it...
[Sprint HTC One (M7)] mrlakadaddy:
What's your setup? Recovery? How do you wipe? S-off? Tibu? Google Backup?
[Galaxy S 4 Q&A, Help & Troubleshooting] Eirik78:
My device was rooted with an autoroot, worked excellent until I updated the FW...

I now have xxubmf5 installed, and its a nordic phone.

But.. Cant seem to find any autoroot file for this?

Tried searching, but ended up in endless threads spanning hundreds of pages :crying:

Anyone who can direct me in the right direction?
[Galaxy S 4 Q&A, Help & Troubleshooting] HS™:
http://xdaforums.com/showthread.php?p=39901375
[Galaxy S 4 Q&A, Help & Troubleshooting] Eirik78:
Thanks, but...

Used that method last time, but as I said after updating the phone I cannot get this to work any more :crying:

And, as a new member Im not allowed to post to that thread...

I have Avast installed, and for the firewall to operate it needs root. (one of the reasons to root).

Always worked flawless, and after the FW-update it still does... No sure why...
[Galaxy S 4 Q&A, Help & Troubleshooting] HS™:
This is one of the best method to root if possible reset the device completly and then try to use this method will work i sure

Else

Flash the kernal in the below link its with the root

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

Or u can also flash pre rooted firmware

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

These arethe best option i can provide u with my friend
[Galaxy S 4 Q&A, Help & Troubleshooting] Eirik78:
Thanks for your help.

After a second reset, I got it to work!

But.. Now I only get charging at 1200mA, before 1900..

Anyone know why?
[MDA II, XDA II, 2060 ROM Development] RaNmA_:
Deleted*
[Sprint Samsung Galaxy S 4 Q&A, Help & Troubleshoot] Greg O:
Searched through most everywhere and found very few references to mic problems, but no solutions. My mic keeps dropping out during calls (not always, but often). If I switch to speakerphone the other end can hear me fine. It didn't do this for the first couple of weeks (month?), but then it happened 2-3 times in a row so I don't think it's a Sprint or tower issue. Now it's fairly regular.

I'm still stock, not rooted, so I may try doing a factory reset first, but this sure sounds like a hardware problem. But what confuses me is the speakerphone mic working. I thought the S4 only had one mic. If so, then it could be a software issue. Can anyone confirm it uses only one mic?

Thanks,

Greg
[AT&T HTC One (M7)] Dryvlyne:
What exactly do the "Wi-Fi optimization" & "Best Wi-Fi performance" settings do? Are they mutually exclusive? In other words, if one is checked should the other be unchecked?

Thanks
[AT&T HTC One (M7)] HomesliceOne:
Wi-Fi Optimization = Minimizes battery usage when wi-fi is enabled.

Best Wi-Fi Performance = Higher battery consumption but higher performance (aka cranked up wifi radios)
[T-Mobile Samsung Galaxy S 4] Luthien1:
im not a noob and never had thid problem in years. i installed twrp through goo mananger. The weird thing is it installs kernels just fine, but not a rom, any ideas? please help
[T-Mobile Samsung Galaxy S 4] lordcheeto03:
What error does it give when it fails to flash a ROM? What ROM are you trying to flash?
[T-Mobile Samsung Galaxy S 4] Luthien1:
it says e error, its very strange, i tried installing cwm and that recovery wont even let me make a backup, this is terrible uhhh... sorry it just says E: error and doesnt say anything else
[T-Mobile Samsung Galaxy S 4] lordcheeto03:
It says E: error when you try to make a backup as well?
[T-Mobile Samsung Galaxy S 4] Luthien1:
ok i had twrp through goo manager, and i was able to make backups and install kernels just finel but when i tried a rom such as infamous it gave me the error, so i tried to install through micro sd card, no luck same error something about it not being mounted. So, i installed cwm and tried to make a backup but then i ran out of space, so the backup failed, so i had to delete some stuff, now im trying to back up again, then i will try to install a rom with cwm
[T-Mobile Samsung Galaxy S 4] Luthien1:
this is so strange, i didnt do anytihng out of the ordinary, i got root by chainfire, then installed goo manager, and then a custom kernel...the most viewed one right now, so i thought it was legit which im sure it is, then a rom..... to end the madness, then i keep getting errors, its so frustrating
[T-Mobile Samsung Galaxy S 4] lordcheeto03:
Ok, see, now that is getting to the meat. Try flashing another ROM... I understand you might just want Infamous, but try flashing another one just for testing purposes. I'm thinking you're one to add to the list of having a bad Infamous d/l.
[T-Mobile Samsung Galaxy S 4] Luthien1:
i did i tried flashing jedi rom and that failed too, soo this is just weird
[T-Mobile Samsung Galaxy S 4] Luthien1:
i got frusturated and said if i cant have a custom rom, ill debloat now im getting errors, im on my way to a bricked device
[T-Mobile Samsung Galaxy S 4] lordcheeto03:
I may be overboard with my suggestion, but it wouldn't hurt to Odin back to 100% stock and restart your journey.
[T-Mobile Samsung Galaxy S 4] Luthien1:
now it says E cant open/sdcard/o/download/jedi(bad)
[T-Mobile Samsung Galaxy S 4] lordcheeto03:
Before you Odin back; are you still able to successfully flash any of the kernels you've downloaded? Also, if you downloaded any of the ROMs onto your computer, try browsing through the zips real quick on your computer.
[T-Mobile Samsung Galaxy S 4] Luthien1:
yes i can install kernels just fine, just not roms... it says it cant open the zip file, so weird.....i think i need to odin completely back too
[T-Mobile Samsung Galaxy S 4] AxAtAx:
Slow down, re-group, you are NOT going to brick...

First off, lets try some things, my first would be try a different recovery, copy a rom you want to the internal sdcard, then try. Bet it works.

I had a issue like this also, day 2 of my g4, pull the battery for 5-10 min, it seems the recovery gets confused and it will error.

another item to try...check to make sure the md5 file size is correct. common mistake, people for get to do a check.

try these, if you have the same issues, odin back to stock and start over.

Good luck. Your welcome.
[T-Mobile Samsung Galaxy S 4] Toleraen:
Probably this...and a formatting of the internal storage couldn't hurt either to make sure everything is cleared out.
[T-Mobile Samsung Galaxy S 4] Aoe316:
Hey I had same problem. Download through Firefox not reg browser. And for infamous use the last download link

Goomanger gave me 3 bad downloads. To test this theory try and open the zip through a file manager, it probably won't let you because of bad download.. Happened to me 4 times but stopped using stock browser to download those files and has been working ever since

---------- Post added at 10:54 AM ---------- Previous post was at 10:50 AM ----------

Also if you can't flash most things from more than 1 recovery still(happened to me when first got my gs4) I did Odin again but used 2.5.0.2 twrp and everything fixed as well. I recently was having the problem you have now and my first suggestion fixed it
[T-Mobile Samsung Galaxy S 4] Luthien1:
so, thank you everyone for your replys in this matter. I did odin back to stock and guess what, i got stuck at the splash screen for t mobile. This never happened before with odin, it always worked 100 percent, this is the first time i odined back to stock and it broke my phone, so weird. So, im going to try again. I wil def use firefox next time, and twrp you said the latest is having problems?
[T-Mobile Samsung Galaxy S 4] AxAtAx:
Might want to thank people for the effort...there is a thanks button

get into recovery now, and do a factory reset, flash the correct kernel for your device, it will boot.
[Galaxy S 4 Q&A, Help & Troubleshooting] dapeng.he@hotmail.com:
my phone is ATT GS4, will flash to factory rom using Odin destroy my photo?

also will 'factory reset' in the recovery mode remove my photo?

thank you
[Galaxy S 4 Q&A, Help & Troubleshooting] HS™:
Factory reset will remove if u using Stock recovery

Only flashing firmware using Odin won't delete anything
[Galaxy S 4 Q&A, Help & Troubleshooting] dapeng.he@hotmail.com:
But I think I read from this forum that stock factory reset will not remove data in internal sd card, where the photo is stored, isn't that correct?
[Galaxy S 4 Q&A, Help & Troubleshooting] Aerys:
it will auto-upload your smexy photo to twitter and facebook :o
[Galaxy S 4 Q&A, Help & Troubleshooting] dapeng.he@hotmail.com:
:DI hope it's real, that would save me from my misery....

but I doubt it:(
[One (M7) Q&A, Help & Troubleshooting] moomingstarz:
The keyboard disappears after a sent text message. Is there a way to keep it up? :(
[General Topics] alundra212:
I have sold my s3 and got a note 2 since december from last year.

The reason i bought such a huge phone was for the s pen. It helped me in college for taking notes, but then ive bought an ipad which can work for the same purpose, except without the s pen.

Nowadays im just not finding the note 2 practical for everyday usage. Its just too big.

So now im Thinking of selling it and either buying either an s4, htc one or xperia z.

Can someone give me feedback on those phones?

I love the design of sony phones, but i also cant live without the features of samsung phones
[General Topics] joyce moralezz:
if ill be you ill buy the s4 it has a tecnology good for what your looking for

Sent from my using xda app-developers app
[General Topics] Schproda:
rtnau are

I can't think of any reason the s4 wouldn't be a good choice.
[General Topics] barondebxl:
I would recommend the HTC one. Reason why is because you're coming from a note 2 which is pretty much the same as an S4 minus a couple of features and the 1080p display. The Xperia Z would be a very bad choice as it has sub par battery life, lags and the display is really a letdown. The HTC one stands out with is fantastic display, it's flawless performance, the amazing boomsound, the phone looks beautiful and dev support is excellent.

At the end of the day everything is a matter of preference but do yourself a favor, whatever phone you choose make sure it's between the S4 or HTC one, the XZ is really not that good. I wanted to also recommend the optimus G pro but you said you want something smaller. Cheers.
[General Topics] Username invalid:
Neither the HTC One or S4. If you are thinking of getting a phone for long term, you would be better of waiting for a Snapdragon 800 CPU phone to be released soon instead of getting a Snapdragon 600 S4 or One.
[General Topics] dqhuy1989:
i'll earn money to buy it
[General Topics] ShadowLea:
Do you require the use of a MicroSD? If the answer is yes, then you can forget about the HTC One. (Say all you want about how it has 64GB internal storage. MTP is so horrendously slow and unstable that copying a 3GB Bluray file simply doesn't work.)

If you can, wait for September. The IFA will be hosted early september, and many will be announing their new phones there. Most are switching to an S800, which is more powerful.

If you can't wait, I'd suggest going with the S4.
[General Topics] alundra212:
Im not really in a big hurry, but what new flag ships are rumored to be shown?
[General Topics] felixlong:
Since you really like S Pen feature. Galaxy S4 should be your choice.
[General Topics] beastlykings:
The S4 does not use the S Pen, unless you are talking about something else, because I have an original Note and my wife has the S4, my pen does not work on hers. Just saying.
[General Topics] joyce moralezz:
I have a galaxy and it has tecnology that he might likee
[General Topics] yash.khatri3297:
this is what i think

if you are talking about the air play the multi window and stuff there are apps for rooted phones and Sony would be your best choice as it's water proof and dust proof i personally hate samsung phones as they have a lot of crapware & bloat wear to fill our flash memory so your best bet will be sony or maybe HTC still i love sony
[General Topics] tt281gt:
Agreed. Lg g2 will be announced tomorrow
[General Topics] mike28:
lg g2 looks promising
[General Topics] Nishchhal:
I would also pick the lg g2
[General Topics] sauprankul:
Ooor you could wait for the rest of the next gen phones like Oppo 7. Nexus 5. One + and Max. S5. Note 3. Moto X.

The list goes on. Don't jump the gun.
[General Topics] ZoidbergFry:
note 2 still the best

maby wait for note 3? since you're used to the spen
[XPERIA X8 Q&A, Help & Troubleshooting] gohan678:
hi,

I'm reading the guides for unlocking bootloader and install different kernel.

but no one mention installing cwm, how do I install it?
[XPERIA X8 Q&A, Help & Troubleshooting] CnC-ROCK:
use search button. there is a thread on X8toolbox. you will find cwm installation process in that
[XPERIA X8 Q&A, Help & Troubleshooting] gohan678:
Ah, I read that one before but someone wrote it was for locked bootloader only.
[XPERIA X8 Q&A, Help & Troubleshooting] Gogeta:
For unlocked bootloaders it comes inside kernel !

work hard, play hard:cool:
[HTC One X] mxtek5:
Hi guys,

My HTC One X shut off yesterday mysteriously and won't turn on, there is also no red light when plugged into a charger, the phone just seems to be dead. I have tried to hold the volume down button and the power button for up to two minutes and nothing happens to reset it! Please help if you can, thanks in advance!
[HTC One X] MirageBu2:
try with some other a/c adapter, or just other usb cable.
[HTC One X] mxtek5:
I tired changing adapters and the cable but no luck.
[HTC One X] kartiksingh33:
Same query...I got my new HTC one x a day before (from grey mkt). Day 1, it was running smoothly...after installing few apps from play store, next day it went dead....now nothing seems to be happening with this new dead brick. No charging, no display.. nothing.....guys pls help:(
[HTC One X] mxtek5:
This seems to be all too common and I wonder why HTC hasn't had some sort of recall issued for this? I must say though that I called htc today and they were very pleasant to deal with, I am shipping the phone off to them tomorrow for repairs and will report back on how it goes.
[HTC One X] ashutoshsinghy2k:
Did u undervolt or tried any type of modifications to systems
[HTC One X] neyy:
I have the same problem as member mxtek5! was fine and all the sudden it just shut off and never came back to life... 2 days now! Please, if someone finds an answer, do share with us!!!
[HTC One X] mxtek5:
Elegori raifing

What is undervolt? Do you mean use a different charger?

No I haven't done any modifications to the system.
[MDA II, XDA II, 2060 ROM Development] tumtum:
Now, I'm on WM2005 that works fine.

I try to extract Bluetooth and SD driver from WM2005

Does anyone on WM2003SE or WM2003 post all registry from your device?

Thank for help.
[MDA II, XDA II, 2060 ROM Development] yasmeene:
Hi, me too need the registry from wm2003/2003SE I try to face the storage problems on wm2005, can someone please upload theyr imported registry (after hr will be best)?
[Atrix 4G Q&A, Help & Troubleshooting] Ultimawar:
My Atrix's Bluetooth and Wifi chip burned out a month ago and this week I started getting garbled phone calls. I tested my phone in many places and it seems to happen on and off. I never had this problem before with my service provider. The audio I send and recieve from my phone sounds garbled/distorted on both ends. I haven't done anything new to the software, I'm sure it's a hardware error.

Has anyone else had this problem? Is this related to my sim?
[Atrix 4G Q&A, Help & Troubleshooting] palmbeach05:
What ROM and kernel are you using?
[Atrix 4G Q&A, Help & Troubleshooting] Ultimawar:
I'm using both the stock ROM and kernel.
[Atrix 4G Q&A, Help & Troubleshooting] palmbeach05:
which specific stock version? remember, some ppl never accepted the ota's, that's why i'm asking
[Atrix 4G Q&A, Help & Troubleshooting] Ultimawar:
Okay gotcha!

Android 2.3.6

Kernel 2.6.32.9 wmb050@zbr05lnxdroid19 #2

System Version 45.21.78.MB860.BellMobility.en.CA

Build number: 4.5.2A-51_OLL-17.8
[Atrix 4G Q&A, Help & Troubleshooting] palmbeach05:
ok. i would recommend making a backup of your rom, and then trying out a custom rom. if the problem still exists, then you can flash the stock *.sbf file and see if that fixes it. if you don't want to try that, then you're going to have to look at getting a replacement device.
[Windows RT Development and Hacking] windowsrtc:
I have modified the Single Player Game Transmitter client video renderer to D3D and DDRAW to increase performance on Windows RT.

http://vorphalack.com/

"The aim of this project is to allow remote desktop tramission for interactive 3d applications such as games or designer tools.

Actually, this is a small open source counterpart of streammygame.com, without any restrictions"

Single Player Game Transmitter is a free alternative to RDP and Splashtop on Windows RT for lan game play.

Benefits include:

1.low latency

2.high fps(60fps at 800*600 on Surface Rt)

NOTE:

1.the width should be 512,640,768,1024,1152,1280 for ddraw mode on Surface Rt

2.the client depth must be 16.for best performance both capture depth and client depth should be 16

View attachment 2100092

View attachment 2100095
[Windows RT Development and Hacking] wingmanjd:
I'm having a heck of a time getting this to work. Has anyone else had any luck?
[Windows RT Development and Hacking] S1yRuleZ:
Doesn't work as expected. I'm using JBroken SurfaceRT, I can run and connect it to the server in LAN but I receive a pink/green tonality stream from the server. I also installed the lastest xvid drivers on the server side PC.

Any suggestions?

You have to find out what's exactly the server address that is running the service. If server and client are on the same router and you don't remember what local IP has been assigned to your PC (server) just log in to your router main page (in most cases 192.168.1.1 or 192.168.0.1) and look for LAN options, there should be all machines with the respective addresses. Once you obtained the server IP, just put it in the client gui.