Android :: Sharing Resources Between Service - Application In Phone?
Feb 24, 2010
The code I am trying to implement includes a service and an application. When the application is first launched, it starts the service using the
startService(svc_name) call. Here svc name is an intent pointing to the class that runs the service.
I want to share a resource(file/socket connection) between the service and the application. For example one writes to a file and another reads from it. I am unable to get proper sync between the service and app. Could you please let me know how this can be achieved?
View 3 Replies
Jun 28, 2009
In order to share data between one of my own Android service and an application i am looking for the best way to do this. I have seen the shared memory drivers inside the GNU Linux kernel, but no Java api. Maybe the specific Google IPC Blinder cad be used for my need ?
View 10 Replies
View Related
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
Apr 30, 2009
This app allows you share file from android phone with any users my sms/email/link.
How it works:
1. Upload file to server.
2. Get link for file and send its by sms or email from application.
This is just beta. I am looking for any proposals and feedbacks. Download Send big files the easy way. Files too large for email attachments?
Current limitations: 50MB per user and 10MB per file. Also, because the server is running in test mode, files and accounts may be lost.
View 1 Replies
View Related
Jan 28, 2009
I have created a subclass of Activity, 'CustomActivity', that overrides the onCreateOptionsMenu and onOptionsItemSelected methods. In a couple of other applications I have extended this subclass to provider a common menu for each activity. Is it still possible to access the resources from this Subclass? By default it uses the resources from the current activity (Strings, xml layout etc.).
View 7 Replies
View Related
Feb 1, 2010
How does one go about listing the resources that are available in an application?
For example, I would want to find the names of all files under /res/ xml.
Reflection on the R class didn't seem to work since the identifiers are static constants. R.xml.class.getDeclaredFields() doesn't return any fields.
The AssetManager didn't seem to work either because these are not raw assets.
Does anyone have ideas or examples?
View 4 Replies
View Related
Aug 10, 2010
I have big files to integrate into my application (videos), and thus for not not that my application occupies all the internal memory of the telephones, I saw that it was possible with Froyo to install the applications on the SD card.
I thus have to test this solution and my application settles down well on the SD card, the only problem it is that the system installs all the same my files videos (which are placed in the file /raw) on the internal memory of the telephone. Thus my question it is where to place my videos or where to make so that these also settle down on the SD carde ?
View 2 Replies
View Related
Jul 3, 2009
I created an application which is displaying camera preview. When the application terminates I noticed that some processes are still running. Also if I try to run the original camera application it displays an error (obviously due to the active process which belongs to the custom application).
Does anyone know how to release all resources when application ends?
View 5 Replies
View Related
Sep 17, 2010
So I'm struggling a bit with what is probably a fairly basic concept.. Activity Lifecycle.I have read a bunch of thread on the topic, and I feel I understand well both the functionality, and rationale behind the lifecycle model implemented for Activities, but it raises a bit of a problem for me. My app (game) has a couple of distinct Activities for various sections:
1. The TitleActivity is a very small Activity that just launches a GLSurfaceView and renders a startup logo.I use this to detect the OpenGL capabilities of the device (eg so I know if it's using a software renderer)
2. The LaunchActivity is the main menu screen where the user can access options etc and start a game
3. The GameActivity will either launches a GLSurfaceView or a standard View depending on hardware capabilties.
The issue I am having is that I want to pre-load some "slow-to-load" resources, specifically audio, in the Title Activity so when the Launch Activity renders I can play some background music.I have the concept of a "media library" which I use throughout the game.Because of memory limitations in the SoundPool, I have limited this to only absolute real-time sounds and all others are played using mulitple instances of MediaPlayer.Hence my media library has a bunch of pre-loaded MediaPlayer instances which I access regularly during game play.. so it makes sense to have a centralized access point for all audio.All fine, however the problem is that when I launch one activity from another.. for example the TitleActivity starts the LaunchActivity (via a call to startActivity(Intent...)), the former goes through the onDestroy stage of its lifecycle.Now logically I had assumed that if I allocate a bunch of resources in the onCreate of an Activity, I should clean them up in the onDestroy, however in the case of my "media library" if I load up the audio files in the onCreate of my TitleActivity they will be torn down when the LaunchActivity is started because the TitleActivity will have its onDestroy() method called.
View 9 Replies
View Related
Jul 1, 2009
I created an application which uses camera and during the appplication execution the screen is always on.
In the onCreate() method I added the lock code...
But after the application termination the screen remains on all the time and if I run the camera application it encounters an error which obviously appears because the camera resources are not released.
Does anyone know how to release all resources on application termination?
View 6 Replies
View Related
Sep 30, 2010
I have developed an android service. Any android app can use it's API's to get some kind of news updates from this service. I want to distribute this service so that any android app on the phone can use this service. My questions here are :When some android application try to use its API on the phone and suppose that service is not available on the phone then what will happen ?How will android application developer will make sure that the service is available on the phone?Does application developer has to bundle service with his application ? If yes then wont be there multiple instances of same service on phone if multiple application contains same service on the phone?
View 1 Replies
View Related
Feb 1, 2010
After upgrading my application I would like the service to restart if it was running before. Is there any way to do this? I didn't see any Broadcast Intents that I could register for in the manifest.
View 1 Replies
View Related
Aug 2, 2010
Is there a good sample application for creating android services that run in the background?
View 2 Replies
View Related
Mar 9, 2010
The Android documentation says that best practices are to make two drawable directories - one for HDPI and one for MDPI. It also says that if the MDPI directory doesn't exist and a MDPI device is running the app, it will scale down the HDPI ones so everything looks good. Is there any reason not to just make one high resolution set of graphics? One con that I can think of is performance issues and one pro I can think of is only having one set of images for your app.
View 1 Replies
View Related
Apr 5, 2009
I noticed an app on the market a couple of weeks ago that allowed you to share files with your PC wirelessly but can't find it now. Any idea what it's called? It's a paid app.
View 8 Replies
View Related
Nov 8, 2010
There are many file sharing apps in market.
Which do you like or recommend for private file sharing over the internet?
View 8 Replies
View Related
Sep 3, 2010
I plan the weekend trip. My friend ask me to share the photo while trip. I can take the picture with my smartphone, and 3G internet connection is available on my phone. Is there a photo sharing application?
View 4 Replies
View Related
Nov 17, 2010
I have a Desire and can't live without my swype for typing. My brother also has a Desire but hasn't got swype and the beta is closed. He wants to try and get swype onto his HTC by downloading mine. If he does this, will Swype allow it to be downloaded onto two phones or will they stop it?
View 8 Replies
View Related
Jun 8, 2010
the gmail app on the DINC does not support video and pic sharing? m I missing something here. When you take a vid and go to share, gmail comes up as one of your options. If you proceed down this route, you don't get an error, but the vid never gets attached and delivered. The only way to do this is through the HTC Mail app. On this same note, another gripe I have is why Android lists the sharing options if you can't actually use them to share. You can't share a video over Handcent/Messaging Apps...so why show them as options for sharing? You can't upload to facebook directly, so why list them as an option. Seems like a glaring issue that will confuse newbies (my wife) and may ultimately affect their adoption of the platform. I'm all for the customization and openness of Android, but they need to work out these little quirks if they want to capture any respectable market share.
View 1 Replies
View Related
Jan 22, 2010
I just switched over from the BB Tours and we used the BBM groups a lot, we used it to share lists (shopping, movies, etc). Is there any app out there that we can use to share lists again?
View 3 Replies
View Related
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
Jul 11, 2010
In my Android project, I want to loop through the entire collection of Drawable resources. Normally, you can only retrieve a specific resource via its ID using something like:
InputStream is = Resources.getSystem().openRawResource(resourceId)
However, I want to get all Drawable resources where I won't know their ID's beforehand. Is there a collection I can loop through or perhaps a way to get the list of resource ID's given the resources in my project?
Or, is there a way for me in Java to extract all property values from the R.drawable static class?
View 4 Replies
View Related
Apr 4, 2013
I have samsung android phone which can be used as wifi hotspot. My question is can I use my laptop internet on android phone by connection laptop to android phone hotspot as phone is unable to connect adhoc network.
View 1 Replies
View Related
Oct 15, 2010
What's everyone's favorite photo sharing program and does it have an Android app? I'm looking to move away from picasa since it strips a lot of EXIF data on upload.
View 5 Replies
View Related
Oct 30, 2010
I've got an app that accepts images from the image gallery (via share menu). My app starts, and I do this:
Bundle bundle = getIntent().getExtras();
Object obj = bundle.get("android.intent.extra.STREAM");
While debugging, Eclipse is reporting the object obj is of type 'Uri@StringUri' (???) and inside it somewhere is the string 'content:
//media/external/images/media/992'.
Anybody know what type of object obj is so I can typecast it? And what's the string about? IE, how do I get to the image data?
View 1 Replies
View Related
May 15, 2010
I want to change standard resources, such as button background, programatically to allow applications using standard buttons be displayed with custom background. My problem is - how shall I identify the path for retrieval resources on phone or emulator? And if we have permissions to access to those resources?
View 1 Replies
View Related
Nov 24, 2010
Can anyone recommend any books or resources for learning smart phone architecture (specifically iphone or droid)? I am looking to learn and get into smart phone development, having been doing desktop development for a few years now.
View 3 Replies
View Related
Nov 26, 2012
I'm trying to share my 3g network from my straight talk LG Optimus zip my old sprint phone samsung galaxTr IPy s phone I have foxfi and pdanet on both phones can't find anything that works
View 1 Replies
View Related
Sep 14, 2010
I just bought the Sony Ericsson Xperia X10 and realized it cannot share internet to a computer via bluetooth or wifi. Is there any apps or anything else which enables it to easy share internet? I have found something called Android wifi tether. But this does not work for Sony Ericsson.I really need an application for this purpose and I cannot wait until Sony Ericsson's comes with the update for Android 2.1.
View 2 Replies
View Related
Oct 13, 2010
This has been bothering me but at first it was just annoying. Now, I'm really frustrated. What's the point of being able to record videos with a phone if you can't upload them to the web? I have shot some really cool videos that I want to share with friends via YouTube, Facebook or e-mail and I always get the message that says you cannot upload files larger than 1GB or that I must resize them first or whatever.I see really long videos on youtube, why can't I upload a 1 or 2 minute video?Makes no sense whatsoever.Any ideas?
View 8 Replies
View Related