Android :: Intent Definition In Manifest File

Sep 26, 2010

I would like to start my own SMS editor when user selects "Send message" from contacts application. How do I define intent in manifest file to allow passing contact details to the editor?

Android :: Intent definition in Manifest file


Android :: Two Applications In One Manifest File?

Mar 12, 2009

Is it possible to have two application tags (<application>)in the same AndroidManifest.xml file ?If yes - is there anything special that needs to be done, I am trying it, the syntax is accepted by the XML parser but when I install my second application is not available.

View 4 Replies View Related

Android :: How Can Read App Version In Manifest File Programmically

Sep 25, 2010

In android manifest file, there is a field specifies application version. if I can read that value programmically in my android code?

View 2 Replies View Related

Removing Android Manifest File While Performing Programming

Aug 3, 2012

removing the android manifest file while performing android programming. Someone told me that the manifest file is vital for the layout and setting of out program. they told me this is a seperate file but is still a part of the java project (.jar/ap/apk file). They told me i can set everything using ONLY the java code itself. I really hate doing XML with java. how to remove or unlink this XML/HTML file from the Android SDK?

View 3 Replies View Related

Android :: Write / Read Access To SD Card In Manifest File

Mar 1, 2010

Is there a right associated with write/read access to the sd card that needs to be set in the manifest.xml file? I'm currently trying to write to the sd card using a standard FileOutputStream here:

FileOutputStream out = new FileOutputStream("/ sdcard/images/"+imageName);
bmp.compress(Bitmap.CompressFormat.JPEG, 90, out);

But it doesn't seem to be working. It just says the location isn't found, which can happen if there are no permissions to read/write to the location.

View 2 Replies View Related

Android :: No Permission In Manifest File For Call But Activity Starts?

Jan 30, 2009

I just created a simple application, that starts the Dial Activity and place a call. I did not provide any permission in the manifest file to start a call, but still the call activity starts. I also checked the AndroidManifest.xml file, there is no permission added, still the activity starts.

View 6 Replies View Related

Android :: To Unregister A Broadcast Receiver Register Registered In Manifest File

Mar 19, 2010

I have been able to register and unregister a broadcast receiver from the java code and know that a broadcast receiver is unregistered (even if it is not done explicitly) on its own as the process that registered it is killed. Now I have a broadcast receiver which has been registered through manifest file and not through the java code, and need to unregister the broadcast receiver from the java code. Since this, i think would need a reference to System context that instantiates the broadcast receiver.

View 4 Replies View Related

Android :: Android Manifest File ERROR And Unable To See It

Jun 19, 2009

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

The above code is my manifest for my project i get the error "Tag <activity> missing required attribute name." on lines 7, 15 and 16. ive been trying to renew the file but i get the same errors i am currently using SDK 1.5 mn3 maybe.

View 2 Replies View Related

Android :: Open A Local App File In Another App Via An Intent

Nov 8, 2010

I don't want to store said file on the sdcard in this case. The file also cannot be storage directly in the apps local files directory. It needs to be in a subdirectory, so it cannot write the file using openFileOutput() and MODE_WORLD_READABLE.

The app may download files small files like pdfs and store them locally in a subdirectory. I would like to be able to have the user open these files if they have an app that can open them.

For example here is an intent for sending a pdf:

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

path being something like: /data/data/packagename/files/subdir/example.pdf

That intent will open a pdf viewer, but the viewer is unable to open the file. I assume this is a permissions issue. I tried Mark Murphy's suggestion here: http://groups.google.com/group/android-developers/browse_thread/thread/4e55d869213483a9/b7270078ac1a2744?lnk=raot of using Runtime.getRuntime().exec("chmod 755 " + fileName); but it didn't make any difference. He also suggested a Content Provider but I would like to avoid it if I can because it seems like a lot just to get this file over to another app.

If the content provider is the only option, do I have to save the file to the content provider or can I just use the content provider as a pass through to get it to the other app when I need to?

View 2 Replies View Related

Android :: Call .apk File Of PDF Viewer Through Intent Of Application?

Mar 13, 2010

I have only .APK file of PDF Viewer and my requirement is to use pdf viewer for reading document called through Web API . Is there any possibility to integrate these two in same package apart from source code?

View 1 Replies View Related

Android :: Retrieving File Path When Using Intent Filter

Oct 5, 2010

I realise one has to use an intent filter to associate a file format with an application, but once this is done how does the app 'receive' the path to the file that was chosen? Is there a special method it calls on the Activity?

View 2 Replies View Related

Android :: Launching Intent Not Working On Saved Image File

Jun 2, 2010

First of all let me say that this questions is slightly connected to another question by me. Actually it was created because of that. I have the following code to write a bitmap downloaded from the net to a file in the sd card:

// Get image from url
URL u = new URL(url);
HttpGet httpRequest = new HttpGet(u.toURI());
HttpClient httpclient = new DefaultHttpClient();
HttpResponse response = (HttpResponse) httpclient.execute(httpRequest);
HttpEntity entity = response.getEntity();
BufferedHttpEntity bufHttpEntity = new BufferedHttpEntity(entity);
InputStream instream = bufHttpEntity.getContent();
Bitmap bmImg = BitmapFactory.decodeStream(instream);
instream.close();

// Write image to a file in sd card
File posterFile = new File(Environment.getExternalStorageDirectory().getAbsolutePath()+"/Android/data/com.myapp/files/image.jpg");
posterFile.createNewFile();
BufferedOutputStream out = new BufferedOutputStream(new FileOutputStream(posterFile));
Bitmap mutable = Bitmap.createScaledBitmap(bmImg,bmImg.getWidth(),bmImg.getHeight(),true);
mutable.compress(Bitmap.CompressFormat.JPEG, 100, out);
out.flush();
out.close();

// Launch default viewer for the file
Intent intent = new Intent();
intent.setAction(android.content.Intent.ACTION_VIEW);
intent.setDataAndType(Uri.parse(posterFile.getAbsolutePath()),"image/*");
((Activity) getContext()).startActivity(intent);

A few notes. I am creating the "mutable" bitmap after seeing someone using it and it seems to work better than without it. And I am using the parse method on the Uri class and not the fromFile because in my code I am calling these in different places and when I am creating the intent I have a string path instead of a file. Now for my problem. The file gets created. The intent launches a dialog asking me to select a viewer. I have 3 viewers installed. The Astro image viewer, the default media gallery (I have a milstone on 2.1 but on the milestone the 2.1 update did not include the 3d gallery so it's the old one) and the 3d gallery from the nexus one (I found the apk in the wild). Now when I launch the 3 viewers the following happen:

Astro image viewer: The activity launches but I see nothing but a black screen.
Media Gallery: I get an exception dialog shown "The application MediaGallery (process com.motorola.gallery) has stoppedunexpectedly. Please try again" with a force close option.
3D gallery: Everything works as it should.

When I try to simply open the file using the Astro file manager (browse to it and simply click) I get the same option dialog but this time things are different:
Astro image viewer: Everything works as it should.
Media Gallery: Everything works as it should.
3D gallery: The activity launches but I see nothing but a black screen.

As you can see everything is a complete mess. I have no idea why this happens but it happens like this every single time. It's not a random bug. Am I missing something when I am creating the intent? Or when I am creating the image file? As noted in the comment here is the part of interest in adb logcat. Also I should note that I changed the way I create the image file. Since I want to create a file that reflects an online file I simply download it instead of creating a Bitmap and then creating the file (this was done because at some point I needed the Bitmap but now I do it the other way around). The problems persist thought and are exactly the same:

I/ActivityManager(18852): Starting
activity: Intent {
act=android.intent.action.VIEW
dat=/sdcard/Android/data/com.myapp/files/image.jpg
typ=image/* flg=0x3800000
cmp=com.motorola.gallery/.ViewImage }
I/ActivityManager(18852): Start proc
com.motorola.gallery:ViewImage for
activity
com.motorola.gallery/.ViewImage:
pid=29187 uid=10017 gids={3003, 1015}
I/dalvikvm(29187): Debugger thread not
active, ignoring DDM send
(t=0x41504e4d l=38)
I/dalvikvm(29187): Debugger thread not
active, ignoring DDM send
(t=0x41504e4d l=64)
I/ActivityManager(18852): Process
com.handcent.nextsms (pid 29174) has died.
I/ViewImage(29187): In View Image
onCreate!
D/AndroidRuntime(29187): Shutting down VM
W/dalvikvm(29187): threadid=3: thread
exiting with uncaught exception
(group=0x4001b170)
E/AndroidRuntime(29187): Uncaught
handler: thread main exiting due to
uncaught exception
E/AndroidRuntime(29187):
java.lang.RuntimeException: Unable to
start activity
ComponentInfo{com.motorola.gallery/com.motorola.gallery.ViewImage}:
java.lang.NullPointerException
E/AndroidRuntime(29187): at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2496)
E/AndroidRuntime(29187): at
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2512)
E/AndroidRuntime(29187): at
android.app.ActivityThread.access$2200(ActivityThread.java:119)
E/AndroidRuntime(29187): at
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1863)
E/AndroidRuntime(29187): at
android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime(29187): at
android.os.Looper.loop(Looper.java:123)
E/AndroidRuntime(29187): at
android.app.ActivityThread.main(ActivityThread.java:4363)
E/AndroidRuntime(29187): at
java.lang.reflect.Method.invokeNative(Native
Method)
E/AndroidRuntime(29187): at
java.lang.reflect.Method.invoke(Method.java:521)
E/AndroidRuntime(29187): at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860)
E/AndroidRuntime(29187): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
E/AndroidRuntime(29187): at
dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime(29187): Caused by:
java.lang.NullPointerException
E/AndroidRuntime(29187): at
com.motorola.gallery.ImageManager.allImages(ImageManager.java:5621)
E/AndroidRuntime(29187): at
com.motorola.gallery.ImageManager.getSingleImageListByUri(ImageManager.java:5515)
E/AndroidRuntime(29187): at
com.motorola.gallery.ViewImage.onCreate(ViewImage.java:1801)
E/AndroidRuntime(29187): at
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
E/AndroidRuntime(29187): at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2459)
E/AndroidRuntime(29187): ... 11 more

View 3 Replies View Related

Android :: Best Practice For Downloading File - URLConnection - HttpClient - Intent

Mar 11, 2010

If an app needs to download some critical data (without the data it cannot function) of several MB, what is the best practice? The app would start, a prompt would be shown to confirm download, download would commence, and the user would be prevented from going further until the download successfully completes. I don't expect the download would take more than, say, 10 secs over wifi but, of course, would take much longer over 2G. Is a service absolutely essential for this? Maybe there is already some code out there that takes a URL, downloads it in a service, and broadcasts a configurable Intent when the download has completed?

View 4 Replies View Related

Android :: Opening Local HTML File Via Browser Intent

Aug 31, 2009

My open source application needs to browse local HTML files on the SD card, and WebView is not enough because I need history and bookmarks. I wrote the following code. It correctly opens the browser, but fails to reach catalog.html and in fact it just opens whatever page was last browsed:

Uri uri = Uri.parse("content://com.android.htmlfileprovider/sdcard/ myapp/catalog.html");
Intent intent = new Intent(); intent.setData(uri); intent.setClassName("com.android.browser", "com.android.browser.BrowserActivity"); startActivity(intent);

View 2 Replies View Related

Android : Droid Email Intent Not Sending Attached File / Fix It?

Aug 29, 2010

I have created an app that sends an email with a recording, When the intent is fired and email is chosen as the app to send the attachment, you can see that there is an attachement but the attachment is not delivered. code...

View 1 Replies View Related

Android :: Correct Intent Filter Configuration To Associate File Type?

Nov 10, 2010

This question has been asked [numerous times] before, but I have not seen any definitive answers, or examples of code that actually works. I would like to associate an Activity with a particular file type. For discussion, assume that I want my Activity to be associated with PDFs. Here is what I currently have. I have experimented with many different values and combinations of values in the intent-filter, but I have yet to get my Activity to start when a PDF is selected.

<activity name="com.mycompany.MyActivity">
<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:scheme="file" />
<data android:mimeType="application/pdf" />
<data android:pathPattern="*.pdf" />
<data android:host="*" />
</intent-filter> </activity>

View 1 Replies View Related

Android :: Send Intent Attaching Photo From Sd Card As 0 Length File

Aug 17, 2009

I know a variant of this question was asked before trying-to-attach-a-file-from-sd-card-to-email But the solution offered, i.e. a reboot doesn't seem to do it for me. I have seen a good number of group postings which support this being a problem. I can only assume the OP for the linked to question made some other changes, possibly to the manifest which allowed his code to work.

The behaviour I am seeing is the Email intent handling the attachment of the jpeg from the sdcard but dealing with it as a 0 length file which is discarded when sent. I have tried setType as jpeg/image and image/jpeg as I have seen it expressed both ways....................

View 2 Replies View Related

Android : Intent To Pick File For Attachment / Stop To Playback Music?

Nov 5, 2009

In application I'm developing i need to open some standard dialog to browse files on the phone. After picking one file I'll attach it to the message. In Android Dev Guide i found such way to solve my problem...

But in that dialog, when I'm trying to pick sound file, i start to playback. And one more problem - using that dialog i can see only gallery and music tracks.

Is there any other way to display such kind of dialog? Or maybe stop to playback the music?

View 5 Replies View Related

Android :: Kernel - Basic Definition

Nov 1, 2010

what is a kernel? I'm just lookin for a basic definition.

View 2 Replies View Related

Android :: Way To Use XML View Declaration As Definition?

Sep 9, 2010

I want to create an android Layout of which I want to instantiate several copies. I understand that declaring the layout in an XML will create a single instance. Is there a way to use the XML View declaration as a 'definition' rather than a 'declaration' ? Or is it possible to clone a view?

View 4 Replies View Related

Android :: Expandable ListView Definition In Xml

Jun 24, 2010

I need to define the structure of ExpandableListView in xml file manually. Is there any guide or example of doing this?

View 1 Replies View Related

Android :: Ways Of Definition ID / What Is Difference?

Apr 1, 2010

There are several different ways of definition the ID. What is the difference? android:id="@id/android:list" android:id="@+id/android:list" android:id="@+id/confirm"

View 3 Replies View Related

Android :: Inconsistency On Definition Of Sign Of X Acceleration?

Oct 4, 2009

I'm just wondering...on Android Web, I could find two completely opposite ways of defining which direction the positive X acceleration is. http://developer.android.com/reference/android/hardware/SensorEvent.html At the bottom, it says "When the device lies flat on a table and is pushed on its left side toward the right, the x acceleration value is positive. " However, http://developer.android.com/reference/android/hardware/SensorListene..., it says "When the device is pushed on its left side toward the right, the x acceleration value is negative (the device applies a reaction force to the push toward the left) "

View 2 Replies View Related

Android :: Definition Of Sensor Event Rotation Angles

Jan 16, 2010

I'm trying to figure out exactly how to interpret the rotation angles produced by a Sensor Event for Sensor.TYPE_ORIENTATION. Unfortunately, the documentation (http://developer.android.com/reference/android/ hardware/Sensor Event.html#values) doesn't give a complete definition of it. It defines what the axes are, but doesn't specify what order the three rotations are applied in, nor whether the later rotations are around transformed or untransformed axes. Without knowing that, it's impossible to know what the actual rotation is that's being described.

View 3 Replies View Related

Android :: Jar Dependencies / No Class Definition Found Exception

Mar 29, 2010

I resolved this issue myself. It turns out that the activation framework requires some libraries that aren't native to android, myjava.awt.datatransfer, org.apache.harmony.awt.*, and org.apache.harmony.misc. Once i added those libraries everything worked fine. Code...

View 2 Replies View Related

Android :: Facebook SDK - Java.lang.NoClass Definition Found

Jul 9, 2010

I am using official android facebook SDK (downloaded from here: http://github.com/facebook/facebook-android-sdk). When the program reaches the line Facebook facebook = new Facebook(); i get "java.lang.NoClassDefFoundError: com.facebook.android.Facebook". I created a facebook project from sources downloaded and in my project I added the facebook project in buildpath (in Eclipse right click on my project -> Properties -> Java build path -> Projects -> add projects -> I choosed the facebook project). The project builds ok, I have no errors.

View 1 Replies View Related

HTC Droid Eris :: What Is Your Definition Of Lag?

May 4, 2010

Question and title is pretty much simple.

View 26 Replies View Related

Nexus :: Definition Of Terms Like Rooted

Jul 11, 2010

Like to know if there's a place that explains all those terms like root, adb, unlocked, etc... and not just steps to do them? My new nexus one could use some "WOooowww" moment.

View 7 Replies View Related

HTC EVO 4G :: Any Way To Make High Definition Videos From Old Ones?

Jun 29, 2010

Is there a way to make the old videos from your previous cell phone into High Definition videos for the EVO?

View 5 Replies View Related

General :: Mod Camera Of Optimus G To High Definition?

Apr 21, 2013

i'm using lg-optimus g (not of at&T my phone have 13Mpx of camera).i really like this phone but camera of this too bad,not good than camera of optimus g at&t(only 8 Mpx) i don't understand.mod for better camera.i heard that camera of this phone have made by sony but this take pictures too worse.

View 1 Replies View Related







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