Android :: How Can I Compile Dalvik To Run It Locally On Linux?

Aug 22, 2010

What are the minimal steps necessary (including retrieving the source code) to compile and run just the Dalvik virtual machine on Linux?

Android :: How can I compile Dalvik to run it locally on Linux?


Android :: Reference A Jar / Compile It With Dalvik?

Aug 25, 2010

I have a jar that I need to reference from my Android project. I also have the src of the jar, so I could include it in the project itself. I was wondering if referencing a jar vs. compiling it in with the project using Dalvik makes any difference in terms of final Dalvik package size that gets generated.

View 1 Replies View Related

Android :: Dalvik JIT Compiler On Linux X86 Or Mac Build

Jul 1, 2010

As I've heard from Google IO 2010 session, Dalvik JIT compiler just support ARM processor.Do this mean my own build of Android source on Linux X86 or Mac OS X can not support JIT compiler?Should I use some target board with ARM processor to test Dalvik JIT compiler?

View 2 Replies View Related

Android :: Multicast Permission Of Dalvik And How To Attach To Dalvik Env

Sep 16, 2009

1. I have a c lib which will send & receive multicast package, if I lauch it in native ap, everything is OK, but if lauched through jni ,so it run in dalvik env, it can not receive multicast, i think is may be disabled by dalvik, is there any permission can enable this feature?

2. In this lib i will make some callback of function in dalvik class. according to tranditional method which can run under JDK1.5 & 1.6 as follow: (I make it under source code env not NDK)

In some initialization method save jvm pointer

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

it seems AttachCurrentThread not failed but env not correct.

View 4 Replies View Related

Android :: How To Compile All Source Files - Default Make Target Does Not Compile All Of Them

Mar 16, 2010

when I compile android (http://source.android.com/download) it does not compile some source files. For example there is external/bluetooth/bluez/sbc/sbc.c which is not compiled. There are also other such files.

It's possible those files need not to be compiled. Or it might be that I need some special configuration to compile them.

Either way, if it is possible, I'd like to compile them. Is there some way to do it? Maybe some "compile_all" make target? (I believe the reason why I want to compile all source files is not important)

View 1 Replies View Related

Android :: Dynamically Generating Dalvik Bytecode Into A Running Dalvik/Android Application

Apr 9, 2010

This question has been asked(and answered) many times about dynamically generating and loading java bytecodes at runtime into a running Dalvik VM, but is there any way to load dex files/bytecodes into an app at runtime?

View 2 Replies View Related

HTC Incredible :: Rooting Tip For Linux And Linux Live Booting

Jun 19, 2010

i successfully got into adb in recovery mode fairly easily on my ubuntu 10.4 laptop using the following method- this should also work for a linux live boot from a usb flash drive

in one terminal tail and follow log messages
~$ tail -f /var/log/messages

In another terminal run the loop

Then

1. plugin usb and keep it plugged in
2. remove battery, eject sd card.
3. put battery in
4. press vol- and power
5. after around 6 seconds, your terminal with the log will show something like "new high speed USB..."
6. press vol- to select recovery
7. press the power button
8. IMPORTANT- as soon as you see a new log entry (something like "USB disconnect"), pop in the sd card

check your loop terminal for adb. if it doesn't work, repeat at step 2

View 2 Replies View Related

Android :: Best Reasonable Practice For Locally Storing Password?

Nov 3, 2010

I am considering adding a means by which my app can perform functions over Google Voice, and the functionality would make little sense if I required the user to type in a password.I'd like a reasonable plan for storing the password locally and sending it (through google-voice-java) when demanded by Google Voice.Clearly, I'd like to properly represent the risks of the chosen scheme honestly to the user. I'd like the storage to be based atop writing it into a SharedPreferences created with flags.What form of obfuscation is suitable, and with what available salting ingredients and such should I customize it?

View 4 Replies View Related

Android :: Need Notes App That Stores Locally & Syncs With Cloud

Jun 5, 2010

I'm looking for a notes app that stores notes on the device and syncs with cloud

View 3 Replies View Related

Android :: Sending Data Back And Forth Between Activity And Service Locally?

Aug 13, 2010

I am a bit new to Android. What I need to do is send data back and forth between an activity and a service locally. The information sent is sensitive and must not be able to be picked up by other apps. This excludes using broadcast and the onBind() function if I understand things correctly? So the activity needs to send some string parameters to the service. Also it somehow needs to tell the service which activity started it so the service can reply to the correct class since many different activities will use this service.

Once the service has fetched the information via a http request it is suppose to send that data (just a long string which will later be parsed) back to the activity that started it. How do I go about doing this? Using static variables/functions is not an option since again many actives will be using this service. Sure it would be possible to use a static array to hold the classes but that just seems ugly. It's only possible to send simple variables (not objects) via the intent? There must be a better way to do this.

View 1 Replies View Related

Android :: Display Locally Stored Html Webpage Using Webview

Jan 14, 2010

I have a locally stored webpage (html) under res/raw folder.There is an image that is referenced in this html page (test.gif) which is stored under res/drawables.When I use a webview to display this page, it does not display the image. How can I correctly reference the path to the test.gif image?I tried using a text view with Html.fromHtml() but that does not parse several html tags.

View 9 Replies View Related

Android :: Attach Text File Stored Locally In Application Directory?

Jul 9, 2010

I have an Android app that saves a text file directly onto the phone, in the app's install directory. I need to allow the user to create a new email, attaching this saved text file. When I start the intent to send the email, everything shows up in Gmail correctly, but the attachment does not get sent. All of my searches on stack overflow seem to only deal with attaching an image file from the SD card. Below is the code that I used. Please let me know if I have done something incorrectly.

File myFile = new File(getFilesDir() + "/" + "someFile.txt");
FileOutputStream stream = null;
if( file != null )
steam = openFileOutput("someFile.txt", Context.MODE_WORLD_READABLE);
stream.write(some_data);
Uri uri = Uri.fromFile(myFile);
Intent sendIntent = new Intent(Intent.ACTION_SEND);
sendIntent.setType("text/plain");
sendIntent.putExtra(Intent.EXTRA_SUBJECT, subject);
sendIntent.putExtra(Intent.EXTRA_TEXT, email_text);
sendIntent.putExtra(Intent.EXTRA_STREAM, uri);
file.close();
startActivity(Intent.createChooser(sendIntent, "Email:"));

I've also tried sendIntent.setType("application/octet-stream"); but that didn't make a difference. I'm at a loss for why the file doesn't attach and get sent.

View 1 Replies View Related

Android : Read Only Time - Locally Without The Involvement Of Server Or Network Connectivity

Feb 12, 2010

I would like to implement a functionality in my game to give some daily goodies. But user can easily abuse it by changing the date of the device again and again. I know this can be easily implemented through some server. Is there any way to handle it locally without the involvement of server or network connectivity?

View 2 Replies View Related

Android :: Smack API Giving Error While Logging Into Tigase Server Setup Locally

Jun 4, 2010

I am currently developing android XMPP client to communicate with the Tigase server setup locally.Before starting development on Android I am writing a simple java code on PC to test connectivity with XMPP server.My XMPP domain is my pc name "mwbn43-1" and administrator username and passwords are admin and tigase respectively.Could anyone please tell me the solution for this problem.I checked the XMPPConnection.java file in the Smack API and it looks the same as given in the link solution.

View 3 Replies View Related

HTC Desire :: Connecting Locally Over Wifi

Oct 8, 2010

I'm having problems connecting locally over wifi to play games against my friends. Is there a procedure you have to go through to connect? Can htc desire phones connect to each other over wifi or do they have to connect through a router?

View 2 Replies View Related

Android :: Android - Based On Linux - Can Run Anything That Can Run On A Linux Box

Apr 16, 2009

I know android is based on linux, does this mean it can run any and all linux applications? If so has anyone tried to run anything like wine? I also noticed that by default you cant run apps directly from sd card, but i saw a modification on a site that lets you change it so you can, so technically speaking is there any limit on the size of sd the G1 can handle?

View 1 Replies View Related

General :: HTC Desire - Locally Stored Voicemail App?

Jun 4, 2011

Is there any app that instead of sending the voicemail to the network it records it on to the phone?

Voicemail for me is not included in my monthly minutes, so I can end up with quite a large percentage of my phone bill being voicemail.

I'm running RCMixS on my HTC Desire

View 5 Replies View Related

General :: Syncing Contacts Locally / Exchange

Apr 26, 2012

Here's what i'm doing :

1) Desktop PC (Outlook 2010) <> USB MyPhoneExplorer <> Phone (ICS SGS2)

This creates contacts on my phone under the "phone" category.

2) Hosted Exchange <> Wireless Activesync <> Phone

This creates contacts on my phone under the "exchange" category.

As the contacts are exactly the same, the contacts are automatically merged and i have 2 separate categories of contacts that display as 1 list which is what i'm looking for.

3) When I resync, all of my exchange contacts are deleted (both on the phone and server) which is not what I want.

Is it possible to have a single set of contacts that I can sync across my desktop PC, phone and exchange server ?

View 2 Replies View Related

General :: Samsung Galaxy S II LTE - Outlook Sync Locally

Nov 6, 2013

I have a Samsung Galaxy S II LTE and wood like to be able to synchronize my outlook data (calendar mainly but if possible the entire outlook) locally. I work for a company that does not allow to store any of the company business information outside so I can not go via cloud. Any app that allows this?

View 4 Replies View Related

Jelly Bean :: Keeping Emails Locally On Phone?

Jan 23, 2014

Samsung galaxy rugby, 4.1 I have a verizon pop email for business The emails are downloaded onto the office computer (outlook 2007) and my Phone. Outlook is set to leave them on the server for 5 days, so if it beats my phone to an email, it is on the server for the phone to grab.

I need to store my emails ON THE PHONE after they are fetched from the server. I need to go back and look at emails 6-12 months, even when I have no cell coverage. I had set "recent messages" option on the android to "total" and that appeared to be saving them on the phone,,

For some reason I had 3000 emails on my server (6 months worth) and when I deleted them,, they disappeared from my phone !! Gone! I went to the email settings on the phone, and noticed that "sync email" was checked, I unchecked that, but then did not receive any new emails.

How do I set an Android phone to just download the email from the server and leave it on the phone,, end of story. just download new emails to my phone. If I delete it on the server it does not affect my phone and vise versa. Preferably storing it on my sd card.

View 1 Replies View Related

General :: Nexus 5 - Transferring Locally Stored Pics From S4?

Nov 4, 2013

I just received my Nexus 5 in the mail and I'm trying to figure out how transfer all my pictures from my s4 to my n5 so that they are still able to be set as wallpaper and what not cause to my knowledge once they care stored to Google drive they cannot be set as wallpapers anymore ..is that correct ? Just looking for the easiest way to move my pictures over .

View 1 Replies View Related

General :: Import Contacts And Groups Locally On Non-rooted Units

Feb 4, 2014

I need to import contacts and groups to 20 brand new phones, to begin with. (Stock, non-rooted Galaxy S4+, 4.2.2.). The phones will stay un-rooted.

-Avoid if possible using Gmail sync.
-Avoid if possible using Kies.
-Preferably use csv and/or vcf with groups (one group for each department).
-Preferably not being forced to connect every phone to a computer by usb cable. Fixable by download from web site on local wireless network.

What I've tried so far:Imported the original CSV:s, sorted them into groups, exported them as CSV to get the correct columns for android phones. So far so good.

Exported above mentioned CSV:s to VCF from a Google Contacts, sent it over to test phone by Pushbullet (for the test only, web site solution imminent), imported it in Contacts. Does not retain groups, shows as "Not assigned". It doesn't seem possible to create local groups? They can only be created with accounts such as gmail. (As I see it, this is my main problem now).

Tried Google Account sync: Problem not solved due to one single Google account, and one Google account on all phones are susceptible to contact deletion by fat fingers and people that are struck by bad luck while thinking. One Google account for each phone would do the trick, but probably not an accepted solution by our IT security "manager", even when using Google Auth.

Tried Kies Sync: Problem not solved due to USB connection, and still no local groups.

Tried Importing CSV file into Windows Contacts (which ****s up the columns, not all are matchable) and exporting as VCF. Problem not solved, no groups.

View 1 Replies View Related

General :: Deleting Google Music / Cloud Playlists Stored Locally?

Jan 30, 2013

I've noticed that despite having only four or five playlists on Google Music (desktop) my phone shows a bunch - mostly ones from albums I've downloaded. They don't show up in the browser version on my desktop so it looks like the only way to get rid of them is to manually delete every single one via the phone app.

Also, I've noticed that when I switch the settings to "on device only" my playlists created on the web page no longer show up, despite me having the majority of the songs on my microSD. I remember I used to be able to switch to "on device only" and the cloud playlist would scale down to only what I had on local storage. Was so....logical! Is there any way I can still do this? My microSD music is pretty much pointless since I don't have access to the playlists when I'm using "on device only".

View 2 Replies View Related

General :: Disable Google Contacts Sync And Force Store Locally In ICS

Aug 1, 2012

Actually turned out simpler to do than i initially thought it would be.

Enables "Keep Locally" ( keep_local ) option for adding new contacts instead of forced google account.

Prevents google from deleting all you contacts when you remove your account

Disables google contact sync

The offending package comes with gapps if you got google that way.

GoogleContactsSyncAdapter.apk you will find it in /system/app/ (need root file explorer to see it though)

You can make this fix in 3 ways, the first may not need root but i cant test as my phone is rooted.In Settings>App find it in the list of all installed apps, click it, click disable. (can do this without root)Use a root file explorer such as "Root Browser", navigate to /system/app/ backup the app .apk to your sdcard for example, then delete it.You can also try clicking the app .apk in "Root Browser" and choose uninstall, but i could get this to work.

Thats it ! , no need to reboot. (to test it worked, just navigate to Settings>Accounts>(your google account) and you will see there is no longer the option to sync contacts)

View 8 Replies View Related

Android :: Locally Hosted Projects With Android SDK Emulator?

Aug 24, 2009

I develop all my sites on a OS 10.5.8 server with PHP and MySQL, and I've configured my /etc/hosts and httpd.conf files to display my site at example.dev in any browser on that machine. I recently installed Android's software development kit which I'd like to use to develop and test stylesheets targeted to mobile Webkit-- but I can't access my locally-hosted projects in the Android browser.

This makes sense, since it's emulating the whole Android OS, but is there a workaround? Or can I only test projects that exist somewhere on the actual computer internet, perhaps in a hidden directory? Someone suggested that I edit my /etc/resolv.conf file, but I don't know the correct way to format a locally-hosted domain in the resolv.conf-- I tried variations of the following, and nothing works:

domain example.dev
nameserver 127.0.0.1
Or...
domain example.dev
nameserver localhost

In my hosts file, it is set up like this: 127.0.0.1 localhost example.dev example2.dev [etc]

View 2 Replies View Related

Android :: Dalvik VM Vs Sun JVM

Aug 25, 2010

Possible Duplicate: What can you not do on the Dalvik VM (Android's VM) that you can in Sun VM?

What ever interviews i have faced.In every interview when interviewers come on android topic they ask this question.

"what is the difference between Dalvik VM vs Sun JVM?".

I have given some answers like. http://stackoverflow.com/questions/230193/what-can-you-not-do-on-the-dalvik-vm-androids-vm-that-you-can-in-sun-vm

View 1 Replies View Related

Android :: TDD On - Dalvik

Jun 6, 2009

Through out of my Java projects I've got used to TDD with the help of this basic tools

JUnit (http://www.junit.org/) as Unit testing Framework Mockito (http://mockito.org/) as tool for Stubs and Mock objects EclEmma (http://www.eclemma.org/) as Java Code Coverage for Eclips

As far as I understand none of them I can use fully when I do coding for Dalvik:

JUnit -- android.jar has its own junit.jar and my assumption is you're supposed to use it, not the latest version from junit.org Mockito -- read this one http://code.google.com/p/mockito/issues/detail?id=57 EclEmma -- doesn't support Android JUnit tests

View 3 Replies View Related

Android :: Is Any Dalvik Bytecoder Available

Jul 6, 2010

I implemented a runtime bytecoder for Java apps based on Javassist. The idea is to introduce code to execute code remotely based on current context. Since the context is not the same at every moment, I need to perform the bytecoding at every execution (if needed). I tried to port my code to Android in order to test it on mobile devices (I already tested it on win mobile and iphone using phoneme and jamvm respectively). However, I could not find any bytecoding tool available for Dalvik. Is there any Dalvik bytecoder available or an ongoing project that I can join/check that is working on this issue? If not, is there any other alternative beside running a decompiler for dex files, and modifying it manually?

View 2 Replies View Related

Android :: Dalvik VM Vs Sun JVM - Compabillity

Aug 18, 2010

Are there any compability issues between a standard JVM and Dalvik VM? Are there any classes or packages from the Sun SDK that can't be used on Android?

View 2 Replies View Related

Android :: Dalvik And DefineClass

Jun 11, 2010

I'm wondering if and how one can load dex or class files dynamically in dalvik, some quick'n'dirty test function I wrote was this:

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

whereas the Foo interface is this

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

I also tried the same test driver code with a plain .class file which I didn't expect to work in a dalvik context for the obvious reasons, and it doesn't either.

Anyways, the above test driver throws at defineClass() and it doesn't work and I investigated the dalvik code and found this: http://www.google.com/codesearch/p?hl=en#atE6BTe41-M/vm/Jni.c&q=Jni.c...

View 3 Replies View Related







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