General :: Android Emulator - Edit Hosts File Doesn't Resolve Custom Domain Name

Dec 20, 2010

I'm developing a mobile website and I want to see how it looks in Android Simulator.

I manage to edit my android's /etc/hosts file. Here's what I did:

1. Create an Android Virtual Device (AVD)
2. Open the AVD with this command

Code:
./emulator -avd android -partition-size 128

3. Execute the following commands

Code:
./adb remount

4. Get the android hosts file

Code:
./adb pull /etc/hosts

5. Add my mobile website into the android's hosts file. It looks like the following

Code:
127.0.0.1 localhost
172.19.14.46 m.myweb.localhost

6. Push the hosts file to the simulator

Code:
./adb push hosts /etc/hosts

7. Open the web mobile in the simulator and Host do not found. The web mobile should appear.

Btw I use Ubuntu 10.10 and android-sdk_r08-linux_86 API 7 (Android SDK 2.1)

General :: Android Emulator - edit hosts file doesn't resolve custom domain name


Android :: Domain Name Won't Resolve To An IP Address

Sep 27, 2010

I am working on a program that will connect to a time server (time- a.nist.gov), retrieve the timestamp, and place it in a text field.

However, when I create the socket, I get an UnknownHost Exception for time-a.nist.gov

1. put the <uses-permission android:name="android.permission.INTERNET" /> tag right before the </ manifest> tag. I did this, and the change is still there.

2. use the static InetAddress.getByName() function to convert to an IP address (this still throws the same exception)

When I pass the IP address (129.6.15.28) to the socket constructor, the program works fine. It only breaks when I use the actual domain name.

I have written this program in Java and it works perfectly fine.

View 2 Replies View Related

HTC Droid Eris :: Ringtone Doesn't Stop / Edit Keyboard Input Sound When Typing - Resolve These?

May 9, 2010

Just wondering if there is anyway to set my phone in such a way that my ring tone will turn off when I open the phone (either unlock/ do anything to the phone). As it is right now my ring tone (a full mp3 song imported from my pc) will play until I drag down my notification bar. I'm using tone picker and handcent sms if it makes any difference.

Also, is there a way to edit the the keyboard input sound when typing with the stock keyboard?

View 7 Replies View Related

General :: Custom Hosts Files - How To Deactivate

Feb 2, 2012

Many roms use custom host files for adblocking purposes. How could you deactivate that? I'm using CyberGR now and I don't like this tweak.

Large hosts, it slows dns requests.

View 2 Replies View Related

General :: Why Android Ignores /system/etc/hosts File

Jun 19, 2011

i edited /system/etc/hosts file but it looks that my edit is ignored by Android.

In "hosts" file i added line with text "1.1.1.1 customdomain" And then i used "ping customdomain" command in Terminal Emulator but i got error "unknown host am".

View 9 Replies View Related

General :: Hosts File Resetting On Reboot

Feb 2, 2014

why my hosts file gets reset after a reboot no matter whether I change with adaway or adblock or if I manually replace the hosts file myself and set to read only. Have searched about and only solution I read about was get a custom kernel. Although I am already on a custom kitkat ROM and using dorimanx kernel for galaxy s2. Also never had problems with hosts resetting on jb or ICS. Even creating a symlink to data/data/hosts doesn't work. On reboot the symlink just gets replaced with the original useless hosts file.

View 5 Replies View Related

General :: Droid RAZR Max - How To Delete Hosts File

Jun 2, 2013

I deleted my hosts file on my droid RAZR Max. How to replace it or place a link for it so I can download it.

View 1 Replies View Related

General :: AdAway Not Working - Stuck On (Applying Hosts File)

Jan 27, 2014

Using AdAway v2.8 but end up getting stuck on the final step to enabling ad blocking, "Applying hosts file".

If you are trying to enable AdAway but are stuck on "Applying hosts file" as seen in the screenshot below:

1. Download a root explorer. I prefer using Root Explorer because I think its the best file explorer on the android market. If you have problems with purchasing apps you can always use the free version Explorer, or if you prefer using another file explorer that's fine, just make sure it has root access enabled.

2. Once you have a file explorer installed that has root access enabled, navigate to "system/etc" and find the file labeled "hosts" as seen in the screenshot below.

3. Hold down/select the file labeled "hosts" and select "permissions" from the selection as seen in the screenshot below.

4. After selecting permissions a window should have popped up where you can change the permissions of the file as seen in the screenshot below.

5. Change the permissions of the hosts file to "rw-rw-rw" just like in the screenshot below. Hit "OK" to apply the permission changes and close the file explorer completely and head back over to AdAway.

6. Once you have AdAway back open, click "Download files and apply ad blocking" and try again. Depending on your internet connection it shouldn't take very long, but you should see something like this, hit "Yes".

7. After your phone has rebooted, open AdAway again and you should see something like this saying newest hosts files enabled.

AdAway is now working and ad blocking is enabled!

View 9 Replies View Related

Android :: Adb Push Hosts File Into /system/etc/ - No Space Left On Device Error

Mar 22, 2010

I am trying to edit the hosts file to access rest services in my local network. Using adb pull I am able to get the hosts file for the emulator and edit it. However I get the error "No space left on device" when I do an adb push.

Does anyone know how to resolve this issue? Can we increase the space for /system? If so how? Are there any other easier ways to access local area network (without creating a DNS server).

View 7 Replies View Related

HTC Hero :: Sum Calltime And Custom Domain Gmail Account

Aug 21, 2009

The first is how (or with what application) can i see some informations about my calltimes. The whole outgoing calltime and incoming etc.The second q is the more important one. I use gmail, but i have a custom domain gmail acc, and i can't see any special settings to use that. Anybody can tell me, is this possible, to use with the gmail application, or i must set up an imap connection?

View 6 Replies View Related

Android :: Android Pulling Out Contact Info Should You Map To Custom Domain Class?

Aug 27, 2010

When picking out contact details, is there a built in domain class they can be mapped to? Or, do you have to create your own?

View 1 Replies View Related

Android :: Emulator Cannot Resolve Internet Address

Sep 2, 2010

When I run this code from Java project it works fine.

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

When i try the same code from emulator (already tried few versions) I'm getting UnknownHostException. Internet works fine on emulator and I'm able to connect to IP address like "93.86.230.251" but never to hostname "something.org".

View 1 Replies View Related

Android :: Can't Get Geo Fixes To Droid Emulator / Resolve This?

Oct 31, 2010

I'm trying to send geo fixes to the Android Emulator in Eclipse. It has been working on some occasions but now it never works. I've tried targeting different platforms, setting the time zone in the correct emulator, changing the locale to English (US), wiping the user data in the emulator, used both telnet geo fix command and the DDMS...

View 1 Replies View Related

General :: How To Edit Info File On Android

Mar 18, 2014

im trying to edit one file with extension .info since i cant find any program that i can did that on mac,so is there any program who can open that file and edit in the phone instead using a pc?

View 2 Replies View Related

General :: How To Edit Stock Rom With Custom Apps

Jan 26, 2012

i have 5 android mobiles

Samsung galaxy
Ace , fit , pop , 5 and y

I have their stock Roms how to edit it with custom apps and port it into a custom Rom .

View 2 Replies View Related

General :: No Internet Access / File Manager - Install APK File From Terminal Emulator?

Oct 8, 2012

Let's say you don't have internet access at the moment. Let's say all you have is fresh install of CyanogenMod 9, which for some reason, does not come with a File Manager :

Let's say you have an apk file on your SD card. How would you install the apk file? Terminal emulator, using which commands or another way?

By the way, ASTRO File Manager vs. ES File Explorer, which one and why?

View 8 Replies View Related

General :: Edit APK With ODEX File?

May 3, 2014

I have an apk that I'd like to edit, just some simple icon and xml changes. I have decompiled, edited and signed with apktool so I'm confident everything there is ok. Only problem is, it won't install.

The apk does have a odex file with it. Is it possible to edit this apk or am I wasting my time?

View 3 Replies View Related

General :: How To Edit Host File

May 19, 2012

How can you edit your host file?

PC36100

View 3 Replies View Related

General :: How To Edit OBB File Or Old Zip Trick

Jun 26, 2013

Is there a way to edit the obb file or the old zip trick is enought for that?

View 7 Replies View Related

General :: Edit Line In File From Terminal?

Dec 12, 2012

I don't really know where to put this topic but anyways my problem is that i need to edit a line in a file.

So i think of something like this

su
Cd /data/data/foldernameofapp/
Edit "file.dat"
Edit line 4 "text here 2"

i want it to edit like this "text here 3"

Change only the number. or replace the hole line with a new line where i only changed the number. btw the best is if the script can change a line and not find text and change. Because the number in the text i want to change can vary from different numbers.

P.S i can use root explorer and open the file with a text editor and change it, this works but takes forever P.S.S i got root

View 8 Replies View Related

General :: NVFlash Files - How To Edit BCT File

Apr 28, 2012

I am running some more tests and decided to take a different path for dual boot (for testing anyway, still gonna give it a go with bmp)... so to make a long story short, how do I edit the .bct file that comes with the nvflash zip??? I can edit the .cfg just fine but when I add my secondary partitions at the end of the line up and before UDB, the g2x doesnt seem to boot, like it just stays at the first lg logo and goes no further. I need access to the file to make it kick over. I think. Ive not been able to find out how to edit the file.. although I've not looked 110% as I usually do..

I am not even sure if I've named them right.. but hte way I see it they are all 3 characters in length.. so ive made the secondaries called APS, CAS, & UDS.. that also maybe my issue. but none the less ive attached a screen cap to show they were made and where they fall in the lineup.

View 1 Replies View Related

General :: Edit APK File To Allow To Stay For 4 Seconds

Mar 2, 2013

The goal is to be able to change small things in some apps.For example, there is an app called SnapChat which allows you to send a picture for 3 seconds and then closes the picture. In this scenario, I would like to be able to edit the .apk file to allow to stay for 4 seconds.

View 1 Replies View Related

General :: How To Edit Ext4 File With Windows XP

Apr 23, 2014

I want to edit an ext4 file with Windows XP and and I haven't found a solution despite extensive research.

View 4 Replies View Related

General :: Custom Rom On Android Emulator?

Jan 1, 2013

I was jsut wondering If I could intall and run cutom roms on android emulator?

View 4 Replies View Related

General :: Miui V4 Theme Edit (icon File)

Feb 11, 2012

How can I edit the icon file in miui v4? It's a separate file in /system/media/theme. With miui versions based on android 2.*.* it was possible to use winrar or 7zip but now I can open the file and extract but cannot replace files within the file. So what to do?

View 1 Replies View Related

General :: Does Updating ROM Reset Hosts And DNS Files

Sep 3, 2013

I've just set up a adblock to block some specific ads and websites. I want to know if I update my rom, cm10.2 nightlies will it reset those files.

View 3 Replies View Related

General :: Emulator For Custom Roms

Dec 19, 2012

Could it be able to create an emulator for droid to emulate another Droid, like that you are stock and want to know if a rom Nightly is stable or want to test in in some other way, always flashing back and forth is not very convenient, I think something like an Emu would be better...

Is there a method, would it need root or is it even able to develop such a thing???

View 8 Replies View Related

General :: Deleted System File On Android And Phone Doesn't Turn On

Aug 20, 2013

I deleted (accidentally) some system files, and then nothing happened, but i hit the restore or backup from setting and it went fine untill the loading screen, i mean it shut down then the first loading image fine and the next one doesn't load my system.. What can i do? (I think i know what software i shouldn't have deleted).

View 3 Replies View Related

General :: Domain Server Login

Jan 26, 2012

Using Android 4 is there a native way to log onto a windows domain server. If not can it be done using the Android API?

I have a Transformer Prime running Andriod 4 (ICS). I also have the B4A basic android compiler if I need to write my own code. I really new to Android programming but have been writing Windows based software for many years.

View 2 Replies View Related

Android :: Edit Contact Code Worked In 1.6 But Doesn't Work On Droid 2.1?

May 7, 2010

I had some fairly simple code in my app to invoke Edit Contact activity on a known good contact index that worked in Android 1.6 but is broken for me now in Android 2.1 on the Droid. I built a sample activity/app 'EdCon' to show this:

package com.jbh;

import android.app.Activity;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;

When I run this on my G1 running 1.6 it works as expected i.e. brings up the Edit Contact screen for the known index and then I can hit BACK to return to "Hello World, EdCon". Code...

View 3 Replies View Related







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