Re: [android-developers] Same color specified in xml file and png appear differently?

2012-10-01 Thread Jakob Sachse
Thats it! Thanks Dianne.

Am Sonntag, 19. September 2010 01:51:15 UTC+2 schrieb Dianne Hackborn:
>
> One thing that could be happening is if your image is entirely opaque then 
> it may be loaded as 16bpp for memory/performance reasons.
>
> 2010/9/18 Mark Wyszomierski >
>
>> Hi Kostya, I'll probably end up doing that, I was just curious as to what 
>> is going on with this since everything seems to look ok - I'll make that 
>> test app and post back if I find anything,
>>
>> Thanks
>>
>> 2010/9/18 Kostya Vasilyev >
>>
>> Perhaps you can use a small PNG drawable for the view where you currently 
>>> specify a color constant?
>>>
>>> --
>>> Kostya Vasilyev -- http://kmansoft.wordpress.com
>>>
>>> 18.09.2010 19:35 пользователь "Mark Wyszomierski" 
>>> > 
>>> написал:
>>>
>>>
>>> Yeah I guess that's why I'm confused, the alpha of my png is 100%. So 
>>> when I set the background color in the xml file to explicitly have alpha = 
>>> ff, then the layout editor shows the two colors matching. It's just that 
>>> when I run the app, the emulator (and n1 at least) show the background 
>>> color (not the png) as the different grey, same as when I was previously 
>>> *not* setting the alpha = ff. To sum it up:
>>>
>>>before:
>>>   background="#ebebeb"
>>>   drawable in photoshop (100% alpha, ebebeb)
>>>   layout editor and emulator show background as a purplish-grey.
>>>
>>>now
>>>   background="#ffebebeb"
>>>   drawable (unchanged from before)
>>>   layout editor shows background now matching my drawable,
>>>   but at runtime it looks like the purplish grey from before.
>>>
>>> I'm not modifying the color at runtime (which could explain the 
>>> difference), I'll make a separate test app to try and demo it,
>>>
>>> Thanks
>>>
>>>
>>>
>>> On Sat, Sep 18, 2010 at 11:21 AM, Mark Murphy 
>>> > 
>>> wrote:
>>> >
>>> > On Sat, Sep 18,...
>>>
>>> -- 
>>> You received this message because you are subscribed to the Google
>>> Groups "Android Developers" g...
>>>
>>>  -- 
>>> You received this message because you are subscribed to the Google
>>> Groups "Android Developers" group.
>>> To post to this group, send email to 
>>> android-d...@googlegroups.com
>>> To unsubscribe from this group, send email to
>>> android-developers+unsubscr...@googlegroups.com 
>>> For more options, visit this group at
>>> http://groups.google.com/group/android-developers?hl=en
>>>
>>
>>  -- 
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to 
>> android-d...@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com 
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>>
>
>
>
> -- 
> Dianne Hackborn
> Android framework engineer
> hac...@android.com 
>
> Note: please don't send private questions to me, as I don't have time to 
> provide private support, and so won't reply to such e-mails.  All such 
> questions should be posted on public forums, where I and others can see and 
> answer them.
>
>

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

[android-developers] Twitter4j 2.1.4 HttpClietImpl calls wrong Scheme Constructor

2010-09-10 Thread Jakob Sachse
Hi,
I was looking for a good twitter lib. Twitter4J claims to be "Android
platform and Google APP Engine ready".
I liked how the  website came up with just the example code one needs
to jump right into development.
I have the twitter4j properties file on my classpath and am using the -
core and the -http-client-support libs.

But instead of working I got a NoSuchMethodException.

Looking into the source I found that the
twitter4j.internal.http.alternative.HttpClientImpl calls
-
new Scheme("http", 80, PlainSocketFactory.getSocketFactory())
-
in its constructor. Yet the parameter order is incorrect.
http://developer.android.com/reference/org/apache/http/conn/scheme/Scheme.html
says the order must be like so:
-
new Scheme("http", PlainSocketFactory.getSocketFactory(), 80)
-
I don't see how Twitter4J is working with that kind of bug.

Can anybody give me a hind of how to curretly use twitter4j on
android?

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


[android-developers] Re: Is it possible to disable scroling in a ListView (GridView)?

2010-07-05 Thread Jakob Sachse
thanks, that link is interesting.

Just as behind that link I have to implement a design that contains
of GridViews inside a ScrollView. At least I thought I could leverage
from GridView.

I think that disabling scrolling in gridview / listview is something
most developers expect - as to be seen here. And since there is no
section in the dev guide or reference explaining why this is not
possible (prove me wrong) this question will come up again and again.




On 5 Jul., 04:40, Peter Teoh  wrote:
> On Sat, Apr 3, 2010 at 11:24 AM, oviroa  wrote:
> > I need to add a drawable background to aGridViewthat scrolls with
> > the grid, instead of having the grid scroll on top of the background.
> > I figured the easiest way is to disable thescrollingand nest the
> > grid inside a ScrollView. Is that possible?
>
> How about this:
>
> http://code.google.com/p/android/issues/detail?id=4051
>
> It is implementing aGridViewinside the ScrollView, and highlighted
> the problem with it.   It also gave a length explanation on why this
> is NOT recommended.
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en
>
> > To unsubscribe, reply using "remove me" as the subject.
>
> --
> Regards,
> Peter Teoh

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


[android-developers] Re: Is it possible to disable scroling in a ListView (GridView)?

2010-07-04 Thread Jakob Sachse
same here

On 28 Mai, 15:49, JMichel  wrote:
> Just to show that there is an interest to this topic... I'm looking to
> do the same thing.
> Any help appreciated.
>
> On Apr 27, 9:13 pm, alien9  wrote:
>
>
>
> > I have the same question.. did you find an answer?
>
> > On Apr 2, 8:24 pm, oviroa  wrote:
>
> > > I need to add a drawable background to aGridViewthat scrolls with
> > > the grid, instead of having the grid scroll on top of the background.
> > > I figured the easiest way is todisablethescrollingand nest the
> > > grid inside a ScrollView. Is that possible?
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com
> > For more options, visit this group 
> > athttp://groups.google.com/group/android-developers?hl=en

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


[android-developers] Wifi API - enableNetwork()

2010-03-29 Thread Jakob Sachse
Hi,

I am working on an App that uses the WifiManager to register new wifis
and to establish connections to those.

Setting up a correct WifiConfiguration Object is discussed in depth
and I followed the instructions.

Though I ran into some strange behaviour that i'd like to discuss.
When I call:

-
wifiManager.enableNetwork(w.networkId, true);
-

It does not connect to the network and if I change into the system
settings I see that the wifi state is "failed".
Then if I configure the wifi inside the system settings it connects
without a problem. I searched the web for hours tried any possible
FLAG on the WifiConfiguration Object but it didn't effect the result.
Then I looked into the reference of WifiManager again and found that
method

-
wifiManager.reassociate();
-

Turned out, that this is just what makes the magic happen. Calling
reassociate after enableNetwork just made it happen, it connected.
I think this is not how the API is designed and should be used. But it
works for me so I am happy. Since I am using a rooted G1 with a
custom
ROM it maybe also be a problem of that specific ROM.

Is there anyone who had the same headache?

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

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


[android-developers] Where to put --core-libary option in 1.5 ?

2009-06-15 Thread Jakob Sachse

Hello,

I want to pass the build process the --core-libary option. But in ADT
I don't see such an option. So in Version 1.1 --core-library could be
inserted into the build.xml and build was successfull when using ant.
It looked like this:

---

Converting compiled files and external libraries into $
{outdir}/${dex-file}...








---

In 1.5 build.xml as well as the hole build process was heavitly
altered. Now even the dx.jar is gone. The build.xml works differently,
and I dont see where to put --core-library. There is also no
documentation for where to put it.

Can anyone give me a hind?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] There to put --core-library in 1.5?

2009-06-15 Thread Jakob Sachse

Hello,

I want to pass the build process the --core-libary option. But in ADT
I don't see such an option. So in Version 1.1 --core-library could be
inserted into the build.xml and build was successfull when using ant.
It looked like this:

---

Converting compiled files and external libraries into $
{outdir}/${dex-file}...








---

In 1.5 build.xml as well as the hole build process was heavitly
altered. Now even the dx.jar is gone. The build.xml works differently,
and I dont see where to put --core-library. There is also no
documentation for where to put it.

Can anyone give me a hind?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Android SDK Content Loader gets stuck....

2009-06-08 Thread Jakob Sachse

I am having the same trouble, is there any workaround that tourned out
to be working?



On 14 Mai, 22:14, "az9...@gmail.com"  wrote:
> Stack trace was sent  by email. Part of it is shown below.
>
> Trace was captured on Eclipse start (after turning back on "Projects-
>
> >Build Automatically") &  Android SDK Content Loader stuck at 60%.
>
> Let us know what you find or send more detailed info on capturing
> trace dump.
>
> ##-
>
> StackTrace Remote Thread" prio=6 tid=0x36afc800 nid=0xfac runnable
> [0x..0x38a9fa60]
>    java.lang.Thread.State: RUNNABLE
>
> "Timer-1" prio=6 tid=0x36ed4000 nid=0x12cc in Object.wait()
> [0x3b69f000..0x3b69fd94]
>    java.lang.Thread.State: TIMED_WAITING (on object monitor)
>         at java.lang.Object.wait(Native Method)
>         - waiting on <0x071a7cd8> (a java.util.TaskQueue)
>         at java.util.TimerThread.mainLoop(Unknown Source)
>         - locked <0x071a7cd8> (a java.util.TaskQueue)
>         at java.util.TimerThread.run(Unknown Source)
>
> "Worker-46" prio=6 tid=0x36d8d800 nid=0x16c in Object.wait()
> [0x3b49f000..0x3b49fa94]
>    java.lang.Thread.State: TIMED_WAITING (on object monitor)
>         at java.lang.Object.wait(Native Method)
>         at org.eclipse.core.internal.jobs.ThreadJob.joinRun(ThreadJob.java:
> 189)
>         - locked <0x05678bb8> (a java.lang.Object)
>         at org.eclipse.core.internal.jobs.ImplicitJobs.begin
> (ImplicitJobs.java:87)
>         at org.eclipse.core.internal.jobs.JobManager.beginRule
> (JobManager.java:230)
>         at org.eclipse.core.internal.resources.WorkManager.checkIn
> (WorkManager.java:117)
>         at org.eclipse.core.internal.resources.Workspace.prepareOperation
> (Workspace.java:1747)
>         at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:
> 1795)
>         at
> org.eclipse.jdt.internal.core.ProjectReferenceChange.updateProjectReferencesIfNecessary
> (ProjectReferenceChange.java:107)
>         at
> org.eclipse.jdt.internal.core.ChangeClasspathOperation.classpathChanged
> (ChangeClasspathOperation.java:59)
>         at
> org.eclipse.jdt.internal.core.SetContainerOperation.executeOperation
> (SetContainerOperation.java:110)
>         at org.eclipse.jdt.internal.core.JavaModelOperation.run
> (JavaModelOperation.java:716)
>         at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:
> 1800)
>         at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation
> (JavaModelOperation.java:782)
>         at org.eclipse.jdt.core.JavaCore.setClasspathContainer(JavaCore.java:
> 4616)
>         at
> com.android.ide.eclipse.adt.project.internal.AndroidClasspathContainerInitializer.updateProjects
> (Unknown Source)
>         at com.android.ide.eclipse.adt.AdtPlugin$13.run(Unknown Source)
>         - locked <0x0629aef8> (a java.util.ArrayList)
>         at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
>
> On May 14, 8:37 am, Raphael  wrote:
>
> > On Fri, May 8, 2009 at 11:11 PM, az9...@gmail.com  wrote:
>
> > > After I switched to SDK 1.5,  the Android SDK Content Loader is stuck
> > > when Eclipse starts.
> > > In my case, it is always stuck at 60%.
>
> > Interesting. Can you help me debug this? I'd like to understand where
> > it gets stuck.
>
> > If you're on Linux, start Eclipse from the command-line. IIRC when it
> > gets stuck press Control-C and it will dump a stack trace of all the
> > threads.
>
> > In case the Control-C trick doesn't work, e.g. if you're on Windows, I
> > successfully used the StackTrace tool 
> > fromhttp://www.adaptj.com/main/downloadinthe past, it's a web start for
> > Linux, MacOS and Windows : point it to the Eclipse JVM and it will
> > create a stack trace of the running threads.
>
> > Please do that if you can and email me the stack trace privately (it's
> > quite long).
>
> > Thanks in advance
> > R/
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Logcat View fails with "Could not create the view: 1"

2009-01-13 Thread Jakob Sachse

Hi,

when I started my eclipse this morning the Logcat View failed. Instead
of Logcat a FailureView is displayed. There the stacktrace displays an
ArrayIndexOutOfBoundsException. I had one or two filters for certain
pids. Those seem to be unloadable. Has anyone experienced such an
error before? Can anyone point me to the FilterStore so that i can
delete/reset it? Thanks!


java.lang.ArrayIndexOutOfBoundsException: 1
at com.android.ddmuilib.logcat.LogFilter.loadFromString(Unknown
Source)
at com.android.ide.eclipse.ddms.views.LogCatView
$FilterStorage.getFilterFromStore(Unknown Source)
at com.android.ddmuilib.logcat.LogPanel.createFilters(Unknown Source)
at com.android.ddmuilib.logcat.LogPanel.createControl(Unknown Source)
at com.android.ddmuilib.Panel.createPanel(Unknown Source)
at com.android.ide.eclipse.ddms.views.LogCatView.createPartControl
(Unknown Source)
at org.eclipse.ui.internal.ViewReference.createPartHelper
(ViewReference.java:371)
at org.eclipse.ui.internal.ViewReference.createPart
(ViewReference.java:230)
at org.eclipse.ui.internal.WorkbenchPartReference.getPart
(WorkbenchPartReference.java:594)
at org.eclipse.ui.internal.Perspective.showView(Perspective.java:
2127)
at org.eclipse.ui.internal.WorkbenchPage.busyShowView
(WorkbenchPage.java:1062)
at org.eclipse.ui.internal.WorkbenchPage$19.run(WorkbenchPage.java:
3773)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:
70)
at org.eclipse.ui.internal.WorkbenchPage.showView(WorkbenchPage.java:
3770)
at org.eclipse.ui.internal.WorkbenchPage.showView(WorkbenchPage.java:
3746)
at org.eclipse.ui.handlers.ShowViewHandler.openView
(ShowViewHandler.java:165)
at org.eclipse.ui.handlers.ShowViewHandler.execute
(ShowViewHandler.java:80)
at org.eclipse.ui.internal.handlers.HandlerProxy.execute
(HandlerProxy.java:281)
at org.eclipse.core.commands.Command.executeWithChecks(Command.java:
476)
at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks
(ParameterizedCommand.java:508)
at org.eclipse.ui.internal.handlers.HandlerService.executeCommand
(HandlerService.java:169)
at org.eclipse.ui.internal.handlers.SlaveHandlerService.executeCommand
(SlaveHandlerService.java:247)
at org.eclipse.ui.menus.CommandContributionItem.handleWidgetSelection
(CommandContributionItem.java:619)
at org.eclipse.ui.menus.CommandContributionItem.access$10
(CommandContributionItem.java:605)
at org.eclipse.ui.menus.CommandContributionItem$4.handleEvent
(CommandContributionItem.java:595)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:
3823)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3422)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:
2382)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2346)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2198)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:493)
at org.eclipse.core.databinding.observable.Realm.runWithDefault
(Realm.java:288)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench
(Workbench.java:488)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:
149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start
(IDEApplication.java:113)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run
(EclipseAppHandle.java:193)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication
(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start
(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run
(EclipseStarter.java:382)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run
(EclipseStarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:549)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
at org.eclipse.equinox.launcher.Main.run(Main.java:1236)



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://gr

[android-developers] Re: what want defineClass(...) ?!

2009-01-09 Thread Jakob Sachse

but in some cases this is not an option. i.e I want to run Rhino on
Andorid, which goes well for the interpreter mode, but not in
compilation mode since it produces bytecode.

On 28 Nov. 2008, 19:46, Ralf  wrote:
> You can't. Simply package your java .class in your project and
> ant/eclipse willconvertit when building your app.
>
> R/
>
> On Fri, Nov 28, 2008 at 7:13 AM, HotHeart  wrote:
>
> > Hi,
>
> > I read some topics and founded that defineClass fails if use java
> >bytecode.
> > But how toconvertJava Byte-code to DalvikByteCodeonruntime?
>
> > Thanks!
>
>
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: WebView loadUrl using Post Method

2009-01-09 Thread Jakob Sachse

I have written an Service that uses commons http client for receiving
content from the web.

I call it by using the aidl defined binderInterface:


mHTTPService.doRequest(mmiEvent.getContentUrl(),
HTTPRequest.HTTP_METHOD_POST, "gui="+mmiEvent.getData());

The last parameter what i want to send as requestParameter

There is a callback registered that my service pushs the received
content back to. To display the content I use a handler where within I
do:

mWebView.loadDataWithBaseURL(BASE_URL,(String)msg.obj, "text/html",
"utf-8",FAIL_URL);

And.. my POST requested Webpage is displayed!


On 7 Jan., 17:06, Jakob Sachse  wrote:
> i think the second approach is the way to go here:
> looking at the docs i found : public void loadData(String data, String
> mimeType, String encoding)  ,
> which will most likely take my markup as first parameter. i'll see and
> keep this thread updated.
>
> On 7 Jan., 16:54, Jakob Sachse  wrote:
>
> > or could i possibly load the content outside thewebviewby using
> > commons http client, and let the
> > returned markup be rendered by thewebview?
>
> > On 7 Jan., 16:51, Jakob Sachse  wrote:
>
> > > hey,
>
> > > is there a way of loading an URL with thePOSTMethod instead of GET?
> > > I have a very long xml String that I need to deliver to a .JSP ,
> > > GET Parameters don't allow the needed parameter length.
>
> > > I am looking for something like:
> > > mWebView.loadUrl("http://foo.bar/my.jsp","POST",params);
>
>
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: WebView loadUrl using Post Method

2009-01-07 Thread Jakob Sachse

i think the second approach is the way to go here:
looking at the docs i found : public void loadData(String data, String
mimeType, String encoding)  ,
which will most likely take my markup as first parameter. i'll see and
keep this thread updated.

On 7 Jan., 16:54, Jakob Sachse  wrote:
> or could i possibly load the content outside the webview by using
> commons http client, and let the
> returned markup be rendered by the webview?
>
> On 7 Jan., 16:51, Jakob Sachse  wrote:
>
> > hey,
>
> > is there a way of loading an URL with the POST Method instead of GET?
> > I have a very long xml String that I need to deliver to a .JSP ,
> > GET Parameters don't allow the needed parameter length.
>
> > I am looking for something like:
> > mWebView.loadUrl("http://foo.bar/my.jsp","POST",params);
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: WebView loadUrl using Post Method

2009-01-07 Thread Jakob Sachse

or could i possibly load the content outside the webview by using
commons http client, and let the
returned markup be rendered by the webview?

On 7 Jan., 16:51, Jakob Sachse  wrote:
> hey,
>
> is there a way of loading an URL with the POST Method instead of GET?
> I have a very long xml String that I need to deliver to a .JSP ,
> GET Parameters don't allow the needed parameter length.
>
> I am looking for something like:
> mWebView.loadUrl("http://foo.bar/my.jsp","POST",params);
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to 
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] WebView loadUrl using Post Method

2009-01-07 Thread Jakob Sachse

hey,

is there a way of loading an URL with the POST Method instead of GET?
I have a very long xml String that I need to deliver to a .JSP ,
GET Parameters don't allow the needed parameter length.

I am looking for something like:
mWebView.loadUrl("http://foo.bar/my.jsp","POST",params);
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] message during install: "... has an ealier definition; blocking out"

2008-11-25 Thread Jakob Sachse

what does this mean?

the information is not sufficient, where have those definitions been
found?
In the one project that during install caused the message, in the
android.jar in other project apk's?

I double checked my sources and libs and can't find classes that are
defined more that once.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] commons logging - android logging

2008-11-22 Thread Jakob Sachse

I am trying to make commons-logging call the android.util.Log,
therefor I have written a simple
wrapper that implements the commons Log Interface.

My problem is, that I allready have lots and lots of calls to
org.apache.commons.logging.LogFacotry.getLog().
That method is static and I can influence its behaviour only(?) by a
property file. But as I have read
in lots of posts and issues on the bugtracker android has problems
opening property Files on the classPath.

Therefor I modified the org.apache.commons.logging.LogFactory (i
deleted it from the jar, and put the source to my src folder). My
change is rather simple:

public static Log getLog(Class clazz)
throws LogConfigurationException {

return new AndroidLogWrapper();

}


I built the project with success, but what I get still is:

LogFactory.getLog(Whatever.class) instanceof Jdk14Logger



instead of what i wanted:

LogFactory.getLog(Whatever.class) instanceof AndroidLogWrapper



I cleaned the bin directory, built again, same result.

The only hind I have is what i get on LogCat which is:
DexOpt: not resolving ambiguous class 'Lorg/apache/commons/logging/
LogFactory;'


I havn't found any documentation of this message. So I am wondering,
how could there be more than one LogFactory? I don't understand that.
There is just the one LogFactory on my project.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] dom level 3 parser?

2008-11-13 Thread Jakob Sachse

Is there anyone out there who has successfully used a DOM level 3
parser on Android?

I want to use Rhino with E4X support, it needs eigther org.w3c.dom or
xbean.
Androids org.w3c.dom package contains only a DOM Level 2
implementation which is not sufficent for that. And until now I havn't
got the xbean.jar running, I fear its just to heavy weight.

I would appreaciate any comments and ideas, thanks!
- J.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Succeeded porting Xerces DOM parser

2008-11-05 Thread Jakob Sachse

hello,

that seems very interesting. How do you obtain an instance of the
SAXParserFactory?
For what i suspect the abstract class SAXParserFactory is a member of
javax.xml.parsers
and the one way of getting a SAXParser Instance. Please correct me if
I am wrong.

I want to use Xerces since the SAXParserImpl Android uses throws
SAXExceptions[DOMExceptions] that I can't explain and didn't occur in
a J2SE/Xerces environment.





On 21 Okt., 09:04, Anders Rundgren <[EMAIL PROTECTED]> wrote:
> Today I managed to port apache's Xerces java XML DOM parser.  I
> unfortunately had to give it completely new package names since SDK
> 1.0 R1 is lagging with respect to org.w3c.dom and probably in other
> ways as well.
>
> Anyway, the performence seems quite reasonable on the emulator, so I
> urge Google to (gradually) deprecate the pull-parser for Xerces.
>
> MSFT's .NET CF has full schema validation and XML security as well.
>
> Anders
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Andriods SAXParser

2008-11-04 Thread Jakob Sachse

I am facing a problem when using Androids SAXParser.
It throws DOMExceptions where the J2SE SAXParser (xerces) doesn't.

I am trying to find the sources for Androids SAXParserFactory (to see
how it chooses the SAXParser to return) and the SAXParser itself, but
I coulnd't find them.

In Debug mode i can see the fully qualified names of the classes I am
interested in is:

- org.apache.harmony.xml.parsers.SAXParserImpl
- org.apache.harmony.xml.parsers.SAXParserFactoryImpl


I have read that "org.apache.harmony" is probably a replacement for
"java" to mark that its the harmony implementation. anyhow, all i can
find are the abstract super classes but not the implementations.

Has anyone more experience and could help me with this?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: howto debug apps with more than one process

2008-10-31 Thread Jakob Sachse

Thanks alot, thats what I did.
Its a bit of a workaround, but its a streight forward anyway.


On Oct 29, 4:14 pm, "Andrew Stadler" <[EMAIL PROTECTED]> wrote:
> Jakob-
>
> It may be possible to do this with the SDK, but I am not enough of an
> SDK expert to know for sure.
>
> However, you might find it easier to simply develop/debug your Service
> in the same process.  Once it's running and is fairly stable, you can
> try making it remote.
>
> The calling conventions are essentially the same for local & remote
> processes;  The primary difference is that you have more restrictions
> with a remote process, since everything has to go through a binder (no
> direct object references or method calls, and all data has to be
> parcelable).  But you can make calls to your local service using the
> binder-based interface and it will still work properly.
>
> Hope this helps.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: howto debug apps with more than one process

2008-10-29 Thread Jakob Sachse

Hi,

thanks for the answer. Though I didn't get your point.
myserviceprocess is expected to be some string, concluding the
content is the name of the process: What would be the adavantage
over the DDMS Device view, that lists all the running processes?

I do see the process that i want to debug, only i can't turn it on.
It has the same name as the activity (that is in debug mode) but
ends with :remote

On 29 Okt., 11:50, wescorp <[EMAIL PROTECTED]> wrote:
> Hi,
>
> Try putting some code like this
>
> String LOG_TAG = "my service process =";
> Log.d(LOG_TAG, myserviceprocess);
>
> in your code to monitor whats happening.
>
> The results are displayed in Debug> LogCat.
>
> Cheers,
> Wes
>
> On Oct 29, 4:00 am, Jakob Sachse <[EMAIL PROTECTED]> wrote:
>
> > Hallo,
>
> > I am trying to write a Service thats runs in a seperate process.
> > I am willing to use the Service through IPC from an Activity.
>
> > thats how my section of the AndroidManifest looks like:
> > ###
> > 
> >         
> >                 
> >         
> > 
>
> > 
> >         
> >                 
> >                 
> >         
> > 
> > ###
>
> > Yet when I start the App (using eclipse: debug as -> android app), i
> > can debug the Activity but not the Service. Switching to DDMS gives me
> > an overview of running processes, using the "green bug" for enabeling
> > debug for the services process results in:
>
> > "no open project fround for com.smth:remote, Debug Session failed".
>
> > Anyway the project is open.
>
> > Have i forgotten do declare something in the debug configuration
> > dialog? Any hint is appreciated
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: howto debug apps with more than one process

2008-10-29 Thread Jakob Sachse

Hi,

thanks for the answer. Though I didn't get your point.
myserviceprocess is expected to be some string, concluding the
content is the name of the process: What would be the adavantage
over the DDMS Device view, that lists all the running processes?

I do see the process that i want to debug, only i can't turn it on.
It has the same name as the activity (that is in debug mode) but
tails :remote

On 29 Okt., 11:50, wescorp <[EMAIL PROTECTED]> wrote:
> Hi,
>
> Try putting some code like this
>
> String LOG_TAG = "my service process =";
> Log.d(LOG_TAG, myserviceprocess);
>
> in your code to monitor whats happening.
>
> The results are displayed in Debug> LogCat.
>
> Cheers,
> Wes
>
> On Oct 29, 4:00 am, Jakob Sachse <[EMAIL PROTECTED]> wrote:
>
> > Hallo,
>
> > I am trying to write a Service thats runs in a seperate process.
> > I am willing to use the Service through IPC from an Activity.
>
> > thats how my section of the AndroidManifest looks like:
> > ###
> > 
> >         
> >                 
> >         
> > 
>
> > 
> >         
> >                 
> >                 
> >         
> > 
> > ###
>
> > Yet when I start the App (using eclipse: debug as -> android app), i
> > can debug the Activity but not the Service. Switching to DDMS gives me
> > an overview of running processes, using the "green bug" for enabeling
> > debug for the services process results in:
>
> > "no open project fround for com.smth:remote, Debug Session failed".
>
> > Anyway the project is open.
>
> > Have i forgotten do declare something in the debug configuration
> > dialog? Any hint is appreciated
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] howto debug apps with more than one process

2008-10-29 Thread Jakob Sachse

Hallo,

I am trying to write a Service thats runs in a seperate process.
I am willing to use the Service through IPC from an Activity.

thats how my section of the AndroidManifest looks like:
###












###

Yet when I start the App (using eclipse: debug as -> android app), i
can debug the Activity but not the Service. Switching to DDMS gives me
an overview of running processes, using the "green bug" for enabeling
debug for the services process results in:

"no open project fround for com.smth:remote, Debug Session failed".

Anyway the project is open.

Have i forgotten do declare something in the debug configuration
dialog? Any hint is appreciated
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: when will android support/have Speech Recognition System??

2008-10-23 Thread Jakob Sachse

yesterday android was made open source, as you may know for sure.
The website http://source.android.com was also put online then.

There is a youtube movie on the frontpage (http://www.youtube.com/
watch?v=7Y4thikv-OM)
that at 2:24min explicitly mentions speech recognition,
why would they do this if its not yet included?


On 1 Okt., 18:51, hackbod <[EMAIL PROTECTED]> wrote:
> Nospeechrecognition in 1.0.
>
> On Oct 1, 7:02 am, Wesley <[EMAIL PROTECTED]> wrote:
>
> > Are u mean android not going to supportspeechrecognition???
> > But I saw a folder callspeechinside android.jar wo???
> > Others is working on???
> > Means I should ask...
> > Anyone is working on this system???
> > Can anyone share out??? Or open sources???
>
> > but if android have this system... I believe it will b very great new
> > to all the developer... Including me...
>
> > may I know... when can we have this system on hand inside android???
>
> > your attention is much appreciated... Thanks...
>
> > wesley.
>
> > On 10/1/08, MrSnowflake <[EMAIL PROTECTED]> wrote:
>
> > > I believe someone was working on such a library, but I've read it a
> > > couple months ago, so I'm not sure how it was called.
>
> > > On 30 sep, 03:51, Wesley Sagittarius <[EMAIL PROTECTED]> wrote:
> > >> hi,
>
> > >> when will android support/haveSpeechRecognition System??
> > >> anyone have any ideas???
>
> > >> Wesley.
>
> > --
> > Sent from Gmail for mobile | mobile.google.com
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Getting android multimodal - org.apache.commons.scxml

2008-10-04 Thread Jakob Sachse

turned out, it works:

http://commons.apache.org/scxml/usecases/scxml-stopwatch-on-android.html

On 24 Sep., 23:39, Jakob Sachse <[EMAIL PROTECTED]> wrote:
> > Mark Murphy wrote:
> > If you are including xml-apis in your build, that might conflict with
> > existing DOM and SAX implementations in Android. Try removing xml-apis
> > from the build and see what happens.
>
> removing xml-apis from the build path results in errors in a few scxml
> classes.
> One of which is SCXMLSerializer, I think i could spare this since the
> Serializer is only called
> from some test classes.
>
> More tricky is that it also breaks Builtin.java which is a
> central class within scxml. The only class needed from xml-apis is the
> javax.xml.transform.TransformerException
> The TransformerException is thrown by org.apache.xpath.XPathAPI which
> itself is part of xalan, which i still have in the build path.
>
> But wouldn't that mean that the hole of xalan is incompatible to
> android? Or the other way around, if xalan works on android it would
> mean
> that its inside use of java.xml.* succeeds. And that hence i could
> find a way making it work for me as well.
>
> Is there anyone who used xalan on android?
>
> On 24 Sep., 16:14, Mark Murphy <[EMAIL PROTECTED]> wrote:
>
> > Jakob Sachse wrote:
> > > Mark Murphy wrote:
> > >> If that does not clear up your problem, you can try merging the
> > >> commons.scxml source into your own project's source tree
>
> > > well, basicly thats what i have done so far
>
> > Oh. Sorry, missed that.
>
> > > though, i will try to build the jar as you recommended. Even if the
> > > problem, as far as i see it
> > > comes mainly from the javax.xml package which seems to collide with
> > > the Android SDK in some way.
>
> > Do you have all the source code to all the commons-scxml dependencies?
>
> > If not -- meaning you have commons-scxml source but are still using
> > third-party JARs -- start trying to introduce those, either fully into
> > your project, or simply recompiling them using your own Java compiler.
> > Or, get rid of dependencies that may collide with what is in the Android
> > SDK/
>
> > For example, according to the dependency chart:
>
> >http://commons.apache.org/scxml/dependencies.html
>
> > commons-scxml depends upon Xalan, which depends upon xml-apis.
>
> > If you are including xml-apis in your build, that might conflict with
> > existing DOM and SAX implementations in Android. Try removing xml-apis
> > from the build and see what happens.
>
> > --
> > Mark Murphy (a Commons Guy)http://commonsware.com
> > _The Busy Coder's Guide to Android Development_ Version 1.2 Published!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Attempt to include a core VM class in something other than a core library

2008-09-29 Thread Jakob Sachse

Hello Oscar,

I had the same trouble.

you may want to read this:

http://groups.google.com/group/android-developers/browse_thread/thread/1b7a9602196354ba/9b7c90289ba7ede7#9b7c90289ba7ede7

I didn't find the option to pass ADT (the eclipse plugin) the --core-
library option, too. That's
why i used the activityCreator tool (you'll find that in the
developement and debug section) to create a raw project. The only
reason for doing so was to get a
generated build.xml ant script. I imported that into eclipse. You can
then insert the --core-library option into imported build.xml. Note,
eclipse will still fail while
trying to build the project. It's a good idea to turn off "build
automaticly". Instead use
the ant view to build your project. I had issues with the .bat file
that
is supposed feed dx -dex the correct parameters. Here is my topic
regarding that:

http://groups.google.com/group/android-developers/browse_thread/thread/cbbf384a190f6efe/7a59e605a09a100a?lnk=gst&q=jakob+sachse#7a59e605a09a100a

I hope that will help you,
- Jakob.

There is another topic I opend regarding this issue.


On 29 Sep., 20:26, UBZack <[EMAIL PROTECTED]> wrote:
> Hi Oscar,
>
> I was getting this error because my "fileset dir=" in the dex call of
> my ant build.xml was pointing to a directory with many, many jar files
> in it, most of which were referencing javax classes (which, of course,
> you can/should never do in Android), and I fixed this problem by
> copying the one external lib that I actually needed, which is Apache's
> "commons-codec.jar" from that directory and into its own directory,
> which I then had "fileset dir=" point to in my build file's dex call.
> I then rebuilt, and the error went away.
>
> So my guess is that, unlike "commons-codec.jar" which is free of javax-
> references, "stax-api-1.0-2.jar" has javax references inside it, and
> you should probably look into what places in your Android code are
> using that library, and consider using an Android-safe alternative
> other than that library.  Passing the --core-libary option would
> probably not be a good solution.
>
> Best of luck!
> -Zack
>
> On Aug 27, 5:44 pm, "Oscar Castaneda" <[EMAIL PROTECTED]>
> wrote:
>
> > Hi,
>
> > I'm building a reduced set of Tuscany modules to get a sample Tuscany
> > application running on Android. However, building results in the error shown
> > below. How can I pass the "--core-library" option to the compiler and would
> > this be a solution? The problem is arising when processing class files from
> > stax-api-1.0-2.jar. Any ideas or thoughts on how to finish the build
> > successfully would be greatly appreciated.
>
> > [2008-08-27 23:23:55 - calculator-android]
> > trouble processing "javax/xml/namespace/QName$1.class":
> > [2008-08-27 23:23:55 - calculator-android]
> > 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.
> > [2008-08-27 23:23:55 - calculator-android] 1 error; aborting
> > [2008-08-27 23:23:55 - calculator-android] Conversion to Dalvik format
> > failed with error 1
>
> > --
> > best,
> > -oscar
>
> > Oscar Castañeda
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Getting android multimodal - org.apache.commons.scxml

2008-09-29 Thread Jakob Sachse

I have been working on getting commons.scxml running on android. Today
I
got the stopwatch up and running. Since Android does not provide a
full
j2se I had to deploy / modify lots of libraries.

i.e. i used apache harmony for getting a java.beans implementation.

I had to modify java.beans and org.commons.harmony.beans classes to
get
rid of dependencies to java.awt and java.swing.

I created a jar named scxmlAndroidDependencies.jar that holds all
modified packages.

I did some screenshots of the stopwatch, you can find them here:

http://ostblock.kicks-ass.net/scxmlOnAndroid/android_1.jpg
http://ostblock.kicks-ass.net/scxmlOnAndroid/android_2.jpg
http://ostblock.kicks-ass.net/scxmlOnAndroid/android_3.jpg
http://ostblock.kicks-ass.net/scxmlOnAndroid/android_4.jpg

Also you can get the eclipse project I worked on. I uploaded it since
my
webserver just has a dsl uplink.

http://www.FreeUploadShare.com/DOWNLOAD/3e5dc1319/scxmlOnAndroid_eclipse_project.zip

Plase use the ant script to build the project, the ADT plugin will not
tranfere java.* package classes to .dex due to a missing --core-
library
option. The project is based on Google Android SDK 1.0_r1.

The project justs includes the library binaries, if someone is
interested in the sources let me know. I'll upload them as well.


On 24 Sep., 23:39, Jakob Sachse <[EMAIL PROTECTED]> wrote:
> > Mark Murphy wrote:
> > If you are including xml-apis in your build, that might conflict with
> > existing DOM and SAX implementations in Android. Try removing xml-apis
> > from the build and see what happens.
>
> removing xml-apis from the build path results in errors in a few scxml
> classes.
> One of which is SCXMLSerializer, I think i could spare this since the
> Serializer is only called
> from some test classes.
>
> More tricky is that it also breaks Builtin.java which is a
> central class within scxml. The only class needed from xml-apis is the
> javax.xml.transform.TransformerException
> The TransformerException is thrown by org.apache.xpath.XPathAPI which
> itself is part of xalan, which i still have in the build path.
>
> But wouldn't that mean that the hole of xalan is incompatible to
> android? Or the other way around, if xalan works on android it would
> mean
> that its inside use of java.xml.* succeeds. And that hence i could
> find a way making it work for me as well.
>
> Is there anyone who used xalan on android?
>
> On 24 Sep., 16:14, Mark Murphy <[EMAIL PROTECTED]> wrote:
>
> > Jakob Sachse wrote:
> > > Mark Murphy wrote:
> > >> If that does not clear up your problem, you can try merging the
> > >> commons.scxml source into your own project's source tree
>
> > > well, basicly thats what i have done so far
>
> > Oh. Sorry, missed that.
>
> > > though, i will try to build the jar as you recommended. Even if the
> > > problem, as far as i see it
> > > comes mainly from the javax.xml package which seems to collide with
> > > the Android SDK in some way.
>
> > Do you have all the source code to all the commons-scxml dependencies?
>
> > If not -- meaning you have commons-scxml source but are still using
> > third-party JARs -- start trying to introduce those, either fully into
> > your project, or simply recompiling them using your own Java compiler.
> > Or, get rid of dependencies that may collide with what is in the Android
> > SDK/
>
> > For example, according to the dependency chart:
>
> >http://commons.apache.org/scxml/dependencies.html
>
> > commons-scxml depends upon Xalan, which depends upon xml-apis.
>
> > If you are including xml-apis in your build, that might conflict with
> > existing DOM and SAX implementations in Android. Try removing xml-apis
> > from the build and see what happens.
>
> > --
> > Mark Murphy (a Commons Guy)http://commonsware.com
> > _The Busy Coder's Guide to Android Development_ Version 1.2 Published!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: android classloader won't find my classes

2008-09-29 Thread Jakob Sachse

sorry! there was a sideeffect i didn't see so far.
it works without uses-library, too!

what i havn't seen so far is that my build was, eventhrough it said
"success" not installed on the emulator. But when i edited the
manifest
it got properly reinstalled. My changed code was put on the device
just then,
so again: sorry for the misleading note!



On 29 Sep., 17:14, Jakob Sachse <[EMAIL PROTECTED]> wrote:
> meanwhile I am astonished as well,
> I will again remove the tags and see... maybe i didn't consider
> something.
>
> On 29 Sep., 16:55, Mark Murphy <[EMAIL PROTECTED]> wrote:
>
> > Jakob Sachse wrote:
> > > Still there was that tricky NoClassDefinitionFoundError, thrown by
> > > PathClassLoader. I was very unsatisfied then. Yesterday just before
> > > sleeping
> > > I had to think of the  tag I have seen in combination
> > > with java.awt around here. I totally forgot that today, but when I was
> > > stuck
> > > with the same error today it came to me again. I inserted:
>
> > > 
> > > 
>
> > > just before  closes. Compiled, Installed and didn't really
> > > think of success, so i just hit F8 (debugging, run) all the time. I
> > > could hardly belive my eyes
> > > but the statemachine began working.
>
> > Very curious. I wonder what the scenarios are when  is and
> > is not needed. For example, I have a sample in my book that uses a copy
> > of Beanshell that I locally compiled, and it works without
> > . I assumed  was something magic for some of
> > Google's optional stuff -- I had missed the posts where it was used for
> > java.awt.
>
> > Thanks for the info!
>
> > --
> > Mark Murphy (a Commons Guy)http://commonsware.com
> > _The Busy Coder's Guide to Android Development_ Version 1.3 Published!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: android classloader won't find my classes

2008-09-29 Thread Jakob Sachse

meanwhile I am astonished as well,
I will again remove the tags and see... maybe i didn't consider
something.

On 29 Sep., 16:55, Mark Murphy <[EMAIL PROTECTED]> wrote:
> Jakob Sachse wrote:
> > Still there was that tricky NoClassDefinitionFoundError, thrown by
> > PathClassLoader. I was very unsatisfied then. Yesterday just before
> > sleeping
> > I had to think of the  tag I have seen in combination
> > with java.awt around here. I totally forgot that today, but when I was
> > stuck
> > with the same error today it came to me again. I inserted:
>
> > 
> > 
>
> > just before  closes. Compiled, Installed and didn't really
> > think of success, so i just hit F8 (debugging, run) all the time. I
> > could hardly belive my eyes
> > but the statemachine began working.
>
> Very curious. I wonder what the scenarios are when  is and
> is not needed. For example, I have a sample in my book that uses a copy
> of Beanshell that I locally compiled, and it works without
> . I assumed  was something magic for some of
> Google's optional stuff -- I had missed the posts where it was used for
> java.awt.
>
> Thanks for the info!
>
> --
> Mark Murphy (a Commons Guy)http://commonsware.com
> _The Busy Coder's Guide to Android Development_ Version 1.3 Published!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: android classloader won't find my classes

2008-09-29 Thread Jakob Sachse

sure, as I mentioned above I was eagerly trying to deploy java.beans
(the harmony module) and commons.beanutils.
I need those as dependencies (alongside lots of others) that I have to
solve for getting commons.scxml up running.

I started of by using java.beans and org.apache.commons.beanutils
included as jar files. No success, the NoClassDefinitionError
came up all the time. Next I included the sources so that i could so
some debugging.

Turned out that there were lots of problems inside both the packages.
(Lots of references to java.awt and java.swing)
So I had to cut those off. I deleted sources that I didn't need and
manipulated those I need. Finally the ant build was successful.

Still there was that tricky NoClassDefinitionFoundError, thrown by
PathClassLoader. I was very unsatisfied then. Yesterday just before
sleeping
I had to think of the  tag I have seen in combination
with java.awt around here. I totally forgot that today, but when I was
stuck
with the same error today it came to me again. I inserted:




just before  closes. Compiled, Installed and didn't really
think of success, so i just hit F8 (debugging, run) all the time. I
could hardly belive my eyes
but the statemachine began working.

Thats it.

On 29 Sep., 15:03, Mark Murphy <[EMAIL PROTECTED]> wrote:
> Jakob Sachse wrote:
> > resolved:  in manifest helped out
>
> If you have the time, could you provide more details?
>
> Thanks!
>
> --
> Mark Murphy (a Commons Guy)http://commonsware.com
> _The Busy Coder's Guide to Android Development_ Version 1.3 Published!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] android classloader won't find my classes

2008-09-29 Thread Jakob Sachse

Hi,

I am trying to get java.beans (the apache harmony module) and
org.apache.commons.beanutils deployed.
Its a dependence that I have to deliver. I have all the sources in my
project. I am using a generated ant build script to compile the
project, because i have to use the --core-library option for
transforming java.beans classes to dex.

During the ant build process I am getting warnings:

- Z:\workspace\UTIScxml\src\org\apache\commons\beanutils
\BeanUtilsBean.java:49: warning: unmappable character for encoding
ascii

and tons of:

- warning: Ignoring InnerClasses attribute for an anonymous inner
class that doesn't come with an associated EnclosingMethod attribute.
(This class was probably produced by a broken compiler.)


But the build is successful, the app is installed. When i start it my
app I get:


WARN/dalvikvm(264): VFY: unable to find class referenced in signature
([Ljava/beans/PropertyDescriptor;)
WARN/dalvikvm(264): VFY: unable to resolve virtual method 278: Ljava/
beans/PropertyDescriptor;.getName ()Ljava/lang/String;
WARN/dalvikvm(264): VFY:  rejecting opcode 0x6e at 0x00b7
WARN/dalvikvm(264): VFY:  rejected Lorg/apache/commons/beanutils/
BeanUtilsBean;.copyProperties (Ljava/lang/Object;Ljava/lang/Object;)V
WARN/dalvikvm(264): Verifier rejected class Lorg/apache/commons/
beanutils/BeanUtilsBean;


I did some debugging and found the root cause being a
java.lang.NoClassDefFoundError , detailed Msg:
org.apache.commons.beanutils.BeanUtilsBean.

But the .java file is in project. Inside the /bin folder there is also
the compiled .class file. I don't know how to check for it inside
the .apk. Is there a tool for browsing apk's ?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: android classloader won't find my classes

2008-09-29 Thread Jakob Sachse

resolved:  in manifest helped out

On 29 Sep., 11:51, Jakob Sachse <[EMAIL PROTECTED]> wrote:
> sorry, i meant a tool for browsing .dex files. apk's are zip
> compatible.
>
> On 29 Sep., 11:43, Jakob Sachse <[EMAIL PROTECTED]> wrote:
>
> > Hi,
>
> > I am trying to get java.beans (the apache harmony module) and
> > org.apache.commons.beanutils deployed.
> > Its a dependence that I have to deliver. I have all the sources in my
> > project. I am using a generated ant build script to compile the
> > project, because i have to use the --core-library option for
> > transforming java.beans classes to dex.
>
> > During the ant build process I am getting warnings:
>
> > - Z:\workspace\UTIScxml\src\org\apache\commons\beanutils
> > \BeanUtilsBean.java:49: warning: unmappable character for encoding
> > ascii
>
> > and tons of:
>
> > - warning: Ignoring InnerClasses attribute for an anonymous inner
> > class that doesn't come with an associated EnclosingMethod attribute.
> > (This class was probably produced by a broken compiler.)
>
> > But the build is successful, the app is installed. When i start it my
> > app I get:
>
> > WARN/dalvikvm(264): VFY: unable to find class referenced in signature
> > ([Ljava/beans/PropertyDescriptor;)
> > WARN/dalvikvm(264): VFY: unable to resolve virtual method 278: Ljava/
> > beans/PropertyDescriptor;.getName ()Ljava/lang/String;
> > WARN/dalvikvm(264): VFY:  rejecting opcode 0x6e at 0x00b7
> > WARN/dalvikvm(264): VFY:  rejected Lorg/apache/commons/beanutils/
> > BeanUtilsBean;.copyProperties (Ljava/lang/Object;Ljava/lang/Object;)V
> > WARN/dalvikvm(264): Verifier rejected class Lorg/apache/commons/
> > beanutils/BeanUtilsBean;
>
> > I did some debugging and found the root cause being a
> > java.lang.NoClassDefFoundError , detailed Msg:
> > org.apache.commons.beanutils.BeanUtilsBean.
>
> > But the .java file is in project. Inside the /bin folder there is also
> > the compiled .class file. I don't know how to check for it inside
> > the .apk. Is there a tool for browsing apk's ?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: android classloader won't find my classes

2008-09-29 Thread Jakob Sachse

sorry, i meant a tool for browsing .dex files. apk's are zip
compatible.

On 29 Sep., 11:43, Jakob Sachse <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I am trying to get java.beans (the apache harmony module) and
> org.apache.commons.beanutils deployed.
> Its a dependence that I have to deliver. I have all the sources in my
> project. I am using a generated ant build script to compile the
> project, because i have to use the --core-library option for
> transforming java.beans classes to dex.
>
> During the ant build process I am getting warnings:
>
> - Z:\workspace\UTIScxml\src\org\apache\commons\beanutils
> \BeanUtilsBean.java:49: warning: unmappable character for encoding
> ascii
>
> and tons of:
>
> - warning: Ignoring InnerClasses attribute for an anonymous inner
> class that doesn't come with an associated EnclosingMethod attribute.
> (This class was probably produced by a broken compiler.)
>
> But the build is successful, the app is installed. When i start it my
> app I get:
>
> WARN/dalvikvm(264): VFY: unable to find class referenced in signature
> ([Ljava/beans/PropertyDescriptor;)
> WARN/dalvikvm(264): VFY: unable to resolve virtual method 278: Ljava/
> beans/PropertyDescriptor;.getName ()Ljava/lang/String;
> WARN/dalvikvm(264): VFY:  rejecting opcode 0x6e at 0x00b7
> WARN/dalvikvm(264): VFY:  rejected Lorg/apache/commons/beanutils/
> BeanUtilsBean;.copyProperties (Ljava/lang/Object;Ljava/lang/Object;)V
> WARN/dalvikvm(264): Verifier rejected class Lorg/apache/commons/
> beanutils/BeanUtilsBean;
>
> I did some debugging and found the root cause being a
> java.lang.NoClassDefFoundError , detailed Msg:
> org.apache.commons.beanutils.BeanUtilsBean.
>
> But the .java file is in project. Inside the /bin folder there is also
> the compiled .class file. I don't know how to check for it inside
> the .apk. Is there a tool for browsing apk's ?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: apkbuilder.bat faulty?

2008-09-25 Thread Jakob Sachse

meanwhile i did some try and error and got it running.

setting frameworkdir and libdir to the lib folder works, manipulating
the java.libraray.path property did't influence
anything i could observe.


so thats what the interesting part of my apkbuilder.bat looks like
now:

===
set jarfile=apkbuilder.jar
set frameworkdir=D:\My\Path\to\android-sdk-windows-1.0_r1\tools\lib\
set libdir=D:\My\Path\to\android-sdk-windows-1.0_r1\tools\lib\

if exist %frameworkdir%%jarfile% goto JarFileOk
set frameworkdir=lib\
set libdir=lib\

if exist %frameworkdir%%jarfile% goto JarFileOk
set frameworkdir=..\framework\
set libdir=..\lib\

:JarFileOk

set jarpath=%frameworkdir%%jarfile%

call java -Djava.ext.dirs=%frameworkdir% -Djava.library.path=%libdir% -
jar %jarpath% %*
===

I think I could have well spared libpath, doen't change a thing here.
But i left it pointing to the same directory as frameworkdir.

Am i the only one getting in trouble with apkbuilder?


On 25 Sep., 16:30, Jakob Sachse <[EMAIL PROTECTED]> wrote:
> I wanted to pass dx some parameters when building a project using ADT
> with Eclipse, I didn't find how, so I turned to ant.
>
> I created a empty project with the activitycreator tool.
> I put the generated build.xml into my actual project.
> Then I modified the build.xml to match my project and i inserted the
> dx parameter (which is --core-library)
>
> Now I wanted to build the project.
> It worked fine, all classes where compiled and put in the
> classes.dex.
> But when ant came to building the .apk it failed.
> Giving me the error: " Unable to access jarfile ..\framework
> \apkbuilder.jar "
>
> I looked for the apkbuilder.bat and the didn't quite understand it.
> There is a reference made to some framework directory that i don't
> have.
> The part that I don't understand is that one:
>
> 
> set jarfile=apkbuilder.jar
> set frameworkdir=
> set libdir=
>
> if exist %frameworkdir%%jarfile% goto JarFileOk
>     set frameworkdir=lib\
>     set libdir=lib\
>
> if exist %frameworkdir%%jarfile% goto JarFileOk
>     set frameworkdir=..\framework\
>     set libdir=..\lib\
>
> :JarFileOk
>
> set jarpath=%frameworkdir%%jarfile%
>
> echo java -Djava.ext.dirs=%frameworkdir% -Djava.library.path=%libdir% -
> jar %jarpath% %*
> 
>
> Obviously the script tries to determine the location of
> apkbuilder.jar, but it fails due to the wrong directories.
>
> I modified the script so that i had a correct path to apkbuilder.jar.
> As result the java vm started but returned immidiatly saying:
>
> Exception in thread "main" java.lang.NoClassDefFoundError: com/android/
> prefs/And
> roidLocation$AndroidLocationException
> Caused by: java.lang.ClassNotFoundException:
> com.android.prefs.AndroidLocation$A
> ndroidLocationException
>         at java.net.URLClassLoader$1.run(Unknown Source)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at java.net.URLClassLoader.findClass(Unknown Source)
>
> Did I overlook something?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] apkbuilder.bat faulty?

2008-09-25 Thread Jakob Sachse

I wanted to pass dx some parameters when building a project using ADT
with Eclipse, I didn't find how, so I turned to ant.

I created a empty project with the activitycreator tool.
I put the generated build.xml into my actual project.
Then I modified the build.xml to match my project and i inserted the
dx parameter (which is --core-library)

Now I wanted to build the project.
It worked fine, all classes where compiled and put in the
classes.dex.
But when ant came to building the .apk it failed.
Giving me the error: " Unable to access jarfile ..\framework
\apkbuilder.jar "

I looked for the apkbuilder.bat and the didn't quite understand it.
There is a reference made to some framework directory that i don't
have.
The part that I don't understand is that one:


set jarfile=apkbuilder.jar
set frameworkdir=
set libdir=

if exist %frameworkdir%%jarfile% goto JarFileOk
set frameworkdir=lib\
set libdir=lib\

if exist %frameworkdir%%jarfile% goto JarFileOk
set frameworkdir=..\framework\
set libdir=..\lib\

:JarFileOk

set jarpath=%frameworkdir%%jarfile%

echo java -Djava.ext.dirs=%frameworkdir% -Djava.library.path=%libdir% -
jar %jarpath% %*


Obviously the script tries to determine the location of
apkbuilder.jar, but it fails due to the wrong directories.

I modified the script so that i had a correct path to apkbuilder.jar.
As result the java vm started but returned immidiatly saying:

Exception in thread "main" java.lang.NoClassDefFoundError: com/android/
prefs/And
roidLocation$AndroidLocationException
Caused by: java.lang.ClassNotFoundException:
com.android.prefs.AndroidLocation$A
ndroidLocationException
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)


Did I overlook something?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Getting android multimodal - org.apache.commons.scxml

2008-09-24 Thread Jakob Sachse

> Mark Murphy wrote:
> If you are including xml-apis in your build, that might conflict with
> existing DOM and SAX implementations in Android. Try removing xml-apis
> from the build and see what happens.

removing xml-apis from the build path results in errors in a few scxml
classes.
One of which is SCXMLSerializer, I think i could spare this since the
Serializer is only called
from some test classes.

More tricky is that it also breaks Builtin.java which is a
central class within scxml. The only class needed from xml-apis is the
javax.xml.transform.TransformerException
The TransformerException is thrown by org.apache.xpath.XPathAPI which
itself is part of xalan, which i still have in the build path.

But wouldn't that mean that the hole of xalan is incompatible to
android? Or the other way around, if xalan works on android it would
mean
that its inside use of java.xml.* succeeds. And that hence i could
find a way making it work for me as well.

Is there anyone who used xalan on android?

On 24 Sep., 16:14, Mark Murphy <[EMAIL PROTECTED]> wrote:
> Jakob Sachse wrote:
> > Mark Murphy wrote:
> >> If that does not clear up your problem, you can try merging the
> >> commons.scxml source into your own project's source tree
>
> > well, basicly thats what i have done so far
>
> Oh. Sorry, missed that.
>
> > though, i will try to build the jar as you recommended. Even if the
> > problem, as far as i see it
> > comes mainly from the javax.xml package which seems to collide with
> > the Android SDK in some way.
>
> Do you have all the source code to all the commons-scxml dependencies?
>
> If not -- meaning you have commons-scxml source but are still using
> third-party JARs -- start trying to introduce those, either fully into
> your project, or simply recompiling them using your own Java compiler.
> Or, get rid of dependencies that may collide with what is in the Android
> SDK/
>
> For example, according to the dependency chart:
>
> http://commons.apache.org/scxml/dependencies.html
>
> commons-scxml depends upon Xalan, which depends upon xml-apis.
>
> If you are including xml-apis in your build, that might conflict with
> existing DOM and SAX implementations in Android. Try removing xml-apis
> from the build and see what happens.
>
> --
> Mark Murphy (a Commons Guy)http://commonsware.com
> _The Busy Coder's Guide to Android Development_ Version 1.2 Published!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Getting android multimodal - org.apache.commons.scxml

2008-09-24 Thread Jakob Sachse

Mark Murphy wrote:
>If that does not clear up your problem, you can try merging the
>commons.scxml source into your own project's source tree

well, basicly thats what i have done so far

Janosch wrote:
>>Meanwhile I was turning to the source code of commons.scxml so that i
>>could watch it's unsolved problemens

though, i will try to build the jar as you recommended. Even if the
problem, as far as i see it
comes mainly from the javax.xml package which seems to collide with
the Android SDK in some way.





On 24 Sep., 14:21, Mark Murphy <[EMAIL PROTECTED]> wrote:
> Janosch wrote:
> > I think this is due to xml-apis.jar; it includes the javax.xml package
> > which isn't fully available in android core.
>
> > Is there anything I can do, try or fix? I am feeling clueless at this
> > point. Maybe I am trying something impossible.
>
> The good news is that the package you are trying to use (commons.scxml)
> is open source.
>
> First, just try downloading the commons.scxml source code and building
> it on your machine with your own Java compiler, then use the JAR file
> you just compiled in your Android app instead of any binary distribution
> from the commons.scxml project. I ran into problems with Beanshell
> (http://beanshell.org) which this technique solved. This assumes,
> though, that you're using a 1.5 or greater Java compiler -- I have the
> sneaking suspicion this error comes from older compiled JARs (e.g., 1.4.x).
>
> If that does not clear up your problem, you can try merging the
> commons.scxml source into your own project's source tree, and try
> building it as a whole, though I am not certain that will improve
> matters any.
>
> --
> Mark Murphy (a Commons Guy)http://commonsware.com
> _The Busy Coder's Guide to Android Development_ Version 1.2 Published!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: My Messages won't get displayed

2008-09-24 Thread Jakob Sachse

deleting cookies helped me.

http://groups.google.com/support/bin/answer.py?hl=de&answer=70499



On 24 Sep., 11:30, Jakob Sachse <[EMAIL PROTECTED]> wrote:
> I can't post to the group, i sent a mail to the group support
> regarding this, getting in reply:
>
> > Direct inquires sent to [EMAIL PROTECTED] are not accepted.
>
> > Please post to the groups directly for any questions/concerns.
>
> > Thanks!
>
> so all i can do is to do some more testing. I hope not to spam the
> group, all I want is beeing able to take part in discussions.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] My Messages won't get displayed

2008-09-24 Thread Jakob Sachse

I can't post to the group, i sent a mail to the group support
regarding this, getting in reply:

> Direct inquires sent to [EMAIL PROTECTED] are not accepted.
>
> Please post to the groups directly for any questions/concerns.
>
> Thanks!
>

so all i can do is to do some more testing. I hope not to spam the
group, all I want is beeing able to take part in discussions.

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



[android-developers] Getting android multimodal - org.apache.commons.scxml

2008-09-24 Thread Jakob Sachse

I am very much interested in integrating Android into a multimodal
context.
I am trying out several approaches to this, one of which is the
deployment of org.apache.commons.scxml (a state machine
implementation) on android.

I have been keen on getting the stop watch example running, it's like
the the hello world application for commons.scxml. (
http://commons.apache.org/scxml/usecases/scxml-stopwatch.html )

The easiest thing was to adapt UI Components and Callbacks to work the
Android way. The hardest, and yet unsolved part is to deploy the
commons-scxml.jar . It turned out, that it has several dependencies
some of which are:

commons-el , commons-lang, myfaces, junit, servlet-api, jsp-api,
commons-digester, xalan, xml-apis

Meanwhile I was turning to the source code of commons.scxml so that i
could watch it's unsolved problemens (the classes that were not
available) solved when adding those libs to the build path. At some
point I had the project clean of errors. So I did a project build,
frustratingly I did come to point were I didn't know any further

the build resulted in dex printing tons of:

warning: Ignoring InnerClasses attribute for an anonymous inner class
that doesn't come with an associated EnclosingMethod attribute. (This
class was probably produced by a broken compiler.)


and breaking up with:

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.


I think this is due to xml-apis.jar; it includes the javax.xml package
which isn't fully available in android core.

Is there anything I can do, try or fix? I am feeling clueless at this
point. Maybe I am trying something impossible.

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