Android :: Changing Content Of .apk Archive At Run Time
Nov 27, 2009it is allowed to change the content of a file in the .apk archive at runtime? because the signature of the application will change.
View 2 Repliesit is allowed to change the content of a file in the .apk archive at runtime? because the signature of the application will change.
View 2 RepliesI created an activity by using a layout written in a XML file. I would like, in response to some events, to change the content of this activity. I would like to show a VideoView over the content. In response to some other event, I may want to go back to the first content. Would it be possible to switch the content of the activity this way without running another activity (I have another technical difficult in doing that)? I tried using setContentView( videoView), and then switching back with setContentView(T.layout.main), but it seems that, when going back to the main layout, all my buttons and text boxes are created again as they were new. Would it be possible to go back to the last state of all the controls?
View 4 Replies View RelatedIs there a way to keep the phone from changing time as you cross time zones?
View 4 Replies View RelatedI have added a menu to ListView Activity and wanted to allow the user to select the information that would be displayed in the ListView. So for example:
The ListView is populated in the onCreate method.
The user selects an option in the menu.
Upon the user making this selection the ListView would be populated with a different array.
Is onResume() executed after the menu is closed? I would test this but I am not currently home.
I have a tabactivity with several tabs. They are all defined with intents. On one tab, I have an action that needs to bring me to another tab and with a specific data. I worked with Intents and I broadcast them to change the tab. For that I have no problem. But I am facing an issue as soon as I try to reset my tabs for the second time (when the application starts, my method does not fail while called for the second time it hrows an exception). The issue comes only If I call the clearAllTabs() method on TabHost. Here is the exception:..........................
View 2 Replies View RelatedI would like to write a rather simple content application which displays a list of textual items (along with a small pic).I have a standard menu in which each menu item represents a different category of textual items (news, sports, leisure etc.).Pressing a menu item will display a list of textual items of this category.Now, having a separate ListActivity for each category seems like an overkill (or does it?)
Naturally, it makes much more sense to use one ListActivity and replace the data of its adapter when each category is loaded.My concern is when "back" is pressed. The adapter is loaded with items of the current category and now I need to display list of the previous category (and enable clicking on list items too)
Since I have only one activity - I thought of backup and load mechanism in onPause() and onResume() functions as well as making some distinction whether these function are invoked as a result of a "new" event (menu item selected) or by a "back" press.This seems very cumbersome for such a trivial usage.Am I missing something here?
Can anyone please help me? I have an 8gig micro SD card and none of my contacts, photos, songs or anything will save to it, they save to the phone instead and I don't know how to change it.I would just just the usb but my computer doesn't recognize the phone on my computer either.any help would be much appreciated!
View 13 Replies View RelatedDoes somebody know if this is possibly in 1.5? From: hackbod <hack...@gmail.com> Date: 19 Okt 2008, 20:06 Subject: How can the app icon be changed at runtime To: Android Developers Sorry, application icons can't be changed dynamically in 1.0. On Oct 18, 8:10 am, omni <dbk...@gmail.com> wrote:
View 6 Replies View Relatedi was wondering if there is any way to load resource (such as skins etc.) that include drawables and layout information during runtime. what i mean is that the user can download a file (probably a signed apk - would it work any other way?) and would be able to install it adding to an already existing application thus adding more resources to it.
View 5 Replies View RelatedIs there any good example to show how a single compiled application could support both english and say germany.The aapt approach and Resource R.java approach seems to me that, we may need to have one binary for english and one for germany etc and so on. Like in J2ME, could we switch the language at runtime.
View 13 Replies View RelatedI am having an EditText. If i specify image for the EditText in the layout XML file (android:back ground) it looks different and looks different when i specify it at runtime EditText et = (EditText)find ViewById (R.drawable .et1) ; et.setBackgroundDrawable (Main.themes.getDrawable (EDRAWABLES.EditText BackgroundImage )); Both codes point to the same image. When i specify the image at runtime , the EditText leaves a margin at the top and bottom of the cursor in the edittext which does not happen when i do it in XML. I have attached the screenshots of both images. Top image is the one drawn from XML and bottom one is given at runtime. I am not getting the difference ? Actually i am facing similar problems with other Widgets too if i change the logic of specifying the drawable at runtime and not at compile time.. Is this the default SDK behaviour? You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com /group/ android-developers? hl=enEditTextProblem.JPG
View 2 Replies View RelatedIs there a way to change the time in Nexus 4? I dont want to change time zone, but I want to, say, keep the time 10 min faster.
View 1 Replies View RelatedI need to change the time on my LG Optimus M (Metro PCS) to compensate for the day light saving. however I can't find from where should I do it, I don't see anything else other than the time and date format under Date and time settings. I read about a Client NTP which solves the problem, however your phone needs to be rooted, is it safe to root them and run the Client NTP?Also is there any other ways to change the time?
View 6 Replies View RelatedI don't mean 12/24 hr format. I mean HH:mm:ss format. I want my status bar clock to display something like 23:59:59, I want the "seconds counter" included. How do I do this? Are there any app that can do this or I need to modify some system files (SystemUI.apk perhaps)? My phone is xperia mini pro (rooted).
View 3 Replies View RelatedI looked and can't find any way to make the backlight stay on for more than 3 seconds after I take the phone away from my head during a call. Even if I am typing in info paying a bill it still goes out. Is there any way to change this or is it a problem with my phone?
View 7 Replies View RelatedSpecifications:
Sony Xperia V (LT25i)
Official Android 4.1.2 9.1.A.1.145
Problem: I have two batteries, default one and Mugen one. Every time I change a battery the phone system time resets.
What I have tried to do: Set "Automatic date & time" and "Automatic time zone" on - No luck. Restar after set on -
Install different NTP server synchronizing app. I am in china, so it could not connect to the server and I get error every time, even after change to chinese NTP server - Still no luck... 
Install different GPS synchonizing app, sometimes it work sometimes not and it takes too long to synchronize.
I am trying to add some updates to an already released application but something has happened with my workspace that prevents me from Running or Exporting the application. I keep getting the following code...
You think it would be an easy fix but I looked into the HDPI drawables folder and there were no doubles. I even went as far as to delete the entire folder and the error still appears. Anyone got any clever ideas?
I put two projects into Eclipse, called Project1 and Project2.Project1 is independent, but Project2 must be dependent to Project1.When I build the Project2, the error msg comes like this: Error generating final archive: duplicate entry: AndroidManifest.xml
View 1 Replies View RelatedI am using ZipInputStream and BufferedOutputStream to decompress a file from a zip archive in Android 1.6. The code runs without exceptions, but when I check the existance of the file, I can't find it. I am just looking for the filename. Is there an application directory that stores this file? Do I need to specify a directory?
View 1 Replies View RelatedWhen I compile my Android Project I always get this Error:
Error generating final archive: duplicate entry: about.html
But I can't find any about.html in my Project.
Does anyone know how to solve the error?
How do I archive google mail to certain mail box folders. When I get a new mail and I get the option to archive it, I hit the archive button but I do not get the option to move it to a certain folder.
View 9 Replies View RelatedThis may seem like a stupid question but I need to be sure. I was wondering if it was possible to pro-grammatically change the Content Provider used when making a query given a Content URI. The reason being I need to know if it's possible to force the Calendar/Contacts applications to read from a different database via a different Content Provider temporarily while my application is running, so that I can reuse those applications to display my own data. Since the Content URI s are hard coded in each of these applications the only way it might be possible is if we could somehow temporarily change the Content Provider used for a given URI. I know this probably isn't possible, I just need to show it isn't. Could someone confirm this can't be done?
View 2 Replies View RelatedI'm trying to download .cbz and .cbr files from hotfile.com and I keep getting the message that these file formats are not supported by the phone. I also downloaded a comics viewer (ACV) and there should be a setting that enables .cbr support, but I can't find it. ACV opens .cbz files by default however. What's going on? Some help would be appreciated.
View 1 Replies View RelatedHow can i create a zip apps archive??
I want to create it, put into it my apps, and finally flash it after a rom flash.
So, what do i have to do to create it??
I've got a backup archive in my PC and I can't access to my android, And my recovery mode (Android System Recovery 3e)only can restore with archives that be on internal SD.How can I put an archive of my PC to my internal SDcard using ADB commands? I need do it with ADB because I haven't got CWM.
View 3 Replies View RelatedIs there any way to save a text message thread? I have an ongoing thread with around 64 messages back and forth. Seems like you should be able to send it as an email or something but I don't see it anywhere. Surely there's a way.
View 8 Replies View Relatedis there an easy way to archive sms messages to an email account or a file that would be transferrable? i'm on a stock eris and i use handcent.
View 2 Replies View RelatedI have a file from a free Android app that holds a list of URLs in a separate file that the app reads. I wanted to get the list of URLs, but I don't know how to open the file.URL....Trying in wordpad or such just shows it's all encrypted in some manner.
View 1 Replies View RelatedFor some reason, in my LwW Wt19 (Gingerbeard 2.3.4), the default Dialer (phonebook?) only keeps 30 days of recent calls, but others aplications (for example Go Contacts Ex, ExDialer) let me watch all calls I have ever done. So it makes me think that the problem is the default dialer.
How to increase call log archive to longer than 30 days?
Now, it is the holder of the smartphone HTC One (you know, no SD card slot), and from the beginning there is a problem with the function called "Protected archive". If you try to select it and other miscellaneous copy is returned in dyku message "Sorry, the operation failed".
HTC is ROOT, S-Off. I use a ROM called "ViperOne v1.1.1," but on other ROMs is the same problem.
Changing the backup directory in the preferences of the Titanium Backup does not work. I tried the method described here: [URL]... but it also does not give the result and does not change the situation.
Other features TitaniumBackup working properly, except for the protection of files: (((
What to do to be able to protect (selected) copies of the program TitaniumBackupPRO? I do not have the support to count - they do not write off