Android :: Using Custom Jar Files In App?

Mar 6, 2009

I have a third-party jar file which I would like to use in my Android application. Is it possible? Or are we restricted to using only those jar files which are provided with the SDK?

Android :: Using custom jar files in app?


Android :: Custom Widget - Attributes In The Layout Xml Files

Aug 6, 2010

I have defined custom views in the various layout .xml files. However, all the layouts are using the Linear Layout - put the content would vary.

I would like to create my own widget tag something like <com.mypackage.MyLinearLayout />, I would like to pass the layout as a param to the <com.mypackage.MyLinearLayout layout="@layout/simple.xml" />

How to define new attributes to the custom widgets ? Simply defining a getter/setter method would work or is there any other references.

View 2 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

HTC Incredible :: Custom Boot Animation / Adding Files

Jun 15, 2010

I followed all the instructions on the other really long thread. I am having one issue though. I installed SDK and the drivers, that all went perfect. The only issue I am having is with the actual bootanimation.zip. I am thoroughly stuck. After I download a bootanimation.zip it shows up in winrar with 4 files (loading, eye, android, and the desc.txt) I know it has to go in tools. I am just not sure how? Do I add each folder or is there a way to add them all? I also know the name has to be bootanimation.zip. I tried a few different ways and pushed it to my Inc. But I cant get it to boot with the animation.

View 29 Replies View Related

HTC Incredible :: Create Custom Theme - Files Into An Apk File

Jun 6, 2010

can anyone point me in the right direction for creating a custom scene for use with the incredible? Not sure if there are applications I would need and also i need to know how to build the files into an apk file.

View 5 Replies View Related

Motorola Droid :: Custom Notification MP3 Files Within Froyo

Jul 1, 2010

I've got a library of short snippet/sound effect .mp3's that I've created over the years to use with my cell phones. They've always worked with my Droid through 2.1, but two things happen on every Froyo ROM I've tried (BB 0.1-0.4). First, when browsing (with astro) to the mediaaudio
otifications folder I can see them and play them once. The second time I attempt to play them, the very beginning of the file plays then stops. Second, these files are no longer listed in the notifications settings/options like they used to be.

If I flash back to 2.1, everything is peaches. Back to 2.2 and same behavior, though everything else in the ROM seems to be running fine, even music. I'm guessing Froyo looks for notifications in a new place within the file system, but I can't find it. Can anyone point me in the right direction, and also shed light why the .mp3's that play fine in 2.0 and 2.1 won't in 2.2?

View 5 Replies View Related

General :: RK2918 Based Custom ROM - How To Extract Image Files

Nov 18, 2012

I am having some difficulties with customizing my rk2918 based tablet. I managed to download the original firmware and it is in .img format. Now I have managed to take apart the single .img file into multiple .img files, customized and rooted it with dsixda's kitchen and rebuild the ROM. Now my question is, can I somehow convert the zipped package back into the multiple .img files, or even into the single .img file so I can flash it with RKupdate or RKbatchtool? How to extract image files......

View 2 Replies View Related

Motorola Droid :: Custom Boot Animation / Converting Clips Into PNG Files

Sep 19, 2010

Does anyone know a program where I can convert a clip into .png files? I would like to start making my own boot animations, but can't seem to find a program that would allow me to do such a thing.

View 2 Replies View Related

Android :: ListView Using Custom ArrayList Adapter - Implementing Custom Filter

Jun 18, 2010

I have seen examples implementing a custom Filter. The Android developer docs talk about implementing a Filterable interface. Does anyone have any advice and/or sample code on the best way to implement filtering in a ListView ?

View 2 Replies View Related

Android :: Directory To Store Files Generated By App (audio, Video Files Or Images)?

Apr 24, 2009

Can anybody advice what is the recommended directory to store files generated by your application: audio files, video files or some images.

If the phone contains SD card, it is clear that files should be saved there, but if there is no any external storage. where would you recommend to save to?

View 2 Replies View Related

Android :: Writing To SD Card - Deleting Files On It - Number Of Files Relevant

Mar 19, 2009

I wrote an app that downloads web sites and all their assets (images/stylesheets) to "disk" and therefore stores lots of small files on the SD card.

Sometimes it fails to delete large amounts of files and afterward the file system is r/o. To analyze that behavior I tried to do the removal of the files by hand and then go from there. But that already failed.

localhost:~ mkamp$ adb -d shell mount [.. some mounts ..] /dev/block/mmcblk0p1 /sdcard vfat rw,dirsync,nosuid,nodev,noexec,uid=1000,gid=1000,fmask=0711,dmask=0700,code­page=cp437,iocharset=iso8859-1,utf8 0 0 --> R/W

Last login: Wed Mar 18 19:41:49 on ttys005 localhost:~ mkamp$ adb -d shell rm /sdcard/newsrob/a* [.. minutes of silent deletes ..] rm failed for /sdcard/newsrob/a2aade03616c28b30_113.png, Read-only file system localhost:~ mkamp$

localhost:~ mkamp$ adb -d shell mount [.. some mounts ..] /dev/block/mmcblk0p1 /sdcard vfat ro,dirsync,nosuid,nodev,noexec,uid=1000,gid=1000,fmask=0711,dmask=0700,code­page=cp437,iocharset=iso8859-1,utf8 0 0 --> R/O now

The log contained nothing but the usual gc output and random WiFi status changed mumbo jumbo.

Anybody else seeing this behavior?

There were 6.500 files in that directory. Might that be the problem? I don't access the files with queries, I always have the exact name.

View 5 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 :: Using Local Files - Overlay Route Data In KML Files On MapView?

Jun 11, 2010

I am trying to overlay route data in KML files on a MapView.

The following code works great:

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

The only problem I have with this is that I don't need to re download these KML files every time. I have about 10-15 KML files that will rarely change. Also since it has to connect, download, and parse these each time there is a delay in opening the maps.

It would make a lot more since for me to save these as a local resource and have the URI reference it there. Is there a way to construct a URI using the geo: scheme and have it point towards a local resource?

It looks like file:///sdcard support was included in 2.1. The only reference I could find to it was at the end of this bug report thread. I am currently at work and don't have time to play with this yet but I would like to figure it out later. I feel like there are a lot of people on stackoverflow and elsewhere who would really appreciate a reasonable way to do this.

View 1 Replies View Related

Android :: Install Apk Files In Androd 1.5 Using Eclipse IDE - Apk Files Installed

Jul 29, 2009

To android working on eclipse with android 1.5 r2 version when i am running a basic program its showing a error .apk file not found.

View 2 Replies View Related

Android :: Retrieve Files Or Audio Files Programmatically From Device

May 11, 2010

I want to know how to get the ringtone,audio files in the device and I want set them as alarm. I am working in the code to set the alarm and I want to know how to retreive audio or ringtones from the device.

View 1 Replies View Related

Android :: Pass Custom Attributes To A Custom DialogPreference

May 3, 2009

I am writing a custom preference dialog derived from DialogPreference and I want to pass some custom attributes to the dialog through the preference's XML definition. Here's my preference.xml file:

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

View 2 Replies View Related

Android :: Custom Map Markers And Custom Backgrounds

Mar 1, 2010

I am trying to get the images to have transparent backgrounds so the map is not blocked by a square marker with an image in it. What image editor and what settings should I use to get this to work?

I am trying to do some custom backgrounds for buttons and the same problem comes up: I get square corners and a background that does not scale with the buttons.

I think this all part of the same problem: I am not using the right tool with the right settings to create the images. I must be misinterpreting the documentation and examples that talk about a white border around the image and a black line along the top and left side for the expandable button background.

Here's a quick way to reproduce the problem:

Follow the directions to create the MapView program as described on:
http://developer.android.com/resources/tutorials/views/hello-mapview.html

For the icon I first used the image copied from the page:

Next I edited the picture in Microsoft Paint, and cut off the little guy's antennae. I'm not cruel and no real androids were harmed in that experiment. I surrounded the new picture with a pixel thick border of white, copied from the border that was around the rest of the image, and then copied the black that was there as well in the void areas of the image, outside the border.

I saved the image as myandroid.png and copied the file to the layout folder. Pointed the activity to the new pic and ran the program.

The image was displayed with a full square background and shadow, not the android shaped image and shadow that was there when the original image was used.

Custom Button background:
Follow the directions for the Relative Layout example at:
[url]

Next, I created an image to expand as a background for the button called backbutton.png. It too is surrounded by a white border and black filled on the corners, the top and one side per documentation I found in "Android Programming Tutorials" on page 298.

The background does not expand, nor do the corners round.

I wish I could show you screenies of what I have.

How do you create the images for the custom backgrounds and the images for the custom map markers and buttons? I need to know what image editor to use and the file attributes to set, so the images expand and display with the proper void spaces in them.

View 2 Replies View Related

Android :: Files - Local Files - Storage

Sep 2, 2009

From the Android documentation:

"You can store files directly on the mobile device or on a removable storage medium. By default, other applications cannot access these files. "

I could write to the sdcard (/sdcard/file.tmp) and other apps could access these files, right?

I would like some local storage that I can write files to (and read from later) that are not accessible to other applications, and I will always have access to. The problem with the sdcard is that if someone plugs in a USB cable and turns on MSC, my application (and all applications on the phone) will lose (both read and write) access to the /sdcard directory. So I need something more reliable.

View 8 Replies View Related

Android :: Get Custom Parameter From Custom Ui Tag

Sep 18, 2009

I try to implement a custom button(OnPressButton), and the code is in below. In LogCat, I can see the two parameters (btn_up/btn_down) value are below:

btn_up=@drawable/btn_up btn_down=@drawable/btn_up

But how can I convert this to point to R.drowable.btn_up and R.drowable.btn_down ?

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

View 2 Replies View Related

Sony Ericsson Xperia X8 :: Delete Downloaded Files And Browser's Temp Files

Nov 6, 2010

Sometimes I'm browsing the web and... One more download... And then oops! Another one...Then I realised that those downloads are still in my download list and there's no option to COMPLETELY remove them. Also, where do I clean browser's temporary files?

View 3 Replies View Related

Media :: Music Player Can't Find All Files / Need Doesn't Use Native Index Of Files?

Apr 4, 2010

I have a Samsung Galaxy I7500 using android 1.5. I extended my phone with a 16GB microSD. I copied a big music collection (around 800 files) into a folder on this SD. Now the problem is that the music player can't find all the files.

I know that there are several threads about android not finding music. The answers are usually that the library hasn't yet been updated or that the ID3 tags are not correct.
I have checked both.

Btw. I can play the files using ASTRO.

In my opinion it seems as if android can't build up a library with too many entries. If I rename the files or put them into different folders, songs disappear and reappear quite randomly.

Do you have any solutions? Is there a music player which doesn't use the native music players index of files?

View 3 Replies View Related

Sony Ericsson Xperia X8 :: Can't Send Any Files(pictures,mp3 Files) Through Bluetooth / Solution For This?

Oct 21, 2010

I cant send any files(pictures,mp3 files) through bluetooth.

Can anyone give some solution on how it works?

View 2 Replies View Related

Motorola Droid :: Unnecessary Files - Safely Delete Them - Just The Files Not Folder?

Nov 17, 2009

I uploaded about 50 pictures from iPhoto (using a Mac) just to see what they looked like and then later formatted the Droid's SD card, so the pictures were no longer there.

Now, if I mount the Droid via USB and view the file structure there is a folder named /albumthumbs which contains 50 files, presumably for the 50 pictures a had on the SD card.

To me, these file, unless linking to actual photos stored on the SD card, take up extra space in the phone's memory (not worried about the SD card). I wonder if I can safely delete them (just the files...not the folder)?

View 2 Replies View Related

KitKat 4.4 :: Transfer Files From Note 3 N9000 - Laptop Detects Phone But Not Able To Copy Files

Apr 30, 2014

i not able to transfer files from my note 3 n9000 my laptop detects my phone but not able to copy files from my phone but able to send files to my phone

View 1 Replies View Related

HTC Desire :: Checking Files - Deleting Files - Making Space

May 7, 2010

How do you go about checking what is stored on your phones memory and deleting content? For example I used dropbox and downloaded a 7mb photo onto my phone. Can't find it in the photos app or anywhere else. Going into SD & phone storage under settings doesn't do anything. It says I have 70mb available space under phone storage but you can't click on that to get any further info. Same goes for the SD card options.

View 1 Replies View Related

General :: Sync / Compare Files (with Emphasis On Music Files)?

Sep 3, 2013

got a Samsung Galaxy S4 (for several years I had iPhones) and I am enjoying it. Now that I have gotten all my music files away from iTunes' clunky clutches I have reorganized them and they are on my S4's sim card and it works great.

The issue is that I have updated a few of the files and moved a couple more around. I want to update those music files on my S4 from my PC. I could just delete the Music folder on the S4 and recopy everything over, but that seems to be a huge overkill.

What is a good way to compare files between my S4 and folders on the PC and match/update between the two? I am using Windows 7. I have tried to map the Sim Card as a drive but couldn't get that to work. I have Kies from Samsung but that is kinda clunky. I have also tried AirDroid (which I think is great) but I can't really sync files with that. Normally I would use a Windows application like Beyond Compare or WinMerge to do something like this.

View 3 Replies View Related

General :: How To Upload Files Other Than Images Or Music Files In Web Browser

Jul 3, 2013

I am on a standard website that has a normal upload button, I need to upload a PDF file, But when I click on the upload button on the web site a popup window from my Android phone appears and says "Choose action" and gives me access to the gallery, camcorder, voice recorder , choose music track, gallery (again), select music track and voice recorder (again).

I need to some how get access to my SD card and my download folder to be able to pick the the pdf file that I need to upload. I have tried this both on the default internet browser and Google Chrome, but both give the same options.

I am on a rooted HTC ONE on ATT

View 3 Replies View Related

General :: Transferring Files BACK ONTO SD Card From PC (Note 3 Files)?

Mar 19, 2014

My Sandisc 64GB SD card went kaputt last week, it froze at 33GB, luckily the existing files are all ok and I was able to copy all the files onto my PC, however nothing new can be written to it. I've tried formatting with no success. So I copied the files onto the PC and just got a new this time Samsung 64GB micro SD card. Problem I'm having now is that on several attempts it's failed to copy the files back to my SD card (from PC) I've formatted the card in the Note 3..the music files about 4 GB transferred just fine, the problem seems to be with the Pix and Videos. I'm currently trying to copy the DCIM folder back onto the micro sd and it's saying it'll take 6 hours.

I have tried: copying from PC to micro SD in the phone via USB copying from PC to micro SD in SD card adapter plugged directly into PC

copying from PC to micro SD in USB adapter plugged into PC

all results the same

View 1 Replies View Related

General :: Exchange Stock Rom Files With AOSP Files

Jan 3, 2013

im trying to exchange some files in /system/framework of a stock jellybean 4.2.1 rom that came with my nexus 10.

I have built a workin rom from AOSP sources and made little adjustments that are present in /system/framework/services.jar and services.odex

I have built full_manta-user (not -userdebug!) so that the rom gets odexed and matches my stock rom.

The problem is i get stuck in a boot loop when i use my services.odex file on my stock rom. Is there a way to make it work or debug it?

View 1 Replies View Related

Android :: Style Own Styleable With A Style - Custom View Class With Custom Attribute

Jul 8, 2009

I'm creating my own View class, and defining custom xml attributes with a attrs.xml. As long as I provide each attribute manually, there is no problem, but

code:...................

The android:text is properly set in my instance, but the borderDrawable is not. I guess this has something to do with namespaces, because inside the styles.xml, the name="mypack:borderDrawable" is not handled by the XML parser's namespace facility, because its inside an attribute value. So "mypack" is in no way connected to "http://some.weird.url.com/seems/not/to/ matter" and adding it via xmlns:mypack... to the stylefile would not help, I guess. In the same file, "android:text" is somehow recognized, even though "android" is AFAIK only a ns-defintion for [url], which is also not declared in that file.

So what is the proper way to set a custom attribute in a style?

View 3 Replies View Related







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