Android :: Error Opening Main.xml File
Feb 5, 2010
I am staring to learn android, I have done everything as mentioned in the guide, and I tried the hello android example.
But I just canīt open the main.xml file to edit, it give me this error: Could not initialize class java.awt.Font. I am on linus kde.
I donīt what I should do, and please avoid any solutions that use 'sudo' as I am not authorized to do that as I am using the university PC.
View 1 Replies
Jul 19, 2010
Im writing a program that offers a quick reply dialog upon receipt of an SMS.
However, I am getting an unexpected result. When I receieve an SMS, the appropriate dialog activity comes up displaying the correct phone number and message, however there is a second activity behind it that is the 'default' activity in my program (it is what opens when i launch my application)
I do not want this second activity to come up. The quick reply activity should come up by itself over top of whatever the user was doing before.
The 'floating' activity:
CODE:.........
The call to the activity inside an onReceive()
CODE:..............
The Manifest:
CODE:.................
View 1 Replies
View Related
Mar 17, 2010
I am facing difficulty in Chm Reader so if anyone have idea about how to open Chm file on Android phone.
View 2 Replies
View Related
Oct 8, 2010
I have included camera functionality in my application. I have also launched the app in the market. I got an error message from one of the users that he is getting an error while opening the camera...
I have tested the app on the device on 2.1. The error i got from the user is using nexus one which will mostly run 2.2...Here's the logcat error that i received...
java.lang.RuntimeException: setParameters failed
CODE:............
I ran the app on 2.2 emulator also to check it. But it worked fine. can anyone please tell me why the error is occuring?
Here is the class which i mentioned in the comments :
CODE:..................
View 1 Replies
View Related
Apr 5, 2009
I'm getting some weird behavior when I try to open a file within a service:
CODE:...............
View 3 Replies
View Related
Jul 5, 2010
I have a swf file on the sdcard and I wrote a html file flash.html with the swf file embeded. The only way to open it now is:
1) open the browser
2) type in file:///sdcard/flash.html The swf runs fine.
But if use the code list below:
Uri uri = Uri.parse("file:///sdcard/flash.html");
Intent intent = new Intent(Intent.ACTION_VIEW, uri);
startActivity(intent); It shows the error: The application has stopped unexpectly.
I also tried the following code using:
WebView: WebView browser = (WebView) findViewById(R.id.list_web);
browser.loadUrl("file:///sdcard/flash.html");
The Webview showed up, but the area should start the swf is empty. So is there a way to open the html through code? I also think if there is a way to open the android browser using ACTION_VIEW by a simple html then reset the URL to be "file:///sdcard/ flash.html" through code?
View 2 Replies
View Related
Mar 6, 2010
I just started a new Android project, "WeekendStudy" to continue learning Android development and I got stumped compiling the default 'hello weekendstudy' compile / run. I think that I missed a step in configuration and setup, but I am at a loss to find out where. I have an AVD configured, set and launched.
When I press 'run', the SDK is building a file main.out.xml and then fails as this code...
View 11 Replies
View Related
Jun 3, 2010
I am having problems opening pdf's from webpages via links. When I click the link, it tells me that the pdf is downloading, and then promptly tells me that the download has been unsuccessful.Is there a setting I need to change?Also, my second problem is that I use Googlemail, and some 'links' to webpages within an email do not work, they are not a 'clicky' email Is this a desire problem, or a googlemail problem or me?
View 2 Replies
View Related
Jul 5, 2010
My requirement is to open one app's Asset file from another app via content provider.(I am exposing that file with ContentProvider implementation)I am able to open few files and read, but while opening some files I am getting exception. Please find the implementation for opening Asset File.Can anyone point out me, in what scenarios, we will get this exception.
View 1 Replies
View Related
Apr 6, 2010
I'm new at Android world, and i have a doubt, is there any method that give me the name of the id's i create in main.xml?
For example i have this:
main.xml
<TextView android:id="@+id/text1"
android:layout_width="70px"
android:layout_height="70px"
android:text="Google"
/>
<TextView android:id="@+id/text2"
android:layout_width="70px"
android:layout_height="70px"
android:text="As"
/>
And what i want is the id name from the two TextView, is there any method that i can use in my class .java that give me for this example the id? In this case i want the (text1 and text2).
View 2 Replies
View Related
Dec 1, 2009
I have the HTC Hero and have set up my email with the exchange (aka my work email). I get all my emails but when I try to open an attachment, it tells me "Alert... Network Error". Is there anything I can do to be able to download and view my attachments.
View 3 Replies
View Related
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
Dec 19, 2009
I have a .gif file inside the assets folder like this assets/Files/android.gif. when I try to open the file it throws an exception at the second line.
CODE:...........
so is it that I'm trying to open an image file despite that the same code works if I try to open a text file?
View 3 Replies
View Related
Dec 28, 2011
I am using APP Inventor, but it put my question as general from Android. How can i directly download a file from WEB without the browser try to open it.
I i put a url like: privatesite.blablabla/image.jpg
He will put the image in the browser, because browser can load the file and show it on screen, but i want to download it without reading it.
I need that to put inside App inventor, but if it's possible to do it in HTML or other, that's ok, i think i can make app inventor run an external application.
View 3 Replies
View Related
Apr 2, 2010
Ever since upgrading to 2.1v2, I get this message probably every hour. The process com.htc.bg has stopped unexpectedly. Please try again. Sometimes it comes up on its own, sometimes when I am opening applications, etc. Anyone else get this with the 2.1v2 leak?
View 49 Replies
View Related
Jan 12, 2010
There is an application i'm trying to use on my phone. the file type is .jad and when i try to dl and open it i get a "no application can be found to open this file". is there anyway to convert this to a file type i can use or is the anderiod simply not compatible with this?
View 2 Replies
View Related
Jun 22, 2010
I want to create a grid of images with text right below the images.
I created in a xml file a image_text item which basically is a linearlayout with and imageview and a textview right below.
I created a tablelayout and I want to add my custom image_text.xml to the table row. But I dont know how to reference my xml file inside. If I use the include statament, how do I pass the image id and text to my item_text.xml? code...
View 1 Replies
View Related
Apr 29, 2010
i have begun receiving a "Sign-in error" for the main Gmail account I set up the phone with. It stays in the notifications bar and if I try to input the password it authenticates forever then tells me the password or login are incorrect.Weirdest part though is I can still access the account and it appears i am still receiving push notices.
View 2 Replies
View Related
May 25, 2010
I've extended my wireless network to cover some weak areas in our house. The original wifi router is in my upstairs office, but gave poor coverage in some downstairs rooms, so I set up an "extended service set" wireless network with two access points, the original router upstairs and a Solwise homeplug WiFi extender extender downstairs (with a powerline link between the wireless router and the Solwise wifi extender), each using a different channel but the same WPA password.Every other wireless device in the house works happily between the two, but my Desire only seems to want to log on to the main router and defaults to mobile internet access in the 'difficult' areas. It seems to repeatedly try to get an address from the network downstairs, but reports 'unsuccessful' and keeps retrying.Any suggestions?
View 1 Replies
View Related
Apr 21, 2009
I have made a game with just one activity.. I just replace the views when I want to change screen. The game runs fine for a really long time inspite of what ever I do within the game.
But once I close the main game, by calling finish on the only activity in the application, and then when I start again, within the next 30 secs it crashes telling VM budget exceeded..
When I don't have a dispose() or a delete method in JAVA.. how the, am I supposed to remove the objects used in memory.. moreover I have android:launchMode="singleInstance" in my manifest
View 4 Replies
View Related
Dec 17, 2009
1. Tried opening a PDF file (2mb) on my gmail application. Tried to open "PDF Viewer" and it said "file can not be viewed. I know the PDF is a good file because it opened just fine on my computer. I have tried to open other PDF's and they work just fine. Any suggestions?
2. Tried to open a video as a wmv file on my gmail application. Loaded fine with sound only, no video. Any Suggestions?
3. Is there a screen lock feature where you can put your phone in your pocket while on your bluetooth headset?
View 6 Replies
View Related
Jun 17, 2012
In any application where you need to scroll down to access more posts or something, how do you create the scrollbar within its main.xml file? I've tried ScrollView and HorizontalScrollView, but nothing seems to work.
View 2 Replies
View Related
May 5, 2010
Since yesterday everytime I open my layout Editor in Eclipse for the Android UI the last part goes on and on as expected if an Stackoverflow Exception occurs.Anybody else experiencing this and found a solution?I'm working with the latests android sdk on Mac OS X with Eclipse 3.5.2.I just installed the Carbon Version of eclipse and I get this error even in this fresh copy of eclipse.Very strange that I'm the only one experiencing this error. Maybe it is not an Eclipse problem but an problem of my project setup.
View 2 Replies
View Related
Jul 9, 2010
The side bar in eclipse shows a red cross on the title of my project folder but there are no such signs in the directories below it in hierarchy. In which particular file does error exist? How can I know that
View 3 Replies
View Related
Oct 21, 2010
Is it possible to place a link or widget on the main screen that will allow me to directly open a pdf file stored on the external sd card?
View 3 Replies
View Related
Nov 7, 2010
I have a main activity, then i call a new activity intent from this. Lets call this SecondActivity. Then from my secont activity i call a browser intent. Then my browser intent call my second activity's onNewIntent method.Evereything work fine, but when i click on "back" button on my phone on my second activity, i will not going to my main activity, but the browsers activity, why?
View 1 Replies
View Related
Aug 7, 2010
I have htc evo 4G with sprint and this is the software information
droid 2.1-update1
baseband: 2.05.00
Kernel: 2.6.29
software number: 1.47
PRL version: 60667
and i've been trying to root this so i can use other application and wifi tether however everytime i tried i always get this error " MAIN FOLDER IS OLDER , MAIN UPDATE FAIL!"
I used unrevoked - does not work then i restore to factory setting THEN i tried simpleroot get message Main Folder is older, main update fail!. I also have tried to do Restart the PHONE and press the power button and hold the volume button up (but i have upload the PC36IMG.ZIP before i reboot) THIS does not work either get same message.
IF anyone can help me with this root and PM me your PAYPAL i willing to pay $10 to give me detail instruction (step by step how to get this root)
After rooter i need to know if possible to update somehow to get my FLASH working or it have to be update to droid 2.2 (if i update to 2.2 after rooted, will it lose all my rooted previously assuming its already successfully rooted)
View 4 Replies
View Related
Sep 14, 2010
error in .out.xml.file .. I changed some contents in main.xml file after i run the file it shows this error. I don't know how to fix this error.
View 1 Replies
View Related
Jun 26, 2010
I am trying out the HelloWorld example. I get an error when I want to create the strings.xml file: when I open the already default string.xml file in the project I get the error: An error has occurred. See error log for more details. java.lang.NullPointerException
The file looks like this: <?xml version="1.0" encoding="utf-8"?> <resources> <string name="app_name">Android the best but this sux</string> <string name="hello">Hello all this is a android app</string> </resources>
What is wrong. I can not seem to find it....
My machine: OS: Windows 7 64 bit enterprise
Eclipse: Version: Helios Release Build id: 20100617-1415
Installed 32 and 64 bit java latest version.
View 12 Replies
View Related
Oct 23, 2009
I created a sample project using the below command:
android create project --target 1 --name HelloAndroid --path ./ HelloAndroid --activity HelloAndroid --package com.helloandroid
Then attempted to build it using ANT. It gives the below error while creating the .dex file.
CODE:............
BUILD FAILED C:android-sdk-windows-1.6_r1platformsandroid-1.1 emplates android_rules.xml: 129: apply returned: 2
Total time: 5 seconds
View 3 Replies
View Related