Android :: How To Communicate With Embedded Activity?

Jan 30, 2010

In my current project I have a full screen TabActivity. Each tab content is handled by two instances of same ListActivity. Now, I put an extra int in intent to know which data should be displayed.So in onCreate method of my ListActivity, I check the int in extra and I build my query to obtain a SQLLiteCursor.I would like to dynamycally give to this two instances of ListActivity the list of item that should be displayed.I do not know what is the best way to do this. Any idea ?

Android :: how to communicate with embedded activity?


Android :: Communication Between TabActivity And The Embedded Activity

Jun 28, 2010

I am trying to figure out the best practice of communication between a TabActivity and the child activity embedded in this TabActivity.

In my TabActivity, there is a button. When the button is clicked, I want the child activity embedded in this TabActivity to be updated. I wrote the code like below, and just wonder whether it is a good practice.

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

View 3 Replies View Related

Android :: ActivityGroup - Embedded Activity Search Window

May 27, 2009

I have an ActivityGroup with an embedded TabActivity and another simple Activity.

The TabActivity has three tabs, each one with a ListActivity.

When I try to start a search from a list (calling onSearchRequested()), I get a WindowManager$BadTokenException.

I've tried requesting focus in the list, but the same error occurred.

View 4 Replies View Related

Android :: How Does A Service Communicate With Activity?

Feb 17, 2010

Suppose I have an Activity that's a list. It calls a Service when this Activity starts.The Service will do background stuff download, parse, and fill the list.My question is this: How can the Service communicate with the Activity?How can I call a method in the Activity, from the Service? (I'm new to OOP)

View 2 Replies View Related

Android :: Getting Service To Communicate With Activity?

Jun 25, 2010

I currently have a Service and an Activity in my application.I currently bind the Service to the activity without using AIDL as the Service and the Activity are in the same application.This allows me to call the methods from the Service within my Activity when I require them, however it doesn't let me call the methods of the Activity from within my Service when I want to.Can anyone comment on what would be the best way to achieve this?I could use Intents but is there an alternative option?I want to have tight communication between the Service and the Activity, I want to be able to call an Activity method from my Service when an event happens.

I now have it working the way I want, however I have come across a problem.My service gets status updates and my Activity is then supposed to react to the update sent on from the Service.The problem is that when I start my activity I get the Dialling Status and then Connected status before the onBind is called and I get the instance of iCallDialogActivity.

I need to be able to use my iCallDialogActivity when I get the Dialling and Connected Status notifications.But this gives me a NullPointer Exception due to it not being created in time when my Activity starts, binding is the first thing I do in my Activities onCreate().Is there a way to make it bind straight away?

View 1 Replies View Related

Android :: Want Activity / Service To Communicate With Intent

Aug 2, 2010

In the Activity I write Intent i=new Intent("IntentServiceTest"); Bundle bundle = new Bundle(); bundle.putString("abc", "def"); i.putExtra("wer", bundle); IntentTest.this.startService(i); Start Service into Service OnCreate method,but I don't know how to do get this Intent in this method.

View 11 Replies View Related

Android :: Best Way For Service That Starts Activity To Communicate With It

Feb 16, 2010

I have a service that listens to a socket. When receiving certain input it is to create an activity. When receiving other input, it is to kill this activity. I have struggled for a while to make the service communicate with the activity through AIDL (http://developer.android.com/guide/developing/tools/aidl.html), but this seems to not be effective. I think AIDL is only effective when the process that is to be talked to is a service, not when it is an activity? I would love some directions or suggestions on how to solve my problem.

View 1 Replies View Related

Android :: Communicate With A Location Manager Started From Another Activity

Aug 20, 2010

In my app I want to obtain a gps lock and record the coords. But I do not want to lock the device into looking for the gps. The user is to be free to traverse through the app and the different activities within.

So If I call a locationListener in activity A, can I reference it in activities B C and D?

if is was still in activity A I could say something like

A.this.mlocListener.removeMyUpdates();

When I am in activity B how can I reference the LocationListener I set up in Activity A

View 1 Replies View Related

Android :: How To Have Android Service Communicate With Activity?

Mar 17, 2010

I'm writing my first Android application and trying to get my head around communication between services and activities. I have a Service that will run in the background and do some gps and time based logging. I will have an Activity that will be used to start and stop the Service.So first, I need to be able to figure out if the Service is running when the Activity is started. There are some other questions here about that, so I think I can figure that out (but feel free to offer advice).My real problem: if the Activity is running and the Service is started, I need a way for the Service to send messages to the Activity. Simple Strings and integers at this point - status messages mostly. The messages will not happen regularly, so I don't think polling the service is a good way to go if there is another way. I only want this communication when the Activity has been started by the user - I don't want to start the Activity from the Service. In other words, if you start the Activity and the Service is running, you will see some status messages in the Activity UI when something interesting happens. If you don't start the Activity, you will not see these messages (they're not that interesting).

It seems like I should be able to determine if the Service is running, and if so, add the Activity as a listener. Then remove the Activity as a listener when the Activity pauses or stops. Is that actually possible? The only way I can figure out to do it is to have the Activity implement Parcelable and build an AIDL file so I can pass it through the Service's remote interface. That seems like overkill though, and I have no idea how the Activity should implement writeToParcel() / readFromParcel().Is there an easier or better way? Thanks for any help.

View 2 Replies View Related

Android :: Progress Bar Embedded In Ui And Not In Dialog

Nov 22, 2010

Is there a way to embed the progress bar in the UI with out an dialog. And not programmatically but with layout xml files. I am guessing it has to be some sort of animation or a "drawable"

View 2 Replies View Related

Android :: Embedded Hardware Devices?

Sep 1, 2009

I'm playing around with an idea in the back of my head, was wondering if there were any Android devices that had touchscreen and wifi - no other requirements necessary. The GiiNii Movit Mini is as close to what I'm looking for as I can find. Are there hardware vendors that make custom Android products such as this? Inexpensive, ARM or MIPS, run Android, touchscreen, wifi, that's it.

View 9 Replies View Related

Android :: Getting WAP Embedded Video And Iphone?

Jun 14, 2010

Recently a client asked me to make their site "work on smart phones", which normally wouldn't be too much of an issue... However it's a video site, and I have absolutely no idea where to even begin. Right off the bat I'm not even going to consider allowing the site to even function in anything other than Android (Maybe even 2.0+) and iPhone, maybe Blackberry and WinMo. But beyond that... What do I do? I'm looking at using the tag, however I'm unsure what, if any, codecs which phone uses. Is HTML5 even adopted in their browsers yet?

Could someone please point me in the right direction? Am I going about this the right way, using the tag? Or is there some magical html element both iPhone and Android (And BB and WMo) that lets them run video in their native video players (Like on youtube).

View 1 Replies View Related

Android :: Embedded Widgets In Preferences

Mar 1, 2010

I'm trying to make a somewhat advanced settings Activity (one that has a RadioGroup in one of the cells). The layout xml file contains the following:

CODE:.......

View 4 Replies View Related

Android :: Embedded ActivityGroup And Dialog Box

Apr 14, 2009

I'm trying to run an activityGroup embedded inside another activityGroup. (Example : an activityGroup inside a tabActivity)

This seems to display properly but throw an exception when i'm trying to display a modal box like an alertDialog.

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

If childActivity1 or 2 try to display a dialogBox i'm getting this exception :

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

View 2 Replies View Related

Android :: Cheap Embedded Phone - M2M Device?

May 4, 2010

I'm playing around with some ideas and was wondering if anyone knew of an Android-based device that was basically a cell-phone with no screen.

Here's the requirements I'm looking for: - Support GSM - Single SIM slot or eSIM (3G preferred but not required) - Support GPS - Support BlueTooth - Optionally have an accelerometer - No display (this is an embedded device) - Would be willing to provide my own packaging (raw boards would be ok) I've debated taking the guts out of old G1s for this project. But if there is a specific device that meets my needs all the better. If there's any Manufacturers out there that have Android phone "guts" available, let me know too.

View 2 Replies View Related

Android :: Engadget App - Play The Embedded Videos?

Oct 21, 2010

I love using the Engadget app on my Desire to keep up with daily news, but no matter what I try I cannot watch the embedded videos within the stories.....

The ones that link to YouTube are fine as you can choose the browser or the YouTube app.

But their native videos don't play for me. I currently get the choice of viewing through double twist or streaming media player, both of which say "Sorry, this video cannot be played".

Anyone any idea what format these endgadget videos are in? And how I can get the engadget app to choose a player capable of playing them?

View 2 Replies View Related

Android :: Embedded Webview Crashes On Dialog

Aug 18, 2009

I have an application that uses the webview to load webpages so user can download media off them, but i get a crash when any sort of popup tries to show (eg from a select box or save password dialog) - the error is that for some reason the webview doesnt provide the new dialog with the application context (even though it as passed to the webview component when it was created).

Is there some method to use to supply the application context to dialogs launched from the webview?

View 3 Replies View Related

Android :: Which Window-toolkit To Use For Embedded Linux

Sep 4, 2009

I am using embedded-linux for device which has Arch ARMv5 Speed 266MHZ, vfpu and 32bit bus, 32MB 133 Mhz DDR Ram. can you tell me which windowing system should I use,

1).QT for embedded linux
2). Android.
3). Other!

Well, I am using microwindows for last one year and not satisfied with it as it does not have BSP (Binary Space Partitionin) in its windowing system , No shared memory support for bitmaps. I think Microwindows is just optimized for memory-size not for speed.

View 4 Replies View Related

Android :: Scroll View Embedded In Table Layout

Jul 29, 2010

Before I added my ListView, along with changing my TableLayout height to "wrap_content" as opposed to "fill_parent", my ScrollView displayed properly. Here is my XML: <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" Code...

View 1 Replies View Related

Android :: Sharing Embedded Resource Via Content Provider

Apr 29, 2009

How do I share an embedded resource with other apks via a content provider?

View 7 Replies View Related

Android :: Can You Tube Be Embedded In Applications? WebOS / Blackberry?

Apr 15, 2010

Can YouTube videos be played from within an AndroidOS without launching the separate YouTube player? How about WebOS or Blackberry? On the iPhone I can do this with a WebView and the embedded YouTube code and I'm weighing the possibility of porting my app to other mobile platforms.

View 2 Replies View Related

Android :: Search Engine App In Perst 4.0 Embedded Database?

Jan 26, 2009

Looking for a way to integrate full-text search and fast, lightweight data management with your Android applications? The new Perst 4.0 open source, object-oriented embedded database system brings native full-text search capability to Android and builds on this feature to provide a sample search engine application for contact data residing on mobile phones.

To provide search, the database stores an inverse index of keywords, with parsing and stemming of indexed text performed either by user- defined code or by Perst's default simple parser and stemmer. The feature supports logical operators and calculates relevance of search results to a query. The new sample application, ContactsIndex, stores and indexes contact information, and could be extended to provide search capabilities for PDF, word processing, HTML and other stored files. The example applications are included with complete source code in the Perst 4.0 for Java distribution..............

View 3 Replies View Related

Android :: Static Data Structures On Embedded Devices

May 2, 2010

I've started working on some Android applications and have a question regarding how people normally deal with situations where you have a static data set and have an application where that data is needed in memory as one of the standard java collections or as an array.

In my current specific issue i have a spreadsheet with some pre-calculated data. It consists of ~100 rows and 3 columns. 1 Column is a string, 1 column is a float, 1 column is an integer. I need access to this data as an array in java.

It seems like i could:

1) Encode in XML - This would be cpu intensive to decode in my experience.

2) build into SQLite database - seems like a lot of overhead for static access to data i only need array style access to in ram.

3) Build into binary blob and read in. (never done this in java, i miss void *)

4) Build a python script to take the CSV version of my data and spit out a java function that adds the values to my desired structure with hard coded values.

5) Store a string array via androids resource mechanism and compute the other 2 columns on application load. In my case the computation would require a lot of calls to Math.log, Math.pow and Math.floor which i'd rather not have to do for load time and battery usage reasons.

I mostly work in low power embedded applications in C and as such #4 is what i'm used to doing in these situations.

It just seems like it should be far easier to gain access to static data structures in java/android.

Perhaps I'm just being too battery usage conscious and in my single case i imagine the answer is that it doesn't matter much, but if every application took that stance it could begin to matter.

View 3 Replies View Related

General :: Build Android Against Embedded Glibc Instead Of Bionic?

Nov 17, 2013

I was wondering if it is possible to build/compile the Android OS against embedded glibc instead of bionic?

Has it been done?

What would some forseeable problems be, as in, would much Android code need to be modified to utilize glibc properly , and would existing proprietary firmware bug out if glibc was inplace instead of bionic?

View 1 Replies View Related

General :: Airplay Android Embedded Video In Webpage

Jul 30, 2013

I have just moved across from an iPad to the nexus 7. Firstly I love the nexus 7, but there is one thing I just can't get it to do, that is to stream an embedded video to a dlna server or xbmc or boxes box or apple TV. Now I know there are a lot of apps out there to stream like airplay on the iPad, and I have bubbleupnp working really well at streaming from either videos on my nexus or even from my NAS through the nexus to the TV. But I watch a lot of series online and sometimes want to watch them on the TV rather than on the 7 inch screen. Now my iPad showed the airplay icon and boom onto thetv via xbmc, but if I try the same on my android, I can't! Any apps that would do this? The closest I have come is twonky beam but even that can't see the embedded video as the iPad could?

View 1 Replies View Related

Android :: Communicate Between Tabs

Feb 27, 2009

I am using a TabHost one tab with a list and another to show the details of a specific item selected in the list. Does anyone know how I can communicate between tabs?

View 2 Replies View Related

Android :: How Do Services Communicate With Each Other?

Mar 25, 2009

I am trying to send AT commands via Ril from LocationManager as there is only one AT port I can use. But it seems like that there is no ways to call the function refer to Ril. Can I just new a commandsinterface and to call ril's functions via it?

View 2 Replies View Related

Android :: How To Communicate Between 2 Activities?

Apr 22, 2009

I have read 'http://developer.android.com/guide/tutorials/notepad/notepad-ex2.html', specifically step 4 ahow can I return a different result to the 'calling activity', in this example, it always return ACTIVITY_CREATE. What if the 'activity being launcher' has a 'okay' and a 'cancel' button. How can the 'calling activity' knows which button user presses in the 'activity being launcher'.

View 3 Replies View Related

Android :: How To Communicate Between Two Emulators?

Nov 24, 2010

my machine is running window 7.i want to communicate bw two android emulators running on same machine.Emulator 1 is listening on some ip 10.0.2.15 when emulator two tries to create Socket socket = new Socket ("10.0.2.15",8080);it gives exception, unable to connect to 10.0.2.15.does any know how to solve this problem??

View 1 Replies View Related

General :: Communicate Android App With PC App Over USB

Apr 9, 2012

I want to control my pc with an app on my android device over usb. Is this possible.

View 1 Replies View Related







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