Error in my application... please help me.. :(

by AndroidKid » Mon, 03 Nov 2008 14:19:55 GMT


Sponsored Links
 Hi,


I've done one application using Listview Concepts.

In my application, I've radio buttons for Languages. The user selects
any one of the language then I've displayed one list whose items are
"Baby, Google, Eclipse". If the user clicks any one of item then the
web browser will opened with corresponding videos.

If the user clicks any one of video then Download page will come. Once
the user clicks "Download Now" link then it will navigate to next page
with the link " Download Ready".

ERROR : If the user clicks the link "Download Ready" then I got some
error page. Then It goes back to Listview page.

I don't know what I've missed here. I've attached my entire source
code here. Can any one run this & fix the issue.

Expected Output : "Automatically the Video file must be downloaded
within PC under the folder "/res/raw" when the user clicks the link
"Download Ready in web page" and the video will display in the
emulator. "


Can't wait for your answer!!!

Thanks in advance for any reply from you!!!

Thanks Again!!!
Yasmin

--~--~---------~--~----~------------~-------~--~----~



Error in my application... please help me.. :(

by AndroidKid » Mon, 03 Nov 2008 14:30:03 GMT


 orry, I've forget to attach my source in my earlier post.

Main.xml
======

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
android:id="@+id/widget34"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical"
xmlns:android="http://schemas.android.com/apk/res/android"
<TextView
android:id="@+id/chooselanguage"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Select any one of the Language :"
android:layout_x="58px"
android:layout_y="45px"
</TextView>
<RadioGroup
android:id="@+id/radiogroup"
android:layout_width="309px"
android:layout_height="200px"
android:orientation="vertical"
<RadioButton
android:id="@+id/tamil"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Tamil"
</RadioButton>
<RadioButton
android:id="@+id/english"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="English"
</RadioButton>
<RadioButton
android:id="@+id/hindi"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Hindi"
</RadioButton>
<RadioButton
android:id="@+id/arabic"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Arabic"
</RadioButton>
</RadioGroup>
<Button
android:id="@+id/videolist"
android:layout_width="136px"
android:layout_height="37px"
android:text="View List of Videos"
</Button>
</LinearLayout>





Manifest.xml
==========

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.aspire.android.UserChoice"
android:versionCode="1"
android:versionName="1.0.0">
<application android:icon="@drawable/icon" android:label="@string/
app_name">
<activity android:name=".UserChoiceActivity"
android:label="@string/app_name">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category
android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name=".LanguageOneActivity"
android:label="@string/app_name">
<intent-filter>
<action android:name=
"com.aspire.android.UserChoice.LanguageOneActivity"/>
<category android:name=
"android.intent.category.DEFAULT"/>
</intent-filter>
</activity>
<activity android:name=".LanguageTwoActivity"
android:label="@string/app_name">


Sponsored Links


Other Threads

1. How to Put common header for entire application Like Android Market application

Hi all,
I am Working on develop an application .In my application i want to
Put application header as it look like "Android Market Application" .I
need help on following issues.
1)How to put all header same for all activities in the application.
2)How to put the common header like in android market application.
3)How to put a common footer for all activities in application.

If any one knows solution,please tell me,if possible send source code
for my understanding.

Thanks in advance.
RamMohan

-- 

2. Custom tabs customizable only to 99%

According to the 
http://developer.android.com/guide/tutorials/views/hello-tabwidget.html
example I'm able to use tabbed content, however problems arise if I'm
not satisfied with the default look (well, for my app, I'm not :)

In order to change the tab drawable, I'm using for each TabWidget
child setBackgroundDrawable(...) but this heads to a situation where
small strips on both side of selected tabs are still visible.

Thanks to this post

3. What are your suggestions about it.

4. Integrate ImageButton with ListActivity failed - List no longer selectable.

5. Layout problems: AbsoluteLayout deprecated, how to do it now?

6. HTC Hero Album app source code, anyone ?

7. (x,y) co-ordinates of touched area ?