Android : Want Sharing Code Between Applications

Jul 24, 2010

I want to create a "main" service/application which will provide different functionalities to other applications. According to android docs I can use elements from an application/ service in other. "A central feature of Android is that one application can make use of elements of other applications (provided those applications permit it). ...". There is any examples/documentation on this direction? TicTacToeMain/TicTacToeLib example is not helping me because it seems "TicTacToeLib" will be embedded in final TicTacToeMain apk file. Also I want to ask if is possible to detect if "main" service/ application is missing (if is missing I want to tell user to install it, or to install it automatically).

Android : Want Sharing code between applications


Android :: Sharing Code Between Applications As In Eclipse

Aug 26, 2010

I have ten, possibly more, apps I'm developing that all share logic. 50-75% of the logic is the same - perfect for some time of library or code sharing. However, after reading the posts here and trying to share code in Eclipse, I'm not sure that's going to work. I tried going to project -> properties -> build path -> link source and adding the src and gen folders of the project with the shared code and then importing the classes I need. That seems to work in the IDE, but gives an error during runtime: class not found. This seems to be a common error for people attempting this.

I am slowly deciding that shared code is not the best approach in this scenario. Android doesn't seem to work well with this type of code sharing. For one thing resources are not packed in libraries, but references (R.whatever) must exist so as not to create errors. This can be designed around, but the effort and headache is probably worse than simply creating multiple copies. My experience seems typical, based on what I've read. Is it? Have you experienced success or failure with sharing code and/or custom libraries? Am I off-base in thinking that multiple code copies will be smoother sailing than fighting the shared code approach?

View 5 Replies View Related

Android :: Sharing Code Between Activities

Oct 7, 2009

I have an app with two activities.

Both activities among other functions have to perform the same calculation on data, so each activity include the same code to perform the calculation.

Is it possible to only have the similar code in a separate activity and be accessed by the other two activities instead of duplicating the code twice?

View 15 Replies View Related

Android : Sharing Apps By QR Code?

Dec 22, 2009

Fred meets Bob at the pub and shows off the latest app he's installed.Bob likes it and wants to have it on his phone, too. Q: What's the best way for Fred to help Bob install an application? Hint: On a Palm, Fred would just 'beam' the app to Bob's pda (we're assuming that it's a freely downloadable app, not requiring payment or registration). On an Android phone, can Fred somehow share it over Bluetooth, or display a QR Code for the app so that Bob can use his Barcode Scanner to get it from the Market (or slimeme.org, or wherever)? As far as I know, no file manager has a "display barcode" function (like Contacts does when you have Barcode Scanner installed), so I'm forced to describe the app, or go into the application list and dig out its "com.vendor.app" name. This seems decidedly un-slick.

View 3 Replies View Related

Android :: Sharing Database Between Applications

May 15, 2009

Anybody knows if we can share databases between applications? How can I access to a database from an A application to another B application? It is possible? What URI I would have to put?

View 4 Replies View Related

Android :: Two Applications Sharing / SharedUserID

Sep 1, 2009

I have two applications in the field that share the same sharedUserid.What I just found out was that there is a bug in Android, where un- installing one application removes permissions from the other application also - thereby rendering the other application useless. Looks like this bug has been reported before : http://code.google.com/p/android/issues/detail?id=2773 This is a critical bug.Is there a workaround or a tool that can be provided to the user to recover back to a working version. Un-installing and re-installing the the application to start from scratch is not a acceptable option for our users,they stand to lose a lot of valuable data.

View 3 Replies View Related

Android :: Sharing Elements Between Applications

Jun 10, 2010

Here's a quote from Android's Dev Guide: A central feature of Android is that one application can make use of elements of other applications (provided those applications permit it). For example, if your application needs to display a scrolling list of images and another application has developed a suitable scroller and made it available to others, you can call upon that scroller to do the work, rather than develop your own. Isn't it a bad practice to make an app dependent on other apps?

View 2 Replies View Related

Android : Sharing Database Across Applications

Aug 11, 2009

What's the most convenient way to share a database across applications? For example, I want my application's dbadapter to query the android's native contact database so when a contact on the phone is deleted, similarly that contact is removed from my application. Should i use an attach statement to attach the table? Or would the better/more secure approach be to create a custom contentprovider query onCreate of my app to verify all contacts in my application still reside on the Contacts.db.

View 4 Replies View Related

Android :: Several Activities Sharing Common Code

Jul 2, 2010

I have an Android application composed by several Activities. Most of them need to check whether an active network is available or not:

public boolean isNetworkAvailable() {
ConnectivityManager cm = (ConnectivityManager)
getSystemService(Context.CONNECTIVITY_SERVICE);
TelephonyManager tm = (TelephonyManager)
getSystemService(Context.TELEPHONY_SERVICE);
...
}

I would like to move that code to a helper class in order to avoid the need to write that code in every Activity, but calls to getSystemService are only allowed from an Activity. The other alternative is to move that code to a parent activity use inheritance but:
Every activity already extends from android.app.Activity
Some of my activities already extend from a common my.package.BaseActivity
(Activity <- BaseActivity <- XXXActivity)

What do you recommend in this case? Is there any other alternative?

View 1 Replies View Related

HTC Desire :: Sharing Contact As QR Code

Nov 12, 2010

I've recently noticed that on both the HTC Magic (aka MyTouch) and Samsung Galaxy S it's possible to share contacts details via QR Codes.Both the aforementioned smartphones had the latest Barcode Scanner (by ZXing Software) installed. It's simply a matter of going into the address book, hit the menu button and select the "share contact as barcode". As a result, a fullscreen QRCode is displayed containing all the relevant details of the selected contact, ready to be scanned and saved by another smartphone.Now, why can't my Desire do the same?I have Barcode Scanner 3.51 installed, but the "share as barcode" options is nowhere to be found in my address book/contacts list.The only workaround I found is to share contacts directly from inside B.S., but (other than being slower) this method shows non-grouped contacts which is a PITA.Is this a Sense-related matter?What about yours?

View 4 Replies View Related

Android : Sharing Common View Layouts And Resources Across Multiple Applications

Jun 2, 2009

I am working on developing several individual android applications. We had created common UI Layout View XMLs, classes and resources. I would like to share these common layout xml, classes and resources across all of my android applications. I dont want to duplicate them in my applications. Is there any easy way to do this?

View 5 Replies View Related

Android :: Select Android Applications Sharing Data Without User Notification

Sep 30, 2010

Come one, come all -- let's gather and act shocked, shall we? It's no secret that Google's Android Market is far easier to penetrate than Apple's App Store, which is most definitely a double-edged sword. On one hand, you aren't stuck waiting a lifetime for Apple to approve a perfectly sound app; on the other, you may end up accidentally downloading some Nazi themes that scar you for life. A curious team of scientists from Intel Labs, Penn State and Duke University recently utilized a so-called TaintDroid extension in order to log and monitor the actions of 30 Android apps -- 30 that were picked from the 358 most popular. Their findings? That half of their sample (15, if you're rusty in the math department) shared location information and / or other unique identifiers (IMEI numbers, phone numbers, SIM numbers, etc.) with advertisers. Making matters worse, those 15 didn't actually inform end-users that data was being shared, and some of 'em beamed out information while applications were dormant. Unfortunately for us all, the researchers didn't bother to rat out the 15 evil apps mentioned here, so good luck resting easy knowing that your library of popular apps could be spying on you right now.

Update: A Google spokesperson pinged up with an official response to the study, and you can peek it after the break.Update 2: Looks as if the full study (PDF) has been outed, with the 30 total apps named. Here they are: The Weather Channel, Cestos, Solitaire, Movies, Babble, Manga Browser, Bump, Wertago, Antivirus, ABC - Animals, Traffic Jam, Hearts, Blackjack, Horoscope, 3001 Wisdom Quotes Lite, Yellow Pages, Dastelefonbuch, Astrid, BBC News Live Stream, Ringtones, Layer, Knocking, Barcode Scanner, Coupons, Trapster, Spongebob Slide, ProBasketBall, MySpace, ixMAT, and Evernote.

View 6 Replies View Related

Android :: How To Code Sharing Between Android And IOS

Sep 8, 2010

I'm moving away from strict Android development and wanting to create iPhone applications. My understanding is that I can code the backend of iOS applications in C/C++ and also that I can use the NDK to include C/C++ code in Android apps. My question however is how? I've googled quite a bit and I can't find any clear and concise answers.

When looking at sample code for the NDK, it seems that all the function names etc. are Android (or at least Java) specific and so I would not be able to use this C/C++ backend to develop an iPhone frontend?
I'd appreciate some clarification on this issue and if at all available some code to help me out? (even just a simple Hello World that reads a string from a C/C++ file and displays it in an iOS and Android app).

View 1 Replies View Related

Android :: Code To Uninstall Applications?

Jul 2, 2009

I wan't to uninstall applications using my application... I can retrieve the list of packages installed but I don't know how to remove them... I used the PackageManager class, getInstalledApplications() method... I can't find any method like removeApplication() or uninstallApplication().

the only method I saw in this class is the removePackageFromPreferred (String packageName) method... It retrieves a list of preferred packages.. I don't exactly know what preferred packages means or somehow how to retrieve them... I tried to put a package name in the method "removePackageFromPreferred (com.dev5.fivegame)" but it gives an error...

View 11 Replies View Related

Android :: Common Code For Two Similar Applications?

May 7, 2010

I have a set of common code (including .java files and resources), which I have to use for two similar applications with different package names (for different vendors). How can I maintain two packages which share the common code without making two copies of the common source?

View 3 Replies View Related

Android :: How To Reuse Code And Resources In Several Applications

Oct 7, 2010

How can I reuse code AND resources in several applications? I have a fairly large code base (including resources) that I want to reuse i several applications. How can I do that?

I did try to use the Android Library concept (http://developer.android.com/guide/developing/eclipse-adt.html#libraryProject) but never got it to work in Android 1.x

I'm amazed by the lack of information on the subject. It seems like Google has aimed Android development at pet projects and not real development. Variant handling should have been solved ages ago.

View 1 Replies View Related

General :: Sharing Google Play Account Without Sharing Everything Else?

Sep 19, 2012

I have my Google account also setup on my wife's phone so we can share purchased apps. However, everything else is shared too. For example, even though I have sync for everything on my account turned off, my calendar still showed up on my wife's phone until I disabled it in the calendar app. Also, I can't remove my Google Talk account from her phone so my messages show up on her phone.

This is on a pair of stock Samsung Galaxy S3 phones.

View 2 Replies View Related

Android :: Proxy Related Code Changes Needed In Applications

Sep 29, 2010

We recently came to know that a lot of Mobile Carries in Asia/India have proxy enabled to get Internet access via mobile. It turns out our App does not work when the phone has internet via proxy setup (APN). Does the APP need to handle proxy individually?

View 4 Replies View Related

Android :: Is There A Secure Pass Code System To Buy Applications

Nov 25, 2010

OK maybe I'm being paranoid and behind the rest of the world who has already done this: I'm afraid of adding my credit card to my Google Checkout account! My main concern being a super intelligent user of my Android phone who will buy a million apps (potentially!) - my 5 year old son

I used to have a credit card on my account - but that's expired
Knowing that the card had expired, I thought I would test out the buying of an app
I was surprised that it only took a few pages of my clicking yes to buy the app
(The purchase didn't go through - I got an email saying this because my credit card couldn't be charged)

Question: is there a secure pass code system to buy applications?
Like needing to input a code at the last step of buying
(I think this is how iPhone works - I say this not having owned one)

I don't think there is a secure pass system - I've played around with my phone loads and have never come across anything. BUT, EVEN if there was such a pass system: there's still something wrong!
I've bought my phone. Not made any changes. Just started using. I would imagine that's what everyone does - as opposed to buying and then customising and making secure (and maybe optimizing the use of energy so that it doesn't die within a few hours of use)

Buying an application: you can cancel within 24 hours (I think that's the time limit) Over the weekend, I let go of business life and only pick up on Monday - so if my son purchased and installed an application on Friday evening, I wouldn't find out until some time later - because I don't look at my phone OR my emails over the weekend! (+ Say if an application was purchased that I then managed to cancel - I then lose the right to buy again and trial with the right to cancel - a small point, but valid regardless I think)

Would be interested to hear what others say - maybe I'm missing something and maybe I'm using incorrectly.

View 24 Replies View Related

Android :: Release Several Droid Applications With Same Code Base?

Aug 22, 2010

I want to release multiple applications to android marketplace which are all very slightly customized based on a code base. I can't just change the package indentifier in the AndroidManifest.xml file because several other things dependet on this like action identifiers and so on.
What is the best approach to release several apps based on one eclipse project with the same code base?

View 1 Replies View Related

Android :: Shared Code Project Across Applications In Common Library

Apr 14, 2010

I am currently moving from Xcode and iPhone development to Android with Eclipse. I want to have a shared code project so that I can store all the code to be shared across apps in one common library. However it would appear that the only android project available is for applications and not for code libs how can i achieve this?

View 4 Replies View Related

Android :: Download PaPi Games From Market - Applications Didn't Read IMEI Code

Mar 22, 2009

Is anybody download the PaPi games from market and played it?

I found when I played one of this series of PaPi game and I input my name,then all series PaPi games can read this name.

At beginning, I consider maybe the application saved some data which can be shared by other PaPi games, but when I "Factory data reset" and format the SD card, then I download these games and play them again, it's so crazy that these games can read my name which I inputed before all the same!!

next, I consider maybe the application read the only code of the phone (IMEI) to identify the phone,but I check the install information about all the PaPi games, I can't found any information about "READ PHONE STATE",so I think these applications didn't read the IMEI code. who can tell me how to achieve this function?!

View 6 Replies View Related

Android :: Change Existing Apps Code Of G1 - Calendar And Camera Code

Feb 19, 2009

I wanna to add some code in Camera Apps code , so that it will invoke my Application and do the thing as per my desier. Is it possible to change the Application code? If any one already tried this then plz let me know, how to proceed and build if i change some code. How to integrate my application with camera apps.

View 2 Replies View Related

Android :: Put Algorithm Code To Create Binary Library / Link This In Main Function Code?

Jan 27, 2010

I can build a daemon with my algorithm code and main function.I put all files in one folder under /development and make This executable file works successfully

Now I want to separate my algorithm code and main function code. I hope to build a binary library with my algorithm code and main function will link this binary library to use.

Where to put my algorithm code to create binary library and how to link this binary library in main function code?

View 2 Replies View Related

Android :: Integrating Code With Home Screen Code

Jan 22, 2010

I am trying to integrate my code to the android Home Screen code. I want to launch my activity frm the HomeScreen by click of a button. I Did the code & then build it but when i click the button i m getting error as Application not installed on phone.

View 7 Replies View Related

Android :: HTC Evo - Internet Sharing Via USB

Jul 22, 2010

When I plugged my phone into my computer (Mac) to move music on to it it came up with the option to charge only, HTC sync, Disk drive, and share Internet. I know that with Sprint you can pay for the Mobile hotspot app, which in my opinion is way to expensive, so I was wondering if the USB sharing is free or if it is bundled with the mobile hotspot add on.

View 2 Replies View Related

Android :: Sharing Internet

Jun 7, 2010

When connecting through USB my HTC Desire, I am sometimes asked if I want to share the Internet. The fact is that it would try sharing HTC Desire's internet to my computer, but it has here no interest, as the opposite is most current for me. Is there a reverse implementation of this as an Android GUI?

View 2 Replies View Related

Android : Need GPS Sharing App To Website

Nov 22, 2009

I was wondering if anyone knew a good GPS sharing app for the Droid so that my family can follow along with me on my trip back from college. I take a bunch of different people back with me, and figured if there was an easy way to share my GPS location (constantly refreshing) on a website for their family along as well.

View 10 Replies View Related

Android :: Web Applications V/s SmartPhone Applications - Iphone - Windows Mobile - Android -Nexus Application

Jan 14, 2010

Q: How does Web Applications differ from SmartPhone Applications (Iphone, Windows Mobile, Android/Nexus Application) and in what specific aspects do they differ and in what degree ?

Also for example,

Q: Why we need mobile version of Web Application like gmail.com or bankofamerica.com specifically for smartphone devices where we can access same web applications on smartphone using internet connections ? In what aspect do they differ and why do we have those differences ?

View 4 Replies View Related

Android :: Calendar Sharing Between Two Phones

Oct 9, 2010

I have a HTC Incredible and my Fiancee will soon be upgrading to an Ally. I want to share my calendar on her phone, and vice versa. In essence I want my entries to show on her phone or hers on mine so we don't set appointments or end up with conflicting events. I know people have done this, but I'm just not sure on the steps needed to do so.

View 4 Replies View Related







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