yashsingh1/xdaforums huggingface dataset:
[Java for Android App Development] crazybeeliuzhe:
HI, Guys,

I am a newbie, now i am developing a google rss reader for practicing. I used listview to display all the news titles. and webview to view the contents. Every time when i am back from webview, it shows this error:

Error: WebView.destroy() called while still attached!

I overwritten the onBackPressed() in webview activity like this like suggested on codeoverflow:
[MENTION=439709]override[/MENTION]

public void onBackPressed() {

super.onBackPressed();

if (mWebView != null) {

WebView w = mWebView;

w.removeAllViews();

w.destroy();

w = null;

mWebView = null;

}

}

but it doesn't work. everytime it still shows the same error.

meanwhile, when i am back from the webview, the pressing the items in the main listview doesn't redirect me to the webview activity anymore.

Thanks a lot if someone can give me guidance on this.
[Java for Android App Development] crazybeeliuzhe:
reply

the error i see after scroll is :

at android.support.v4.view.ViewPager.onPageScrolled(ViewPager.java:1708)

at android.support.v4.view.ViewPager.pageScrolled(ViewPager.java:1646)

anyone has similar experience?
[Java for Android App Development] nikwen:
I don't know whether the destroy method is needed. However, I recommend to put that code into the onDestroy() method instead of the onBackPressed() method. Might as well solve the problem.
[Java for Android App Development] crazybeeliuzhe:
the same problem

Thanks Nikwen, but it is still the same after i overwritten onDestroy():
[MENTION=439709]override[/MENTION]

protected void onDestroy() {

super.onDestroy();

if (mWebView != null) {

WebView w = mWebView;

w.removeAllViews();

w.destroy();

w = null;

mWebView = null;

}

int myPid = android.os.Process.myPid();

Log.d(fTag, "exit.myPid = " + myPid);

android.os.Process.killProcess(myPid);

}

seems the problem doesn't come form there.
[Java for Android App Development] PicomatStudios:
My first reaction is the same as nikwen's - do you need to do this at all ?

If you do, then it sounds as though the error is arising because your WebView is still attached to something at the point you are attempting to destroy it. So before you can destroy it you'll need to call removeView() on whatever the parent is (probably a layout, I guess).
[Java for Android App Development] crazybeeliuzhe:
thanks i will try

Thanks. Then i think i should also call the removeView() before i try to destroy it. I will keep trying and let you guys know my update.
[Java for Android App Development] crazybeeliuzhe:
app uploaded

i have finished my toy app. this is a Google RSS news reader. A good practice for me. You can now download it from google play by searching my name crazybeeliuzhe. you will see two app from me. one is the ipcam viewer i made the other is the news reader.

I will upload my code later to source forge.

your comments are always welcome.
[JASJAR, XDA Exec, MDA Pro General] chris reilly:
Hello,

As i will be getting my Exec (hopefully) tomorrow, i thought this topic would not only help me greatly but also others.

What are the first ten things to do when you get your new exec?

e.g

1) Get a case

2) Install Software (name here) to use it as a TV remote

Thanks folks
[JASJAR, XDA Exec, MDA Pro General] Bonzo:
Since this is going to be different from person to person, why not just check this thread:

http://xdaforums.com/viewtopic.php?t=31697

It covers most/all questions...
[JASJAR, XDA Exec, MDA Pro General] modem_man:
Here's what I did:

1). Get case - recommend Proporta Alu-Leather

2). Get screen protector - recommend Martin

3). Get GPS System - recommend BT-338

4). Get Car Mount - recommend Brodit/Proclip

5). Get SD Card - recommend 2-4GB

6). Get system tools software - recommend free software

7). Learn to tweak it - recommend XDA Devs - you guys rock!

8). Get desk charger

9). Get Bluetooth Headset - no recommendations

10). Kick yourself in the ass for spending so much on yourself and nobody else.

There you go. Hope that helps.
[JASJAR, XDA Exec, MDA Pro General] cuteangelika:
I think it's going to be for my husband: "Kick himself in the ass for spending so much on his lovely wife.." :P

For me, the top ten would be:

1) Get Screen Protector

2) Get Case (im using the soft leather case for the ordinary dictionary/translator... it's the same size, fits perfectly)

3) Get BT headset -- using jabra but i want the one with the lcd display

4) Pair BT with phone - Total Voice Commander

5) Install TCMPM and load your sd with movies

6) Personalize phone - change wallpaper.... Im using a hello kitty wallpaper-- got a right to be cheezy... Makes my dopod less intimidating.. Anyone who opens it says, "how cute..."

7) Load ringtones and Install PocketZenPhone

8) Sync phone with pc (i think this should be #3)

9) Install MSReader and load phone with ebooks

10) Show off discreetly to close friends... I dont want just anybody touching my phone with his grimy hands... :P
[JASJAR, XDA Exec, MDA Pro General] shivafool:
screen protector definitely.

A couple of mundane settings to change:

disable error reporting and

disable receive all incoming beams.

Get your activesync working to get your PIM data loaded.

Definitely consider a bluetooth headset (I use Sony Erickson HBH 662 and I'm happy with it).

Definitely helps to have some program to close programs instead of just minimize them (I use smallmenu).

Get your internet connection working.

Start tweaking, probably best to start with the appropriate section of the universal wiki.

Follow this forum and learn more and more.

Enjoy!! :D
[JASJAR, XDA Exec, MDA Pro General] awmshum:
Hi,

Would you tell me what is TCMPM, and how to get it. Thx
[JASJAR, XDA Exec, MDA Pro General] golfaholic:
It is a media player. Go to http://tcpmp.corecodec.org/download to download.

Hope this helps
[JASJAR, XDA Exec, MDA Pro General] belfast-biker:
And it's utterly fantastic. a gazillion times better than WMP. Streaming movies over a wifi network without any silly pre-compression/reduction is fantastic.
[JASJAR, XDA Exec, MDA Pro General] modem_man:
Big Ups for TCPMP

And the most important thing for me on TCPMP is FULL screen!
[JASJAR, XDA Exec, MDA Pro General] belfast-biker:
On that point - why should we beg/borrow/steal/buy what we need to get a decentOS?

MS is getting lazy - THIS version of Windows Mobile should have come with WMP at least as comparable feature and performance wise as TCPMP. Also a decent task switcher and window closer, like GSPocketMagic, an RSS Reader like Egress, File Explorer like Resco, Pic viewer like Resco, Radio Streamer like Resco, decent Registry Editor, GPRS Monitor type program and so on...
[JASJAR, XDA Exec, MDA Pro General] cuteangelika:
I guess the good side of it is that other programmers are getting income from creating great apps.. apps which are better than MS' creation. It's healthy competition and in the end, we, the consumers, are enjoying the fruits of their labor :)

Merry Christmas!
[JASJAR, XDA Exec, MDA Pro General] frodebass:
Just a short follow up question.

The TCP media player seams to work great on AVI files created with the divx plug in, however, mpeg files play rather badly.

They hang every couple of seconds, jitters and jump.

However, they play nicely with win media player.

Are you others getting this?

Thanks,

Frode
[JASJAR, XDA Exec, MDA Pro General] rahjinoh:
When MS adds something and does something too well, they get sued for Anti-Trust, if they don't, they get complaint at, lose-lose.

MS have been known to put in some really basic software so 3rd party software developers can earn on the full version or better versions of the software.

so can't really blame them.

frodebass, try Pocket TV for playing MPEG. TCMP is really good for DivX, but why use MPEG when it's a space hog?
[JASJAR, XDA Exec, MDA Pro General] jah:
The first few things I would do are:

1. Don't charge the battery. Use it until its at 20% and then do a fully charge for 8 hours

2. Check for dead pixels on the screen

3. Take a few photos to make sure there are no dead pixels in the camera

4. Don't install a new ROM unless you need to. And if do want to make sure you hard reset before a ROM update

5. Don't install non-WM5 s/w at all. And if you want to install any third-party apps check here at the forum and always use the latest version. In general avoid apps that have Today screen plug-ins as they seem to the source of many problems from what I can gather

6. Show off your new "toy" to your friends/work colleagues!
[LG Optimus 4X HD] ruznik:
i'm waiting for the 4.4 AOSP rom for my lg optimus 4X i have been rooted my phone now , I don't change anything kernel or Rom of my device i added some q slide and CRT animation to my phone and all works fine, now i'm planning to install a custom Rom, i'm would like to flash the cyanogenmod or vanir rom, my questions are

1. if i flashed the 4.3 cyanogenmod rom do i want to wipe all data to get 4.4 update from cyanogenmod..?

2. is there any OTA or factory like update option for cyanogenmod..?

3. What is the Differnece between Pure AOSP Rom with Cyanogenmod rom.?
[LG Optimus 4X HD] gerciolisz:
Maaan... Please search more.. Everything is clear written at rom thread OPS. About 4.4 we dont know because its not ready XD
[LG Optimus 4X HD] ruznik:
i searched

i searched for the method of update in cyanogenmod i don't get anything, i want expert opinion about this i'm a beginner , and which kernel do you prefer me if i'm a game enthusiastic..? and i Heard about CWM and Rom toolbox which are using for flashing the Rom , which one is the best..?
[LG Optimus 4X HD] JoinTheRealms:
I understand being new to the android scene. When i started out I though you could flash roms from any device on any device:silly: but its more the reason to do your research and understand what your doing to your expensive device and how to do it. Lucky this device is rather hard to brick.

You first need to unlock your boot loader if you havnt already, install a custom recovery, make a backup, download the rom of your choice be it cyanogenmod or something else. Then use the custom recovery to flash it. all of these steps have been covered multiple times in multiple threads so you should have a easy time finding this information.
[LG Optimus 4X HD] Omario-242:
And IF you post a question here, don't post it on the CM thread AGAIN! Like others said, you should read everything about Android and custom ROMs you can find. The more you know, the better you get and you'll probably can save your device by yourself if you know how to most of the time.
[Galaxy Grand Duos i9082 Themes and Apps] tufail.budoo:
Hello guyzz..!!!

Its already exists such thread for this camera, but i want it to be here either, for our beloved Samsung Galaxy Grand.. :)

Its not new, but its awesome, fast, and useful.. I would say its very fast and the gallery is amazing,, very beautiful... :)

APP - Lenovo super camera and gallery (from Lenovo

K860 ,its not x86 architecture, good for ARM)

A lot of nice features and filters...

VERSION - 3.5.5.0502.131011.20808

Download here ->

www.sendspace.com/file/rcv7r9

If u like this camera app than don't say thanks just press it.. ;)
[Galaxy Grand Duos i9082 Themes and Apps] mukeshpacheria:
how Exit in beautiful gallary
[Galaxy Grand Duos i9082 Themes and Apps] iceyhotguy:
It's great that you are sharing this camera app but unless you ported it yourself, you should give proper credits to the dev and link to his thread (http://xdaforums.com/showthread.php?t=2391694) instead of creating a mirror for it. Just saying.
[Galaxy Grand Duos i9082 Themes and Apps] RIPPER:
Supaaa camera and gallery!!

Was looking for this app and gallery. I am using PACMAN ROM believe me the stock camera is 2nd class. This app has made my ROM and functionality 1st class. Thnq for the share:laugh::laugh::laugh::good::good::good::good:
[Galaxy Grand Duos i9082 Themes and Apps] khan26:
Will it works in 4.1.2?
[Galaxy Grand Duos i9082 Themes and Apps] tufail.budoo:
Yes it works awesome... :)
[Galaxy Grand Duos i9082 Themes and Apps] ASHU3003:
Using it

Its awesome
[Huawei Ascend P6, Mate] warea:
Huawei apps extracted from devices other than p6:

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

http://www.teamandroid.com/2012/04/29/huawei-apps-android-phone-download/

I tried the security guard, handwriting and cloud app. The security guard works fine. The handwriting app does not install. The cloud app installs but the settings dont work and i dont know how to use it.
[Nexus 4 General] Deleted member 3693611:
have fun

http://www.androidpolice.com/2013/1...-in-secret-for-over-2-years-debuts-in-kitkat/
[Nexus 4 General] luiseteyo:
Best ART information. Thanks! :)
[Nexus 4 General] kschumake83:
After reading this I switched to art and couldn't be happier. Everything seems to run better and faster, I will update in a day or 2 if I find any drawbacks.
[Nexus 4 General] XupModz:
Are you running the n5 port?
[Nexus 4 General] Deleted member 3693611:
well i am on the n5 port v4 and i would love to use ART but Titanium Backup and Whatsapp don't work with ART yet!! wrote an email to Whatsapp support to see what they say!
[Nexus 4 General] Ajfink:
Running ART on my N5...can't say I've noticed much of a difference, but that might be because the N5 (and the N4, really) are just fast as hell.
[Nexus 4 General] Deleted member 3693611:
do you have whatsapp running on your n5? are there problems with it???
[Nexus 4 General] snak3ater:
It's not like N5 is using some different kind of whatsapp.. it's the same app & it'll FC while in ART..i hope that the next whatsapp update fixes this issue.. Titanium is also causing issues..
[Nexus 4 General] justingriff:
Can you tell us which ROM you are using?

---------- Post added at 09:47 AM ---------- Previous post was at 09:43 AM ----------

Sorry, meant to quote this post.
[Nexus 4 General] Deleted member 3693611:
Yeah I thought maybe it's a problem because it's only a port from the n5!

Gesendet von meinem Nexus 4 mit Tapatalk
[Nexus 4 General] simms22:
art works well on the aosp 4.4 builds as well. but, you need to use odexed gapps if you want art to work on aosp.
[Nexus 4 General] Logomotph:
Tbh, things seem to be faster on art for me.
[Nexus 4 General] forever_lol:
Obviously there is occasional stuttering, but it feels noticeably smoother. I am really looking forward for factory image and further development.
[Nexus 4 General] leximu5:
I did today, but unfortunately, WhatsApp crashes on ART.
[Nexus 4 General] kschumake83:
I'm running the n5 port from the day it was released and art seems so much faster. I don't use whatsapp so I dont have any problem apps yet.
[Nexus 4 General] justingriff:
I did a quick search for Odexed gapps but didn't turn up anything other than the full N5 port. Any suggestions on where to find them, or do they only work with stock images? TIA
[Nexus 4 General] simms22:
pa odexed gapps http://d-h.st/8PP :)

there isnt a stock img yet.
[Nexus 4 General] manpildo:
This is some exciting stuff, can't wait for it to become the default runtime. Project Butter 2.0, if you will.
[Nexus 4 General] KcLKcL:
I started to use ART too since yesterday. I've tested all my apps, and the only thing that doesn't work is WhatsApp and Titanium Backup, the rest works fine. Not a big deal anyway, my friends switched to LINE already, ART is definitely faster.
[Nexus 4 General] sonikk4ever:
I am on a port, and I have just tested ART for an hour and I gotta say the speed is equivalent to the PSX rom !
[Nexus 4 General] DirgeExtinction:
I wonder how hard/easy it'd be for devs to make their apps compatible with ART(like Whatsapp and Titanium Backup)
[Nexus 4 General] :
Thats what i thought too. Wrote whatsapp support an email yesterday and so i am just waiting for an answer

Gesendet von meinem Nexus 4 mit Tapatalk
[Nexus 4 General] luiseteyo:
Yesterday I ran Whatsapp while ART and also fc. The phone didn't improve any speed... cause couldn't be faster!! :D

Now, having this two phones in my hand I can perfectly affirm that the upgrade isn't worth it... Front camera is better, but isn't a very noticeable difference. Internal camera is definitively better, cause it is brighter. Speed and smoothness is better in n5 (I am running unnoficial 4.4 and he was running official, so this comparision cannot be taken seriously).

The screen is brighter, and, in my opinion too big for my pocket. The design is definitively amazing and plastic made, as u know, but i got surprised with the quality of the back case, it is amazing. I prefer glass, but is breakable... :(
[Nexus 4 General] :
You are probably right but I will be getting the n5 just because I have the n4 8gb version and my sd ist full

Gesendet von meinem Nexus 4 mit Tapatalk
[Nexus 4 General] justingriff:
More apps that FC

I've had force closes with the Car2Go app and (strangely) the Google Keyboard app that was installed with my Gapps package. I've disabled the latter, but for some reason still get a message periodically saying it has stopped working!
[Nexus 4 General] simms22:
reinstall the keyboard apk, itll fix the fc.
[Nexus 4 General] sabaramo:
From the android source website

"Add this to the device makefile to have both runtimes built and installed, with Dalvik as the default:

PRODUCT_RUNTIMES := runtime_libdvm_default

PRODUCT_RUNTIMES += runtime_libart"

Seems easy.
[Nexus 4 General] cincibluer6:
But are you even getting the benefit of art if dalvik is the default?
[Nexus 4 General] sabaramo:
Well the point is, dalvik is default now and ART is optional. You need to have those lines in your make file for it to work with ART though. I'm guessing eventually you could even do ART by default.

But you're right, unless you go into developer options and enable ART, you will see no benefits (if any exist of course).
[Nexus 4 General] LittleNICKY777:
Thanks for the info.
[Nexus 4 General] hp420:
!

I spent 2 hours this morning getting my rom repaired because I forgot to run a nandroid first (*~gasp~*) ;) I wish I'd known that earlier lol

Do you know if the odexer flashable zip works? I'd love to be able to get everything all set up, then just set ART, reboot into recovery and run the odexer.
[Nexus 4 General] Squarius:
Thank you! I just broke my rom by swichting to ART.
[Nexus 4 General] simms22:
yea, it works fine with the odexed gapps. if you used the regular deodexed gapps, i bet you got constant fc's with your apps. and yea, nandroid! i always keep a nandroid in storage just in case :)
[Nexus 4 General] hp420:
Momentary lapse of insanity. It happens from time to time lol
[Nexus 4 General] dey2929:
Couldn't try ART because of too many FC's of Gapps....any help would be appreciated ! Am on Primal v2
[Nexus 4 General] snak3ater:
Use Odexed Gapps..There are very few Apps with this FC issue..Titanium & Whatsapp are the two that i know..Never faced any FC in Gapps though
[Nexus 4 General] CrypticRook:
Drastic force closes too but the devs are all ready working on it
[Nexus 4 General] GalaxyGusta:
I still doesn't understand why Google hasn't yet released the nexus 4 factory images
[Nexus 4 General] jadephyre:
No one does, it's all just wild speculation. The only thing that we have to go by is HTC's announcement that was made last week saying that they'll release 4.4 for the One GPE within 15 days after the release of the Nexus 5, which would be this Friday.
[Nexus 4 General] eksasol:
I've been using ART for the days and just switching back to Dalvik temporarily I must say that I felt it was noticeably slower in responses and goes back to ART.

I have zero force closes, I'm aware a Titanium 6.1.3 isn't working which I do not use.

sent from xda premium app
[Nexus 4 General] Logomotph:
The second part of the the article is out:

http://www.androidpolice.com/2013/1...ormance-wont-blow-away-today-will-get-better/
[Nexus 4 General] fuzzyAI:
So no noticable performance from ART.. :crying:

I suspect low-end devices will benefit more from ART than high ends
[Nexus 4 General] hp420:
I've read plenty of posts from people about TiBu's incompatibility with ART, but has anyone tried any other backup apps? My backup root and app extractor are my two favorite alternatives. I'm not sure if either of them work, but if anyone has tried any others, please say so so we can try to find a temporary solution while TiBu is being fixed.
[Nexus 4 General] shangxor:
howcome some people report getting 2x better results in benchmarks with art vs dalvik, and others say there is 0 improvement....
[Nexus 4 General] simms22:
it only makes a difference in quadrant, if its that important to you. and its not twice better, thats quite exaggerated.
[Nexus 4 General] shangxor:
I think i didn't explain myself good. Max i had with quadrant before ART was 15k, i'm sure other people got more. Some say to have reached 20k in quadrant with ART. But then there are other claiming that the actual improvement is none, just like you said it only is noticeable in quadrant.

So my advice is to test it, and not rely only on benchmark result or other people results cause you don't know their case 100%. Sometimes its just contradictory until you test yourself and see the actual result.

I hope i explained myself better this time.
[Nexus 4 General] simms22:
you never got 15k in quadrant, youre probably talking about antutu. i get the same scores in antutu with and without art.
[Nexus 4 General] shangxor:
Ah , yes , you are right there. In antutu.
[Nexus 4 General] ernestnwanu:
Quick question. People are saying ART time isn't available in Kitkat for the N7 2012. However, the N7 2013 does have it. If the year is relevant, could it be we won't get the ART runtime?
[Nexus 4 General] forever_lol:
I highly doubt it. N7 2012 is the only one that is powered by tegra3. I guess that can be the reason.
[Nexus 4 General] styckx:
I just updated my Nexus 10 with the official Google update.. We don't have ART either.. We also have a Phone UI settings screen for some reason though. :rolleyes:
[Nexus 4 General] forever_lol:
Holy molly, ok right now we can say for sure....non-qualcom devices didn't get ART. Kinda sad. Now I am confused.
[Nexus 4 General] ernestnwanu:
It could be they just wanted to offer testing abilities on those devices. It's not complete and ready for prime time after all. I don't know..
[Nexus 4 General] oliverredfox:
That's what I'm thinking; that they want to limit testing to it on a few devices by default for now. That it works in ASOP builds for the N4, makes me figure anyone who really wants it can go custom firmware if it isn't baked into our update.
[Nexus 4 General] manpildo:
I've read speculations it's gonna be officially available only for N5 and N7(2013) for testing purposes, because they're the newest devices. It's yet to be seen whether N4 gets it.
[Nexus 4 General] mumaster20:
Found a really awesome video, comparing the performance difference between a nexus 5 running art and a nexus 5 running dalvik.

Art seems to be overall just a tad faster, but some applications may not work properly.

LINK
[Nexus 4 General] taff2408:
For info I am using the AOSP 4.4 ROM via Multirom on an N7 2012. I did try ART, it took ages for the apps to compile but they worked apart from Whatsapp and Tibu. Haven't had much time to compare results but just to let you know it does work in the AOSP ROM
[Nexus 4 General] TToivanen:
The first I noticed after enabling ART was how smooth the scrolling was in Currents & Play Music. Sooo smooth :)

Gotta love KK