Android :: Intent Provided By Cursor Is Not Fired Correctly (LiveFolders)

Apr 15, 2010

In my desperation with trying to get LiveFolders working, I have tried the following in my LiveFolder ContentProvider:Which, in all normalness, should launch the Browser and display the Google homepage when clicking on an item in the LiveFolder. But it doesn't. It gives a Application is not installed on your phone error. No, I'm not defining a base intent for my LiveFolder.logcat says:I/ActivityManager( 74): Starting activity: Intent { act=android.intent.action.VIEW dat=Intent { act=android.intent.action.VIEW dat=http://www.google.com/ } flg=0x10000000 }It seems it embeds the Intent I give it in the data section of the actually fired Intent. Why is it doing this? I'm really starting to believe it's a platform bug.update: I have filed an issue and removed the LiveFolders feature. I will include it in my app when I'll get a response either here or there that clarifies this thing. If I get the time I think I'll upload a demo app to that issue. Update: I have received a notification that the bounty is expiring in 3 days. No one wants it? Update 04/25/2010: I have updated the issue on the Android project and uploaded a test application. It would be nice if someone could test this application on a device, maybe it's such a subtle problem that it only appears on the emulator.

Android :: Intent provided by Cursor is not fired correctly (LiveFolders)


Android :: LiveFolders Cursor-returned Intent Not Working

Apr 15, 2010

I'm trying to get a LiveFolder implementation working, but I can't seem to be able to. I'm able to create the ContentProvider and the items show up nicely. However, I can't seem to be able to return a proper Intent in the Cursor from my ContentProvider to launch my activity.

Relevant bits of my code:

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

From the provider (this is how I create the Intent I pass in the LiveFolders.INTENT column):

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

When I click on an item I get an "Application not installed on your phone" error. Logcat says:

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

Basically, for some reason, the Intent I return in the cursor is passed as the data of the actual intent that it tries to fire, which has a VIEW action. Why is this happening?

View 2 Replies View Related

Android :: Intent To Be Fired When A Call Ends

Mar 19, 2010

I have an already built application and I want to add a feature that has to be started when a call ends.
How can I achieve that?

I thought that declaring in my manifest something like this

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

Could be enough, but what kind of intent I have to put on the filter?

Looking in the documentation I found only the intents that detects when a call is started.

View 2 Replies View Related

Android :: Intent That Is Fired When A User Unlocks Their Screen?

May 10, 2010

Is there an intent that is fired when a user unlocks their screen? I want my app to adjust the brightness when the screen turns on, but the problem im running into is that the screen on intent is fired on the lock screen and it does not adjust the display on that screen.

View 1 Replies View Related

Android :: Android Intent Filters To Intercept URL / How To Use Correctly?

Aug 27, 2010

I have an intent filter to intercept urls from the browser on my domain. This will give the user the the choice of using the native application or the browser. I have setup the following intent filter as so.

<intent-filter>
<action android:name="android.intent.action.VIEW"/>
<category android:name="android.intent.category.DEFAULT"/>
<category android:name="android.intent.category.BROWSABLE" />
<data android:host="myDomain" android:pathPrefix="/custom/" android:scheme="http" />
</intent-filter>

Now, it's not my intention to trap the user in the native application as there is much benefit from using the browser. So I would like to give the user some ability to go back to the browser within the application. I have created a button with an onClick that simply creates an intent for View and the url that would represent it. This will present the user with the choice dialog again. The catch to this is that a user is also allowed to select a checkbox to always use the native application. While that is well and good, sometimes absolutes are wrong.

So if I am reading a blog post that mentions a specific url and a specific part of that document, intercepting the url is not what the user intended but will send them to the native application. Also then upon selecting the button with the intent, they will immediately be sucked back into the application. How can you structure a ACTION_VIEW intent for the system browser or at least detect that the user has selected always use the native app so that you can use the ACTION_WEB_SEARCH (it has a different UI behavior with the history stack, which is why I wouldn't opt to use this action all the time).

View 1 Replies View Related

Android :: Moving Cursor Adapter Cursor Creation To Background Thread

Mar 29, 2010

The structure of some of my activities is a simple ListView with a custom CursorAdapter. The cursor is created in onCreate() on the activity from a SQLite database. The problem is that querying the SQLite database can be quite slow at times with lots of data (and let's assume I've already optimized the sql query as much as possible). Because it occurs in onCreate() on the UI thread, I get ugly black screens when opening the activity, which sometimes turn into ANRs, on a slow phone like the G1. I want to load the cursor in a background and show "Loading.." on screen while doing so. I saw AsyncQueryHandler used extensively in the framework, but this seems a solution geared more towards Content Providers and not application-local SQLite databases. I then thought of trying to load the cursor in a background thread, but realize that this might be problematic, as the CursorAdapter should be instantiated in onCreate() and should take a cursor as a parameter. The latest thought I had was to instantiate an empty MatrixCursor in onCreate() and pass that to the cursor adapter, while kicking off a thread/TimerTask to query the database. Then, on database cursor load, call cursorAdapter.change Cursor to the properly filled cursor. This doesn't seem very elegant and seems quite wasteful, however.

View 10 Replies View Related

Android :: Join ContentResolver Cursor With A Database Cursor

Mar 21, 2010

I get records from the system by quering a ContentResolver. I maintain the order of the items in the database. So I want to display the items in the order taken from my database.

How do I merge these two informations?

I am looking after an alternative way now. As what I ideally want is:

Get order of contacts by a custom order held in my database (this involves joining CR with my DB cursor, and doing an order by, later seams it's not possible with CursorJoiner) but there is more, if the join is not unique I want to sort by contact's name as last measure

Which is impossible using Cursor and Joiners, because of the missing feature of order bys, also I need to return a Cursor, as I will be using the in an ExpandableList

Also this translated to TSQL it would look like

select * from contactsdata
left join category on contactsdata.catid=category.id
order by category.pos asc, contact.display_name asc

So I am looking now after an alternative. I have in mind to load in a temporary DB table all data from CR, then do the query on the temporary table where I can join tables and do order bys? How does this sound to you?

View 1 Replies View Related

Android :: Proximity Alerts Not Fired

Oct 5, 2010

I'm trying to configure proximity alerts that will be feed from a Database and webservice provider; but I have a problem configuring a simple proximity alert for testing. I manage to create the alert but it never gets fired, I'm only trying in the emulator for now and don´t know if I need some extra code to trigger the alerts. I've read somewhere that the GPS provider to disabled so the network provider can be used in order to trigger the alerts on the emulator.

My code looks like this:...................

View 3 Replies View Related

Android :: Activity Being Fired Off Too Many Times

Jul 19, 2010

Our app starts out with a tab activity. But, before the user can get into the tab activity to do work, we have to check to see if they're logged in. This login is required for all activities within the tab activity. So, instead of having this security check within all the activities, we created our own abstract "activity" and have the tab activities extending our custom activity. Our "security check" (just see if they have a login key and login token in Preferences) is put within the onResume() of the Abstract activity. If either of these checks come back false, we fire off the login activity and use dialog's within that screen.

(We're doing this because we don't want the user to be able to see the data on the tabs if they're not logged in, so this login activity is a black background with dialogs for username/password). The issue is, the onResume() of the abstract activity is being called numerous times, and starts the Login Activity multiple times. We've tried setting the "singleInstance" and singleTask flags on the xml for the login activity, but the activity ends up calling onActivityResult before it is even displayed on the screen.

View 2 Replies View Related

Android :: What Event Is Fired After All Views Are Fully Drawn?

Oct 16, 2010

I need to capture the absolute positions of some ImageViews to use as drop targets. I can't seem to find what event I need to put my code in to read the screen and get the Left(), Top() .. positions. I do not want monitor the inflation of each individual view. There must be some sort of onScreenFinsihed type of event, but I can't find it. onMeasure and onDraw seem to fire at the start of their work, I need to know when they are done.

View 1 Replies View Related

Android :: Place A Kill Safe Alarm Fired On Daily Basis?

Jun 3, 2010

I know how to setup an alarm to fire repeatedly, but the alarm stops firing after my application is killed.

How do I make sure the alarm continues to fire as it was setup?

View 2 Replies View Related

Android :: Using SDk Provided Images

Jul 28, 2009

There are images provided in android-sdk-windows-1.5_r2platforms android-1.5data esdrawable folder of SDK. Is there any way that we can use those directly in appliation. (without local copy)?

View 6 Replies View Related

Android :: How To Keep GPS Active Until More Accurate Location Is Provided?

Jan 2, 2010

I recently posted this question on stackoverflow (http://tinyurl.com/ yzrofne), but maybe someone here can help me. I am using the location manager's requestLocationUpdates() method to receive an intent to my broadcast receiver periodically. The system is correctly firing the intent to my broadcast receiver, and I have been able to use it correctly. The only problem is that the GPS location provider only stays active for a few seconds after the initial location acquisition, and I need it to stay on a little longer so that the location estimates are more accurate. For example, if I tell the location manager that I want an update every 5 minutes, it correctly fires the intent with location information from the GPS. However, the GPS only stays active for about 5 seconds, so it doesn't give much time for the location to reach a high accuracy (say, less than 10-20 meters). My question is how to make the GPS location provider stay active for each periodic request that comes from the LocationManager requestLocationUpdates. Does anyone know how to do this?

View 2 Replies View Related

Android :: How To Disable A View Provided There Are 2 Views In Xml?

Mar 25, 2010

The reason for me to do this, I have created these 2 views in the beginning of the app. SO they are always present. But in some cases where i want only 1 view(which is surfaceview) and if i dont need the 2nd view(i.e, videoview), i am still getting a black patch at the palce where i have defned a videoview. want to get rid of this. Can anyone please tell me if it is possible to disable views/surfaces corresponding to them? If so how can we do this?

View 2 Replies View Related

Android :: Bouncycastle Encryption Algorithms Not Provided

Jan 7, 2010

I'm trying to use BouncyCastle with android to implement ECDH and EL Gamal. I've added the bouncycastle jar file (bcprov-jdk16-144.jar) and written some code that works with my computers jvm however when I try and port it to my android application it throws: java.security.NoSuchAlgorithmException: KeyPairGenerator ECDH What am I doing wrong?

View 2 Replies View Related

Android :: Recent Apps Seem To Have Google-provided Ads Is There Some New API For This?

May 5, 2009

Several recent applications (e.g. Shazam) have text and image ads which are handled by Google. I can't seem to find how they did this. Is there some new API that you can use to display ads given some key, similar to how the maps API works? Or is this something that developers individually negotiate?

View 3 Replies View Related

Android :: Cities / Countries Data Provided By Google API

Mar 30, 2009

I am using Geocoding API for my application... How can i know the set of cities/countries for which google API provides data for? If there is a list of cities and countries, can anybody provide me with the same?

View 2 Replies View Related

Android :: Coordinates Provided By Geo Fix Command To Emulator Are Different In Location Listener

Aug 3, 2010

I use Android emulator to test my location based application. The cordinates are provided by geo fix command (for example: geo fix 2.31278 48.9533 10). But when the new location event is fired, the cordinates are not the same as those in the command: I got latitude = 48.95800053333334, longitude = 2.3033544999999997 (I use Location.getLatitude() and Location.getLongitude() methods). Does anyone have an idea of my trouble ?

View 5 Replies View Related

Android :: List Widget Similar To One Provided By Stock Music App

Sep 26, 2010

I have been googling for a couple days now searching for a sortable list widget similar to the one provided by stock android music app. What I would like is ability to sort a list similar to how you can sort your music playlist. I am coming to the conclusion that I am obviously not using the proper keyword to find my answer.

View 1 Replies View Related

Android :: What Case Managed Query Method Return Null If Uri Is Provided?

Jun 25, 2010

I am doing some android application. I just wonder what will case the managedQuery method return a null value?

View 1 Replies View Related

Android : Requirements To Start App / Type Of Database Support Provided By Droid?

Mar 6, 2009

I am new to Android. I want to know the things before going to start the Android application. What are the requirements need to start the application. What type of Database support provided by Android?

View 3 Replies View Related

HTC Incredible :: How To Root Phone - Use File Provided

Sep 3, 2010

Okay, we have many little things going around so I'm going to try and consolidate for everybody. With my phone having hardware issues I've practically got this memorized now. These are basic steps, if you do not know how to flash a file you need to do a little more reading before you follow this. I take no responsibility for your actions, they are yours! If you destroy your phone, I cannot help you. Most of the links I provided have instructions on them. If they are just downloads, it assumes you know how to use the file provided.

View 49 Replies View Related

Android :: Finalizing Cursor Android.database.sqlite.SQLite­Cursor

May 6, 2009

I am seeing the exception in 'adb logcat'.But I don't know if it is caused by my application or android platform.Can you please give me any idea how to troubleshoot this exception?

View 3 Replies View Related

Android :: Android Is There Any Way To Reduce Boot Up Time Of Emulator Provided With SDK

Mar 5, 2010

On my system, i am using eclipse ganymede version along the Android SDK and ADT plugin installed. I have created an android AVD (target android 1.5) with 512MB of memory. Its quite frustrating to see the slow boot up of it. It takes around 4-5 mins to complete its boot-up. Is there any way or tweak to speed up this boot up process.
PC config:
P4 2.4 Ghz with 1 GB ram.

View 2 Replies View Related

Samsung Captivate :: Phone Turned Off Today For The First Time Info Provided

Sep 9, 2010

My phone turned off by itself today while it was in my pocket, here are some information. The phone is also not rooted, no launchers have been used, and is currently using TouchWiz. Purchased from AT&T Premier website on August 27th 2010
Delivered to me September 1st 2010
Manufacturing Date - August 2nd 2010
Battery Manufacturing Date - Not checked
Apps installed before shutoff experience:
Dictionary.com
Fandango Movies
The Moron Test Lite
WordUp
Google Voice
Speedtest.net
Barcode Scanner
Ninja Kaka - Fruit Dojo
Drop Block DEMO
Hella Umbrella Beta
PapiJump
Jewels
Unblock Me FREE
Smooth Calendar
GPS Test
1 Day/Night before I experienced the shutoff, the following were installed:
- Used my own wallpaper jpeg instead of one from the Captivate's stock wallpaper folder
- Beautiful Widgets
- AppBrain App Market
- Fast Web Installer
- Angry Birds Lite Beta (APK FILE, USED ANDROID CENTRAL'S SIDELOADER MACHINE)
- Paper Toss
I've had my phone for exactly 1 week, and after reading all the horror stories of people experiencing the random shut offs, I thought I was lucky up until now. I love this phone a lot despite the obvious GPS issues. Does anyone have any idea on what may be causing this? Hardware or Software issue?I would hate to exchange it for another with AT&T since I've become so attached to it.

View 6 Replies View Related

Android :: Android App Developed By Third Part But No Instruction Provided

Jul 8, 2010

On Sun, Jul 4, 2010 at 3:49 AM, Official <ehiggins...@gmail.com> wrote: Is there a tutorial on how to do this?

View 17 Replies View Related

Android :: Android How To Read A File Provided By A Different Application

Nov 20, 2009

I need some mechanism so that an Android application can read a file which is provided by a different Android application. I know that it's possible if both applications have the same userid, but it's not feasible because it would require to sign both applications with the same key. The idea is that one application has a zip file which is uncompressed; the uncompressed files must be available to a different Android application. By default, it's not possible because that directory is not readable by the latter application. Is there any directory which can be readable/writable by both applications without hacks? Is there any other mechanism suggested by Android?

View 4 Replies View Related

Android :: Android How To Keep GPS Active Until More Accurate Location Is Provided?

Jan 2, 2010

I am using the location manager's requestLocationUpdates() method to receive an intent to my broadcast receiver periodically. The system is correctly firing the intent to my receiver, and I have been able to use it correctly. The only problem is that the GPS location provider only stays active for a few seconds after the initial location acquisition, and I need it to stay on a little longer so that the location estimates are more accurate.My question is how to make the GPS location provider stay active for each periodic request that comes from the LocationManager requestLocationUpdates. Does anyone know how to do this?

View 3 Replies View Related

Android :: Certification For Android Developers Provided By Google?

Nov 3, 2010

Is there any certification for android developers provided by Google? please let me know this . I want to do that certification.

View 4 Replies View Related

Android :: Row ID From A Cursor

May 17, 2010

How do I get the row ID from a Cursor?

View 2 Replies View Related







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