yashsingh1/xdaforums huggingface dataset:
[General Questions and Answers] norbstar:
Hope you guys can give me some much sought advice.

I've been attempting to build a JAR file that packages it's own JARs as internal class dependencies, but without exposing those inner JAR dependencies to the outside world. I'm guessing this needs to happen, otherwise the link process for building an Eclipse Android project would fail if not.

So my problem is such:

If I have an internal dependency on say dom4j-1.6.1.jar, I don't want to prevent someone from being able to add my JAR to an Eclipse Android project and including their own dom4j package dependency (possibly a different version). If the internal JAR dependency is exposed they will experience a duplicate resource conflict when attempting to build their project.

e.g. java.lang.IllegalArgumentException: already added: Lcom/google/gson/DefaultTypeAdapters$ByteTypeAdapter;

Here is what I tried to date:

So I have a regular Android project in Eclipse which adds in my packaged JAR as an dependency.

I refered to the Oracle docs, however there is a footnote about the inclusion of JAR files within JARs.

Note: The Class-Path header points to classes or JAR files on the local network, not JAR files within the JAR file or classes accessible over internet protocols. To load classes in JAR files within a JAR file into the class path, you must write custom code to load those classes. For example, if MyJar.jar contains another JAR file called MyUtils.jar, you cannot use the Class-Path header in MyJar.jar's manifest to load classes in MyUtils.jar into the class path.

So I decided to try the Fat Jar Eclipse Plug-In from SourceForge.

It's an Eclipse Plug-In for deploying a project into one "fat" executable jar file containing all referenced libraries. References are taken from the project settings, so no manual configuration is necessary.

I did manage to execute my build using this method, however did have to manually hack the packaged JAR file to remove the reference to the annotations package which was causing a conflict with my Android test project by being referenced twice.

So now I am left with a project that builds and executes, but exposes those inner JAR dependency packages to my Android project.

I would appreciate any advice you guys can provide. I hope my explanation is clear enough. :)
[EVO 4G General] Vodad:
Well, after almost two years, my evo decided it was done. Went to make a phone call last night, it rang on time and then shut off, will not come back on for anything. I needed another 6 weeks til I had the money for an Evo LTE, now I am stuck with something generic for that time.

It was a good run.
[EVO 4G General] SASQUATCH:
Maybe its your battery
[Galaxy S III Q&A, Help & Troubleshooting] joeyh51:
Hi all,

I've been using a nightly build of CM10 for a while now, one of the ones with the memory leak. I'd like to keep on top of the most recent nightly builds on a regular basis, but I hate the process of having to re install all my apps again, losing app data and adding all the sync accounts etc etc.

I was just wondering what process people used for updating to the most recent nightly, if there are any easy ways of doing a simple backup for everything, then just restoring it after the update.

Any information would be appreciated.

Cheers.
[Galaxy S III Q&A, Help & Troubleshooting] winwiz:
ermmm

you just flash the new version over the old one

no wipe is needed? :confused:
[Galaxy S III Q&A, Help & Troubleshooting] joeyh51:
Well.... now I feel like an idiot :S
[Galaxy S III Q&A, Help & Troubleshooting] zoot1:
Just wipe dalvik and cache while flashing..you will not loose any data
[Galaxy S III Q&A, Help & Troubleshooting] joeyh51:
Before or after flashing? Anything else I'd need to do or just flash the latest nightly?
[Galaxy S III Q&A, Help & Troubleshooting] zoot1:
I do it before and after..it is better if you do both..but after is a must

Nothing else is required..
[Galaxy S III Q&A, Help & Troubleshooting] nodstuff:
I disagree completely, wipe once, if at all.

Twice is completely unnecessary.

Before or after doesn't matter a sh*t as long as you do it before you boot the ROM.

(I've often not wiped anything and its been fine although I'll give best practice advice here.)

Actually with nightlies I don't wipe anything, ever, unless specifically instructed to do so by the dev (new code base or whatever)
[Galaxy S III Q&A, Help & Troubleshooting] AntonLiv92:
No need in wiping anything. There's a script included in the installation for that.
[Galaxy S III Q&A, Help & Troubleshooting] zoot1:
I am trying to find this out in the script..i dont know from where did you get it..there is no dalvik/cache wipe in the script..
[Desire Q&A, Help & Troubleshooting] andrd_:
my HTC desire has suffered the worst SOD case in the past few days.

This morning I tried all possible troubleshooting and to my surprise after 3 days its working normal again.

I'm still unsure of what the issue was. Anybody else dealing with this?
[Desire Q&A, Help & Troubleshooting] erklat:
It will most likely remain that way until you at least provide which rom and kernel you use.
[Desire Q&A, Help & Troubleshooting] stankyou:
Do you just wanna know who else is dealing with the same issue or expect to find a solution? You aint gonna get any solution if you don't even provide readers with your device info. Is it rooted? Is it on stock? Is it running sense? Is it running AOSP? Is it running those beta roms? Is it on froyo? Is it on gingerbread? Is it overclocked? Is it undervolted? Does if have an ext partition? etc etc yada yada yada,
[Desire Q&A, Help & Troubleshooting] JT-on:
Best way I've found to recover quickly from a sleep of death is to take out the battery and plug it into a charger. Wait a few seconds and you should see the LED indicator flash from orange to green. You can now out the battery back in a power up normally.

I've only had this issue with sandvolds ics. But I haven't tried the latest
[Desire Q&A, Help & Troubleshooting] andrd_:
my phone is rooted n s-off too.

SOD started when i was on sandvold's ics. So i did the most sensible thing, switched back to android 2.3.

I'm currently on GB from Cool Droid v3|2.3.4|. The problem with SOD followed me on this rom as well but i seemed to have solved it for now, thanks to all the troubleshooting methods in the forum. :) I'm really happy to see it working normal again.
[Desire Q&A, Help & Troubleshooting] dvsk69:
Care to share how you tried to fix it?
[Desire Q&A, Help & Troubleshooting] andrd_:
The reasons for the problem can be countless. I guess my SD card was the culprit this time. previously, I had partitioned the card using gparted but on 4ext touch recovery the card's partition alignment check said I have some alignment issues with my fat32 partition.

I repartitioned the SD card, now I have 1gb ext4 partition n around 14gb of fat32, perfectly aligned.

I thought I had solved the problem.

Then I came across someone saying that it could be the radio too. I am using the latest version of radio for some time now but I decided to switch to some previous versions and see if that helps. Installation got aborted, may be because I wasn't connected to the pc. But this time when I booted up my phone, no more SOD so far.

I would like to add that I probably just got lucky. I'm using a fake Chinese battery on this phone. Lost the original one as it got drenched in the rain.

Please share if anyone else is dealing with this issue too. Would be glad to help you guys out.
[Desire Q&A, Help & Troubleshooting] andrd_:
Also I'm not overclocking or underclocking the processor. Not using gps. it is also recommended to stay on 'gsm only' or 'cdma only' mode. So basically I tried all the troubleshooting options out there.
[Networking] mrWax:
Hi!

Anyone else bothered by sharing their personal info on social network to the third party? I had thought about developing open source distributed social network app based on https server running on android phones. Each member should have android device as a server of his/her profile.

0) - https protocol could provide possibility to connect to your social network using web browser.

1) - One may be able to deal with extensive upload and download or lost connection issues by allowing distributed profile updates sharing:

I suggest following scenario:

D updates profile. B, C are acknowledged friends of D. B is on quality link - good connectivity to internet and sends broadcast I am sitting on good connection. B downloads update of D. D looses connection. C downloads and update of D from B.

2) - Re-acknowledging of friend ship should be day-wise of few hour-wise. So passwords should change during time using some hashing or whatever.

what do you think?

see ya
[Networking] kuisma:
I implemented such a prototype some year ago, although not for mobile clients. You'll have a few issues you'll need to address. You have to use PKI to ensure the identity of the sender in the distributed environment, and you'll have to implement a message routing protocol distributing the messages among the peers. Have a look at my prototype and feel free to steal any ideas: http://whisper.ping.se
[Networking] mrWax:
Thanks!

Maybe for simplicity one could just copy WIFI WPA2 protocols where router would be one member and internet connection would be connection to the members personal data.
[Networking] kuisma:
Huh? I'm sorry, but I can't make any sense of this at all. To achieve what..? I'm missing something here, I guess. :)

Android is shipped with the BouncyCastle crypto libraries. This is what you'll use to sign the messages with each users private keys to ensure the identity of the author of each message. If you want to encrypt, you'll use this library as well. Since you are working in a distributed store and forward environment, you can not rely on link encryption (e.g. https, wpa2 etc) but have to use point-to-point encryption instead, protecting the message itself instead of the transport channel.
[Networking] mrWax:
Radio broadcasting resembles similarities to the internet "broadcasting" or: social network resembles similarities to the "person-his friends" virtual private network.

Since it is said that it is hard not to make security flaws when constructing new protocols. i think that adopting whole existing expert made protocol is best solution.

Whole wifi wpa2 protocols could be packed inside ordinary encrypted channel. Where the personal info provider of specific person from which his friends would want to download info - would take place of a "wifi Access Point " in this.
[HTC Amaze 4G] amazeboy:
hey, im installed the nightmare rom bassed of cm9 RC 1.5 and i wiped everything and instelled the rom, but everytime i reboot it gets stuck on the boot logo

help Thank u
[HTC Amaze 4G] Dark Nightmare:
Flash the kernel manually via hasoons tool or adb.
[HTC Amaze 4G] amazeboy:
the nightmare kernel?
[HTC Amaze 4G] johnride:
Any kernel compatible with cm9. You can simply extract the .zip from the rom and flash the boot.img via fastboot (available in Hasoon's tool).

If you still have issues we will need more info about your sytem: s-on? Already on ICS? Which carrier? SuperCID? and anything else you think about.
[HTC Amaze 4G] amazeboy:
ok thnank u its working but after i did the data trick, data still doesn't work
[HTC Amaze 4G] Dark Nightmare:
Wipe and flash again, don't forget to flash the kernel again as well.
[HTC Amaze 4G] ifatalityx:
Maybe you guys can help me out a little bit. Can't get passed HTC screen.

I'm no expert at flashing, but on simple things I know what I am doing. Everything was fine and I wanted to flash Sport stars CM10 ROM. I did a backup on 4ext like I always do and then wipe flash reboot.

The issue here now is that once i flashed cm10 my phone got stuck on the HTC screen. Did my research found out sports ROM that he uploaded wasn't booting up. I instantly went back to 4ext. Wiped data and cache and restored my fourth bar nexus ROM.

Apparently it said the backup was successful yet when ever I boot it stays stuck at the HTC screen. This happened last night and I just can't seem to figure out shaft to do. I wiped, restored still nothing. Wiped download a different ROM. Still nothing.

S-on, T-Mobile

Edit: Also should be noted on last screenshot I never saw this splash screen before in 4ext. Happens the second I boot up in recovery. And in the small rectangle says something about 4ext not being configured due to an app or something.

I think I should be okay if I just flash clockwork and restore, but I'm not entirely sure.
[HTC Amaze 4G] Dark Nightmare:
Flash the kernel for fourth bar manually.

Or reflash fourth bar, then do an advanced restore and restore your data only.

sent from a galaxy you'll never see.
[HTC Amaze 4G] ifatalityx:
Already in the process of re-downloading Fourth Bar and I will try that method out.

Any idea on why this happened though? I'm still curious.
[HTC Amaze 4G] ifatalityx:
Did exactly what you said man and still nothing. Still stuck at the HTC screen. Wiped everything flashed a new fresh downloaded ROM, backed up just the data and still nothing. I'm getting worried here.
[HTC Amaze 4G] Dark Nightmare:
Did you manually reflash the kernel like I told you to?
[HTC Amaze 4G] ifatalityx:
How'd I go about doing that? Never had to manually flash a kernel before.

Edit: Researched, flashed Fourth Bar, flashed an ICS kernel. Rebooted Reflashed the kernel. Rebooted, still nothing.
[HTC Amaze 4G] Dark Nightmare:
Flash the kernel in the zip file, which is the rom itself.

If that doesn't help, restore to stock via a ruu then attempt again, remembering to flash the kernel manually, in most cases 4EXT will flash the kernel when you reboot from recovery, it will tell you it has a task to complete, the phone should auto reboot on it's not, no this is not a bootloop, just let it be and it should be fine.
[HTC Amaze 4G] ifatalityx:
I don't know what happened, but my phone is now working. All I did was wipe, restore (didn't flash a kernel or anything fancy just restored) and the phone booted, shutdown and then rebooted and finally started working. Thank you for helping me.
[HTC Amaze 4G] Dark Nightmare:
Patience buddy, you're welcome.
[HTC Amaze 4G] KnowledgeBroker:
Just for future reference, anytime anyone has a bootloop issue that they can't fix in 20 minutes or less.. they should just flash the stock RUU. You can flash the RUU, flash a recovery, and restore a rom in a little over 30 minutes, and then you know that ANY quirk you may have had will have been written over.

Since you had an issue like yours, where you did nothing and it started booting, I am thinking you may have something wrong with your partition scheme.. if you have future issues reflash the RUU as it redoes the actual partitions and everything on them.
[Samsung Galaxy Nexus] Mach3.2:
Basically, this displays the 4G icon when you are on HSPAP and the H icon when you are on HSDPA and HSPA.

This is

NOT

a icon mod, but a mod that adds another case in the SystemUI.apk source, so it will be able to display different icons for HSPAP and HSDPA/HSPA.

Installation instructions:

1) Download SystemUI.apk

2) Rename your current SystemUI.apk in root explorer.

3) Copy the SystemUI.apk you downloaded into /system/apps

4) Change the permission to rw-r--r--

5) Reboot

6) Profit

Here's the code in the spirit of community kangkage:

Edit this under framework/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/NetworkController.java

case TelephonyManager.NETWORK_TYPE_UMTS:
mDataIconList = TelephonyIcons.DATA_3G[mInetCondition];
mDataTypeIconId = R.drawable.stat_sys_data_connected_3g;
mContentDescriptionDataType = mContext.getString(
R.string.accessibility_data_connection_3g);
break;
case TelephonyManager.NETWORK_TYPE_HSDPA:
case TelephonyManager.NETWORK_TYPE_HSUPA:
case TelephonyManager.NETWORK_TYPE_HSPA:
if (mHspaDataDistinguishable) {
mDataIconList = TelephonyIcons.DATA_H[mInetCondition];
mDataTypeIconId = R.drawable.stat_sys_data_connected_h;
mContentDescriptionDataType = mContext.getString(
R.string.accessibility_data_connection_3_5g);
} else {
mDataIconList = TelephonyIcons.DATA_3G[mInetCondition];
mDataTypeIconId = R.drawable.stat_sys_data_connected_3g;
mContentDescriptionDataType = mContext.getString(
R.string.accessibility_data_connection_3g);
}
break;
case TelephonyManager.NETWORK_TYPE_HSPAP:
mDataIconList = TelephonyIcons.DATA_4G[mInetCondition];
mDataTypeIconId = R.drawable.stat_sys_data_connected_4g;
mContentDescriptionDataType = mContext.getString(
R.string.accessibility_data_connection_4g);
break;

EDIT: This is obsolete as the latest CM10 nightly(27/08/2012) added support for this.

Therefore i request this thread to be closed.
[Samsung Galaxy Nexus] aiinjylls:
This mod overwrites the navbar mod. Is there a way to have this AND 32dip navbar? In blue to match the statusbar would be great!
[Samsung Galaxy Nexus] Mach3.2:
You could have nexxusdev mod the SystemUi.apk for you, he did mine for me.

Just tell him to use Mach's SystemUI.apk, he should have it since i gave it to him.
[Samsung Galaxy Nexus] reconex:
Hi there i can help you, I'll pm you the link when I'm done. Anyone else wants mach's mod + a custom navbar mod together can just pm me with your request :D
[Samsung Galaxy Nexus] Mach3.2:
Will be posting the code I added in the spirit of community kankage :)

Nexxusdev you can put that SystemUI.apk into your mod if you want.

Pressed from my Maguro
[Samsung Galaxy Nexus] reconex:
Haha I'll just leave the above post here and wait for people to request
[Samsung Galaxy Nexus] Mach3.2:
Up

Beamed from my Maguro.
[Samsung Galaxy Nexus] Wolfnio:
Hi,

any chance to have H+ icon instead of 4G icon for HSPAP?

Thank you very much.
[Samsung Galaxy Nexus] Mach3.2:
You could change the 4G icon to whatever you like after you rename SystemUI.apk to SystemUI.zip

But if you like it, I'll do it later.

And I won't do it for another ROM, it's alot of work to sync the source.

Beamed from my Maguro.
[Samsung Galaxy Nexus] Mach3.2:
Here it is:

https://www.dropbox.com/s/0s3b5dbrzlr5gws/CM10 H+ 4.1.1 JNO0L mod.zip

Flash it in CWM.

Or you could go in and take the SystemUI.apk out, put it in /system/app and set permission as rw-r--r--
[Samsung Galaxy Nexus] Mach3.2:
EDIT: This is obsolete as the latest CM10 nightly(27/08/2012) added support for this.

Therefore i request this thread to be closed.
[Samsung Galaxy Nexus] aiinjylls:
What does that mean? Is there an alternative way to achieve this?
[Samsung Galaxy Nexus] Mach3.2:
Basically someone uploaded the change onto github(Since i don't know how to) and it's in the latest nightly, so there is no need to flash this in the latest nightly, doing so may make the nav bar and notification tray to not show up.:D

Glad to see it implemented btw.
[Samsung Galaxy Nexus] aiinjylls:
Damn, I prefer the 4G over the H+ with the 32dip navbar
[Samsung Galaxy Nexus] Mach3.2:
You can extract the SystemUI.apk, then rename it to SystemUI.zip on your computer, then go to SystemUI.zip\res\drawable-xhdpi and copy the file name for the H+ picture and replace it with the 4G picture, then renaming it to the H+ picture's file name, should work.

For the 32DPI nav bar mod, you can request it from NeexusDev first before making the changes that are stated above, just flash the mod and extract it after flashing.
[Samsung Galaxy Nexus] aiinjylls:
Thanks! It worked! Now to tackle the navbar :D
[General Topics] ma11en:
Hi Android Developers,

Now that Nikon have announced an Android powered Digital Camera I was wondering if any of you are thinking of working your magic on devices like this.

As I'm not allowed to post links yet Google "bbc news nikon s800c"
[Samsung Galaxy Nexus] un.droid:
pls delete
[Samsung Galaxy Nexus] Mach3.2:
Not possible as far as I know.

Pressed from my Maguro
[Samsung Galaxy Fit GT 5670] yusuf.madkour:
I have a problem. I really need my phone this evening so I really want help. My phone has a bootloop with every rom. Today I found out that it could have something in common with a error in the recovery screen which says it can't mount /data. CWM and the stock recovery both have this problem. Can please anyone help me? I'm really confused, because I have tried everything.

I've tried to flash many stock roms using odin, it also failed.

Thanks in advance
[Samsung Galaxy Fit GT 5670] mkhawx:
I think u r making mistake somewhere!

Try another one package firmware with different baseband bcoz sometimes basebands aren't compatible..

So try flashing wid diff. baseband n again use a proper CWM file..

Do Wipe data after every step

Press THANKS if i helped u ;)
[Samsung Galaxy Fit GT 5670] dheeraj (dhlalit11):
flash four package file
[Galaxy Ace S5830 Q&A, Help & Troubleshooting] andr0ldn00b:
need helpt regarding my galaxy ace.. ive installed my rooted ace with cwm 5 then downloaded a file to updgrade it to cwm 7.2 which I had downloaded from home for geeks website. after carefully reading the steps I began to upgrade my cmw 5 to cwm 7.2. after finishing I rebooted my phone then waited a couple of minutes but the only thin I see is black screen with a word ANDROID in the middle of the screen. so ive deided to wait for a at least 2 hours more but still the same display.. nothings happening.. ive rebooted it a couple of times but still the same.. a black screen with the word android in the middle.. :crying:.. i want to ask if I bricked my phone.. if so how do I unbricked it?.. already search for some answers in the web but I found nothing.. :crying:.. please help...
[Galaxy Ace S5830 Q&A, Help & Troubleshooting] B A D R I:
go to cwm recovery and wipe data,cache and reboot it

It might help
[Galaxy Ace S5830 Q&A, Help & Troubleshooting] andr0ldn00b:
already tried it a couple of times, ive even unrooted and rerooted it but its still the same... is there any way i can repair it? ive connected it in a laptop and run the kies air but the device isnt responding to kies air.. :crying::crying::crying:
[Galaxy Ace S5830 Q&A, Help & Troubleshooting] B A D R I:
flash it with stock ROM ddkq8

Google it and follow the steps while flashing through odin
[Galaxy Ace S5830 Q&A, Help & Troubleshooting] andr0ldn00b:
do you know the steps on how to do it? or at least a step by step guide?

:crying::crying::crying::crying::crying:
[Galaxy Ace S5830 Q&A, Help & Troubleshooting] system.img:
Dont worry dude....its just a softbrick....easily fixable.

For odin, search google and refer some guides. Use the guides meant for the Ace only.

If you want CM7, try flashing it again and do all the wipes.

And wait for sometime in the Android screen. It will take sometime for first boot.
[Galaxy Ace S5830 Q&A, Help & Troubleshooting] andr0ldn00b:
so ill go to google.com and search odin for galaxy ace?

"sorry for the question im still noob at stuffs like this"

:crying::crying::crying::crying:
[Galaxy Ace S5830 Q&A, Help & Troubleshooting] system.img:
Yeah.
[Galaxy Ace S5830 Q&A, Help & Troubleshooting] B A D R I:
Follow the steps in following URL http://androidadvices.com/update-samsung-galaxy-ace-s5830-official-ddkq8-gingerbread-236-firmware/
[Samsung Captivate Glide] Forunikarasu:
Hi all, just got a captivate glide, my first Android phone, and I have absolutely no clue how to get my music on it from the PC? All I can find in google is people talking about which file types it accepts.
[Samsung Captivate Glide] jvuong:
Try double twist, that's what I use.
[Samsung Captivate Glide] Forunikarasu:
Thanks for the post, but it's just an example of what was confusing me so much when googling. People suggesting all sorts of programs, but I don't need a program, I just need to drag and drop my music, I just didn't know to what folder.

I eventually found out you can just create your own music folder and drop it there. So problem solved. Thanks anyway.
[Samsung Captivate Glide] bakageta:
Yep, android will scan the entire device for media, so anywhere you like works fine. The only exception to this is if a folder has a file named .nomedia then it'll skip anything in it.
[Samsung Captivate Glide] Crzycoco:
I mean, who doesn't put a folder for their music