In-memory DEX Loading Function Removed In Android 4.4

Jan 9, 2014

Noticed in Android 4.4, Google removed one of internal functions in class, DexFile:

native private static int openDexFile(byte[] fileContents);

which is capable of performing loading dex from byte-array without going through reading the dex file on disk, which has proven to be very useful

In-memory DEX loading function removed in Android 4.4


HTC Incredible :: Copy - Search Function Been Removed From The Browser In Froyo?

Oct 22, 2010

Has the copy/search function been removed from the browser in froyo or did it never have it? When i copy in the browser, I only see the option to share or copy to the clipboard. I have the HTC mytouch slide 3g, running 2.1 and when I copy in that browser, I have the option to search but I don't see that with the Incredible.

View 2 Replies View Related

Android :: Cannot Execute Javascript Function After Loading Html Content With LoadDataWithBaseURL Method

Jul 8, 2009

I have put HTML document into a string variable and load it by using webView.loadDataWithBaseURL(null, htmlString, "text/html", "utf-8", null).

After that, I tried two ways and want to execute javascript function "exec()" by using

1. webView.loadDataWithBaseURL(null, "javascript:exec()", "text/ html", "utf-8", null) -> This will overlap the content of previous "htmlString" and shows "javascript:exec()" on the screen.

2. webView.loadUrl("javascript:exec()") -> There will be "Can't find variable: exec line: ..." in Logcat

I have tried to output "htmlString" to a file located in sdcard, and tried to use webView.loadUrl("file:///sdcard/xxx/a.xhtml") + webView.loadUrl("javascript:exec()").

And...it fails again! how to execute javascript function after loading html content by "loadDataWithBaseURL"?

View 2 Replies View Related

General :: Memory Card Goes Automatically Removed In HTC Explorer

Aug 6, 2012

I was using 4gb class 4 earlier , I bought 16gb class 6. At first empty ad card was working hood then when I used up a few gb and re inserted the sd card the problem began After 5-10 seconds of mounting sd it goes out and phone shows that sd is removed unexpectedly, sometimes my phone hangs in this cycle and reboots(starts again from bootanimation part) This sd works fine with other things like my Sony cybershot w-x50

View 9 Replies View Related

Android :: What Function Use To Control Memory In Java

Sep 28, 2010

in c, c++ , there are many memory-contorl-function like - memset,memcpy,sprintf i want to use those function in java what and how should i use?

View 5 Replies View Related

Android :: Loading Raw Resource Text File / Out Of Memory Error

Sep 15, 2010

I use this method couples of occasion to load text file to display as help file. But I don't know why the following code didn't work. It seems to hang and logcat says "OutOfMemoryError"? All I did was break this out as an separate activity.

---xml---
<?xml version="1.0" encoding="utf-8"?> <ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/helptab"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<TextView android:id="@+id/helptext"
android:layout_width="fill_parent"
android:layout_height="wrap_content" />
</ScrollView>

---code---
import java.io.DataInputStream;
import java.io.IOException; import java.io.InputStream;
import android.app.Activity;
import android.os.Bundle;
import android.widget.TextView;

public class Help extends Activity {
/** Called when the activity is first created. */
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.help);
InputStream iFile = getResources().openRawResource(R.raw.help);
try { TextView helpText = (TextView) findViewById(R.id.helptext);
String strFile = inputStreamToString(iFile);
helpText.setText(strFile);
} catch (Exception e) {
} }
public String inputStreamToString(InputStream is) throws IOException {
StringBuffer sBuffer = new StringBuffer();
DataInputStream dataIO = new DataInputStream(is);
String strLine = "";
while ((strLine = dataIO.readLine()) != "") {
sBuffer.append(strLine + " ");
} dataIO.close();
is.close();
return sBuffer.toString();
}

View 6 Replies View Related

Android :: Android Out Of Memory Error - Loading JSON File

May 22, 2010

The app I am working on needs to read a JSON file that may be anywhere from 1.5 to 3 MB in size. It seems to have no problem opening the file and converting the data to a string, but when it attempts to convert the string to a JSONArray, OutOfMemoryErrors are thrown. The exceptions look something like this:

E/dalvikvm-heap( 5307): Out of memory on a 280-byte allocation.
W/dalvikvm( 5307): Exception thrown (Ljava/lang/OutOfMemoryError;
) while throwing internal exception (Ljava/lang/OutOfMemoryError;)

One strange thing about this is that the crash only occurs every 2nd or 3rd time the app is run, leaving me to believe that the memory consumed by the app is not being garbage collected each time the app closes. I'm not quite sure what the best approach is for such a task.

View 2 Replies View Related

Android :: Displaying A Now Loading Image While Applic - Loading

May 4, 2009

I want to display a fancy 'loading' image at my app's startup time.

The problem: my startup code is mostly GUI related, hence needs to run on UI thread.

Is there a way to do both - that is run UI-related code on UI thread while an image is displayed to the user?

View 8 Replies View Related

Android :: Loading Activity Darkens Screen - Loading Screen

Nov 2, 2009

I've looked through the documentation and I can't seem to figure out how to have the screen blured/greyed when I select an activity that may take a while to load.

This seems to be an Android standard (both the Camera app and the Camcorder app do it when first selected), but I don't see any documentation on it. I even tried looking through the source of these apps on git, but couldn't seem to find it.

View 3 Replies View Related

Android :: DrivingDirections Removed Since API 1.0 - How To Do It In 1.5/1.6

Oct 23, 2009

It seems that DrivingDirections have been removed since Android API 1.0

What's the way now to display a map with two points (one of them might be the current location, but can also be any other location) and the direction from one to another in Android 1.6?

View 3 Replies View Related

Android :: Installer Intent To Install On Memory Card Or On Phone Memory

Dec 2, 2009

How to tell the installer intent to install on memory card or on phone memory ?

View 2 Replies View Related

Android :: Out Of Memory / Orientation Change / Memory Analyzer Question

Jan 21, 2010

My application is designed to support both portrait and landscape orientations. Using my HTC IO device, it survives 12 orientation changes before throwing an out of memory exception while inflating my activity.When I follow the recommended procedure of using DDMS to first force a GC and then write a heap dump, and then load it into the Eclipse Memory Analyzer, there is only one retained instance of my application, as there should be. None of the other retained objects are obvious offenders. Just for yuks, I reran the test, and did everything the same way except I didn't force a GC. In this case I see 13 instances of my application, which is more consistent with throwing an OOM exception. Is this telling me something useful? If forcing a GC with DDMS reclaims the memory used by now-defunct instances of my activity, I would have thought the VM would have garbage collected some, if not all of these defunct activities automatically. Do I need to request GC at the very beginning of my activity lifecycle to make sure?

View 7 Replies View Related

Android :: App Package Been Removed From 1.5_r2 ?

Jun 12, 2009

Daniel wrote: > I get this error when compiling. Can anyone else replicate it? It > happens when importing android.app.ProgressDialog on 1.5-r2

CODE:......................

View 2 Replies View Related

Android :: ListView After Items Are Removed?

Nov 8, 2010

I seem to be having a problem with Android ListView. I'm trying to delete the selected item from ListView. The delete method is working and will allow me to delete as many items from my list as needed, but whenever I scroll to the bottom of the list (after atleast 1 item has been deleted) I get an Error that closes the Application.

Here is my code:

CODE:.............................

View 2 Replies View Related

Android : How To Get Bad Star Rating Removed?

Jan 19, 2010

I've had a one star rating on a new theme I released and as It's the only rating it looks terrible. I would accept it if they just didn't like the theme but they say it force closes and does not work which after thorough testing, I have never been able to replicate, whats even more annoying is that in the listing we have put our email incase anyone gets problems then they can contact us to get them rectified.

View 5 Replies View Related

Android : Removed Widget / Way To Retrive?

Sep 10, 2010

I removed the Android Battery Manager widget by moving it to the trash bin because it was taking up too much room on the home screen. I thought it would still be located in the Adroid Widgets queue, but it is not. Is there a way to retrieve it?

View 1 Replies View Related

Android :: Why Activity Icon Is Not Removed From Launcher?

Nov 11, 2009

I'm trying to remove activity icon from launcher panel. I'm using firmware 1.5. But nothing seems to work. I'm not receiving any error but activity icon is not removed.

View 7 Replies View Related

Android :: Market Be Locked Down / Blocked / Removed?

Nov 12, 2010

My company is looking at upgrading from WinMo Intrepids to possibly Android phones.We are with Sprint so only those phones are being looked at.Couple of questions from an enterprise mind.Android 2.2 updated exchange policy support so some of our concerns are being met.My biggest questions are relating to Sprint ID and the Android Market.One does anyone know if you can totally locked down Sprint ID? As in not allow other ones from being downloaded and installed. Basically to give us a way to lock the phone down with what apps we want.Next big thing is can the Android Market be locked down/Blocked/Removed?Remember these are going to be company phones mainly being used for exchange email, not personal phones to play around with eating up data.Generally just looking at ways to keep the phones secure from all the nasties out there. We are looking at the Optimus S which is why I bring up Sprint ID.For my side of it, I would generally be against this. I own an Evo and love tinkering plus I will be the one developing in house apps for us to use.

View 2 Replies View Related

Android :: How To Obtain Apps Removed From The Market

Aug 25, 2010

I had Sickipedia but had to restore phone. Now I can't get this app on the Market. Is there any solution for this?

View 1 Replies View Related

Android :: Removed Pull Tab : Did I Hurt Phone?

Aug 19, 2010

I removed the pull tab sticker off the back of my Droid X. Does this in ANY way hurt the phone????

I read that they will replace the phone under warranty.... I still have the pull tab and put it back in, is it worth risking getting a refurbished phone?

View 3 Replies View Related

Android :: ListView Selector - Selection Does Not Get Removed

Sep 27, 2010

I have a ListView. When I click on a ListItem, I set the background of the ListItem (it's view) to another color:

CODE:........

Here is my adapter:

CODE:......

The problem is, if I select multiple rows, then multiple rows have a colored background. I only want the clicked item to have a colored background. So if I click on row 2, I want it to turn red, then if I click row 1, I want row 2 to go back to normal, and row 1 to turn red.

View 2 Replies View Related

Android :: Drivers Removed From Mainstream Kernel?

Feb 4, 2010

Why isn't Google playing nice with regards to the Linux Kernel Android code? Greg KH says the Android code is stagnant and as a result got removed recently: http://www.kroah.com/log/linux/android-kernel-problems.html

I know for a fact Greg KH bends over backwards to help Linux Kernel developers maintain their code, so hearing this news about the Android drivers being removed is very troubling. Hearing about all the hardware companies that now cannot get their own Android drivers into the main kernel is the worst of it. Google seems fairly evil lately, but everyone who should care (fellow Android developers, I'm looking at you) seems to just want to put their hands over their ears and sing "la la la la".

Android is not being handled in the true spirit of open source, and Greg KH's assessment of the situation is even more proof of that fact.

View 12 Replies View Related

HTC Tattoo :: Mail Widget Can't Be Removed / Android Phones Are Not Available

Oct 25, 2009

I just got a tattoo this week and have had a few problems, and thought I would post what I have seen so that other tattoo users can either add to the list, or respond with solutions or workarounds they have found.

1) many apps from previous android phones are not available (presumably this is because they are "incompatible with the smaller screen resolution, but I suspect that many of them are just incorrectly tagged for 1.5 sdk or earlier, but would likely still work with donut-1.6) but could easily be made available with a tiny bit of tweaking.

2) the HTC Mail widget can't be removed (or moved) from the second screen to the left on the Sense interface. Why even bother with this one over the gmail?)

3) speaking of Gmail - somehow it only accesses the messages which are actually to my gmail address, and not to other addresses which are forwarded to my gmail (and are always in my gmail inbox) do I need to install google gears to get this working (which is not, as I found out quickly "gears for android" as listed in the marketplace) as it does on my laptop?

4) All of this is would be easily solved if someone has just figured out to root this thing... I started along the hero donut instructions I had seen at unlockr, pressing the down volume rocker while turning it on.

View 13 Replies View Related

Android :: Sholes Root App Removed Voice Search?

Feb 5, 2010

I used the sholes app to root my phone. Didn't work for me. Went back to2.01 but now I don't have voice search. I use it several times a day and want it back.

View 2 Replies View Related

Android :: Does Database Get Completely Removed And Recreated Then Updating An App

Aug 28, 2010

I have an app that uses a database. At startup I check to see if my tables are missing and if so I create them. Works great.

I've noticed that if I "adb uninstall" then the next time I run my app the tables are created again (this is what I need), but what about when updating through the marketplace?

I'm in the process of releasing an update, and I've made major changes to the tables. I'd like it if the tables were completely wiped and re-created, in fact my app needs this to happen. If someone updates and has the old tables then there will be a force close. Does anyone know the specifics of this scenario?

My tables are only for lookup, I store no user data so I dont really care about losing data on the updates.
Of course I know an option is to use some type of "version" table and check to see if I need to manually drop and create, but I was wondering if that was even needed.

View 1 Replies View Related

Android :: Beautiful Widgets Removed - Clouds Floating Across Screen

Oct 7, 2010

I bought Beautiful Widgets, installed them and removed them from my screen. I am deciding how I want my little Zio to look. And no, I am not upset at my little problem. I love and would recommend the program. However, this AM I noticed clouds floating across my email screen after the phone sat idle for an hour or so. I took a look at all running apps (Task Killer, sorry) and nothing seems to be running that would account for the animation. I asked Mr. Google about this and he is as clueless as I am.

View 4 Replies View Related

Android :: Apps Labeled As Tetris Clones Removed From Market

Apr 7, 2009

I received a message from google saying that my game "Robotic Space Rock" was pulled from the android market after a request made by a legal firm representing an entity known as Tetris Company. My application was removed from the android market together with Blocks, Cubik, Net Tetris, Netblocks and Tetroid (6 apps in total) under claim that it violates the DMCA and more specifically trademarks and copyrighted material owned by the Tetris Company. However, none of the trademarks or copyrighted material (music, graphics and sound effects) are present in my game. Sound effects and music were created by me specifically for the game. There is no reference to the word tetris in the game. Additionally, all the game code, graphics and sound effects were created by me and published on the code site http://code.google.com/p/monolithandroid

Additionally, I am not aware of a software patent covering the game mechanics of Tetris, so I cannot see how I could violate something that is not protected by a software patent. Also, even if the game was protected by a patent, the patent would have expired, since the original game, Tetris, was created 23 years ago. However game mechanics cannot be covered by patents.

I would also like to point out that my game is available completely free of charge to every user of the android market.

I wrote those concerns to Google and I sent an email to the EFF. The bottom line is that for my application to be restored on the android market, I have to send a DMCA counter-notification. And then the Tetris Company can sue and take the case to Court.

When games were pulled from the iPhone App store, they blamed apple, but it is not hard to see that behind application removals we can find companies like the Tetris Company, that demand application removals claiming copyright infringement and trademarks. However, it is not easy to battle these companies as individual developers. I, for example, am a Greek citizen living in Greece, so it is difficult for me to file a counter-notification, because then the Tetris company will probably sue me and I will have to defend my case in court. Why should I bother? Am I making money out of the game? No! But even if I did you can see how easy it is for corporations to neutralize developers like that. I think that something should be done. Independent developers should get together to battle against such misuse of the law by corporations. And to those that want more facts, you can find more details on my blog: [url]

View 1 Replies View Related

Android :: Removed Droid Library / Add New Like 1.6 To An Existing Project In Eclipse?

Mar 16, 2010

I am using Windows and Eclipse. Through a few mis-clicks, I removed the Android library from my project. I am able to add the android.jar file from the specific version I want but that is does not allow me to run.

In eclipse, how do I add an Android library like 1.6 to an existing project?

View 2 Replies View Related

Sony Ericsson Xperia X10 :: How Do I Transfer Photos From Phone Memory To My Memory Card

Jul 10, 2010

iv got a x10i how do i transfer photos from phone memory to my memory card as i can't find an option do do this.

View 1 Replies View Related

HTC Droid Eris : Low Memory - When Open App Manager It Shows Mail App Is Using 59mb Of Memory

Jun 24, 2010

My phone is low on memory, when I open my app manager it shows my mail app is using 59mb of memory. I have erased all mail and cleared the cache with no change. I am running android 2.1

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved