I need to be able to easily create different "flavors" on an app, each with a unique package name so that they can coexist on the same device. Is there a simple way this can be done, which doesn't require manually updating all the imports and other references to the package name each time I change it?
This is odd. I need to make my code pretty, so the first thing I want to do is to change the all the strings 'com.appspot.lbtdl' to 'com.faberfedor.tagyourworld'. I change every string in all the directories using the Perl 'pie' technique. Then I put the code into a new directory, create a new Eclipse project and run it. Code...
Is there an application that let's me change application names in the "all programs" list?I was recommended "Folder organizer" but it wouldn't change the names in the "all programs" list.BTW, I can't buy paid apps from the android market.
When using the smart search function of the dialer or searching in contacts my Magic only searches numbers and names, not company names.I have hundreds of contacts that are just companies (airlines, couriers, etc. etc.) with no specific contacts at that company.Those contacts are effectively inaccessible on my phone now as the only way to find them is to scroll through the hundreds of blank contacts to find what I am looking for.When I synchronized contacts with my HTC magic, any contact with a company name, but nothing in the 'Name' field had the word 'unnamed' added to the name field.The only work around I can see is to use Outlook to manually add the company name to each of these contacts and then change the 'File As' field to read the company name.
i work on custom Application Manager and try to get the disk usage of installed package. So PackageManager.getpackageSizeInfo was removed from SDK on 0.9->1.0 update android.content.pm. PackageStats(String pkgName)(cacheSize, codeSize, dataSize) returns always "0" Size of phys. file (java.io.File) in "/data/app" seems wrong/not completely. Has anybody any solution to get the total disc space used by an installed package?
I need to fill in edit boxes with first and last name.i want dabatabase which saves these once i fill the edit boxes and teh nxt tym i enter a single character it should retrieve that name.Plz provide code to me.
Can someone explain to me why my phone is showing 2 different ROM names. the ACTUAL ROM thats installed is Aloysius and i know this becuase the icons and layout difference between Fresh and Aloysius. if you look under CURRENT ROM in RM it says Fresh, but under Build, it says the Aloysius. Both updates are available for the ROMs and i dont know which one to do.
I'm attempting to override an Android View class to tweak the functionality just slightly. But I need to modify a field that does not have a setter method. I've placed the subclass in a package called android.widget. Why can't I access any of the package-private member fields? I notice that the compiler says they "cannot be resolved," rather than not being accessible. Does this have something to do with how Android.jar is built?
The instructions for setting up the ADP1 direct me to the HTC Developer Center to download system images. That page, at http://developer.htc.com/adp.html, does not have any links to system images - it says it does, but it does not.
I want to launch an installed package from my Android application. I assume that it is possible using intents, but I didn't find a way of doing it. Does anyone have a link, where to find the information?
Is it possible to control the package installation process in Android?The problem is that I'm asked to install and uninstall packages without using the default android installer. I need to control the entire process within my application. I already have my application in the /system/app/ folder, I also have been looking to the source code of the installer, but can't find a way to start installing or uninstalling a package on my own
When i use the phone function, I see duplicates of many names because it displays both my SIM contacts and Google contacts (my phone contacts are zero). How can i just set it to google contacts when using "Phone"? BTW - this whole multiple contact lists thing does not seem to be the best sorted out arrangement (Phone, SIM, Google). Can anyone confirm the the SIM list can't handle email addresses?
How do i stop my phone from remembering user names ? granted its useful for some things, but i don't want it remembering ALL of the words i input. just like Google chrome does ! is there a way of either stopping it from doing this or deleting them ? deleting my history doesn't do it. also if anyone knows how to delete previous locations from google navigation that would be great ..
We had a shock at work yesterday when our Orange bill arrived charging me �826.00 for the 1032mb of data I used over my 500mb allowance in the first month of owning a Desire. At the moment we're negotiating with Orange about that, and they're even sending me something approaching an itemised data bill to look at, but in the future I want to get onto a truly unlimited data account to prevent this happening again. Early indications from Orange are that they only do 500mb bolt ons and no more (and it's very hard to actually confirm this on their not too informative website), meaning this issue could easily rear it's ugly head again. If this is the case then I have to consider going elsewhere. Even though we're only in the first month of the contract I'm prepared to completely downgrade my Orange account and keep it running for my wife or something, and to take out a new account with O2 on an unlimited data package (plus I'll have 2 Desires to play with). The only trouble is that in the past (but not in the last 2 or 3 years) I've heard some horror stories about O2's coverage in the West Midlands (I live near to Wolverhampton) and wondered if anybody has local knowledge and can advise whether this has changed in recently.
I am running rooted stock Android 2.3 on LG E405 (no working 4.x ROMs exist for the device)
I have two questions:
1) What is the shell command to manually make android allow the PC to mount androids' (internal) partition as USB-drive? (I cannot think of right keywords to google this one up - )
2) How does android determine which partition is which (i.e. which one to remount for the PC when connecting in "USB storage" mode), beside vold.fstab and init.rc? On android 2.3 that info is not in "framework-res.apk", so where is it? In the partition table itself?
I had switched data partition with internal sdcard partition.
Here's how: Phone had a very small "/data" partition on /dev/block/mmcblk0p21 and large internal "/sdcard" partition on mmcblk0p20
So I reformatted mmcblk0p20 (ex-sdcard partition) into EXT4 and mmcblk0p21 (ex-data partition) into FAT32
Then I changed init.rc to mount mmcblk0p20 as /data type EXT4 and mmcblk0p21 as /sdcard type VFAT (mounting /sdcard was commented out in stock init.rc for some reason). This required modifying my boot image.
I have also set correct partition number in vold.fstab:
[#]dev_mount sdcard /mnt/sdcard auto /devices/platform/msm_sdcc.3/mmc_host[/#]
So basicly I now have a large /data partition and small internal /sdcard. I'm able install up to a gigabyte of APKs and it works fine.
However, when I connect to my PC via USB into "USB Storage" mode, the phone seems to still try to unmount what was previously sdcard partition (/dev/block/mmcblk0p20), instead of what is NOW an sdcard partition (/dev/block/mmcblk0p21) I can still send files to the phone via wi-fi and ADB, but the ability to mount it directly would be nice.
If I accidentally select "erase internal sdcard" from storage menu, that will also most likely erase what is now my /data partition, softbricking the phone. The "factory reset" option will probably only corrupt the sdcard.
I am using Eclipse helios and android sdk r_06.But the phone where i am want to run my application has platform 1.6.how do make this application run on that phone with that platform because when i installed the application it gave me error "incompatible platform","package corrupted","package not found".how do i make it compatible?also in eclipse when i changed target name as "Android 1.5" it gave me error in res folder tellin "invalid resources directory"
Is any one done tab application in android which contain some tabs in which tab contains list of some data that can be add update delete etc. if any application found then plz give me any url or code that can help me to learn these things
NOTE: Must work on Android 1.5 - Contacts Contract does not Simple enough question. I need to know the best way to get the same list of contacts that show up when a user presses the Contacts button. You would think something like this would work: //For Contacts Intent pickIntent = new Intent(Intent.ACTION_PICK, People.CONTENT_URI); this.startActivity ForResult(pickIntent, RESULT); //For Phones Intent pickIntent = new Intent(Intent.ACTION _PICK, Phones.CONTENT_URI); this.startActivityForResult(pickIntent, RESULT); The problem is that does not include secondary google accounts or Exchange contacts. By secondary accounts, in Android you can add additional gmail accounts to have the mail/contacts synced. The above intent will not list those additional contacts. I am also told that on the HTC Desire you can add contacts to the phone that do not get synced up to Google. These contacts also do not show up. So how do I get a real list of contacts so I can create my own list activity that works properly where the Google intent does not. NOTE: Must work on Android 1.5 - Contacts Contract does not
I am on my first Android application and I am on a timeline so details and examples will be useful since my knowledge is still minimal. I want my first screen to present the user with a list of activities to choose from. In my situation it is a recipe app where the user first chooses the type of food, such as, Beef, Chicken, or Pork. I want the application to launch an activity depending on the list item that the user clicked on. I am not sure if I should use a list view, a text view, a scroll view, a list activity, an activity group...
we are wroking on the displaying of mails from an email . we got the list of emails stored . we need to show a small text screen which consists of the some content of the body when the email in the list gets focus .
I am looking for the name of an App that I read about a while back. From my understanding it would remove the names of the apps when you put them on the screen. Just make it all a little less cluttered. I also recall reading that the extra space from not having names would allow you to put another row of apps on each page.
I'm trying to create a multiple selection list where the selection is represented graphically rather than with checkboxes.My list has checkboxes, but I want them to serve a different purpose. I'm using a cursor to hold my data and created a custom view binder for the SimpleCursorAdapter. I did this for the checkboxes and general flexibility.So far I haven't even been able to show one line as being selected. I've enabled multiple selection on the list and denied the children of the list item focusability. I've tried manually changing background color with the position fed in through the list item click listener. But the wrong items get changed and they don't even change to the right color. I've enabled touch focusability with no improvement either.Ideally, I'd like the trackball highlight focus bar to appear in multiple places. But I don't think this is possible unless you use the drawable directly. But I don't know how to find or apply it. My next idea was to have a slim view bar that changes color. But I had the same problem with the wrong item being selected so I never finished trying to guess the index position to see if this would work. My most recent idea is to completely swap out the view for another one if it's selected. But I have no idea how to do this either. I'm thinking of using an array list to store the _id s of the items that need a different view to get around the wierd selection problem. I'm also thinking of passing in the ID field as my from and the selection view as the to for my adapter. Then I'd intercept it with my binder and change the view accordingly. But once again, I'm not sure how to do this successfuly.