Android :: Deploying Custom Configuration With Application

Aug 2, 2010

I have developed an App that talks to a set of web services. Because the App is used in different environments and for different purposes, I would like to provide a way to automatically deploy a configuration alongside the App that contains the settings for the environment (url of the locally hosted web services for example) and App settings (such as a timer period for talking to the web services). It would be tedious to have a UI for this and have to do it on every device post installation. Things I have tried and why they didn't meet my requirements:

*Raw Resource: If I unzip the apk and change the settings file, it becomes invalid as I need to resign the apk.
*Reading straight from the apk with ZipFile/ZipEntry: Device complains upon installation that the config file is not signed.
*PreferencesActivity: Requires device side UI; It would be tedious to have a UI for this and have to do it on every device post installation.

Android :: Deploying Custom Configuration with Application


Android :: Application Is Not Deploying On Emulator

Jul 27, 2010

I have written an application in eclipse to run on android emulator but the application is not deploying on emulator and it says Failed to load properties file for project helloworld. in the error report it says An exception for stack trace is not available. I am not able to understand what to do as i am new to android. Please help me to find d sol for this problem.

View 5 Replies View Related

Android :: Best Way To Add Configuration UI To Application?

Nov 24, 2010

I have a simple Android application that loads a page in a WebView, then most of the real work is done by the server-side scripts. Everything is working great, except that I currently have the page URL hard-coded in the Android application, sort of like this:
mWebView.loadUrl("https://www.my-application-url.com");

This was fine until this morning when I was asked to to make it so that the user is prompted to enter the URL the first time the application run, and the URL that is entered by the user is then saved and used automatically by the application from that point onward. I was also asked to make it so that the user can change the URL if they choose to do so. The reason I was asked to do this is so that users can install the server side of the application on their own servers and my Android application will be able to connect without me having to write a custom version for each user, with their URL hard-coded into the application.

I am unsure what is the best way to handle this in Android. It seems that I probably need to add some type of configuration interface to the application that is shown by default on the first run, then only when the Menu button is pressed on the following runs. From this configuration interface I guess I would then get the URL from the user and serialize it for future use. What is the best way to accomplish this?

View 2 Replies View Related

Android :: Best Practice For Storing Application - Configuration

Apr 8, 2010

I am still learning bu find Android the cool platform for allot of useful applications. I have written a Service for doing GPS tracking and it consists of a Service and a Control activity to manage, monitor and configure the service. I am looking for the preferred way for the Control Activity to define settings for the Service, things like IP address and Update interval. I envision something like a Registry on windows where these settings can be shares and updated.

View 9 Replies View Related

Android :: Storing Application Configuration Settings?

Oct 12, 2009

Where should I store my Android application's configuration settings? Coming from the .NET world I was expecting something like .config. Do I create a file under res/values, and use that?

View 1 Replies View Related

Android :: Email Application - Possible To Get All Configuration Details

Jan 11, 2010

Is there any way to get in the code:
Email id
Password
SMTP host
SMTP port

Which the user used to setup his Email account with the Android built in Email application. Required because, I am written a MailSender class using JavaMail API there I need to send the mail using the details what user configured in Built in Android Email application.

View 2 Replies View Related

Android :: Deploying Shared Resources

Mar 23, 2010

We are investigating the possibilities to package & deploy platform UI extensions which can contain both Java code and resources - which then can be (re-)used by applications using <uses-library> tag in the AndroidManifest.xml. One solution which has been discussed was to use the aapt -x option together with the new --custom-package option introduced in November to generate unique resource identifiers for the shared resource package. Then, just as the <uses-library> information in the manifest file would bootstrap the class loader with the listed extension packages, it would add these packages to the asset manager as well - allowing the asset manager to locate and load the extension resources. (This would require a platform extension.)If this is a way forward - using the 8 package bits in the resource identifiers? This solution would probably work initially for one vendor since the allocation of unique package identifiers would be an internal issue, but if extension packages where to be exchanged within the android community there would be a high risk of packages using the same identifiers.

View 3 Replies View Related

Android :: Getting Error In Deploying Apk In Droid / Fix It?

Dec 8, 2009

I am getting below error when I try to upload apk file with AVD version Level2. Can't dispatch DDM chunk 46454154: no handler defined

View 2 Replies View Related

Android :: Deploying AIDL That Imports Classes

Nov 12, 2010

I have to make other developers to be able to connect to my service, but my AIDL imports my classes. I don't want to give them the source code of the service, just the APK and some kind of a stub file (java, jar?). How can I give them something - "the glue" - which makes them to use the classes in my AIDL and using the service akp without getting the sources of the service?

View 1 Replies View Related

Android :: Custom Mapping Application

Aug 16, 2010

I am looking for an application that can create a map by me carrying the phone and walking a certain path.There is a 300 acre park near where I live. The maps they provide are way off base. I would like to walk all of the trails and have the Droid record where I am walking.You know, this may be easier than I think using ASE and writing a Python script. I'll just get the location every half second and write it out to a file. It'll be interesting to see how the maps turn out, seeing the low resolution of the GPS receiver.

View 5 Replies View Related

Android :: Custom Cleanup On Application Uninstall

Feb 5, 2009

Is there any mechanism in android to perform post uninstall functions? Are there any functions which an application can override to perform custom cleanup when it is being uninstalled? Actually i want to delete some application specific files on uninstall

View 2 Replies View Related

Android :: Embed A Custom Font In Application?

Aug 6, 2010

I would like to have an app include a custom font for rendering text, load it, and then use it with standard elements like StaticText. Is this possible?

View 1 Replies View Related

Android :: Custom Dialog In My Application To Show An About Window

Mar 15, 2010

I'm trying to create a custom dialog in my application to show an about window but it ain't working. Maybe one of you knows a solution?

So I have an activity with the onCreateDialog(int id) overriden in it:

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

This is exactly as described here: http://developer.android.com/guide/topics/ui/dialogs.html#CustomDialog However this my exception thrown:

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

View 14 Replies View Related

Android :: Twitter Application That Allows To Use Own Custom Short Url Service?

Apr 2, 2010

I was just wondering if any of you know of a Twitter application that allows you to use your own custom short url service? I currently have my own set up and on the iPhone tweetie2 did this, just wondering if something was available for Android?

View 3 Replies View Related

Android : Way To Create A Custom Call Handling Application?

Nov 24, 2010

There I'm looking to create a custom call application. i.e I want to replace the default application handling call I'M SURE THAT I WANT TO REINVENT THE WHEEL Sometimes current wheels are ain't good for me. Can you put me on a start up line. I used to be a married to M$ ".net developer", and I'm in love with gOOgle.

View 2 Replies View Related

Android :: Framework / Application For Displaying Individual Custom Maps

May 21, 2010

I've started to develop in Android 2 weeks ago and until now, I like it! Currently I am working on a project where I have to display an individual map (not a google maps view, I'd like to display the map of a building's interior) with which the user can interact(mark positions, etc.).
Is there a framework or an existing app that I could use? Of course I searched the internet but could not find anything. Perhaps it is in some way possible to use the google maps API?

View 1 Replies View Related

Android :: Need Device To Test Custom Input Method Application

Aug 27, 2010

1. I am in the process of creating an Input Method for Android devices. I using Eclipse(3.4) IDE and have Android (1.5 and 2.2) SDK. 2. Currently i am doing testing on the Emulator. But i wish to test it on actual Android device. 3. Can you please tell me which ideal device should i buy to test my application 4. Is there any lead device assigned by Android for a given SDK. 5. I intend to sign and publish my application so can you please tell me is there any Certification criteria which i have to follow.

View 2 Replies View Related

Android :: Create Custom Global Methods In My Application Class?

Aug 17, 2010

I currently have an app that has many activities and needs to have a way of maintaining state between these activities.

I use the Application class to do this, declaring my global variables and using getters and setters to interact with my activities.

I was hoping to place a few custom methods in there, so that when I want to do a common task like, for instance, display an error message, I can declare the method in my application class and call it from any activity that uses it

EscarApplication application = (EscarApplication) this.getApplication();

EscarApplication being the name of my application class above.

I have tried to include this method in my application class:

CODE:.....

In the hope that I can call this method from activity without having to redeclare it, but when I call it using something like below I get an null pointer exception:

Visit.this.application.showError("Update error", "An error has occurred while trying to communicate with the server");

Visit being the name of my current activity above.

Should this work, or can I only use getters and setters to change global vars in an Application Class.

EDIT Stack Trace:

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

The dialog is declared as such in the application class:AlertDialog alertDialog;

Created in that same class:alertDialog = new AlertDialog.Builder(this).create();

And the method to call it in that class is as follows:

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

And finally, it is called from an activity like so:

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

View 3 Replies View Related

General :: Android Custom Permission - No Longer Open Own Application?

May 28, 2013

I created a test android app that does two simple things, open the browswer and open the calculator

My main problem is that once I put a custom permission inside the mainfest, I can no longer open my own application. The app does appear on the launcher screen but when I launch it, it will say "App isn't installed". However using a second app and giving it the proper uses and making sure it's signed by the same signature it opens fine.Here is the manifest for my main app:

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.dms_test_app2"[code].....

View 2 Replies View Related

Android :: Custom ListAdapter Extending BaseAdapter Crashes On Application Launch

Mar 23, 2010

Data being pulled from a local DB, then mapped using a cursor. Custom Adapter displays data similar to a ListView. As items are added/deleted from the DB, the adapter is supposed to refresh. The solution attempted below crashes the application at launch.

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

Errors:

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

View 3 Replies View Related

Android :: Can Custom Read - Write Permissions Effect User Acceptance Of An Application

Apr 29, 2010

I have two published apps that are pretty targeted to the user collecting their personal medical data (like Blood Pressure, etc.) and then, eventually sending it somewhere, if they choose.

I decided to put Read/Write permission on my ContentProvider, so if another app comes along that wants to the access that content, the user will be warned. The permission that is required is declared in my apps.

When the user installs my apps, they are also given a warning that the app requires that permission (even though it's the one that declares it), and it shows up in the Marketplace also.

The question is: Is it possible that the permission acceptance part of installing my app could be putting customers off? I don't know what other's acceptance rate is, but mine is around 50% of customers who download it have active installs.

View 5 Replies View Related

Android :: OTA Configuration Supported By OS?

Oct 6, 2010

I would like to know if the Android handsets can be configured Over-The-Air; in other words, if they can be configured for settings (such as GPRS , WAP or MMS ...) using OTA. If yes, do they support OMA CP provisioning? Is there an XML example that can be used to configure the Android devices?

View 1 Replies View Related

Add Custom Icon To APK File Of Application

Sep 10, 2009

I want to add a custom icon to apk file of my application.When I copy the file from the pc to android, and open it with astro, I see the standard "Wheel+sheet" android icon.

Anyway, when it gets installed, in my phone's menu, I can see the icon i put in resdrawableicon.png.

View 4 Replies View Related

Using Custom Font (Roboto) In Application?

Oct 19, 2012

I recently decided to remake my UI, I had text built into my ImageViews which I was advised against, so I have now gone with TextViews, however I would like to carry on using the Roboto font. Is it possible to do so?

I have already added "Roboto-Light" to the assets/fonts folder but I'm looking for an easy way to implement it since I want some TextViews to have the font and some to be standard.

Is there a way I can do it in the XML? So I can select individual TextViews rather than the entire application?

View 4 Replies View Related

Android :: Juice Defender Configuration?

Jul 19, 2010

I've only owned an Android for 6 days (Samsung Galaxy S i9000) and one of the first things I installed was Juice Defender, having used iPod Touch extensively, I know how heavy on battery things like WiFi can be. Anyway, JD makes the phone really really leggy. It can take a minute sometimes (literally, 45-65 seconds) for the JD screen to come up when launched. Similarly when waking from sleep it takes ages for the data connections to become active again. Have I misconfigured JD? Is it really this slow and creates this much lag? Does it just not like the (fairly new) i9000? I've just uninstalled it there right now (left Ultimate Juice on) and the phone is much snappier. It's like using it for the first time. Which, considering JD was installed in the first half hour of my owning the phone, it kind of is. What I really wanted was the WiFi on/off according to cell tower location data so I can have it go on and off when I leave the house. Guess it's no real biggie. Having limited background data (e.g. the 2 mins per 15) is handy too. Are there any other apps which have JD functions - even if more limited in scope - that I can try?

View 2 Replies View Related

Android :: Handcent Configuration Right Settings?

Oct 4, 2010

Having some trouble getting handcent configured right. I want it to only show the notification in the top status bar and the dock. I do not want the popup window. Can someone tell me which settings to use? I have tried everything and cannot get it right.

View 1 Replies View Related

Android :: Setting APK Configuration In Activity

Aug 26, 2009

In Java ME we can set .jad configuration in description file and we can get this values in midlet by getAppProperti(""); So in Android we can set apk configuration (eclipse) apk configuration. But when I set this! my file default properties change and my projet signal some error. So in activity when can add System.setProeprty("name","values"). My problem I wan to specify the server IP and some code in apk only for this apk file. Each apk can have his code and server IP.

View 2 Replies View Related

Android :: Configuration Screen When Installing

Jul 10, 2010

I need to display a configuration screen when a user installs my application. Is this possible to implement? That screen should not appear again.

View 2 Replies View Related

General :: Custom ROMs And Application Development?

Mar 15, 2012

I recently installed a custom ROM in my phone.

What I noticed is that the problem is either that my phone drivers can't be installed for some reason (I have a SGS being treated as a Google Nexus S), or I just can't implement applications.I mean that when I try to build an application on Eclipse, my phone is not recognized, like I don't have it plugged in.

View 6 Replies View Related

Android :: How To Retrieve Current Keyboard Configuration?

Feb 16, 2009

How can I detect if the G1 keyboard is hidden or open at application startup? My app always runs in landscape mode, but I can only find how to detect keyboard configuration *changes* (through onConfigurationChanged()). So how can I retrieve the current keyboard configuration (open or closed) at application startup?

View 3 Replies View Related







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