Android :: Unable To Access Android Assets

Jun 14, 2010

Using this code it should return a list of the assets. But it crashes, with a "Source not found, Edit Source Lookup Path..." message in the debugger when I call the list method:

@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);

AssetManager assets = this.getAssets();
try {
//error happens on this next line
String[] l = assets.list(null);
} catch (IOException e) {

}
}

Android :: Unable to access Android Assets


Android :: Access Base Directory Assets From Another Application?

Mar 16, 2010

I get a lot of requests in my application to allow for custom icons packs from BetterCut / Open Home. The way it seems to work is you install BetterCut or Open Home, then you can install tons of these free icon packs from the market. Once installed both those apps (and other apps) will poll for those icon packs and use the icons. I want to know how to poll the install applications for the asset folders that are available. I have opened up a few of the icon packs and verified that there is an assets folder in there and they are full of all the icon png files. I've searched on here, other code sites, google, etc., but haven't found any leads.

From the answer below I have written some code to try and list a file from my own projects assets directory but it does not seem to work.
Resources r = this.getResources();
AssetManager a = r.getAssets();
String[] list = a.list("/");
Log.d("test", "Length of / is "+list.length);
for (String s : list) { Log.d("test", s); }
Log.d("test", "Length of /assets is "+a.list("/assets").length);
Log.d("test", "Length of /assets/ is "+a.list("/assets/").length);
Log.d("test", "Length of /assets/ is "+a.list("/assets/").length);
Log.d("test", "Length of ./assets/ is "+a.list("./assets/").length);
Log.d("test", "Length of ./assets is "+a.list("./assets").length);

This is the output:
03-16 12:25:04.591: DEBUG/test(13526): Length of / is 6
03-16 12:25:04.591: DEBUG/test(13526): AndroidManifest.xml
03-16 12:25:04.591: DEBUG/test(13526): META-INF
03-16 12:25:04.591: DEBUG/test(13526): assets
03-16 12:25:04.591: DEBUG/test(13526): classes.dex
03-16 12:25:04.591: DEBUG/test(13526): res
03-16 12:25:04.591: DEBUG/test(13526): resources.arsc
03-16 12:25:04.614: DEBUG/test(13526): Length of /assets is 0
03-16 12:25:04.637: DEBUG/test(13526): Length of /assets/ is 0
03-16 12:25:04.661: DEBUG/test(13526): Length of /assets/ is 0
03-16 12:25:04.692: DEBUG/test(13526): Length of ./assets/ is 0
03-16 12:25:04.716: DEBUG/test(13526): Length of ./assets is 0

I figured out that you can read from the assets directory without actually using the folder name:
InputStream is = assetManager.open("test.png");
I also tried this with an asset in Appliction 2 from Application 1, where the folder path is /asset/icon/image.png:
InputStream is = assetManager.open("icon/image.png");
Next I figured out that you can list a directory inside assets:
String[] list = assetManager.list("icons");
That also works great. The only thing failing right now is how to list the base directory assets.

View 3 Replies View Related

Android :: Access Larger Files - More Than 1 Mb Plist Files - From Assets Folder

Nov 4, 2010

I am working on an android app. Where i need to parse some plist files from assets folder. I do understand how to use assets in android but now problem is that file sizes are more than 1MB and so android gives error Data Exceeds UNCOMPRESS_DATA_MAX (2183588 vs 1048576). how to access such larger files from assets? Also I cant reduce a file into small buffers because i am just sending it to "DocumentBuilder.parse(in)" as a whole so can not use buffer. The error is on line: Document doc = db.parse(in).

View 1 Replies View Related

Android :: Unable To Access Files

Feb 19, 2009

I tried to access the data from "data/data" folder from emulator memory and it worked fine but when i created the same structure in android phone then (1). It didn't gave me permissions to create the directory "files" in phone memory ( data/data/package name/) (2) any how i created the (data/data/package name//files/album) structure through coding but now i am unable to do "cd files" I need to push some image files in the folder data/data/package name// files/album.

View 3 Replies View Related

Android :: Unable To Access Jarfile Libarchquery.jar

Nov 21, 2009

When I create an AVD following the instructions from http://developer.android.com/guide/tutorials/hello-world.html ,the hello world tutorial , I get the following error. I have added the tools/ directory to the path environment system variables with Win7.

D:Setupsandroid-sdk_r3-windowsandroid-sdk-windows ools>android create avd --target 2 --name my_avd

Unable to access jarfile libarchquery.jar Starting Android SDK and AVD Manager SWT folder '' does not exist. Please set ANDROID_SWT to point to the folder containing swt.jar for your platfo rm.

View 2 Replies View Related

Android :: Unable To Access The User Preferences

Jun 25, 2010

i am trying to store the user preference whether he checks the checkbox or not ,but when i restart the activity, i am not able to restore the preference. here's what i have tried..................

View 2 Replies View Related

Android :: Unable To Login And Access Phone

Jul 22, 2009

Today I was showing my HTC Dream to a friend, how the lock screen works. I pressed the "forgot pattern" button, thinking I could go back or just enter my credentials. Since that moment, I haven't been able to access my phone at all. I can't go back to the pattern screen and I can't log in. It just says Invalid user name or password, no matter what I do. My e-mail is ryanrio...@gmail.com and I've tried ryanrio...@googlemail.com and just ryanriopel and none of it works. I know the password is correct, but I can't login. I tried this on both WiFi and Edge, and I've soft reset the phone several times now.

View 2 Replies View Related

Samsung Moment :: Unable To Access Android Market

Aug 21, 2010

I'm having trouble accessing the android market tonight I rebooted my phone and still having trouble I updated Pandora and other 2 apps this afternoon. I was wondering if it's just my phone or sprint or the market. So anyone can verify on their phone?

View 10 Replies View Related

Android : Unable To Access R.id From Inside Custom View

Mar 3, 2010

In my foo_layout.xml file I have a subclassed RelativeLayout:

<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<com.android.myapp.FooView
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@drawable/pegboard_table"
android:orientation="vertical"
android:scaleType="fitXY"
>
<ImageView
android:id="@+id/triangular"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:src="@drawable/pegboard_board"
android:scaleType="fitXY"
android:gravity="center"
android:visibility="invisible"
/>
<Chronometer
android:id="@+id/timer"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:background="@drawable/timer_display"
android:textSize="40sp"
android:textColor="#000"
android:layout_alignParentTop="true"
android:gravity="center"
android:visibility="invisible"/>
<TableLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:id="@+id/board_table"
android:visibility="invisible"
/>
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:gravity="center_horizontal"
android:background="@drawable/tab_bar">
<!-- android:layout_alignLeft="@id/options_tab"-->
<ImageView
android:id="@+id/game_select"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:src="@drawable/game_select" android:paddingLeft="15sp"/>
<ImageView
android:id="@+id/undo_select"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_toRightOf="@id/game_select"
android:layout_weight="1"
android:src="@drawable/undo"
/>
<ImageView
android:id="@+id/settings_select"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_toRightOf="@id/undo_select"
android:layout_weight="1"
android:src="@drawable/settings"
/>
<ImageView
android:id="@+id/info_select"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_toRightOf="@id/settings_select"
android:layout_weight="1"
android:src="@drawable/info"

This doesn't seem like the right behavior. I've tried it with other views inside the FooView hierarchy and findViewById() always returns null.

For the life of me I can't figure out what I'm doing wrong.

View 2 Replies View Related

Unable To Access WSDL File On Android Emulator?

Nov 19, 2012

I have developed one android application

this is my code:

[HIGH]
public class RetailerActivity extends Activity {
private static final String SOAP_ACTION = "http://ws.testprops.com/customerData";
private static final String METHOD_NAME = "customerData";

[Code]...

means it is successfully worked for my emulator and android device.please see this screenshot:[URL]

The same TestPrompts project only i have exported and created war file and uploaded in my tomcat server.

This is my tomcat server wsdl file: [URL]

But here i have faced one problem:

I have to put these URL means doesn't getting any result on both emulator and android device.Simply am getting black blank screen only. refer my screenshot:[URL]

My console window shows following error:

Quote:

11-19 15:12:55.232: D/SntpClient(73): request time failed: java.net.SocketException: Address family not supported by protocol

View 5 Replies View Related

Sony Ericsson Xperia X10 :: Unable To Access Internet Through WiFi With Android 2.1

Dec 5, 2010

Unable to access Internet through WiFi connection using my xperia x10 with android 2.1. The phone connects to WiFi network but unable to browse the internet.

View 8 Replies View Related

Android :: Unable To Access Memory Card When Connected To PC Disk Mode?

Jul 9, 2010

I was wondering why you can't access the memory card VIA the phone when connected to the PC Also should I use the eject command in windows to eject the phone?

View 3 Replies View Related

Sony Ericsson Xperia X10 :: Unable To Access Android Market And Other Google Applications

Aug 21, 2010

I have an issue with my new Sony Ericsson Xperia X10 Mini Pro. Please find below the necessary information. I sincerely appreciate your help in debugging this problem.
Issue: Unable to access the Andriod market and other google applications pre installed in my phone.

Background:
1. I brought an new Sony Ericsson Xperia X10 mini pro mobile phone.
2. I am a resident of India and I use the Airtel network.
3. I can connect my phone to the WiFi at home, and to the Mobile Office GPRS services provided by airtel.
4. I can browse internet when on GPRS or Wifi and I can also access facebook using the facebook for android apps.
5. I can acccess GMail via the email application and the web browser.
6. However, when I try accessing the Android market or the Gmail apps or GTalk - it asks me for a google login

Problem faced:
1. I give my google login, but I get a reply stating that the server is unreachable.
2. This therefore, prevents me from accessing the Android market
3. This also prevents me form effectively using the Google apps installed in the phone.

Steps Taken:
1. I have contacted Sony Xperia Technical support in India and the team was incapable and unable to effectively debug this issue.

View 2 Replies View Related

HTC EVO 4G :: Unable To Access SD Card From PC

Jun 4, 2010

I can format the card from the phone. I can save pictures to the card from the camera app. The phone sees the card properly. When I plug in the pc usb cable I select "disk drive" but the drive doesn't show up on the computer. Sometimes I see the drive (Drive G) pop up for a split second then disappear. Sometimes it never appears. I always get the "choose a connection type" message and select disk drive. The notification bar shows "USB DEBUGGING." I have tried it with USB debugging off or on. I have also installed HTC SYnc but that didn't help (and doesn't connect). Computer says "USB device not recognized." It always worked fine with my MyTouch 3G. There is nothing amiss in device manager.

View 18 Replies View Related

HTC EVO 4G :: Unable To Access EPST

Jul 1, 2010

I have an EVO and a Hero on my account, can't access EPST on either one anymore. I have the MSL's for both, I type ##data# into the dialer, it brings up EPST, I choose edit and type in MSL. Always get a check password error on both phones. Used same procedure with MSL on Hero before 2.1 update, but not since. Used it to change cycle slot index to receive calls faster on my old Hero, went from 2.5-3.5 rings to 2 rings with a change to just 1 (default is 2, lowest is 0.) My EVO seems to be ringing on 1.5-2 rings, not too bad, but if it can get better I want to try it. Anyone else unable to access EPST with their MSL #? Anyone else able to with a different method? Both Best Buy and Sprint customer service have given me the same MSL #, and both have confirmed it is not the other 1 time use password (I forget that acronym)

View 2 Replies View Related

HTC Hero :: Unable To Access Disk Via USB

Aug 28, 2009

I got my HTC Hero this morning - its my first smartphone and I am very impressed. I saw some fairly damning reviews online, but when I trialled it I was hooked. Superb device A+ so far, except for this little problem which I think is probably linked to my Laptop rather than the Hero... I have plugged it into my Laptop via USB. Vista found the drivers, installed all well and good. However, if I click on Removable Disk (F I get an error stating that there is no disk in the drive and please insert one. I've tried re-installing the drivers using the ones available online, and nothing. I've also installed HTC Sync which simply doesn't find the device despite being plugged in. The Hero reckons it is connected, complete with USB symbol and HTC sync symbol. So what have I done wrong? I've tried all the obvious ones - reinstalling drivers, different USB port, turning both off and on again (many times), uninstalling, reinstalling etc etc....

View 5 Replies View Related

HTC EVO 4G :: Unable To Access Internet After Update 2.2

Aug 8, 2010

My wife did the froyo update today (8-8-10) she is unable to access the internet and receives this message : The application Internet (process com.Android.browser) has stopped unexpectedly. Please try again. Then the " Force close " box pops up. She took it to the Sprint store and they were stumped, the phone says that it is connected even though it is not!

View 3 Replies View Related

HTC Tattoo :: Unable To Access Market

Jan 30, 2010

When I access the Android Market (Android Market), I get the same message that I get when accessing it via my PC i.e. "For a comprehensive, up-to-date list of the thousands of titles that are available, you will need to view Android Market on a handset." How do I get the Market to "see" I am using a phone?

View 2 Replies View Related

HTC EVO 4G : Exchange And 2.2 / Unable To Access Server

Aug 3, 2010

After upgrading to 2.2, my EVO can't get to the exchange server anymore. Has anyone else experienced this? I am sure it has to do with a certificate (Equifax one).At work when I get it on the wifi it makes me install a certificate and it will be on exchange fine, actually thats how i set it up. But one cell data or anything else it won't sync.On 2.1 it synced fine.

View 1 Replies View Related

General :: Unable To Get Root Access On Evo 4G?

Feb 23, 2012

This is now the second day that I'm trying to root my Evo 4G. So far, I've unlocked the bootloader using the htcdev.com method, but I can't get root access. I think my problem is an old version of hboot (0.99.0001, got it from latest HTC software update [2.3.4]), since the Revolutionary tool is saying that my version isn't supported. I've looked all over for how to update my hboot to 2.15 or 2.16, but nothing has worked. I still have S-ON.

I've tried flashing Amon Ra via command prompt (hangs on "waiting for device") and using the Android Flasher program (hangs on "please wait while your phone is flashed"). I've followed all the steps in the first method on this guide (androidforums com/evo-4g-all-things-root/488901-revised-rooting-gingerbread-2-3-5-dummies-guide.html, but to no avail.

How in the world do I go about rooting this thing? Or even just updating my hboot version?

View 9 Replies View Related

Sprint HTC Hero :: Unable To Access Recovery?

Nov 7, 2010

well I successfully have my phone rooted and was finally going to get around to installing a new ROM on my phone today. However when I tried to make a nandroid backup my phone wouldn't start up into the recovery thing to let me make a backup, instead it would just sit at the white and green HTC page indefinitely until I would pull the battery at. Any ideas on how to fix this?

View 19 Replies View Related

HTC Desire :: Unable To Access Live Tv / Internet

Jun 14, 2010

Having been optimistic that I would finally be able to use all the fancy bits of the internet with my Desire, I find myself somewhat nobbled. I am particularly interested in using the BBC site - but I can't access any audio, video or iplayer from my phone. Beebplayer worked once, literally, but can now only access radio stations. I have done some reading and understand that:the BBC haven't yet released a proper Android app. the Flash lite that comes with 2.1 may not work with everything, some people have found incompatibility issues with T-mobile. I appreciate that BBC is not the only fruit, but for a user of a multi-media phone, I find it crazy that I can't use their site properly. I don't appear to be able to access any live TV or news streaming elsewhere either. My phone is not a fashion accessory - I bought it because I wanted a phone and reliable and quick access to news (in different forms), without the premium of an iPhone. It's so frustrating, I feel like I've bought the wrong phone, even though I know it's not really the handset itself that's the problem! After all, it is marketed as having Flash and being more than able to cope with multi media on the internet. but apparently not for everyone. Whilst waiting for Android 2.2, the BBC, T-mobile... or whatever else needs updating. what can I do?

View 5 Replies View Related

General :: Unable To Access Internal Storage?

Mar 17, 2014

After rooting my phone and using an app called "GL to SD" I am unable to access internal storage, I even did a factory reset and that didn't fix it. I should reinstall that app and use some restore function however I'm unable to install/download apps unless I have .apk file, so any method to get this apk [URL] ......

View 3 Replies View Related

Motorola Droid X :: Unable To Access Full Certain Website

Jul 18, 2010

I'm debating whether to go with the Inc (shipped to my house on Friday) or the D-X. I so much want to choose the DX b/c of the larger screen but to be honest, it seems like the usability of the Inc is a a bit better (much closer to iPhone experience than D-X) as the scrolling b/w menus is much smoother than the D-X

Separately, I tried accessing the chicago tribune website on both phones - the DX only allows me to access the mobile version but the Inc allows me to access the full desktop version. When I tried clicking on desktop icon at the bottom of the Tribune website on the DX, it still points me to the mobile website. Any idea why this is the case?

View 13 Replies View Related

HTC EVO 4G :: Unable To Access Hotmail Account After Froyo Update?

Aug 9, 2010

After froyo update last week. I no longer can view or receive Hotmail on my Evo. I have checked all the setting manually and everything appears to be correct. I can send mail from Hotmail
but cannot receive? I went to Sprint Store Tech desk, suggested Hard reset?

View 1 Replies View Related

HTC Tattoo :: Unable To Download And Access Attachment Sent By SMS To Phone / Fix It

Jun 25, 2010

While I can send photos attached to text messages with my Tattoo, I am unable to download and access attachment sent by SMS to my phone. Anyone got any solutions for this? A 31 KB MMS attachment shouldn't be that hard to access!

View 2 Replies View Related

Samsung Behold 2 :: Unable To Access Anything That Requires Connection

Mar 13, 2010

my wife's BH2 is having connection problems. When using 3G/Edge/etc... she's unable to access anything that requires a connection. Facebook, her weather widgets, gmail, browser, etc...

I assumed a factory reset would work, but is there anything I can before resetting?Nevermind. Apparently I can get connection now. Facebook for Android is still giving me that connection prob.

View 1 Replies View Related

Sony Ericsson Xperia X10 :: Unable To Access Internet Icons

Aug 10, 2010

I have X10 recently i got gprs activated but i am not able to access any internet icon like gmail , gtalk or facebook. for everything i have to go in browser menu.i have a vodafone connection & customer care people says we are nt responsible for other icons as service is working through browser. y is it so? & secondly i have R1FA016 , is the new update available? because whenever i connect pc companion shows your software is up-to date & like it is mentioned it will be notified in the notification section nothing has been notified yet but everywhere i can read the new software is out.

View 2 Replies View Related

Motorola Droid :: Unable To Access Contacts In Compose Message

Jun 12, 2010

On the Motorola Droid, when I go to messaging and click to compose a new text, there is no way to access my contacts. I have to go to a contact first or to past threads.

View 2 Replies View Related

Nexus : Unable To Boot Main Image Or Access Recovery

Oct 29, 2010

I have a Nexus one and I have made a bit of a mess of it when loading a custom rom. Previously I'd rooted (without unlocking) the stock (2.2) rom before loading Cyanogen 6, later Cyanogen nightlies and finally eViL-NXSense-v1213. I was rather enjoying the last one but had severe stability issues which I think was due to using Titanium Backup and restoring data. I was in the process of re-imaging to eViL-NXSense-v1213 after clearing the SD card, data and various caches when something seemed to happen to the recovery image. I can get into the boot loader but if I select Recovery it shows the Nexus One logo indefinitely and doesn't respond to the power button being pressed, the same happens if I turn it on from cold.

Is it possible that the recovery image has somehow been corrupted? If so what can I do to restore a recovery image that will enable me to install a custom rom. I would prefer not to unlock the boot loader but will do it if necessary.

View 1 Replies View Related







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