yashsingh1/xdaforums huggingface dataset:
[Android Software Development] ronnie301184:
Hey guys, this is the first time im trying my hand at android development, im still fairly new to development altogether.

Basically what I'm trying to do at the moment is read a list of folder-names in a particular directory, then write those to another file.

The file I'm writing to is at /data/data/com.rone/files/app_list

I'm trying to read from /data/data/

The app has been given su privileges as well. My issue is that I can't seem to read from any folder other than / (root)

private OnClickListener sort_listener = new OnClickListener() {
@Override
public void onClick(View v) {

String datafolders ="";

File dir = new File("/data/data/");
if(dir.isDirectory() && dir.canRead()){
Log.v("DEBUG", dir.getName() + " is the searching directory!");

for(int i = 0; i < dir.list().length; i++)	{
datafolders += dir.list()[i] + " \n";
}
}
else {
Log.v("ERROR", "directory does not exist or can not be accessed!");
}
writeFile(datafolders, "app_list");
}
};

public void writeFile(String input, String filename)	{
try	{
FileOutputStream fos = openFileOutput(filename, Context.MODE_PRIVATE);
fos.write(input.getBytes());
fos.close();
return;
}	catch (FileNotFoundException e)	{
Log.v("ERROR", e.getMessage());
}	catch (IOException e)	{
Log.v("ERROR", e.getMessage());
}
}

public String readFile(String filename)	{
try {
FileInputStream fis = openFileInput(filename);
String temp = "";
int ch;
while ((ch = fis.read()) > -1) {
temp += (char) ch;
}
fis.close();

return temp;
}	catch (FileNotFoundException e)	{
Log.v("ERROR", e.getMessage());
return "Exception" + e;
}	catch (IOException e)	{
Log.v("ERROR", e.getMessage());
return "Exception" + e;
}

}

It only writes to the file when I use:

File dir = new File("./");

Also, my app is specifically written for the SGS and I'm using Eclipse. Any way to get and import a custom SGS skin with the Menu and Back button functionality?
[Android Software Development] ronnie301184:
No replies? No one knows how to read the directories? Is there a limitation built-in that stops from reading directories? Even with su permissions?
[Android Software/Hacking General [Developers Only]] roy8846:
Anyone got/getting one of these???

Hope to see 2.3 on it eventually :)

Android 2.2 Froyo

Built in 3G WCDMA UMTS/HSDPA (2100MHz), GSM/EDGE (850,900,1800,1900MHz)

Make phone Calls

Receive phone calls (use like a regular phone)

Sens SMS, Receive SMS

Bluetooth 2.1+EDR (ability to make calls), file transfer,

Microphone support

Freescale IMX515 800MHz ARM Cortex A8

Gsensor

Light Sensor

Front Fascing camera

Built in GPS SiRF3

USB port

Standard 30-pin port (supported by many devices)

Wi-Fi (802.11b/g)

Excellent Ebook reader

Internet browsing, HD Video, Lnline Music, Map, Real-time communications

Flash 10.1, access all flash websites and online flash games

7" size perfect to bring with you anywhere

Slim body

3.5mm audio jack

HDMI out

USB port

Built in Battery 4200mAh

The device is $399 from merimobiles

http://www.merimobiles.com/Kinpad_I600_7_Android_2_2_Flash_10_1_Capacitive_p/meri0540.htm

If the link is not allowed please delete (this is not meant to be an advert lol)
[Android Software/Hacking General [Developers Only]] lhongskie:
It will be available on end of december

I am really looking forward getting this device...

It is almost Samsung Galaxy Tab...
[Android Software/Hacking General [Developers Only]] xexes:
I just discovered this last night and am going to get one as soon as it's available.

I bought a Tmo Tab first day they were out but devs could never get phone enabled w/o losing 3G... so I took it back.

Gonna get one of these instead.
[Android Software/Hacking General [Developers Only]] spino1970:
Did you ordered?
[Android Software/Hacking General [Developers Only]] tobyw01:
I have one of these. Got it late January. So far so good. Works on at&t 3g not t-mobile. The device handles pretty good. Just got an update from manufacturer that fixed a couple problems with 3g. Roots withsuper1click or z4root. There is athread on androidtablets.net.
[Android Software/Hacking General [Developers Only]] quentin.0160:
Ive one identic type

Hi folks

Ive bought An identic type of device.Its called MY-PAD T60.It has the same technical aspecs like kinpad i600.

Heres the Homepage: www.my-pad.nl

Ive bought it in germany at LIDL online for 279 Euros.The package includes: Device T60,"MY-PEN" Touchpen,Grey carrieing Bag,USB to PC Cable,USB Charger,30 PIN to USB adapter for USB Sticks or smth.

You could find some NEW MY-PAD T60 Devices on EBAY Germany for 115 Euros.Damn it,ive Payd the full price:crying:

Greetings
[Droid Incredible Android Development] gmichaelow:
JUST KIDDING. Go back to the other thread.
[Droid Incredible Android Development] gmichaelow:
Bugs:

Slow

SD Card does NOT mount

Browser FC. (Workaround: Go to airplane mode. Open browser. Change homepage. Unairplane. Works from then on.)
[Droid Incredible Android Development] gmichaelow:
Credits:

ID for original inspiration and 3G fix.

punk.kaos for ramdisk help.

echoside for ramdisk help.

seanzer for ramdisk help.

cyanogen and Koush for CM files. And, yes, you guessed it, ramdisk files.

(haha, we had a lot of trouble with the ramdisk)

And, last but not least, my main collaborator:

r2DoesInc for ramdisk help and digging through errors.
[Droid Incredible Android Development] trock79:
You guys are awesome, I see a new class of developers developing lol for the Incredible. I wish I knew as much at this point as you guys! I'm getting there, slowly...
[Captivate Q&A, Help & Troubleshooting] Johosophat:
I am currently having a problem with the wifi on my captivate.

It is a strange problem that keeps re-occurring when I am on a Froyo build, currently Axura CE. It seems that every time my Belkin router gets restarted it seems to stop my captivate from being able to connect, it just keeps saying

"disconnected" and that the connection is "disabled" after trying to connect to the IP address.

So does this seem like an issue with my phone or the router? I have read of similar problems but nothing quite exactly like this on the forums...
[G2 and Desire Z General] Utorrent76:
Hey guys & gals just wanted 2 share something with u. I recently decided 2 uninstall cetcpu from my phone & decided 2 go with cpu tuner instead.In doing so i've noticed my battery life improve significantly with some profile tweaking of course.If you've run the virtuous htc sence rom with the pershoot o.c kernal u know how disgusting the battery life can b.It literally sucks the juice out of your battery like "Debbie" from Debbie does Dallas sucks the juice out of...well u know. Anyway,i also noticed how little juice the system resources now use up. I included a screenshot of the battery status screen.Hope this helps anyone with battery issues especially if your running the rom & kernal mentioned above, it worked 4 maybe it can work 4 u. P.S I have the screen set to 20% brightness,gps,wifi,blutooth,autosync all disabled.Only reason i mention this is because even with all these things disabled along with a few other,b4 installing cpu tuner my battery would still drain like crazy. Thx.
[G2 and Desire Z General] ramainli:
That's some horrible grammar.
[G2 and Desire Z General] elracing21:
Useless post, This isn't grade school or school period. If your worried about grammar over the Interwebz then i dont think you should be posting on a forum site.

Liek ma grammarz?

Anyway, Your saying the cpu tuner helps the battery life? I'll give this a go but I don't use any of the sense roms. I'm all for better battery life although I do get 15h on pershoots kernel running cm 6.1 stable.
[G2 and Desire Z General] androidtoy09:
This qualifies to be douche bag of the day. Sadly, the internet has so many of this kind of people.
[G2 and Desire Z General] greengoldmello:
So does this site.

Back to topic, i will also give it a try
[G2 and Desire Z General] Utorrent76:
Watch out every one,carefull when you post. Make sure you mind your p's & q's the grammar police is on patrol. If u don't like the way I post 2 bad. Don't read it.
[G2 and Desire Z General] rumitg2:
i have almost the exact same info on mine with setcpu oc to 1ghz on CM6.1 and i get atleast a full day of use with frequent music and texts. alot better then any other android phone.
[G2 and Desire Z General] Vulgrim:
I don't know how you guys are having such bad battery life. Currently at the moment I am at 22h 11m 51s since unplugged with 57% left. This is all with CM6.1 RC4 w/ wifi + wifi calling on all the time when I am home, autosync on for everything, auto brightness, and some use of gps. I listen to music on my phone for atleast 3+ hours walking to and from class + texting, browsing, facebook, twitter, fantasy league during class and the occasional call, pretty good usage. with setcpu on oc to 1ghz with some profiles set up.
[G2 and Desire Z General] juanshop:
what if im not running sense?
[G2 and Desire Z General] Vulgrim:
If it works with sense I would think it'd work with most everything else.
[G2 and Desire Z General] xdviper:
Is the phone not quick enough at 1Ghz? I keep mines on stock speeds, have setcpu installed but don't use, and have CyanogensMod on it. I get the whole days worth plus more of battery. I can't even kill it when I want to recalibrate it.

A whole day for me is about 16-20 hours for me without charging. This is MADNESS!
[G2 and Desire Z General] androidtoy09:
Not that the phone is not fast enough. It's placebo effect where people "feel" that it needs to be faster when they overclock it at crazy speed. The G2 has already proved itself a speed monster, none of the android phones out there can top it right now. As for the battery life, I honestly don't notice any considerable improvement.
[G2 and Desire Z General] dietotherhythm:
I just noticed your sig, and it made me giggle.
[G2 and Desire Z General] thenotoriouspie:
I'm sure a lot of people won't.
[G2 and Desire Z General] Utorrent76:
Nice.

At last check it's been 21hrs since i unplugged my phone & it's still @ 65% with moderate use.Personally I haven't been getting results this good since i made the switch so this makes me happy.
[G2 and Desire Z General] ecclesiatic:
Hey Vulgrim what radio are you using?

I will try out CM 6.1 TONIGHT just to get the battery life.

I do find that the main culprit in dire lifecycles is 3G which unfortunately is what I use the most (nomadic lifestyle and all...)
[G2 and Desire Z General] quierotacobell:
So what settings exactly are you using on the cpu tuner? Just wanted to know so I can replicate it.
[G2 and Desire Z General] Utorrent76:
My settings.

@quierotacobell...Under "Current" i have governor set to:conservative,Max:1094Ghz,Min:768Mhz.

"Profiles":

Performance:ondemand-Max:1097Ghz,Min:768Mhz

Good:conservative-Max:1094Ghz,Min:768Mhz

Normal:conservative-Max:1094Ghz,Min:768Mhz

Power save:conservative-Max:1094Ghz,Min:768Mhz(services set to 2g)

Screen off:conservative-Max:768Mhz,Min:768Mhz

Extreme Power save:conservative-Max:768Mhz,Min:768Mhz(services set to 2g)

Keep in mind i have wifi,blutooth, & sync disabled all across the board.Also i'm simply stating what worked for me it's no guarantee it's going to work for you.
[G2 and Desire Z General] Vandam500:
Hmm how can you get better battery life with CPU Tuner because the lowest you can go to minimum is 768?
[G2 and Desire Z General] quierotacobell:
Will try that out Utorrent, thanks.
[G2 and Desire Z Accessories] Chargr:
I'm pretty sure they are designed the same way, so using a desire z case shouldn't be a problem with trying it on a G2 right?

I'm trying to get this one:

http://www.amazon.co.uk/YELLOW-HYBR...1?ie=UTF8&s=electronics&qid=1291842135&sr=8-1

Cost	£2.90, how mich is that in U.S currency btw?

Thanks.
[G2 and Desire Z Accessories] eatjello:
its just over 4.50$ Like $4.55 i think.

My friend has a G2 and i have a desire Z, all our stuff fits equally.
[G2 and Desire Z Accessories] Chargr:
Thanks, hopefully they can ship to the U.S..
[G2 and Desire Z Accessories] eatjello:
shipping may cost more than the item haha. isn't there any alternatives in the US?
[G2 and Desire Z Accessories] Chargr:
This is the only U.S alternate I could find:

http://www.amazon.com/gp/product/B004CT1PNQ/ref=oss_product

But as you see it doesn't cover the trackball. I have it now and it looks off without it compared to my other cases.

And the U.K version is the only one I could find.

Update: Found one on ebay:

http://cgi.ebay.com/Yellow-Hard-Cas...595488?pt=PDA_Accessories&hash=item20b5b695e0

Thanks for the help.
[G2 and Desire Z Accessories] eatjello:
ah i see. i looked but couldn't find anything either. ebay?
[G2 and Desire Z Accessories] Chargr:
Yeah came out to 6$ total. Good deal.
[G2 and Desire Z Accessories] eatjello:
cool. very cheap deal from another country haha.
[G2 and Desire Z Accessories] Chargr:
Oh no, this was a U.S seller from ebay. Did more searching and found a seller from the U.S on ebay.
[G2 and Desire Z Accessories] eatjello:
even better
[G2 and Desire Z Accessories] AZ2ENVY:
DesireZ and G2 are the EXACT same phone minus the ROMs .
[Windows Phone 7 Software Development] WinP7:
Is there an API to get access to the flash LED on the Focus? I know this is possible on other devices; my friend has a flashlight on his HTC Surround which uses the flash LED, however I have seen nothing like this for the Focus, nor have I seen any literature demonstrating how this might be done.

Much thanks for any help which you can provide!

(My apologies, if I knew what I was doing I would have linked this posting to the same posting which I left in the specific forum for the Samsung Focus. It doesn't seem as though that forum is getting much traffic though. Which is the proper forum for a question of this nature? And how do I submit a linked posting to two forums? Thanks for putting up with my NewB ignorance!)
[Windows Phone 7 Software Development] emigrating:
There is no public API for this yet. The calls are there though, just means you would not be able to get an app utilizing the LED published on the marketplace.
[Windows Phone 7 Software Development] sensboston:
Check this http://xdaforums.com/showpost.php?p=9663088&postcount=11

Not exactly as HTC app (it's good) but just something... :)
[EVO 4G Themes and Apps] Brutus2TheMax:
Here is Gingerbread. I will be updating this as time goes on! Credit to Cyanogen for CM6.1.1 and jblazea50 for the original port. In no way do I take credit for anything ROM wise. This ROM is totally Cyanogen besides graphic wise. I am making a new thread so I can update the OP.

NOTE: This isn't just a theme but a themed rom. This is CM6.1.1 Final with the theme in it.

NOTE: I am not responsible for any broken/bricked/jizzed on phones...

Installation instructions:

Download both files and place on root of your sdcard.

Reboot into recovery.

Full wipe RECOMMENDED (although some have done it without).

Flash themed rom.

Flash themed gapps.

Reboot.

DO NOT PLAY WITH NOTIFICATION BAR COLORS OR XML! Only change clock colors and notification colors or it will screw the notification bar up!

Changelog:

V0.2 - Updated to 6.1.1 and based of Nexus S system dump.

V0.1 - Basic gingerbread elements.

SCREENS.

DOCK AND DOCK ICONS FOR LAUNCHER PRO.

Flash through recovery.

UPLOADING TO SERVER.
[EVO 4G Themes and Apps] Bizdady:
Dloading now, will try in a bit lol Anyone have know where I can get the white icons (i couldnt do green lol) to swap them out later?
[EVO 4G Themes and Apps] Brutus2TheMax:
You can download the SDK and pull them out of the framework and swap them out.
[EVO 4G Themes and Apps] Bizdady:
I tried that but they still showed up green. I was sure they were white too, i think something was up with my phone lol Ill try on pc later. Thanks for this update, cant wait to flash soon but the wifey wont stop texting me lol
[EVO 4G Themes and Apps] Systemfraud:
Is there anyway I can possibly port this to a Sense ROM? I have an AOSP theme for sense that I could possibly swap icons, and stuff from notification bar, but I've tried that somewhat already and keep boot looping...
[EVO 4G Themes and Apps] mmegalodon:
Very nice. Thank you.

SWYPED from my SUPASONIC
[EVO 4G Themes and Apps] tmotech88:
where can i get the Nexus live wallpaper that is in the OP?
[EVO 4G Themes and Apps] Brutus2TheMax:
It's the Nexus Live Wallpaper that comes in CM6.1. Change the background to Carbon.
[EVO 4G Themes and Apps] tmotech88:
thanks so much!!!
[EVO 4G Themes and Apps] Brutus2TheMax:
No problem
[EVO 4G Themes and Apps] SONIC589:
can you make the battery, signal strength, and launcher icons a little darker green? the green looks quite a bit lighter than the green in the nexus s pictures. The theme looks great overall!!
[EVO 4G Themes and Apps] Brutus2TheMax:
I've noticed that too, I'm going to try and do some updating tom. Check back for updates then!
[EVO 4G Themes and Apps] Bizdady:
Do you know if the 3g icons are also in the framework? I found all other icons but no go on the 3g icons. Weird though since I see the green 3g icons in my current roms framework.
[EVO 4G Themes and Apps] robbiep:
Where can we donate kind sir?
[EVO 4G Themes and Apps] damnn:
does this work with snap turbo kernel becuass i flashed it with snap turbo.. and i dont see the snapp turbo app plesae help thank you
[EVO 4G Themes and Apps] MonsterMatt:
I flashed this on top of Nightly #192 with no problems at all :D

This is an amazing theme on an amazing theme. Thank you so much OP and Cyanogen for making this all possible.

Brutus I was wondering whether it be in CM setting or LauncherPro's but can I change the text color of my ongoing notifications?

See attached (2nd Pic)
[EVO 4G Themes and Apps] Brutus2TheMax:
You can change everything but custom notification bar or pull down. Notifications are A OKAY to change!

EDIT: Sorry I forgot to answer your question haha it's in CM settings under user interface
[EVO 4G Themes and Apps] MonsterMatt:
Thanks found it! Now my theme can't be beat :D
[EVO 4G Themes and Apps] datajosh:
I already have the previous version of the theme and have tweaked some other things I would prefer not to flash over... what file(s) would I need to edit to just change the notification bar to solid black?
[EVO 4G Themes and Apps] Brutus2TheMax:
Statusbar background pngs
[EVO 4G Themes and Apps] MonsterMatt:
Brutus you still trying to update the theme?
[EVO 4G Themes and Apps] iceman99393:
any chance of changing the color of the pulldown notification from white to black? That is really killing this for me since nothing else is white, just so out of place on an otherwise great theme.

Thanks
[EVO 4G Themes and Apps] Brutus2TheMax:
Trying to fix the XML but can't get the text to change to white...

On a side not...

Check out my live wallpaper :)

Wish I could do this with Set Save Wallpaper to get rid of color bleeding...
[EVO 4G Themes and Apps] Brutus2TheMax:
Oky so good news on the menu. I found out how to I'm just having trouble doin it!

http://xdaforums.com/showpost.php?p=9664604&postcount=77

Anybody wanna help?!
[EVO 4G Themes and Apps] MonsterMatt:
That wall is awesome! Sorry I would but I'm just just a user not a dev ;( hopefully someone else can.
[EVO 4G Themes and Apps] mmegalodon:
I feel like some of the pictures I've seen have the green "greener" than it appears when viewing the SDK. Is the green your using the green it should be? I only ask because this comment made me realise I didn't like the original green I was seeing ... the one now I like .. am only curious. :)

SWYPED from my SUPASONIC
[EVO 4G Themes and Apps] Brutus2TheMax:
The green in this is a little brighter than the original AOSP battery.
[EVO 4G Themes and Apps] MonsterMatt:
Brutus! Hey been a while lol so I was curious any way for you to update this them for CM 6.1.1 that was just released?

Puh-Puh-Please:D
[EVO 4G Themes and Apps] Brutus2TheMax:
Now that you brought this up in the Pure Google UI thread I think I'm going to make some changed in colors with this theme and update it!
[EVO 4G Themes and Apps] MonsterMatt:
Sweet! Glad your still working on it. This is my favorite GingerBread theme out of all of them because you got the pure black status bar and the green 3G, Signal,WiFI and the works:D

The only thing I would like to see is it updated to work with 6.1.1 and whatever cool features you want to add :cool:
[EVO 4G Themes and Apps] Brutus2TheMax:
;) keep an eye out.
[EVO 4G Themes and Apps] Brutus2TheMax:
Testing and uploading to server!
[EVO 4G Themes and Apps] Ska8erMush:
awesome. can't wait. I have 2 quick questions. Does this have the transitions like the other 2 gingerbread themes? like the swooping in when you are going to add a widget or whatever.

also i read that you found out how to change the menu to black instead of white. Did this get updated in the new one you are uploading?

Thanks!!!
[EVO 4G Themes and Apps] halorin:
I'm looking forward to this myself. :)
[EVO 4G Themes and Apps] psych2l:
still uploading to server :mad:
[EVO 4G Themes and Apps] halorin:
Oof. Well, I'll be looking tomorrow. :)

Have a good night!
[EVO 4G Themes and Apps] MonsterMatt:
Whoa must have now!!! :D
[EVO 4G Themes and Apps] mic.mayorga:
omg i want this so bad. Looks amazing and im thrilled to see that this is based on the nexus s. i had no idea. will wait for the upload to complete, think it will be done anytime tonight??
[EVO 4G Themes and Apps] MonsterMatt:
Hope so :D
[EVO 4G Themes and Apps] mic.mayorga:
hey brutus once i get my hands on it i wouldnt mind making a few mirrors for you on other sites, i got pretty quick internet thatll upload it in minutes.

with your permission of course
[EVO 4G Themes and Apps] lexusmike:
Patiently waiting... mmm gingerbread
[EVO 4G Themes and Apps] Brutus2TheMax:
Sorry guys I've been studying for finals and everything. Tom I got finals and a formal for my fraternity. Something went wrong with the XML files so now I have to go back and fix them. Will post this as soon as I get time and it's fixed! Sorry!
[EVO 4G Themes and Apps] mic.mayorga:
im seriously super excited for this, the rom looks soooo good. i will stay up as late as possible for this thing
[EVO 4G Themes and Apps] MonsterMatt:
Oh O. Well I'll be right here waiting :)
[EVO 4G Themes and Apps] djdarkknight96:
Naperville, IL? I'm from Aurora....small world!!!! Live in missouri now! :D Sorry to go off topic! Nice theme too bro!!
[EVO 4G Themes and Apps] Brutus2TheMax:
Last final of the year! T-minus 2 hours...
[EVO 4G Themes and Apps] mic.mayorga:
congrats, good luck. hurry back i need this today haha
[EVO 4G Themes and Apps] fmedina2:
Am I missing the download link...? :confused:
[EVO 4G Themes and Apps] MonsterMatt:
No he just needed to fix a few things and reupload to server so your not missing anything ;)
[EVO 4G Themes and Apps] SouthernEvo:
Im looking forward to this when it does , I wanna try CM and the gingerbread theme adds to that also . Will this Rom be compatible with an evo that has been flashed with the new radios ? Also with this themed rom will it have all of the themes like menus and so forth besides just the task bar icons? Either way i look forward to it when its posted to give this a test drive !
[EVO 4G Themes and Apps] shutterhead:
Yeah I can't find the DL link either.
[EVO 4G Themes and Apps] XxsydenxX:
Is there a mirror for the latest build or what?
[Galaxy S I9000 Q&A, Help & Troubleshooting] jheysl2:
Hello I upgraded from version k9 but the battery doesn't seem to be as good, Was wondering if anyone could give me some advice.

What settings would you recommend?

Currently using:

Fast : EXT4 Data (d=e4; o=rfs)

Ext4 / Ext3 Mount Options > Use Fast mount opts (Recommended)

Tweaks:

IO scheduler + Remount noatime ( on )

Kernel VM Management ( on )

Kernel Scheduler ( on )

Misc Battery Tweaks ( on )

Which settings would be best for performance & Battery? and does Misc Battery Tweaks improve battery life? Thanks in advance

Edit: Iv also noticed since installing k10i when loading messages it takes you to the last person you spoke to, if this a new feature? I'm sure it wasn't there before.
[Galaxy S I9000 Q&A, Help & Troubleshooting] pramathesh:
jfs best for battery life afaik.

I personally use that with dbdata bound to data works like a charm...