Android :: Android - Receive Explicit Intent With Component Option Set?

Mar 16, 2010

Is it possible to receive an explicit intent with the component option set? Example: Starting activity: Intent { action=android.intent.action.VIEW data=http://example.org flags=0x10000000 comp={com.android.browser/com.android.browser.BrowserActivity}}

The reason why i want to this this is because i want receive this intent above, launch another browser than the default one, and drop the intent before it starts the default browser. In another words, i want to make another browser the default one.

Android :: Android - receive explicit intent with component option set?


Android :: Explicit Intent In Custom Preferences Screen

Aug 19, 2010

I'm currently using this in preferences.xml: .......................

This allows to trigger a custom Activity when this specific preferences item is triggered. Copying from the documentation, I'm using an implicit intent, and it's working. But I'd solve a problem if I could use an explicit intent, that is writing the fully qualified class name of the target Activity. I didn't find documentation about this, so I don't know whether it's possible and how to do that.

View 2 Replies View Related

Android :: Android Override Explicit Intent

Mar 7, 2009

My app needs to have a intent-filter that responds to a intent that has it's component set (a explicit intent.) Here is a example.

Intent i = new Intent();
i.setClassName("com.compareeverywhere","com.compareeverywhere.ScanActivity");
startActivity(i);

Just a simple intent-filter will not do - because the intent is made for a specific component (activity,) it just launches that without looking for intents at all. Is there a way to do this?

View 1 Replies View Related

Android :: Implicit Intent - Same Action For Mutiple Component How It Works

Sep 7, 2010

I couldnt figure out the exact understanding of implicit intents.

When i was going through the tutorial i read about it.

Here are some important points to remember: 1 - Implicit Intents do not specify a target component 2 - Components willing to receive implicit intents have to declare their ability to handle a specific intent by declaring intent filters 3 - A component can declare any number of Intent Filters 4 - There can be more than one component that declares the same Intent Filters and hence can respond to the same implicit intent. In that case the user is presented both the component options and he can choose which one he wants to continue with 5- You can set priorities for the intent filters to ensure the order of responses.

I read this about Implicit Intents.

I couldnt get visualisation of 4th point. So wanted to try it out by writing some examples.

I tested this like below. Wrote two apps.

I had written two activities in one app, CallingActivity & anotherActivity.

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

One more app,which has two activities like below.

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

I ran the first app in emulator and pressed home screen, it mean it runs in the background.(Not exited ) Then i opened the second app and clicked a button in frirst activity(testmain) and tried to call setAction "com.android.localguide.GET_RESULT"

i.setAction("com.android.localguide.GET_RESULT");

But it is opening the activity "results".. It dint showed a options to choose which components( i expected first app ) activity i need to use ?

Am i right in executing in the right context to understand that point no 4 ?

View 3 Replies View Related

Android :: Don't Receive Intent - While Have A BroadcastReceiver

Sep 1, 2009

My current problem is that I don't receive an intent. I have a BroadcastReceiver and defined in the AndroidManifest.xml file that it also should receive intents with these actions.

View 2 Replies View Related

Android :: Intent - Receive Myval Data In Screen2 Class?

Feb 24, 2009

I have two classes Screen1 and Screen2 both extends activity i have to pass data from the Screen1 to Screen 2

I wrote in onCreate method of Screen1 class

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

My doubt is ,how to receive myval data in Screen2 class ,what is the code i have to add in AndroidManifest.xml file

View 6 Replies View Related

Android :: Set Explicit Alarm Time?

Oct 26, 2010

on my pim you can only set a reminder alarm as an offset from the event date/time and not as a specific date/time for the alarm itself

View 21 Replies View Related

Android :: Implicit Vs Explicit Intents

May 26, 2010

Working with android I realized that implicit intents are good choice in most of cases due to their's flexibility. But what's about explicit intents? What are benefits of using them? What are common cases when it's a good practice to use them?

View 1 Replies View Related

Android :: Cannot Use Explicit Intents To Call Another Application?

Aug 29, 2010

Was trying to call another application using an *explicit* intent, but am finding it does not seem possible. I do not wish to use implicit intents. To test it out, try calling the YouTube main activity.

Intent i = new Intent(); ComponentName cn = new ComponentName("com.google.android.youtube","com.google.android.youtube.Home­Activity.class"); i.setComponent(cn); startActivity(i);

I get this error:

08-29 00:54:26.598: ERROR/AndroidRuntime(7332): Caused by: android.content.ActivityNotFoundException: Unable to find explicit activity class {com.google.android.youtube/ com.google.android.youtube.HomeActivity.class}; have you declared this activity in your AndroidManifest.xml? Does anyone know whether this is possible? (using explicit intents to call another application)

View 3 Replies View Related

Android :: ActivityNotFoundException On Explicit Class Declared In Manifest On G1

Sep 30, 2009

I have some code that starts another activity based on a menu item selection:

..........

I've spent quite a bit of time on this and am inclined to file a bug report at this point. I can see a reference to the allegedly missing class in the classes.dex file inside the APK and the code works properly in the emulator. I haven't been able to find anything like this, so if there is, an RTFM pointer will be humbly accepted.

View 4 Replies View Related

Android :: Unable To Find Explicit Activity Class - Not Found Exception

Aug 22, 2010

The error I receive is, "android.content.ActivityNotFoundException: Unable to find explicit activity class {com.droidea.birthday/ EditBirthdayActivity}; have you declared this activity in your AndroidManifest.xml?"
The error seems simple enough, but I don't see a problem with the way I have identified this activity in my manifest file. I have also been unable to see any problems with the activity class itself..............

View 4 Replies View Related

Android :: Android - Layout_alignParentBottom Ignored When Used Without Explicit Layout Height As Row In ListView

Mar 26, 2010

When I use a RelativeLayout with either fill_parent or wrap_content as height and an element which specifies: android:layout_alignParentBottom="true" it is ignored and it is aligned at the top. Setting the height of the RelativeLayout to an explicit value makes it work.

View 3 Replies View Related

Android :: Space Between Component

Aug 20, 2009

I am putting one spinner and one button using following code. Can some one tell me how can i put some space between it?

View 4 Replies View Related

Android :: Use Of Service Component?

Aug 31, 2010

Service Component is used to do some task which can be done without user interaction. But for that we have to run a thread in subclass of the Service. I think we can create a thread in Activity class itself then what is the use of Service component? Why don't we create another thread and write the non interacting code in this thread.

View 10 Replies View Related

Android :: Unlock Key Component

Apr 30, 2010

I have almost completed my Android application so am considering ways of distributing the application. I have seen some applications on Market have free limited/locked version and separate Unlock Key/License Key which unlocks extra functionality. How is this done? Has anyone here done this? If so, how well does it work? I am thinking maybe this is better then having two versions of the same application (i.e Lite and Pro).

View 1 Replies View Related

Android :: CustomSpinner Component ?

Nov 18, 2010

I've created a custom component which works like a lock of a safe. customspinner - Project Hosting on Google Code on picture you see two different objects of my component.

If you need to create UI when user need to choose some element of a list, using this non standard component will be more intresting for user. And it is usefull - user can scroll and find a needed value very quickly.

View 4 Replies View Related

Android :: Component ClassNotFoundException ?

Jan 11, 2010

A component I have created works fine if I put it in the main project and reference it from any res/layout xml, but when I put it in a project on which the main project depends, I get a ClassNotFoundException in the xml.

Whilst after compiling the interface works fine, it is a pain in the * to design an interface without seeing what I am doing because of the error. Does anyone know how to solve it?

Stacktrace:

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

View 2 Replies View Related

Android :: XML Layout Of Custom Component

Jul 9, 2010

I have created a simple class named Panel which extends the SurfaceView class and does some drawing in the onDraw method. When I use it from the code it works fine. For example this works as expected:
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(new Panel(this)); ....

However when I try adding this component from an xml layout the program crashes:
XML file (main.xml):
<?xml version="1.0" encoding="utf-8"?> <org.anddev.Panel android:id="@+id/panel" android:layout_width="fill_parent" android:layout_height="fill_parent" xmlns:android="http://schemas.android.com/apk/res/android"/>

Code:
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);....

Error msg: Sorry!
The application Test (process org.anddev) has stopped unexpectedly. Pleas try again.
I can not figure out why the same class works when created in one way and doesn't work when created in another.

View 3 Replies View Related

Android :: New OMX Component Integration Into Opencore

Aug 2, 2010

I am trying to integrate VP8 video codec into PV opencore FW in Froyo & test at PV test application level. I have done the following steps, 1. Made a new folder for vp8 @ external/opencore/codecs_v2/omx/ omx_vp8. 2. Made appropriate modifications in the omx_baseclass, omx_common etc. 3. Modified the PV test app (external/opencore/codecs_v2/omx/ omx_testapp) for testing VP8. 4. included the VP8 source code to froyo. 5. Included new oscluuid for VP8 With these modifications, the build is fine. The shared libraries and binaries are creating properly. Also OMX-MasterInit is passing. But the application fails at OMX_GetHandle(). *pHandle is coming as zero. I am using the PV OMX core. I am just adding a new codec which is not supported by PV Opencore and test at PV test_app level.Can you please answer my below queries: 1. Do we need to change the pvplayer.cfg file? Bcoz i am using the PC omx_core itself. 2. Any other changes needs to be done for integrating a new component into Opencore? Please provide you valuable inputs. Let me know if need any additional informations.

View 4 Replies View Related

Android :: Best Practices For Library With UI Component

Jun 26, 2009

My company is in the process of evaluating if we can add support for Android to our product. I am currently working on porting our existing J2ME library to the Android framework and I have a question regarding our UI component. Right now, we have a custom menu that we allow our developers to bring up on the device. On J2ME, we simply have a single call that the developer makes to enter into the menu and then we handle the rest. On Android, it seems the best way to handle this is an Activity. But I have a few questions regarding this approach including is the really the best way to do something like this? Second, if it is, if there are multiple applications on the device that are using our library, are there going to be conflicts with them all having the same Activity embedded in them? Is it possible to create an Actvity at runtime and use it directly? Would there be any side effects of going about it this way?

View 2 Replies View Related

Android :: Share Component As APK File

Feb 14, 2009

I am working on couple android applications which share a common component. The component has Activities, Service and own AndroidManifest.xml. After research, it seems there is no concept of run time share library among applications in Android. So I am looking for a way to linked the share component with other applications at compile time. Applications which will use the component can come from external, therefore I will only provided the compiled file. I would like to build the component into own apk or jar file, can external application include my jar/apk file into their package and be able to start my activity? Please share your experience and advice.

View 3 Replies View Related

Android :: A Calendar UI Component / Widget

May 27, 2010

I am looking for a calendar UI. Something like the Calendar UI of the Calendar Android Application but only with the view. (I know that's open source so I can extract the UI but it's a long process to remove all the staff unnecessary) Is there any open source Calendar UI project for android ?

View 2 Replies View Related

Android :: Make Customized UI Component

Mar 9, 2010

IN our current project, I need to make a UI describled as follows.

Basically it is a text input, it will display a string returned from server , such as "I like banana". The word "banana" will be in red color. When user clicks "banana", it will have a dropdown list shows "apple, orange, pear". User would be able to select one of them, like apple. So the text in that UI would be "I like apple".

How could I build such a UI component in Android.

View 2 Replies View Related

Android :: Setfocus On Component And Remove?

Nov 20, 2010

How do i do a if statement but i want like: else if not edittext.getText.toString.contains("hello") then doCode. and how do i setfocus on a component and remove the focus can not really figure that out.

View 2 Replies View Related

Android :: How To Implement Ticker Component

Nov 2, 2009

I want to make Ticker Component but i dont know how to do this. I have seen "Marquee" but it start scroll on focus but i dont want. I want to scroll text if it is focused or not means in both conditions.

View 3 Replies View Related

Android :: Callbacks With WebView Component?

Sep 17, 2010

I am doing authentication with a third-party site that's supposed to redirect back to my app with auth token (OAUTH).

I have the callback working properly if I open the 3rd party site in a separate browser process via this.startActivity(new Intent(Intent.ACTION_VIEW, uri));

But, if I embed a WebView component in my layout, and open the url in that, the callback does not work. Webview says "You do not have permission to open myapp://callback?token=...." and quickly refreshes to "Web page not available...temporarily down..."

View 1 Replies View Related

Android :: PreferenceManager Without Visual Component?

Jul 19, 2010

I am trying to get a SharedPreferences object from the PreferenceManager but don't want to pass in the Context to the class.

Can I get a "global" context from inside my class?

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

View 1 Replies View Related

Android :: Clarifications Regarding JNI Of Media Component

Jun 17, 2009

First of all let me say that i am new to the JNI. However, i gathered some knowledge about it. As i was going through the android_media_MediaPlayer.cpp in ase mediajni to understand the way of operations of the android media framework, i saw the signatures of the JNI functions don't contain JNIEXPORT and JNICALL macros. Have these macros become redundant in JNI 1.4?

View 2 Replies View Related

Android :: Common Component Externalization

Jan 8, 2010

I am a game developer and have developed a nice global high scores module. The source code is in two different games of mine and anytime I make changes I carefully copy and paste the java files from one project to the other. As I increase the sophistication of this module, the copying and pasting can take a day or two to make sure I get it right. Now I am finishing up my third game and want to add the high scores module, but copying and pasting this in three separate projects seems absurd and will take up much of my time! Is there any way to externalize this module?

Unfortunately, the module makes reference to R for strings, layouts and other resources. It also uses common Android functions and resources from the Android library. Almost anything would be easier than the method I am using now--so any and all suggestions are welcome!

View 2 Replies View Related

Android :: Weird Gui Component Edges?

Oct 15, 2010

I developed my application and tested it on android emulator 1.6, 2.1 & 2.2 and on HTC Magic
its running PERFECTLY and the gui components look very neat...

However, when I tested it on Sony Ericsson Xperia X10 the gui components are looking fuzzy........

View 1 Replies View Related







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