Android :: Does Provide Any Versioning Mechanisms For AIDL Interfaces?
Nov 4, 2010
We're planning to export an application layer AIDL interface. What are some best practices with regards for managing version compatibility? Does Android provide any version-related mechanisms for AIDL interfaces?
View 1 Replies
Jul 16, 2009
This is my aidl file.
CODE:.................
View 3 Replies
View Related
Nov 23, 2009
I am quite confused with the user IDs stuff and what they mean in the process level. In Linux, every process uses its own virtual address space and no process can write to the address space of another process. So the communication between two processes is conducted via IPC mechanisms which are part of the Linux kernel. Are two processes with different user IDs allowed to IPC?
View 6 Replies
View Related
Sep 24, 2010
Using the licensing technique described here http://developer.android.com/guide/publishing/licensing.html I'm trying to test what happens when: - I would upgrade my LVL protected app to a new version - Some user hasn't upgraded yet Will the user with the old version still be able to continue? Will the licensing server return LICENSED_OLD_KEY as I expect it to, and thus allow access?
The scenario I used to test this: - uploaded to market a signed version 1.0.0 (did not publish it) of my app which has never been published nor uploaded before - setup test account and let the test response be LICENSED - on Nexus1 tested and verified that when using the apk (so the one in <project>/bin), LICENSED is returned. - increased versionCode and versionName to 1.0.1, signed and uploaded that version to market (didn't publish) - on N1 installed the new apk (again the newly compiled one from <project>/bin). LVL returns NOT_MARKET_MANAGED so indicating that it's not available in the market. But I expected LICENSED_OLD_KEY to be returned.
Am I trying something that's not possible to test? From other posts like this one: [url] and this one: [url]is suggested that the above scenario should work...
If this is not possible to test before publishing an app, did anybody try this out in the field: will LICENSED_OLD_KEY be returned for older versions that previously got LICENSED as an answer?
View 5 Replies
View Related
Sep 14, 2010
I'd like to bring out an Android app in the near future, so I was wondering how to support a couple of funcitonalities I have got used whilstdeveloping for J2ME and iPhone
first the versioning. With J2ME (using NetBeans as IDE) I had the option to auto-increment the softwwares version every time I compiled it. I was wondering if something like this is available for Eclipse and if so how to use it ? secondly a common code base. Is it possible to have a common code base for several projects ? For example I might have a game which actually uses the same code but needs different graphic resources. I'd hate to have a different project for every game/app and have to manually edit every project's source every time I want to submit a new code-change.
View 1 Replies
View Related
Mar 4, 2010
I have some well-debugged XML-RPC interfaces on a site that work wonderfully from both PHP and from JAVA. Using Eclipse I am able to write Java apps using either the Redstone or Apache XML-RPC libraries quite simply. These test cases using the 2 libraries utilize JavaSE-1.6 (jre6) libraries as well as one of the 2 xml-rpc libs referenced above.
My problem is making this work on Android. I have added ADT to my Eclipse setup and easily executed the HelloWorld test using a virtual 1.6 or 2.1 Android device - no problems. Whenever I go into the Build Path in Eclipse and add the external jars for either the apache or redstone XML-RPC libs my console goes wacky with a ton of the following:
Ignoring InnerClasses attribute for an anonymous inner class that doesn't come with an associated EnclosingMethod attribute. (This class was probably produced by a broken compiler.)
If I push ahead and debug the code when it actually ships off the XML request I get an exception out of the XML library on permissions of some sort. Why does this only happen in an "Android" project. These libraries seem to have no problem running in Non-Android standard java configs. Once we proof the ability to talk to our server we can proceed down the road of actually porting our app to Android.
View 2 Replies
View Related
Jun 16, 2009
I am quite new to Android and Java. Before I was working with C++ where the events where dispatched with messages. Now I would like to create the same user experience for Android platform and I would appreciate any of your suggestions or comments on what is the best way to bind events to user controls.
Here is an example from C++:
ON_MESSAGE(WM_RECORD_START, &CMainFrame::OnRecordStart)//Method OnRecordStarts() executes on WM_RECORD_START_MESSAGE...................
View 2 Replies
View Related
Feb 23, 2009
I trying to create an application similar to the notepad3 tutorial. The main difference is that I need to be able to create different "note formats". Is possible to obtain an xml file from the web and use it in the creation of an android interface? I have researched about the Metawidget library that is a very useful tool for android but I haven't been able to create interfaces dynamically.
View 3 Replies
View Related
Jan 8, 2010
I'm porting an iPhone app to Android and I'm having trouble designing an interface that looks and feels "Android." I've read all of the design documents in the Android Dev Guide and looked through all the Google-designed apps, but I feel like the layout of activities is largely undefined. Are there any resources that could help me transition my iPhone design to the Android platform? Here's a quick example of one of my issues. On the iPhone, every view that presents user generated content gives the user a "+" button in the upper right hand corner of the screen to add an item. It's consistent across the built in apps, and it's *mostly* standard among third-party apps.
I don't know what to do with the "+" button on Android. The guidelines say important actions should be present on the screen and not hidden within a menu, so let's say I put it on the screen. It shouldn't go at the bottom of a long list of items, because the user shouldn't have to scroll down every time they want to create a new item. That leaves me with a static button. But there are no standard toolbars, so I'm going to design my own iPhone-esque bar at the top of the screen with a "+" button? I know this probably sounds like a rant, and I'm sorry. I feel it would be worthwhile for someone to sit down and document how common iPhone UI practices should be transitioned to Android apps. I care a lot about UI design - I think it's one of the most important factors in app development -- and I'd hate to see every transitioning developer approach this differently. At any rate, does anyone know of existing resources that might help me out? What's the best designed app you've used for Android? A few examples of great "Android" interfaces would go a long way.
View 10 Replies
View Related
Jul 22, 2010
i have created an application XYZApp and put it in package/ apps directory of eclair source code and i have added one directory name XYZFrame in framework/base and XYZFrame dir have native code, jni and interfaces. These interface define in framework/base/XYZFrame/ Interfaces/ directory are imported and implemented in class of package/app/XYZApp. The XYZFrame is added in build/core/pathmap.mk and compiled. The compilation is done and apk for XYZApp is created. I installed the XYZApp.apk in to galaxy phone using adb. Now when i execute the XYZApp. apk on galaxy phone, i m getting an error (interfaces not found and fail to link). These interfaces are defined in framework/base/XYZFrame/Interfaces/. i think that framwork/base/XYZFrame/Interfaces are not available on phone Or problem is some thing else.
View 3 Replies
View Related
Apr 12, 2010
The network interfaces on Android interfaces are listed as directories in the file system in /sys/class/net/.
For most Android devices the network interface for gprs traffic is called rmnet0 and for Wi-Fi it's usually eth0 or tiwlan0. I suspect that the cell interface for the Motorola CLIQ XT is rmnet0, but I would like to have this confirmed + know the name of the Wi-Fi interface. Also it would be good to know the device id for this model. This is the value available as android.os.Build.DEVICE in the Java SDK. (E.g. T-Mobile G1 uses dream, Samsung Galaxy uses GT-I7500, and Motorolda Droid uses sholes.)
View 1 Replies
View Related
Mar 27, 2012
I am developing a NFC application using eclipse indigo.I use android.nfc package and can import the following:
android.nfc.NdefMessage
android.nfc.NdefRecord
android.nfc.NfcAdapter
android.nfc.NfcEvent
But I can't seem to be able to import
android.nfc.NfcAdapter.CreateNdefMessageCallback
android.nfc.NfcAdapter.OnNdefPushCompleteCallback
I get the following error: The import ... cannot be resolved.I am rookie on android, but I don't see why these two interfaces can't be imported. I used an example from andorid developers site called beam.java and it imports those interfaces in the exact same manner.
View 1 Replies
View Related
Mar 23, 2009
What is the recommended way to build user interfaces on the device based on layouts provided by a server at runtime? I am aware of this: <snip source="http://developer.android.com/reference/android/view/ LayoutInflater.html"> For performance reasons, view inflation relies heavily on pre- processing of XML files that is done at build time. Therefore, it is not currently possible to use LayoutInflater with an XmlPullParser over a plain XML file at runtime; it only works with an XmlPullParser returned from a compiled resource (R.something file.) </snip>
I could imagine these possibilities: - Parse XML by myself and build the ui tree. (Seems inappropriate to me since there is already maintained code which is able to do this.)
- Transform XML on server to a simpler format which is cheaper to parse on the device. (Inappropriate as above.)
- Preprocess the XML layout on the server the same way the build does. Transmit it to the client, and then try to load it. But how? android.content.res.XMLBlock is hidden (@hide) and I don't know how to classify the stuff in package com.android.layoutlib.bridge.
View 8 Replies
View Related
Sep 13, 2013
I have a specific 3G Simcard (specific APN) that can access to my network. I would like to share my 3G connection through wifi (for example)
After some tests, I can see that there is no network bridging between my 3G interface and my wlan0 interface.
So if I understand correctly, I need a rooted phone to do that ? ("route add" command line etc...)
Of is there an easiest way to bridge the traffic between two interfaces on an Android OS ?
View 1 Replies
View Related
Jun 17, 2009
I create an aidl file named mp3PlayerInterface.aidl. Then I try to use the aidl tool to parsing the aidl-file to java-file. The error"mp3PlayerInterface should be declared in a file called com mp3playermp3PlayerI nterface.aidl."happened no matter use the aidl-command derectly or eclipse.
View 2 Replies
View Related
Aug 20, 2009
I sent a intent to call a service interface which returns a parcelable object.
but get errors...
View 2 Replies
View Related
Aug 12, 2010
I downgraded to Eclipse 3.5, and the following still doesn't happen when I build a project in Eclipse:
1. .aidl files don't get processed (at all).
2. R.java isn't generated.
Used to work. What the heck?
View 3 Replies
View Related
Sep 29, 2009
I get the android source. How can I build the aidl too that is part of android (the one which generates java file from an aidl file)?
View 2 Replies
View Related
Oct 14, 2010
I'm unable to find the AIDL tool in my OSX install. My tools directory does not have AIDL, but it has everything else (Adb, android, ddms, etc). I've tried opening the SDK and AVD manager and reinstalling the Android SDK Tools Rev 7, no luck. Any idea on how I can get a hold of the tool? Is there a separate download I can use?
View 3 Replies
View Related
Jul 26, 2010
Under what circumstances would using AIDL to define a service interface be the correct decision (rather than just creating an extension to the service class)?
View 2 Replies
View Related
Jul 20, 2010
I've created a service that is meant to communicated to an activity using aidl's and callback functions. I got it working just fine with my test activity in the same package. But I was wanting to expose this service to different activities running in a completely different .apk file. Is it possible to accomplish this? What does the separate package need to bind to my service and register the callbacks? Or am I going about this completely wrong and should I try a different method for conveying information back and forth between two packages.
View 3 Replies
View Related
Jul 21, 2010
I am curious whether the AIDL only serves for inter-process communication between several Android apps on the same device, or AIDL provides much wider functionality. Let's say I have a Java application running on some server, is it possible to remotely call methods on that server through AIDL from an Android phone?If yes, do I need some extra libraries on the server-side Java application?
View 1 Replies
View Related
Jul 26, 2010
I'm using Eclipse with ADT to develop my project, but for some reason my AIDL files are not getting compiled into Java files. Is there a way to explicitly invoked the conversion of my AIDL files?
View 2 Replies
View Related
Mar 16, 2010
I have problems with the following: I want to create to applications. One with a Android service and one with a Activity that will use functions on the Service. Before I splitted this in to applications I got everything working in one application. I can call functions (that are definned in the aidl - file) on the service without problems.
Now the problems coms. I splitted the application into two parts, a Service application and Gui application. The bindins to the service (in the gui application) works and I see that the service is getting created. Then in the onServiceConnected function of the ServiceConnection class I created the following:
mService = IMyService.Stub.asInterface(service);
And this gives me the following exception:
03-16 13:53:05.549: ERROR/AndroidRuntime(881): java.lang.NoClassDefFoundError: MyPackage.IMyService$Stub
It looks like he can't find the Stub class in IMyService. But the Stub is part of the java file generated out of the aidl-file. Why I get this exception or how I can resolve this?
View 9 Replies
View Related
Aug 10, 2010
I am curious about the data types that AIDL can support.
The document ( http://developer.android.com/guide/developing/tools/aidl.html ) says, AIDL can support String, List, Map, etc. But to me, the Map seems that it is not the member of them.
Here is my code.......................
View 6 Replies
View Related
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
Jun 18, 2010
I have created a service which exposes few AIDL defined interfaces. I want to access this Service from an application with different package. I have no clue how to achieve this. I want to see an example on this.
Unfortunately all examples I see has client application in the Service package it self:(
Could you please share some sample/example code on this?
View 7 Replies
View Related
Feb 22, 2010
I have created some aidl files for IPC in my Android project.
They compile and run file however in the generated .java files I am getting warnings of un-used imports as follows:
The import android.os.Binder is never used EngineInterface.java/gen/com//phone/engine line 10 Java Problem
Now I presume that they are there for a reason and since the generated file is not supposed to be modified that adding a suppress warning is not a good idea?
So how do I get rid of the warnings? I know they can be left and it doesn't affect the running of the project but I would like a clean as possible project so if its at all possible to remove this errors I would like to know how to do it.
View 2 Replies
View Related
Nov 17, 2010
This may sound stpid, for some reason I can't find anywhere on Eclipse that lets me generate blank .aidl file. does anyone know how?
View 1 Replies
View Related
Feb 15, 2010
I want to add an aidl file in android framework so i can import it in two applications(one binds remotely to the other).How can i do that?
View 3 Replies
View Related