[android-beginners] New Blog to solve Android starting issues mcondev.wordpress.com

2010-03-19 Thread MCON Dev
We have a new blog, for helping people who are hoping to get started with
android development. Feel free to comment and ask for more blog times on
issues.

http://mcondev.wordpress.com

Hope you like it
mConDev Team

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en

To unsubscribe from this group, send email to 
android-beginners+unsubscribegooglegroups.com or reply to this email with the 
words REMOVE ME as the subject.


[android-beginners] TableLayout will not draw new row addition

2010-01-17 Thread MCON Dev
I have  TableLayout defined in the main.xml. Simple, 1 header row and 1 data
row.
TableLayout android:id=@+id/*reportsTable*
android:layout_width=fill_parent
android:layout_height=wrap_content
TableRow
TextView android:id=@+id/DateOfReport
android:text=Report Date
android:textSize=14px
android:layout_width=wrap_content
android:layout_height=wrap_content /
TextView android:id=@+id/HeightHeading
android:text=Height
android:textSize=14px
android:layout_width=wrap_content
android:layout_height=wrap_content /
TextView android:id=@+id/WeightHeading
android:text=Weight
android:textSize=14px
android:layout_width=wrap_content
android:layout_height=wrap_content /
/TableRow
TableRow android:id=@+id/r1
android:layout_width=wrap_content
android:layout_height=wrap_content
LinearLayout android:orientation=horizontal
android:layout_width=fill_parent
android:layout_height=wrap_content
EditText android:id=@+id/dateOfReport
android:text=DD/MM/
android:textSize=11px
android:layout_width=wrap_content
android:layout_height=wrap_content /
Button android:id=@+id/changeReportDate
android:text=...
android.textSize=12px
android:layout_width=wrap_content
android:layout_height=wrap_content /
/LinearLayout
EditText android:id=@+id/height
android:text=inCmOrInch
android:textSize=11px
android:layout_width=wrap_content
android:layout_height=wrap_content /
EditText android:id=@+id/weight
android:text=inKgOrPound
android:textSize=11px
android:layout_width=wrap_content
android:layout_height=wrap_content /
/TableRow


Now in the code I have a function defined that adds a new row.


private TableRow createNewTableRow(TableRow newRow){
newRow.setLayoutParams(new
LayoutParams(LayoutParams.WRAP_CONTENT,LayoutParams.WRAP_CONTENT)) ;
LinearLayout newLinearLayout = new LinearLayout(appActivity) ;
newLinearLayout.setOrientation(LinearLayout.HORIZONTAL);
newLinearLayout.setLayoutParams(new
LayoutParams(LayoutParams.FILL_PARENT,LayoutParams.WRAP_CONTENT)) ;
EditText newReportDate = new EditText(appActivity) ;
newReportDate.setTextSize((float) 11.0);
newReportDate.setLayoutParams(new
LayoutParams(LayoutParams.WRAP_CONTENT,LayoutParams.WRAP_CONTENT)) ;
Button changeReportDate = new Button(appActivity) ;
changeReportDate.setTextSize((float) 12.0);
changeReportDate.setLayoutParams(new
LayoutParams(LayoutParams.WRAP_CONTENT,LayoutParams.WRAP_CONTENT)) ;
changeReportDate.setText(...);
EditText newHeight = new EditText(appActivity) ;
newHeight.setTextSize((float) 11.0);
newHeight.setLayoutParams(new
LayoutParams(LayoutParams.WRAP_CONTENT,LayoutParams.WRAP_CONTENT)) ;
EditText newWeight = new EditText(appActivity) ;
newWeight.setTextSize((float) 11.0);
newWeight.setLayoutParams(new
LayoutParams(LayoutParams.WRAP_CONTENT,LayoutParams.WRAP_CONTENT)) ;

newRow.addView(newLinearLayout);
newLinearLayout.addView(newReportDate);
newLinearLayout.addView(changeReportDate);
newRow.addView(newHeight);
newRow.addView(newWeight);
return newRow ;
}



Now, in the main code I call this function

if (v == (View) *addReportWidget*) {
TableRow newRow = new TableRow(appActivity, null);
*reportsTableWidget*.addView(createNewTableRow(newRow));
reportsTab.invalidate();
}

Now, the new row just wont show up. If I run the code in the debugger, and
watch *reportsTableWidget*.mChildren, everytime I click on *addReportWidget*,
a new entry shows up in the debugger watch variables.

What am I missing. Very frustating, please advice me.

Regards
Siddharth
-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] User Interface macro's, how to define and use

2009-12-31 Thread MCON Dev
I need some advice, on designing and implementing a good coding practice for
user interface development.

This is what I am trying to acheive
UI 1
--
| button1 | button 2 | button 3 | button 4 |
--
||
 ||
 ||
 ||
 |  Content 1|
 ||
||
 ||
 ||
||
--

Hit button 2

UI 2
 --
| button1 | button 2 | button 3 | button 4 |
--
||
 ||
 ||
 ||
 |  Content 2|
 ||
||
 ||
 ||
||
--

I have 2 xml files, UI1.xml and UI2.xml. Its obvious, I need to write
duplicate code for the above linear set of buttons. Can I do it all using
just xml ? Please advice.

For now, I am using TabHost Layout :). I need thoughts on xml macro's.

Siddharth

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Conversion to Dalvik format failed with error 1

2009-12-10 Thread MCON Dev
Hi,

Using android on eclipse can be frustating sometimes.You create a new
android project and just cant get it to build, run or clean out the errors
eclipse shows up. Most of all, you can get vague errors like the below.
Frankly its about time a bug gets logged and fixed, its adding to startup
frustation right. Someone in google should hear this.

Conversion to Dalvik format failed with error 1
Could not *find* HelloAndroid.*apk*
Updates (from 0.9.1. to 0.9.5) dont work, vague error there too some
org.eclipse.something is not linking (google, if you are hearing, just do a
google search out there find out the issues people are facing). Uninstalls
dont work.

Did a major research :), to figure out how to fix it. Found many that
helped, found many that did not. And I am not alone there.

So this is what I did and it worked.
- Close all projects
- Restart Eclipse
- Uninstall both Android under Help-SoftwareUpdates
- Restart Eclipse
- Uncheck all under Help-SoftwareUpdates-AvailableSoftware, except the
dl-sslgoogle one, install it
- Restart Eclipse
- Create a new project now, same problem eh!! :)
- In the root directory of the project you just created, open the .classpath
file. Cahnge it to the following
*?xml version=1.0 encoding=UTF-8?
classpath
 classpathentry kind=src path=src/
 classpathentry kind=src path=gen/
 classpathentry kind=output path=bin/
classpathentry kind=con
path=com.android.ide.eclipse.adt.ANDROID_FRAMEWORK/
/classpath*
- Main Menu - Project - Clean
- Project Explorer - New Project you just created - Right Click -
Properties - Android - Check Android 1.5 - Hit Apply (a lot of magic happens
in the console tab on the project)
- Project Explorer - New Project you just created - Right Click -
Properties - Java Build Path - Libraries - Verify if you see a Android 1.5
and not a android.jar.
*The only way to add a Android 1.5 is to edit the classpath file. Google,
you should fix this. It would be nice to know what Android 1.5 signifies
here, a jar, external jar, variable, class folder, external class folder or
library(usability issue, think about it, how do I add a Android 1.5 from UI,
no way now right). Also it would be nice if the create new android project
would fix this automatically.*

Siddharth

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en

[android-beginners] Re: Learning? Windows or Linux?

2009-07-14 Thread MCON Dev
I have compared multiple Linux distro's before I started with Android. As of
now I have a windows setup and a Fedora setup. I love the fedora setup.
Windows is really slow. Fedora zips fast with android development.
I have tried OpenSuse and Debian before Fedora.
Siddharth

On Tue, Jul 14, 2009 at 9:56 PM, mjlissner mjliss...@gmail.com wrote:


 I'd also add that if you're planning on doing much coding, in the long
 run knowing Linux and the way it thinks about things is pretty
 valuable. It reveals many of the details of how things work that
 Windows just doesn't do, or doesn't do as well.

 Again though, the sweeping generalization caveat should apply.

 M

 On Jul 13, 10:18 pm, wonglik wag...@gmail.com wrote:
  I would say it is pretty much up to preferences. Android SDK works
  both on Linux and windows.
  I personaly believe that Linux is better environment especially in
  terms of coding.
  The only real difference in the systems in Android domain I know is
  that compiling android os from sources works only on Linuxes and
  MacOS , so if you plan to play with those windows is not for you.
 
  m
 
  On Jul 13, 7:12 pm, tdapple tdap...@gmail.com wrote:
 
   Hello,
 
   I am very interested in working with google stuff, including android.
   Which leads me to Java. I am wondering if Windows is good enough for
   working on android and various other google stuff...wave, voice and
   stuff.Any advice on best system set up would be great to get me
   started...
 
   Also interested in python, but can't make android apps with it as far
   as I know.
 
   Thanks
 
 

 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Avd issues

2009-07-14 Thread MCON Dev
What did you try, What error did you get ?
Send snapshots of the result. Copy paste the code and manifest file. What do
you intend to do. Give more details dude..
Siddharth

On Tue, Jul 14, 2009 at 11:25 PM, stephen rigg stevie...@gmail.com wrote:

 I need major help, I've followed all instruction all the way up till the
 first cmd code nd keep receive error like messages back.
 Pl help

 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Android application trying out rss feed read using Rome. Getting exception ExceptionInInitializerError

2009-07-12 Thread MCON Dev
Hello All,
I am trying to write some test code to receive RSS feeds. I am using the
ROME api's. But I am getting a exception when executing the following line
of code
  SyndFeed feed = new SyndFeedInput().build(reader);
I googled this exception and found the following. I dont know if thats
helpful or not. Please advice me on my next steps.
Ok, I figured it out after traversing through the Rome code.
ClassLoader isn't supported by Android's DalvikVM. Is there an
implementation of this project that doesn't use ClassLoader?
*Exception Stack*
Thread [3 main] (Suspended (exception ExceptionInInitializerError))
 SyndFeedInput.build(Reader) line: 123
 MainActivity.onCreate(Bundle) line: 42
 Instrumentation.callActivityOnCreate(Activity, Bundle) line: 1123
 ActivityThread.performLaunchActivity(ActivityThread$ActivityRecord) line:
2231
 ActivityThread.handleLaunchActivity(ActivityThread$ActivityRecord) line:
2284
 ActivityThread.access$1800(ActivityThread, ActivityThread$ActivityRecord)
line: 112
 ActivityThread$H.handleMessage(Message) line: 1692
 ActivityThread$H(Handler).dispatchMessage(Message) line: 99
 Looper.loop() line: 123
 ActivityThread.main(String[]) line: 3948
 Method.invokeNative(Object, Object[], Class, Class[], Class, int, boolean)
line: not available [native method]
 Method.invoke(Object, Object...) line: 521
 ZygoteInit$MethodAndArgsCaller.run() line: 782
 ZygoteInit.main(String[]) line: 540
 NativeStart.main(String[]) line: not available [native method]


*Code*

import java.io.IOException;
import java.io.InputStream;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.Iterator;

import android.app.Activity;
import android.os.Bundle;
import com.sun.syndication.*;
import com.sun.syndication.feed.synd.SyndEntry;
import com.sun.syndication.feed.synd.SyndFeed;
import com.sun.syndication.io.FeedException;
import com.sun.syndication.io.SyndFeedInput;
import com.sun.syndication.io.XmlReader;

public class MainActivity extends Activity
{
  /** Called when the activity is first created. */
  @Override
  public void onCreate(Bundle savedInstanceState)
  {
  super.onCreate(savedInstanceState);
  setContentView(R.layout.main);
  URL url;
  try
  {
  url = new URL(http://viralpatel.net/blogs/feed;);
  }
  catch (MalformedURLException e1)
  {
  // TODO Auto-generated catch block
  e1.printStackTrace();
  return ;
  }
  XmlReader reader = null;

  try
  {
  reader = new XmlReader(url);
  SyndFeed feed = new SyndFeedInput().build(reader);
  System.out.println(Feed Title: + feed.getAuthor());
  for (Iterator i = feed.getEntries().iterator(); i.hasNext();)
  {
  SyndEntry entry = (SyndEntry) i.next();
  System.out.println(entry.getTitle());
  }
  }
  catch (IllegalArgumentException e)
  {
  e.printStackTrace();
  }
  catch (FeedException e)
  {
  e.printStackTrace() ;
  }
  catch (IOException e)
  {
  // TODO Auto-generated catch block
  e.printStackTrace();
  }
  /*finally
  {
  if (reader != null)
  try
  {
  reader.close();
  } catch (IOException e)
  {
  // TODO Auto-generated catch block
  e.printStackTrace();
  }
  } */
  }
}

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Android app hangs, debug mode does not help, just hangs

2009-07-03 Thread MCON Dev
?xml version=1.0 encoding=utf-8?
manifest xmlns:android=http://schemas.android.com/apk/res/android;
  package=com.org.mcruiseon.client
  android:versionCode=1
  android:versionName=1.0
  application android:icon=@drawable/icon
android:label=@string/app_name
  activity android:name=.WelcomeScreen
  android:label=@string/app_name
  uses-permission android:name=android.permission.INTERNET /
  intent-filter
  action android:name=android.intent.action.MAIN /
  category android:name=android.intent.category.LAUNCHER /
  /intent-filter
  /activity
  /application
  uses-sdk android:minSdkVersion=3 /
uses-permission
android:name=android.permission.INTERNET/uses-permission
uses-permission
android:name=android.permission.READ_PHONE_STATE/uses-permission
/manifest
I am reading the phone number and other phone properties to send over a
socket using (sample code below)
try{
  outputStream = clientSocket.getOutputStream() ;
  objectOutputStream = new ObjectOutputStream(outputStream);
  } catch (IOException e){
  e.printStackTrace();
  }
Server Code as
this.inClientSocket = inClientSocket ;
  try {
  inputObject = new ObjectInputStream(this.inClientSocket.getInputStream());
  } catch (IOException e) {
  // TODO Auto-generated catch block
  e.printStackTrace();
  return ;
  }
Questions
- I am running the client in debug mode. Why isn't the debugger showing me
where the problem is ?
- I put a breakpoint on the first time of the client code, still the client
hangs without the debugger reaching the breakpoint
Can someone advice me on what I am doing wrong.
Dude 4m MConDev

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Android app hangs, debug mode does not help, just hangs

2009-07-03 Thread MCON Dev
I had associated the wrong application on the device with the
debugger.Previously I had com.mcruiseon.WelcomeScreen. I modified the code
to com.org.mcruiseon.client.WelcomeScreen. But the debugger on the emulator
was still debugging com.mcruiseon. Fixed that. But now I get the below.
[2009-07-03 19:33:59 - mCruiseOnClient] Android Launch!
[2009-07-03 19:33:59 - mCruiseOnClient] adb is running normally.
[2009-07-03 19:33:59 - mCruiseOnClient] Performing
com.org.mcruiseon.client.WelcomeScreen activity launch
[2009-07-03 19:33:59 - mCruiseOnClient] Automatic Target Mode: Preferred AVD
'MyAVD' is not available. Launching new emulator.
[2009-07-03 19:33:59 - mCruiseOnClient] Launching a new emulator with
Virtual Device 'MyAVD'
[2009-07-03 19:34:19 - mCruiseOnClient] New emulator found: emulator-5554
[2009-07-03 19:34:19 - mCruiseOnClient] Waiting for HOME
('android.process.acore') to be launched...
[2009-07-03 19:35:55 - mCruiseOnClient] emulator-5554 disconnected!
Cancelling 'com.org.mcruiseon.client.WelcomeScreen activity launch'!
Please help
On Fri, Jul 3, 2009 at 4:53 PM, MCON Dev mcon...@gmail.com wrote:

 ?xml version=1.0 encoding=utf-8?
 manifest xmlns:android=http://schemas.android.com/apk/res/android;
   package=com.org.mcruiseon.client
   android:versionCode=1
   android:versionName=1.0
   application android:icon=@drawable/icon
 android:label=@string/app_name
   activity android:name=.WelcomeScreen
   android:label=@string/app_name
   uses-permission android:name=android.permission.INTERNET /
   intent-filter
   action android:name=android.intent.action.MAIN /
   category android:name=android.intent.category.LAUNCHER /
   /intent-filter
   /activity
   /application
   uses-sdk android:minSdkVersion=3 /
 uses-permission
 android:name=android.permission.INTERNET/uses-permission
 uses-permission
 android:name=android.permission.READ_PHONE_STATE/uses-permission
 /manifest
 I am reading the phone number and other phone properties to send over a
 socket using (sample code below)
 try{
   outputStream = clientSocket.getOutputStream() ;
   objectOutputStream = new ObjectOutputStream(outputStream);
   } catch (IOException e){
   e.printStackTrace();
   }
 Server Code as
 this.inClientSocket = inClientSocket ;
   try {
   inputObject = new
 ObjectInputStream(this.inClientSocket.getInputStream());
   } catch (IOException e) {
   // TODO Auto-generated catch block
   e.printStackTrace();
   return ;
   }
 Questions
 - I am running the client in debug mode. Why isn't the debugger showing me
 where the problem is ?
 - I put a breakpoint on the first time of the client code, still the client
 hangs without the debugger reaching the breakpoint
 Can someone advice me on what I am doing wrong.
 Dude 4m MConDev



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Porting Android code to Symbian

2009-07-03 Thread MCON Dev
I find it a interesting proposition to port applications from Android to
Symbian and improve a mobile app's popularity and usage. I am sure that I
will find multiple results using a google search on this topic. But any
recommendations from where I should start ?

Sid 4m mConDev

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Socket Failing - Very basic question

2009-06-30 Thread MCON Dev
Manifest file contains

application android:icon=*@drawable/icon* android:label=*
@string/app_name*

uses-permission android:name=*android.permission.INTERNET* /

activity android:name=*.WelcomeScreen
*

android:label=*@string/app_name*

uses-permission android:name=*android.permission.INTERNET* /

Siddharth



 On Tue, Jun 30, 2009 at 11:47 PM, MCON Dev mcon...@gmail.com wrote:

 My scenario is simple. I have a server running on port 124. My client code
 is
 *clientSocket* = *new* Socket(localhost, 124, InetAddress.*getByName*(
 127.0.0.1), 125);

 I have set the Developer Tools on android to debug my application. Now
 when I run this code, I get a permission to INTERNET issue. Attached is
 bitmap.

 I dont have my server run as yet. Ideally without my server running I
 should not get a permission issue. Right ??

 Please help me debug the root cause ? Am I missing something really basic ?

 MConDev


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Conversion to Dalvik format failed with error 1

2009-05-09 Thread MCON Dev
Mark,

I have included android.jar as a library on the build path. If I remove that
import android *cannot be resolved*. In place of the android.jar if I put
the external path (tools directory) import android *cannot be resolved*,
and I get a error* Cannot create linked resource
'/.org.eclipse.jdt.core.external.folders/.link0'.  The parent resource is
not accessible.*.

I have not included anyother jar.

PATH variable shows
PATH=/usr/lib/mpi/gcc/openmpi/bin:/sbin:/usr/sbin:/usr/local/sbin:/root/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/X11R6/bin:/usr/games:/usr/lib/mit/bin:/usr/lib/mit/sbin:/home/jsiddharth/basesdk/android-sdk-linux_x86-1.5_r1/tools/:/opt/kde3/bin:/home/fileshare/basesdk/android-sdk-linux_x86-1.5_r1/tools/:/home/fileshare/basesdk/android-sdk-linux_x86-1.5_r1/

Please help
Siddharth

On Sat, May 9, 2009 at 4:01 PM, Mark Murphy mmur...@commonsware.com wrote:


 MCON Dev wrote:
  Hello All,
 
  I need help to run my first Android Application.
 
  I have OpenSuse 11.1. I installed
  - eclipse,
  - android sdk
  - installed the android plugin
  - setup the ADT
  - created a new Android application HelloWorld, added TextView and a
  setText line.
  - ran the app, the emulator bootedup but my app did not show
 
  Something came into me and I had to move the sdk and ecplise to a
  different directory and all hell broke loose.
 
  So I reinstalled eclipse, sdk, adt was there so did not reinstall that.
  Installed the plugin and also installed jdk 6 from sun.com 
 http://sun.com.
 
  I have attached the snapshots of Properties and Run Configuration Tabs.
 
  Now I get the following error.
 
  [2009-05-09 14:27:19 - HelloWorld] Android Launch!
  [2009-05-09 14:27:19 - HelloWorld] adb is running normally.
  [2009-05-09 14:27:19 - HelloWorld] Could not find HelloWorld.apk!
  [2009-05-09 14:32:26 - HelloWorld]
  trouble processing java/lang/Object.class:
  [2009-05-09 14:32:26 - HelloWorld]
  Attempt to include a core VM class in something other than a core
 library.
  It is likely that you have attempted to include the core library from a
  desktop
  virtual machine into an application, which will most assuredly not work.
 If
  you really intend to build a core library -- which is only appropriate as
  part of creating a full virtual machine binary, as opposed to compiling
 an
  application -- then use the --core-library option to suppress this
 error
  message. If you go ahead and use --core-library but are in fact
 building
  an application, then please be aware that your build will still fail at
 some
  point; you will simply be denied the pleasure of reading this helpful
 error
  message.
  [2009-05-09 14:32:26 - HelloWorld] 1 error; aborting
  [2009-05-09 14:32:26 - HelloWorld] Conversion to Dalvik format failed
  with error 1
  [2009-05-09 14:32:29 - HelloWorld]
  trouble processing java/lang/Object.class:
  [2009-05-09 14:32:29 - HelloWorld]
  Attempt to include a core VM class in something other than a core
 library.
  It is likely that you have attempted to include the core library from a
  desktop
  virtual machine into an application, which will most assuredly not work.
 If
  you really intend to build a core library -- which is only appropriate as
  part of creating a full virtual machine binary, as opposed to compiling
 an
  application -- then use the --core-library option to suppress this
 error
  message. If you go ahead and use --core-library but are in fact
 building
  an application, then please be aware that your build will still fail at
 some
  point; you will simply be denied the pleasure of reading this helpful
 error
  message.
  [2009-05-09 14:32:29 - HelloWorld] 1 error; aborting
  [2009-05-09 14:32:29 - HelloWorld] Conversion to Dalvik format failed
  with error 1

 I do not use Eclipse.

 However, the error message is that something you are trying to include
 in your project is attempting to define java.lang.Object. This is bad.

 Make sure you have not added some runtime JAR to your build, or
 something else that might be attempting to define java.lang.Object.

 --
 Mark Murphy (a Commons Guy)
 http://commonsware.com | http://twitter.com/commonsguy

 Need Android talent? Ask on HADO! http://wiki.andmob.org/hado

 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Conversion to Dalvik format failed with error 1

2009-05-09 Thread MCON Dev
Yes, I just did the entire tutorial again. No luck same problem.

Siddharth

On Sat, May 9, 2009 at 4:16 PM, Mark Murphy mmur...@commonsware.com wrote:


 MCON Dev wrote:
  Mark,
 
  I have included android.jar as a library on the build path. If I remove
  that import android _cannot be resolved_. In place of the android.jar
  if I put the external path (tools directory) import android _cannot
  be resolved_, and I get a error_ Cannot create linked resource
  '/.org.eclipse.jdt.core.external.folders/.link0'.  The parent resource
  is not accessible._.
 
  I have not included anyother jar.
 
  PATH variable shows
 
 PATH=/usr/lib/mpi/gcc/openmpi/bin:/sbin:/usr/sbin:/usr/local/sbin:/root/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/X11R6/bin:/usr/games:/usr/lib/mit/bin:/usr/lib/mit/sbin:/home/jsiddharth/basesdk/android-sdk-linux_x86-1.5_r1/tools/:/opt/kde3/bin:/home/fileshare/basesdk/android-sdk-linux_x86-1.5_r1/tools/:/home/fileshare/basesdk/android-sdk-linux_x86-1.5_r1/

 Did you follow the instructions in the tutorial exactly?

 http://developer.android.com/guide/tutorials/hello-world.html

 --
 Mark Murphy (a Commons Guy)
 http://commonsware.com | http://twitter.com/commonsguy

 Need Android talent? Ask on HADO! http://wiki.andmob.org/hado

 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Conversion to Dalvik format failed with error 1

2009-05-09 Thread MCON Dev
So I removed android.jar and then I am not able to import java.* too. I
strongly feel its a java build path issue.

I added android.jar, JRE System Library and JUnit Library to the Java Build
Path. Now I am back to
[2009-05-09 17:05:36 - HelloWorld] Conversion to Dalvik format failed with
error 1

Siddharth

On Sat, May 9, 2009 at 4:29 PM, MCON Dev mcon...@gmail.com wrote:

 Yes, I just did the entire tutorial again. No luck same problem.

 Siddharth


 On Sat, May 9, 2009 at 4:16 PM, Mark Murphy mmur...@commonsware.comwrote:


 MCON Dev wrote:
  Mark,
 
  I have included android.jar as a library on the build path. If I remove
  that import android _cannot be resolved_. In place of the android.jar
  if I put the external path (tools directory) import android _cannot
  be resolved_, and I get a error_ Cannot create linked resource
  '/.org.eclipse.jdt.core.external.folders/.link0'.  The parent resource
  is not accessible._.
 
  I have not included anyother jar.
 
  PATH variable shows
 
 PATH=/usr/lib/mpi/gcc/openmpi/bin:/sbin:/usr/sbin:/usr/local/sbin:/root/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/X11R6/bin:/usr/games:/usr/lib/mit/bin:/usr/lib/mit/sbin:/home/jsiddharth/basesdk/android-sdk-linux_x86-1.5_r1/tools/:/opt/kde3/bin:/home/fileshare/basesdk/android-sdk-linux_x86-1.5_r1/tools/:/home/fileshare/basesdk/android-sdk-linux_x86-1.5_r1/

 Did you follow the instructions in the tutorial exactly?

 http://developer.android.com/guide/tutorials/hello-world.html

 --
 Mark Murphy (a Commons Guy)
 http://commonsware.com | http://twitter.com/commonsguy

 Need Android talent? Ask on HADO! http://wiki.andmob.org/hado

 



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---