Android :: Using Merge With Layouts Giving Error For One File

Sep 28, 2010

I am creating a few layouts with the root element being merge. inside the merge element i have a ScrollView containing a TextView. I am getting 2 errors: there is no resource to match the layout_below and layout above names i have put in.I have another layout xml file including very similar components, some of which also reference @id/headingLayout and @id/tabsLayout. Both of these XML layout files do not contain the component with name headingLayout or tabsLayout.Why is it that one layout file has no errors about these references and the other layout file does? What the crap am i doing wrong, the app will build and run like i expect, until i add this merge to another layout?I have even tried copying the xml from the working layout file, to find that it gives the same errors, something must be wrong with my new layout file. I have tried cleaning, rebuilding, opening/closing eclipse..

Android :: using merge with layouts giving error for one file


Android :: Using The Merge Tag In Layouts To Add External Layout Resource?

Oct 18, 2010

I have a layout I want to reuse, it looks like:

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

It is in a file called "reuseme.xml". Now I have an activity layout, which like the following, how can I incorporate the layout above into it?:

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

It seems that's possible, but I'm not sure how to use the merge tag to accomplish it?

View 1 Replies View Related

Android : Background Is Giving Error

Feb 2, 2010

I dont what to give any background to activity when i leave this propery blank it gives me error, and i have tried using @null as a value but it shows black background.can any one guide how to make it transparent?

View 2 Replies View Related

Android :: SQLite Query In Application Giving Error

Sep 30, 2010

Am I going wrong anywhere here ? because this is giving runtime error. application stopped unexpectedly.
I may b wrong in syntax.

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

View 1 Replies View Related

General :: Android Kernel Compilation Giving Error

Aug 21, 2013

I am new to android. i am try to compile android kernel 3.4.0 for HTC device.After running cross compile command,

"export CROSS_COMPILE=/home/jharvard/ndk-x86/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/arm-linux-androideabi-"

when I run make clean command "make clean && make mrproper".It shows errors,

/home/jharvard/kernel-code/linux/scripts/gcc-version.sh: line 25: arm-eabi-gcc: command not found
/home/jharvard/kernel-code/linux/scripts/gcc-version.sh: line 26: arm-eabi-gcc: command not found

View 1 Replies View Related

Android :: Video Recording / Source And Encoder Giving Error

Nov 18, 2009

When I add video source and video encoder, it gives error in recoreder.prepare() (prepare failed) while the same code is working only for audio. I am not finding what I am doing wrong.

setContentView(R.layout.camera);
preview=(SurfaceView)findViewById(R.id.surface);
previewHolder=preview.getHolder(); previewHolder.setType(SurfaceHolder.SURFACE_TYPE_PUSH_BUFFERS);
recorder = new MediaRecorder();
String url = "/sdcard/dcim/test.3gp";
camera = Camera.open();
Camera.Parameters parameters = camera.getParameters();
parameters.setPreviewSize(352, 288);
parameters.set("orientation", "portrait");
camera.setParameters(parameters);
recorder.setAudioSource(MediaRecorder.AudioSource.MIC); recorder.setVideoSource(MediaRecorder.VideoSource.CAMERA);
recorder.setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP);
recorder.setOutputFile(url);
recorder.setVideoFrameRate(15);
recorder.setVideoSize(480, 320);
recorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB); recorder.setVideoEncoder(MediaRecorder.VideoEncoder.H263);
recorder.prepare(); recorder.start(); Thread.sleep(100000);
recorder.stop(); recorder.release();
} catch (Exception e) { e.getMessage(); }

View 3 Replies View Related

APK Files Giving Parse Error?

Jul 9, 2013

I have recently gotten back into developing Android applications. However, every time I try to run an application on my phone now, I get the error message - "Parse Error - There is a problem parsing the package."

Two years ago, I used Eclipse to develop projects, which is what I'm using now. Though, I had to reinstall eclipse and everything else. So it's a new setup but I believe it's the same general setup.

I can put my old .apk files on my phone, and they work fine. If I put any newly created .apk files on my phone, I get the parse error.

I also found that if I compile any OLD projects and then copy those onto my phone, that I get the parse error.

This leads me to believe I've got something set up wrong in Eclipse that my phone isn't liking.

I thought maybe it was the virtual device manager, so I've tried several combinations of virtual devices - 1.5, 2.1, 2.2, 2.3.3 - using any of them still gives the parse error when trying to run the applications on my phone.

By the way, all of these projects work in the emulator running through Eclipse, so I know they work.

View 10 Replies View Related

General :: Install ROM Onto Phone / Keeps Giving Error

Feb 22, 2014

Lately I have been trying to install a ROM on to my phone, but I cant get the files onto my SD card. Keeps saying, "Cannot copy item. The device has either stopped responding or has been disconnected.". I just rooted the phone about a week ago and figured I would change the ROM. Also tried unblocking the files but got nowhere. Also tried other ROMs, nothing is working. But I can transfer files to and from my SD card with no error.

View 3 Replies View Related

Android :: Smack API Giving Error While Logging Into Tigase Server Setup Locally

Jun 4, 2010

I am currently developing android XMPP client to communicate with the Tigase server setup locally.Before starting development on Android I am writing a simple java code on PC to test connectivity with XMPP server.My XMPP domain is my pc name "mwbn43-1" and administrator username and passwords are admin and tigase respectively.Could anyone please tell me the solution for this problem.I checked the XMPPConnection.java file in the Smack API and it looks the same as given in the link solution.

View 3 Replies View Related

Samsung Captivate :: Browser Giving Error Often While On WiFi

Jul 22, 2010

Does anyone else have find their browser giving this error often while on WiFi? I have to disable and move to 3G just to get my connection back.

View 49 Replies View Related

General :: Galaxy Nexus On Stock 4.1.1 - Giving DF-BPA-09 Error?

Sep 15, 2012

Running a Galaxy Nexus on Stock 4.1.1 (rooted).Last week, Play Store randomly started giving me the DF-BPA-09 Error when I wanted to download new apps. Old apps would update fine. I searched XDA and found that turning Google Sync Off and restarting the phone solved it. It worked once or twice, but the problem kept coming back.

Then read another thread that said go to All Apps > Play Store >Uninstall Updates and Clear Data. I did this, and now when I start Play Store, it permenantly gives me 'Server Error', with a Retry Button below it.I have Titanium Backup Pro, so tried restoring an older version, tried Freezing and Unfreezing the App, still not working.

DF-BPA-09 Error used to come, Cleared Play Store Data and now stuck at Server Error.

View 4 Replies View Related

Android :: Tab View Initialization - XML File Layouts

Jul 2, 2010

I have a problem with a tab view on android. I am using 4 xml layout files (each a RelativeLayout) as the content for tabs in a tab view. The main.xml contains: TabHost (@android:id/tabhost) containing a linearLayout which contains a TabWidget (@android:id/tabs) and a FrameLayout (@android:id/tabcontent). If I embeded the multiple one after another in the in the main.xml everything works fine (except my main.xml is unmaintainable which is the problem I want to solve by splitting the files into a simple main.xml which defines the tab and the content frame and then push the views onto this). The code I have to inflate and insert the 4 RelativeLayout xml files into the tab content is as follows:

mTabHost = getTabHost(); View wv = null;
wv = LayoutInflater.from(this).inflate(R.layout.user_tab, mTabHost.getTabContentView(), true);
mTabHost.addTab(mTabHost.newTabSpec("User").setIndicator("User").setContent(wv.getId()));
wv = LayoutInflater.from(this).inflate(R.layout.track_tab, mTabHost.getTabContentView(), true);
mTabHost.addTab(mTabHost.newTabSpec("Track").setIndicator("Track").setContent(wv.getId()));
wv = LayoutInflater.from(this).inflate(R.layout.chart_tab, mTabHost.getTabContentView(), true);
mTabHost.addTab(mTabHost.newTabSpec("Chart").setIndicator("Chart").setContent(wv.getId()));
// And so on for the multiple tabs.

When I run this the first tab (User) is empty and the remaining tabs have all the content from all the views. So tab2 has the content from tab1-4, tab3 has the content from tab1-4 and tab4 has the content from tab1-4. Returning to tab1 it then has all the content from tab1-4 now. The code works just fine, the events on the various objects in the views etc all are good. It is just that they are all muddled together in the view. What is causing this and how to correct it?

View 2 Replies View Related

Android :: Setup Different Layouts In 1 XML File In Droid

Oct 27, 2010

I have set my layout thru TabLayout within LinearLayout but still my button in the end couldn't be set properly as TabLayout divides all the fields in number of columns so can anyone help how to set 2 Layouts in one XML file
means all the fields in TabLayout and remaining both Login and Register buttons in Linear Layout ore some other so that they can set properly. code...

View 2 Replies View Related

HTC Droid Eris :: Preloaded YouTube Application Giving Error?

Apr 8, 2010

My youtube app that came installed on the phone already gives me an error when trying to play videos.

View 6 Replies View Related

HTC EVO 4G :: Yahoo Mail Not Working And Giving Authentication Error When Trying To Re-add Account?

Sep 8, 2010

Is anyone else all of a sudden having problems with Yahoo mail not working and giving an authentication error when trying to re-add the account?

ETA: I just found that these settings work but I have to disable WiFi which is total BS
For Incoming Server Settings set the IMAP server to imap.mail.yahoo.com and the Port to 143
For Outgoing Server Settings set the SMTP Server to "smtp.mobile.mail.yahoo.com and the Port to 587

View 2 Replies View Related

Android :: Multiple Activites That Share 75% Of Layout - Layouts Within Layouts?

Sep 6, 2010

I'm creating a game where there's a screen that, for the most part, is shared by four different activites - but a key portion of the screen will be completely different, depending upon which activity is active. Basically, on the left will be an image of the player and along the bottom there will be a row of buttons (let's say for Armour, Weapons, Magic, Skills). This leaves the top-right portion, which will need to dynamically change to represent the button pressed. (So, one moment the top-right portion is the armour selection activity, and the next it's the weapon selection activity, and so on.)

Is this possible? Can I have a layout within a layout and dynamically point the nested layout at a (nested) layout.xml of my choosing? Or, am I looking at just duplicating most of the layout four times (for the four different activities?) Or, am I going to be looking at linking the four activities to a (the top-right) view component, and then having to dynamically construct all of *that* view's child views based on the currently active activity? Well, that's about as much sense as I can make this question make.

View 4 Replies View Related

General :: Samsung Galaxy ACE 2 - Create Folder Giving Error Creation Failed?

Jun 27, 2012

Im here because of my problem with SGA 2.Few days ago I bought ACE 2 and I found few problems with "external_sd".So the problems are

1. When I try to create folder it gives me error "Creation failed"

2. When trying to move folder from internal memory to external sd it gives me error like "Moving failed", while copying goes fine.

3. I can move/copy any file to sd card, but sometimes those files got corrupted, gives me error about memory when trying to open pictures, same problem when saved camera saved photo to sd card. Even getting error when trying to play video.

APK files got corrupted too.

4. When I have moved apps to sd card some while apps work great, but after some time cant launch apps because it gives me error about that app doesnt exist.

I tried formatting sd card with pc and android.

Factory reset.

Repartition to same firmware with Odin.

Wipe cache, wipe data.

I dunno what causes those error, bugs, glitches. Is it phone or android sytem?

Tried many sd card and always got same errors. But when I mounted mine sd card to another phone it worked perfect.

View 2 Replies View Related

General :: Best Way To Merge Back APK And ODEX Files To Be 1 (APK) File

Oct 5, 2010

way to get the 2 files of .apk and .odex to get back to their original state of only one install-able package .apk file..

I tried the "de-odexing" method of the Android Kitchen, but it didnt seem to be working fine. Error message of "There is a problem prasing the package."

how I can extract a single application from Stock or Customized ROM?

building a rom that supports multi languages that comes with Market installed within it and having root access.

View 6 Replies View Related

General :: Merge Two WAV Files - Result Sound File Is Empty

Sep 8, 2012

First there is this:

Code:
File wave1 = new File(wavFile1);
if(!wave1.exists())
throw new Exception(wave1.getPath() + " - File Not Found");

[Code]...

but android dosen't support java.sound.sampled

there is also this:

Code:

private void merge2WavFiles(String wavFile1, String wavFile2, String newWavFilePath) {
long RECORDER_SAMPLERATE = 44100;
long RECORDER_BPP = 16;

[Code]...

but is also dosen't work.

In all cases the result sound file is empty without sound.

How can I merge two *.wav files?

View 1 Replies View Related

Android :: Android App Keeps Giving Me A Leak Found Error

Oct 31, 2010

I am working on an Android app but I keep getting a Leak Found error. Here's the Call Stack:
11-01 11:26:47.087: ERROR/Database(7317): Leak found
11-01 11:26:47.087: ERROR/Database(7317): java.lang.IllegalStateException: /data/data/com.noshufou.android.su/databases/permissions.sqlite SQLiteDatabase created and never closed
11-01 11:26:47.087: ERROR/Database(7317): at android.database.sqlite.SQLiteDatabase.<init>(SQLiteDatabase.java:1792)
11-01 11:26:47.087: ERROR/Database(7317): at android.database.sqlite.SQLiteDatabase.openDatabase(SQLiteDatabase.java:798)
11-01 11:26:47.087: ERROR/Database(7317): at android.database.sqlite.SQLiteDatabase.openOrCreateDatabase(SQLiteDatabase.java:857)
11-01 11:26:47.087: ERROR/Database(7317): at android.database.sqlite.SQLiteDatabase.openOrCreateDatabase(SQLiteDatabase.java:850)
11-01 11:26:47.087: ERROR/Database(7317): at android.app.ApplicationContext.openOrCreateDatabase(ApplicationContext.java:535)
11-01 11:26:47.087: ERROR/Database(7317): at android.content.ContextWrapper.openOrCreateDatabase(ContextWrapper.java:193)
11-01 11:26:47.087: ERROR/Database(7317): at android.content.ContextWrapper.openOrCreateDatabase(ContextWrapper.java:193)
11-01 11:26:47.087: ERROR/Database(7317): at android.database.sqlite.SQLiteOpenHelper.getWritableDatabase(SQLiteOpenHelper.java:98)
11-01 11:26:47.087: ERROR/Database(7317): at com.noshufou.android.su.DBHelper.<init>(DBHelper.java:28)
11-01 11:26:47.087: ERROR/Database(7317): at com.noshufou.android.su.UninstallReceiver.onReceive(UninstallReceiver.java:10)
11-01 11:26:47.087: ERROR/Database(7317): at android.app.ActivityThread.handleReceiver(ActivityThread.java:2637)
11-01 11:26:47.087: ERROR/Database(7317): at android.app.ActivityThread.access$3100(ActivityThread.java:119)
11-01 11:26:47.087: ERROR/Database(7317): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1913)
11-01 11:26:47.087: ERROR/Database(7317): at android.os.Handler.dispatchMessage(Handler.java:99)
11-01 11:26:47.087: ERROR/Database(7317): at android.os.Looper.loop(Looper.java:123)
11-01 11:26:47.087: ERROR/Database(7317): at android.app.ActivityThread.main(ActivityThread.java:4363)
11-01 11:26:47.087: ERROR/Database(7317): at java.lang.reflect.Method.invokeNative(Native Method)
11-01 11:26:47.087: ERROR/Database(7317): at java.lang.reflect.Method.invoke(Method.java:521)
11-01 11:26:47.087: ERROR/Database(7317): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:862)
11-01 11:26:47.087: ERROR/Database(7317): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:620)
11-01 11:26:47.087: ERROR/Database(7317): at dalvik.system.NativeStart.main(Native Method)
The problem is I don't use a database anywhere in my code.EDIT:Here is the code snippet of the whole program. Also I only get this error sometimes and sometimes I don't which is another weird thing. Here is the main Activity:public class SetAlarmUI extends Activity {TextView mTimeDisplay;Button setAlarmButton;
private Calendar time;
private int alarmHour;
private int alarmMin;
static final int TIME_DIALOG_ID = 0;Toast toast

View 2 Replies View Related

Android :: Error In .out.xml.file

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

Android :: Error In An XML File Eclipse

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

Android :: Error Creating Dex File While Building Using ANT

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

Android :: Error Creating File On SD Card

Apr 1, 2009

I would like to write a file to the SD card from my application, but the following code throws an IOException when debugged on a T-Mobile G1:

String p = Environment.getExternalStorageDirectory() + "/log.txt"; File recfile = new File(p); recfile.createNewFile();

The last line throws an IOException with detailMessage = "Cannot create: /sdcard/log.txt". The MOUNT_UNMOUNT_FILESYSTEMS permission is set in the manifest. And yes, I really do want to write to the SD card; I don't want to use the logging features Android includes for this particular application. The Android documentation does not seem to give any specifics on how one might write files to removable storage in "Data Storage" under "Framework Topics". What am I doing wrong, or where can I read more about this topic?

View 6 Replies View Related

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 View Related

Android :: Error On Installing .apk File With Version 2.1

Aug 26, 2010

I just worked my Android application with device (HTC Magic) version 1.5 and it loads properly and when i try to load the same application with the other phone by installing the .apk file of version1.5 with android version 2.1 and kernel version 2.6.29 omap1 but now i couldnt find my application getting installed on my device...

I have sent a link to view the screenshot for error http://img137.imageshack.us/img137/6411/img0981jw.jpg.
In the screenshot you can see Quadmon icon on top and it says it can not install app in Korean.

I have just followed the instructions given in this link (http://www.waxworlds.org/edam/software/android/how-to-install-an-apk-on-your-android-device) to install .apk file into my htc magic phone.

Is there any other way to get distributed my apk file into the device?

View 1 Replies View Related

Android :: Market - Error While Uploading APK File

Oct 4, 2010

Just now i have developed an application and now i am ready to upload it on Android market,
but when i am trying to upload, it showing the following error messages:

Market does not accept apk signed with the debug certificate. Create a new certificate that is valid for atleast 50 years. Market requires that the certificated used to sign the apk be Valid until at least October 22, 2033. Create a new Certificate. how do able to upload the APK file on Android market successfully.

View 1 Replies View Related

Android :: Pakage File Invalid Error

Nov 22, 2010

I have a mytouch slide and I'm getting an pakage file invalid error when I try to install an app.

View 1 Replies View Related

Android :: Out Of Memory Error .. Trying To Parse XML File

Nov 5, 2009

In my application. I tried to parse XML file. First time it executed correctly. Second time it is showing Out Of Memory Error.

My XML file contains 15000 lines.

can any one know about this?...

My log cat is given below:

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

View 2 Replies View Related

Android APK File Gives Parse Error On Download

May 15, 2012

I am getting a parse error when i try to download the .apk file from one of our custom web sites. We are using IIS 7 and i did set the MIME type to "application/vnd.android.package-archive".

if you have come across similar issue while downloading the apk file from a web site and not from Android Market.

View 8 Replies View Related







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