[android-developers] x86 Emulator Image for Jelly Bean and with Google APIs

2012-08-23 Thread sven
Hi,

I've recently tried out the only available x86 emulator image (ICS 4.0.3) 
with intel CPU-supported virtualization on Windows and the performance 
improvement of the emulator is amazing. Unfortunately the available image 
does *not* include the Google API and as my app requires google 
authentication it will not run without modifications on this device. So 
here are my questions:

   1. Will there be any x86 emulator images including Google APIs?
   2. Will there be a x86 emulator image for Jelly Bean?
   3. If none of the above: What are the reasons and are there any 
   workarounds?

Thanks and best regards

  Sven

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

Re: [android-developers] x86 Emulator Image for Jelly Bean and with Google APIs

2012-08-23 Thread sven
ah, thanks for the info. These are bad news...

-- 
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.setEmbeddedTitleBar gone in Jelly Bean? Which alternatives?

2012-06-30 Thread sven
Hi all,

some of my users have already updated their Galaxy Nexus to Jelly Bean and 
these users are no longer able to use my app (GoodNews news reader and podcast 
player), as it uses the WebView.setEmbeddedTitleBar() method to inject the 
article title into the article view, so that it scrolls in a senseful manner. 
On Jelly Bean this beahviour produces the following exception:

java.lang.NoSuchMethodException: setEmbeddedTitleBar [class android.view.View]

I know that this method hasn't been a public API call (except for a short time 
in android 3.0), but it worked well since android 2. Unfortunately the Jelly 
Bean source code isn't available now, so that I can only guess.

Can someone cofirm that this method is gone? Any ideas for alternatives?

Thanks a lot 

  Sven

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


Re: [android-developers] WebView.setEmbeddedTitleBar gone in Jelly Bean? Which alternatives?

2012-06-30 Thread sven
Hi Romain,

yes, I know that I should never rely on this. On the other hand there isn't 
really an alternative to the mentioned method and implementing the same 
behavior on top of the existing WebView would be a night mare -- if not 
impossible. Further on it was also used by some of the standard apps like 
the web browser. 

If there is no other way I will need to put the WebView inside a 
ScrollView, but -- at least in the past -- this brought a bad user 
experience as it wasn't possible to scroll diagonal as the ScrollView 
captured the vertical scroll events and the WebView the horizontal ones. 
Really bad :-(

Best regards

  Sven

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

Re: [android-developers] WebView.setEmbeddedTitleBar gone in Jelly Bean? Which alternatives?

2012-06-30 Thread sven
> Can't you just create a layout with your title bar view first and the webview 
> below?

This is exactly what I wanted to do in the past when I've started to create 
GoodNews: Intuitively I've created a ScrollView, added my title view and the 
WebView below. The problem with this is that the ScrollView and the WebView do 
not work together well. The user can either scroll vertically *or* horizontally 
but not both directions at once (diagonal). So if you as a user want to scroll  
to the bottom right corner of the view, then you need to scroll down at first, 
lift the finger for a moment and then scroll to the right -- not really what I  
as a user would expect. 

Just search at stackoverflow for "[android] +webview +scrollview" and you will 
find quite a few of questions related to this topic...

> Or just let your title bar view hover on top of the webview and add a padding 
> to the rendered HTML via JavaScript injection. Or you could inject a 
> HTML-based titlebar with fixed positioning into the webview.

Tried this in the past and it worked fine for HTML which I've provided on my 
own, but not if I load external WebSites (I am a Google Reader client, so I 
*need* to load external web pages.

> I haven't seen that title bar in action, so I don't know whether I am missing 
> something obvious here, but just by reading the API documentation for that 
> method it sounds like you can get a simple workaround working for that.

It should behave similar to the address bar of the standard browser: If you 
scroll down the website, the title bar should disappear and if you scroll back 
to the top it should reapear. Scrolling horizonally shouldn't affect the title 
bar at all -- to the user it should look as if it was fixed.

This was exactly the behavior provided by the embedded title bar and if you 
look at the implementation then you will see that there is no possibility to 
implement the same just by deriving from WebView as it depends on a few private 
methods -- especially not in the Jelly Bean version of the WebView as it 
delegates all it's calls to the new ClassicWebView...

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


Re: [android-developers] WebView.setEmbeddedTitleBar gone in Jelly Bean? Which alternatives?

2012-06-30 Thread sven
I've already gave the iframe stuff a try in the past, but unfortunately 
exactly the calculation of the natural width of the iframe-content was the 
problem.

I would definitely prefer the first option (extending WebView). But just 
take a look into the old (API Level 14) solution and search for "mTitleBar" 
or "getTitleHeight" and you will quickly recognized, that this is used in 
many places which are not reachable from within a derived class.

At the moment it looks to me as if I need to create a fallback solution for 
API level 16 and above which will put the title and the WebView into a 
ScrollView. This will be the first time, that a newer android version will 
bring a worse user experience to my users :-(

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

Re: [android-developers] WebView.setEmbeddedTitleBar gone in Jelly Bean? Which alternatives?

2012-07-01 Thread sven
Hey Nobu,

many, many thanks so far! I've put out a quick shot release embedding the 
WebView inside a ScrollView, just to get the crash out of the app. But I 
will give your implementation a try during the next days and will report 
here whether it worked or not.

Thanks a lot again for your effort

  Sven

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

Re: [android-developers] WebView.setEmbeddedTitleBar gone in Jelly Bean? Which alternatives?

2012-07-01 Thread sven
Hi Nobu,

thanks again for your efforts. I am really looking forward to your 
solution. Indeed GoodNews embeds quite some interactivity into an article's 
title bar (starring, tagging, etc).

Kinde regards from Berlin

  Sven

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

Re: [android-developers] WebView.setEmbeddedTitleBar gone in Jelly Bean? Which alternatives?

2012-07-02 Thread sven
Hi Nobu,

I really don't know how I should thank you! Haven't tried this yet, but 
will do so by the end of the week

If you want to I can give you repository access, so you can debug the code 
> and commit any changes.
>

Yes, please give me the repository access. I don't know whether I will find 
anything that needs to be corrected, but if so I would be happy if I could 
contribute this back to this great community.

Best regards

  Sven

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

Re: [android-developers] WebView.setEmbeddedTitleBar gone in Jelly Bean? Which alternatives?

2012-07-07 Thread sven
Hi,

I am totally impressed: The implementation works like a charme! Many many 
thanks for providing this.

Best regards

  Sven

>
>

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

Re: [android-developers] WebView.setEmbeddedTitleBar gone in Jelly Bean? Which alternatives?

2012-07-10 Thread sven
Hi Royi,

many thanks for submitting your code. This issue is really strange. The 
code from Nobu works without problems in any emulator I've configured 
(4.0.4, 4.1, HVGA, WXGA720), but on real devices (Galaxy Nexus 4.0.4/4.1) 
only the bottom of my title bar was visible and a white area appeared when 
scrolling the WebView down. To emphasize this: I haven't found a way to 
reproduce this issue in the emulator.

Your fix now makes my title bar appear completely, but there are two issues 
left:

   1. When the WebView is scrolled down, the title bar scrolls slower than 
   the WebView content producing a slide effect where the title bar slides 
   over the web page's header and partly hides it. This isn't dramatic, but 
   strange...
   2. If the page content is only a little bit higher than the visible 
   ViewPort, then a vertical scroll bar is shown correctly, but it isn't 
   possible to scroll down. I guess this occurs when the vertically hidden 
   page content isn't higher than the title bar.

Any ideas on how to fix these issues?

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

Re: [android-developers] WebView.setEmbeddedTitleBar gone in Jelly Bean? Which alternatives?

2012-07-11 Thread sven
Hi Royi,

OK, I will take a closer look into this. One final question: Were you able 
to reproduce the behavior in the emulator and if so, can you please tell me 
your configuration for that? As stated above for me everything worked fine 
in the emulator and also on my dev-phone (HTC Hero HVGA) -- the problem 
only appears on the Galaxy Nexus which is my "productive" phone, so that 
testing is a little bit heavy as I need to build a full release after each 
change :-(

Ciao

  Sven

-- 
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] Goolge play! store crashes when showing GoodNews page

2012-07-14 Thread sven
Hi,

at least two of my users have reported that the Google play! store on their 
Jelly Bean installation is force closing when bringing up the page of my 
app 
(https://play.google.com/store/apps/details?id=com.gettingmobile.goodnews). 
Now I fear that this is a general Jelly Bean problem which may turn down 
revenues. Any ideas what could be the cause here?

Thanks and regards

  Sven

-- 
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 in android 4.1.1 crashes for URLs with a non-standard separation of query parameters

2012-07-17 Thread sven
Hi Guys,

another problem with the new WebView in Jelly Bean (4.1.1): An app using 
the WebView crashes, when opening an URL that separates its query 
parameters not using the ampersand character ('&') but e.g. a semi colon 
(';'). 

Reproduce:
1) Call the following URL in a WebView: 
http://www.heise.de/newsticker/meldung/TomTom-baut-um-1643641.html

the German heise page will redirect you to 

  
http://m.heise.de/newsticker/meldung/TomTom-baut-um-1643641.html?mrw_channel=ho;mrw_channel=ho;from-classic=1

The page will load, but as soon as loading has finished the app will crash 
with the following stack trace:

java.lang.IllegalArgumentException: bad parameter
at  
org.apache.http.client.utils.URLEncodedUtils.parse(URLEncodedUtils.java:139)
at  
org.apache.http.client.utils.URLEncodedUtils.parse(URLEncodedUtils.java:76)
at  
android.webkit.AccessibilityInjector.getAxsUrlParameterValue(AccessibilityInjector.java:406)
at  
android.webkit.AccessibilityInjector.shouldInjectJavaScript(AccessibilityInjector.java:322)
at  
android.webkit.AccessibilityInjector.onPageFinished(AccessibilityInjector.java:281)
at  
android.webkit.WebViewClassic.onPageFinished(WebViewClassic.java:3943)
at android.webkit.CallbackProxy.handleMessage(CallbackProxy.java:325)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:4745)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at  
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
at dalvik.system.NativeStart.main(Native Method)


Taking a look into the code of URLEncodedUtils.parse() (which is indirectly 
called by WebViewClassic.onPageFinished()) shows why: The code throws the shown 
exception if a single query parameter contains more than one equals sign ('='). 
As this class assumes query parameters to be separated by '&' the defect URL 
shown above has effectively only one query parameter from the view point of the 
URLEncodedUtils-class and thus this single query parameter has multiple equals 
signs causing the crash. 


The stack trace also shows, that the method is called indirectly in the event 
handler, so that there isn't a valid way to catch the exception.


Though the shown URL is defect it occurs in reality and I think the WebView 
should be a little more tolerant.


Best regards


  Sven


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

Re: [android-developers] WebView in android 4.1.1 crashes for URLs with a non-standard separation of query parameters

2012-07-17 Thread sven
Hi Mark,

sorry for posting at the wrong place. I've created issue 35100 
(http://code.google.com/p/android/issues/detail?id=35100)

Best regards

  Sven

-- 
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] ANR keyDispatchingTimedOut on android/com.android.internal.app.RingtonePickerActivity

2011-03-02 Thread Sven
Hello!

Today I got a error report in my market account for my application. It
is listed under Freeze.
I use the RingtonePicker in my preferences. Any chance I can do
something on this error?
Whats the reason for this?

Following the stack trace:

v1.5.3
Mar 1, 2011 7:34:38 AM
OTHER
DALVIK THREADS:
"main" prio=5 tid=1 NATIVE
  | group="main" sCount=1 dsCount=0 s=N obj=0x40020ba0 self=0xcdd0
  | sysTid=24486 nice=0 sched=0/0 cgrp=unknown handle=-1345025984
  at android.graphics.Canvas.native_drawRect(Native Method)
  at android.graphics.Canvas.drawRect(Canvas.java:870)
  at android.view.View.draw(View.java:6866)
  at android.widget.AbsListView.draw(AbsListView.java:2257)
  at android.view.ViewGroup.drawChild(ViewGroup.java:1640)
  at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1367)
  at android.view.View.draw(View.java:6743)
  at android.view.ViewGroup.drawChild(ViewGroup.java:1640)
  at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1367)
  at android.view.ViewGroup.drawChild(ViewGroup.java:1638)
  at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1367)
  at android.view.ViewGroup.drawChild(ViewGroup.java:1638)
  at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1367)
  at android.view.View.draw(View.java:6743)
  at android.widget.FrameLayout.draw(FrameLayout.java:352)
  at com.android.internal.policy.impl.PhoneWindow
$DecorView.draw(PhoneWindow.java:1846)
  at android.view.ViewRoot.draw(ViewRoot.java:1407)
  at android.view.ViewRoot.performTraversals(ViewRoot.java:1163)
  at android.view.ViewRoot.handleMessage(ViewRoot.java:1727)
  at android.os.Handler.dispatchMessage(Handler.java:99)
  at android.os.Looper.loop(Looper.java:123)
  at android.app.ActivityThread.main(ActivityThread.java:4627)
  at java.lang.reflect.Method.invokeNative(Native Method)
  at java.lang.reflect.Method.invoke(Method.java:521)
  at com.android.internal.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:860)
  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
  at dalvik.system.NativeStart.main(Native Method)

"Binder Thread #2" prio=5 tid=6 NATIVE
  | group="main" sCount=1 dsCount=0 s=N obj=0x44a4ee80 self=0x126178
  | sysTid=24491 nice=0 sched=0/0 cgrp=unknown handle=1234816
  at dalvik.system.NativeStart.run(Native Method)

"Binder Thread #1" prio=5 tid=5 NATIVE
  | group="main" sCount=1 dsCount=0 s=N obj=0x44a4e840 self=0x139220
  | sysTid=24490 nice=0 sched=0/0 cgrp=unknown handle=1239728
  at dalvik.system.NativeStart.run(Native Method)

"Compiler" daemon prio=5 tid=4 VMWAIT
  | group="system" sCount=1 dsCount=0 s=N obj=0x44a482a0 self=0x12e938
  | sysTid=24489 nice=0 sched=0/0 cgrp=unknown handle=1183528
  at dalvik.system.NativeStart.run(Native Method)

"Signal Catcher" daemon prio=5 tid=3 RUNNABLE
  | group="system" sCount=0 dsCount=0 s=N obj=0x44a481e8 self=0x125dd8
  | sysTid=24488 nice=0 sched=0/0 cgrp=unknown handle=1203608
  at dalvik.system.NativeStart.run(Native Method)

"HeapWorker" daemon prio=5 tid=2 VMWAIT
  | group="system" sCount=1 dsCount=0 s=N obj=0x43347ce8 self=0x126938
  | sysTid=24487 nice=0 sched=0/0 cgrp=unknown handle=1206520
  at dalvik.system.NativeStart.run(Native Method)


Thanks for your help!

-- 
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: ANR keyDispatchingTimedOut on android/com.android.internal.app.RingtonePickerActivity

2011-03-14 Thread Sven
well, i call the RingtonePicker in my preferences in xml



more then the above stack i dont have. can it be that at the time it
happens the system had a general overload and my app was just used in
the wrong moment?


On Mar 13, 10:14 pm, Dianne Hackborn  wrote:
> It is just the stacks of all of the Dalvik threads in your process at the
> time of the ANR.  The ANR happens because the main thread of the process is
> not responding to messages, so generally you look at the main (first) thread
> in the list and see what it is doing.
>
>
>
> On Sun, Mar 13, 2011 at 4:03 AM, San Zhang  wrote:
> > Today, I got a ANR error, too. I want to know how to read this error
> > message.
>
> > 2011/3/1 Sven 
>
> >> Hello!
>
> >> Today I got a error report in my market account for my application. It
> >> is listed under Freeze.
> >> I use the RingtonePicker in my preferences. Any chance I can do
> >> something on this error?
> >> Whats the reason for this?
>
> >> Following the stack trace:
>
> >> v1.5.3
> >> Mar 1, 2011 7:34:38 AM
> >> OTHER
> >> DALVIK THREADS:
> >> "main" prio=5 tid=1 NATIVE
> >>  | group="main" sCount=1 dsCount=0 s=N obj=0x40020ba0 self=0xcdd0
> >>  | sysTid=24486 nice=0 sched=0/0 cgrp=unknown handle=-1345025984
> >>  at android.graphics.Canvas.native_drawRect(Native Method)
> >>  at android.graphics.Canvas.drawRect(Canvas.java:870)
> >>  at android.view.View.draw(View.java:6866)
> >>  at android.widget.AbsListView.draw(AbsListView.java:2257)
> >>  at android.view.ViewGroup.drawChild(ViewGroup.java:1640)
> >>  at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1367)
> >>  at android.view.View.draw(View.java:6743)
> >>  at android.view.ViewGroup.drawChild(ViewGroup.java:1640)
> >>  at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1367)
> >>  at android.view.ViewGroup.drawChild(ViewGroup.java:1638)
> >>  at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1367)
> >>  at android.view.ViewGroup.drawChild(ViewGroup.java:1638)
> >>  at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1367)
> >>  at android.view.View.draw(View.java:6743)
> >>  at android.widget.FrameLayout.draw(FrameLayout.java:352)
> >>  at com.android.internal.policy.impl.PhoneWindow
> >> $DecorView.draw(PhoneWindow.java:1846)
> >>  at android.view.ViewRoot.draw(ViewRoot.java:1407)
> >>  at android.view.ViewRoot.performTraversals(ViewRoot.java:1163)
> >>  at android.view.ViewRoot.handleMessage(ViewRoot.java:1727)
> >>  at android.os.Handler.dispatchMessage(Handler.java:99)
> >>  at android.os.Looper.loop(Looper.java:123)
> >>  at android.app.ActivityThread.main(ActivityThread.java:4627)
> >>  at java.lang.reflect.Method.invokeNative(Native Method)
> >>  at java.lang.reflect.Method.invoke(Method.java:521)
> >>  at com.android.internal.os.ZygoteInit
> >> $MethodAndArgsCaller.run(ZygoteInit.java:860)
> >>  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
> >>  at dalvik.system.NativeStart.main(Native Method)
>
> >> "Binder Thread #2" prio=5 tid=6 NATIVE
> >>  | group="main" sCount=1 dsCount=0 s=N obj=0x44a4ee80 self=0x126178
> >>  | sysTid=24491 nice=0 sched=0/0 cgrp=unknown handle=1234816
> >>  at dalvik.system.NativeStart.run(Native Method)
>
> >> "Binder Thread #1" prio=5 tid=5 NATIVE
> >>  | group="main" sCount=1 dsCount=0 s=N obj=0x44a4e840 self=0x139220
> >>  | sysTid=24490 nice=0 sched=0/0 cgrp=unknown handle=1239728
> >>  at dalvik.system.NativeStart.run(Native Method)
>
> >> "Compiler" daemon prio=5 tid=4 VMWAIT
> >>  | group="system" sCount=1 dsCount=0 s=N obj=0x44a482a0 self=0x12e938
> >>  | sysTid=24489 nice=0 sched=0/0 cgrp=unknown handle=1183528
> >>  at dalvik.system.NativeStart.run(Native Method)
>
> >> "Signal Catcher" daemon prio=5 tid=3 RUNNABLE
> >>  | group="system" sCount=0 dsCount=0 s=N obj=0x44a481e8 self=0x125dd8
> >>  | sysTid=24488 nice=0 sched=0/0 cgrp=unknown handle=1203608
> >>  at dalvik.system.NativeStart.run(Native Method)
>
> >> "HeapWorker" daemon prio=5 tid=2 VMWAIT
> >>  | group="system" sCount=1 dsCount=0 s=N obj=0x43347ce8 self=0x126938
> >>  | sysTid=24487 nice=0 sched=0/0 cgrp=unknown handle=1206520
> >>  at dalvik.system.NativeStart.run(Native Method)
>
> >> Thanks for your help!
>
> >> --
> &g

[android-developers] Re: Listen to Incoming Calls through BroadcasrReceiver

2011-03-31 Thread Sven
Have a loot at there: 
http://developer.android.com/reference/android/telephony/TelephonyManager.html

You have to register a BroadcastReciever in your Manifest (like your
outgoing one) with the intent filter android.intent.action.PHONE_STATE
and you need the Permission READ_PHONE_STATE.
If you check for the state CALL_STATE_RINGING, then you know there is
a incoming call. Then you can start your app. You can start your
activity or service.

I'm working on a app using this as well, but at the moment I'm at work
and don't have the source in front of me, to give you detailed
example. Maybe you can find out with the help i gave you here, if not
i can post some example later the day when I'm at home.



On Mar 31, 12:17 pm, C Sardar  wrote:
> Hi,
>
> Whenever a new outgoing call in placed OS broadcast a native action
> "ACTION_NEW_OUTGOING_CALL" and we can listen to an outgoing call as
> follows
>
> public class OutgoingCallListenerCRS extends BroadcastReceiver{
>
>         @Override
>         public void onReceive(Context context, Intent intent) {
>
>                 Log.e("Chitta : ", "Its working");
>         }
>
> }
>
>  manifest as follows
>
> 
>
>                  android:enabled="true">
>                         
>                                  android:name="android.intent.action.NEW_OUTGOING_CALL"/>
>                                  android:name="android.intent.category.DEFAULT" />
>                         
>                 
>
>     
>
>          android:name="android.permission.PROCESS_OUTGOING_CALLS"/>
>
> Similarly I want to do same for an incoming call,
> I want to make an app that will start by itself whenever a new
> incoming call appears, by listening to OS's Native Android Broadcast
> Actions, is it possible?
>
> If not, how can I make an app that will start by itself whenever a
> incoming call comes in device even though my app was not started
> before the incoming call.
>
> Please give some idea or sample etc
>
> Thanks & Regards
> CR Sardar

-- 
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: My first app

2011-04-10 Thread Sven
It seems you started your app from inside the main.xml. then the
main.out.xml is generated. usualy you have to delete this file, then
go into a java source and start app from there. it have something to
do with the eclipse run settings. i hope this helps and was your prob

On Apr 10, 11:31 pm, TreKing  wrote:
> On Fri, Apr 8, 2011 at 10:29 PM, anik  wrote:
> > Please see if anyone can fix.
>
> Did you try reading the errors and looking at the files / lines they
> indicate for what could be wrong?
>
> > Please reply as early as possible.
>
> I hope this is early enough for you!
>
> -
> TreKing  - Chicago
> transit tracking app for Android-powered devices

-- 
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: RemoteControlClient in Android 4.0

2011-12-19 Thread sven
Did you find a solution for that? I am stuck in the same situation.

My code looks like this:

   final ComponentName receiverComponentName = new
ComponentName(context, MediaControlEventReceiver.class);
 
context.getPackageManager().setComponentEnabledSetting(receiverComponentName,
 PackageManager.COMPONENT_ENABLED_STATE_ENABLED,
PackageManager.DONT_KILL_APP);
 
getAutioManager().registerMediaButtonEventReceiver(receiverComponentName);

   // build the PendingIntent for the remote control client
   final Intent mediaButtonIntent = new
Intent(Intent.ACTION_MEDIA_BUTTON);
   mediaButtonIntent.setComponent(receiverComponentName);
   PendingIntent mediaPendingIntent = PendingIntent.getBroadcast(
 context.getApplicationContext(), 0, mediaButtonIntent, 0);

   // create the remote control client
   remoteControlClient = new RemoteControlClient(mediaPendingIntent);

   getAutioManager().registerRemoteControlClient(remoteControlClient);
   remoteControlClient.setTransportControlFlags(
 RemoteControlClient.FLAG_KEY_MEDIA_PLAY_PAUSE |
 RemoteControlClient.FLAG_KEY_MEDIA_NEXT |
RemoteControlClient.FLAG_KEY_MEDIA_PREVIOUS |
 RemoteControlClient.FLAG_KEY_MEDIA_FAST_FORWARD |
RemoteControlClient.FLAG_KEY_MEDIA_REWIND);

and afterwards I call the remoteControlClient.setPlaybackState()
methods and set the meta data.

The ICS lock screen doesn't care at all (have tested on a Galaxy
Nexus).

The funny thing is, that in the ICS sources of the music application
everything related to the RemoteControlClient seems to be commented
out:

 
http://android.git.r3pek.org/?p=platform/packages/apps/Music.git;a=blob;f=src/com/android/music/MediaPlaybackService.java;h=d8ac015452c0a084383a27983c025a54afe75ec1;hb=HEAD

-- 
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: RemoteControlClient in Android 4.0

2011-12-19 Thread sven
I've scanned through the ICS codes of the AudioManager and the
internal AudioService and found the cause: I need to acquire the audio
focus using AudioManager.requestAudioFocus() to make the lock screen
playback control occur.

-- 
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] Is encryption a bad idea for app developer?

2016-01-05 Thread Sven Hedlund
I have just bought a Samsung Galaxy S6 and I plan to use it for future 
Android app development.

I am also thinking of encrypting the phone for increased security. Is that 
a bad idea if I want to develop apps on it? Will encryption slow down the 
process of transferring and test running my own apps on it?

Grateful for insight,
Sven

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/02e9ca32-0cc7-41f2-b3ad-fc782e38eda3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] Re: Windows PC for app development

2016-01-06 Thread Sven Hedlund
Sounds great - thanks for your replies!

>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/7c21e627-62fc-4a98-83cc-c0c6ce2b07c4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] Is encryption a bad idea for app developer?

2016-01-06 Thread Sven Hedlund
Sounds great - thanks for your reply!


2016-01-06 4:38 GMT+01:00 Bipin Jethwani :

> No. It just works fine, slight impact on boot time though.
>
>
> On 5 January 2016 at 22:20, Sven Hedlund  wrote:
>
>> I have just bought a Samsung Galaxy S6 and I plan to use it for future
>> Android app development.
>>
>> I am also thinking of encrypting the phone for increased security. Is
>> that a bad idea if I want to develop apps on it? Will encryption slow down
>> the process of transferring and test running my own apps on it?
>>
>> Grateful for insight,
>> Sven
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Android Developers" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to android-developers+unsubscr...@googlegroups.com.
>> To post to this group, send email to android-developers@googlegroups.com.
>> Visit this group at https://groups.google.com/group/android-developers.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/android-developers/02e9ca32-0cc7-41f2-b3ad-fc782e38eda3%40googlegroups.com
>> <https://groups.google.com/d/msgid/android-developers/02e9ca32-0cc7-41f2-b3ad-fc782e38eda3%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Android Developers" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/android-developers/83wv42nmMtA/unsubscribe
> .
> To unsubscribe from this group and all its topics, send an email to
> android-developers+unsubscr...@googlegroups.com.
> To post to this group, send email to android-developers@googlegroups.com.
> Visit this group at https://groups.google.com/group/android-developers.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/android-developers/CANBS9ZNByCzMVChQdC6v_TspAbu8DO2G%3Drf0-ShhC2QVaNy8ZQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/android-developers/CANBS9ZNByCzMVChQdC6v_TspAbu8DO2G%3Drf0-ShhC2QVaNy8ZQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Sven Hedlund
+46(0)70 438 82 93
http://svenhedlund.se/

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/CAOzXKivSLbjH1o876r76cmDPHmt0ujg02hKxYvQqHi8NXBRY_g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] Is encryption a bad idea for app developer?

2016-01-07 Thread Sven Hedlund
Good points Nalin, I have not encrypted the phone yet. I will probably wait
and think a bit more before taking the step.

Thanks,
Sven


2016-01-05 18:27 GMT+01:00 Nalin Savara :

> I would say that for most part it's enough to keep your phone locked.. and
> insure it and backup to cloud and remote erase it if it is stolen.
>
> No comments about encryption but try to keep things simple so you have
> fewer things to check for if debugging an app and trying to replicate an
> error a user is facing.
>
> Just my suggestions...
>
> Regards,
> Nalin
> On 5 Jan 2016 22:25, "Sven Hedlund"  wrote:
>
>> I have just bought a Samsung Galaxy S6 and I plan to use it for future
>> Android app development.
>>
>> I am also thinking of encrypting the phone for increased security. Is
>> that a bad idea if I want to develop apps on it? Will encryption slow down
>> the process of transferring and test running my own apps on it?
>>
>> Grateful for insight,
>> Sven
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Android Developers" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to android-developers+unsubscr...@googlegroups.com.
>> To post to this group, send email to android-developers@googlegroups.com.
>> Visit this group at https://groups.google.com/group/android-developers.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/android-developers/02e9ca32-0cc7-41f2-b3ad-fc782e38eda3%40googlegroups.com
>> <https://groups.google.com/d/msgid/android-developers/02e9ca32-0cc7-41f2-b3ad-fc782e38eda3%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Android Developers" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/android-developers/83wv42nmMtA/unsubscribe
> .
> To unsubscribe from this group and all its topics, send an email to
> android-developers+unsubscr...@googlegroups.com.
> To post to this group, send email to android-developers@googlegroups.com.
> Visit this group at https://groups.google.com/group/android-developers.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/android-developers/CABY81mYHcOGMgz71P%3DBgpACJsa%2BUPVLrceG9P%2BLiBv%3DXM7L4tQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/android-developers/CABY81mYHcOGMgz71P%3DBgpACJsa%2BUPVLrceG9P%2BLiBv%3DXM7L4tQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Sven Hedlund
+46(0)70 438 82 93
http://svenhedlund.se/

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/CAOzXKit3b7zPLGhve-V81co_ooZBgJ43AKVugiTjwuH8XJfafw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Copy protection for Android apps

2016-04-27 Thread Sven Hedlund
Being an Android newbie, I wonder: If I spend a lot of time on learning how 
to program for Android, developing impressive apps and uploading them to 
sell on Google Play - will they automatically be properly copy protected? 
Or is it possible to just copy my apk from one device and run it on another?

I tried to google this question but all answers I found were a couple of 
years old and I guess the answer to my question will change over time.

Grateful for reply,
Sven

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/45a71253-c44f-4451-b463-8b1af51d70ef%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Lost dropdown menu in Android Studio.

2016-04-27 Thread Sven Hedlund
The dropdown menu in Android Studio where I can choose between Project, 
Packages, Scratches, Android etc. only shows up sometimes. Other times it 
is only the Android-view that is there and I can not select anything else. 
Is this a bug in Android Studio (I am using v2.1) or can anybody explain 
how this works?

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/6a8c555f-c89b-4374-8b51-7e8f071f20e2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Re: Copy protection for Android apps

2016-04-28 Thread Sven Hedlund
I see, thanks for your reply!

Den torsdag 28 april 2016 kl. 07:17:57 UTC+2 skrev Mohsen Mostafaei:
>
> hi,
> unfortunately until now i can install any apk without any hard work to do. 
> but if you assign a code to user who have bought your app(if there is a way 
> to do this by app market) you can lock (programmatically) the app for other 
> user.  just idea 
> thanks mohsen 
>
>  
> On Thursday, April 28, 2016 at 8:57:50 AM UTC+4:30, Sven Hedlund wrote:
>>
>> Being an Android newbie, I wonder: If I spend a lot of time on learning 
>> how to program for Android, developing impressive apps and uploading them 
>> to sell on Google Play - will they automatically be properly copy 
>> protected? Or is it possible to just copy my apk from one device and run it 
>> on another?
>>
>> I tried to google this question but all answers I found were a couple of 
>> years old and I guess the answer to my question will change over time.
>>
>> Grateful for reply,
>> Sven
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/232f99ae-b3e3-4e0b-89c1-e55e45a30f75%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] Copy protection for Android apps

2016-04-29 Thread Sven Hedlund
Wow, that looks interesting - do you know if it actually works, i.e. is it 
effective for preventing unallowed usage?

Den fredag 29 april 2016 kl. 21:05:59 UTC+2 skrev TreKing:
>
>
> On Wed, Apr 27, 2016 at 11:27 PM, Sven Hedlund  > wrote:
>
>> Being an Android newbie, I wonder: If I spend a lot of time on learning 
>> how to program for Android, developing impressive apps and uploading them 
>> to sell on Google Play - will they automatically be properly copy 
>> protected? Or is it possible to just copy my apk from one device and run it 
>> on another?
>
>
> http://developer.android.com/intl/in/google/play/licensing/index.html
>
>
> -
> TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago 
> transit tracking app for Android-powered devices
>

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/db196356-d8af-4969-8153-4ab2d34b2152%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Re: Android Dev Phone 1(tm)

2008-12-21 Thread Sven Boden
If you look at the FAQ of brightstar (
http://android.brightstarcorp.com/help.php) you will see the phone only gets
shipped with a US cable... the easiest solution if you want to "wall charge"
it is buy an adapter. You can buy them in any electronics store, it's just a
little piece converting the US socket to a xxx socket.

Regards,
Sven


2008/12/20 Eng, Cary 

>
> I'm confused. Are you talking about the 6-pin/4-pin USB wire that doesn't
> fit?  If that's what you're referring to, then you might want to try again.
>  It does fit, although the at first glance it might not appear to.
>
> If you're talking about the wall-charger wire, I have no input for you on
> that one since I'm in the US and it fits perfectly.
>
> -Original Message-
> From: android-developers@googlegroups.com [mailto:
> android-develop...@googlegroups.com] On Behalf Of baker
> Sent: Friday, December 19, 2008 5:07 PM
> To: Android Developers
> Subject: [android-developers] Re: Android Dev Phone 1(tm)
>
>
> Sorry for the repost.
>
> Yes I can charge the phone with USB and yes the cable will connect to
> the wall with a converting. However always charging over USB isn't
> always convenient.
>
> However the socket to the phone is incompatible with the phone. It
> physically doesn't fit, different shape.
>
> Craig.
>
> On Dec 20, 10:02 am, baker  wrote:
> > I received the phone last week but it came packaged with an incorrect
> > power cable. The cable doesn't connect to either my Australian wall
> > socket or the phone. That's right it isn't even compatible with the
> > phone. So what to do, brightstar and google have no contact
> > information should you have any problems with the shipment. None of
> > the emails from birghtstar have a support email.
> >
> > I've emailed both a brightstart email address from there web site and
> > a google market place email, but haven't heard from anybody after many
> > days.
> >
> > I just want a power cable for the phone, can anybody give me some
> > advice as to how I get these goons to send me the phone an equipment I
> > paid for.
> >
> > Thanks,
> >
> > Craig Baker.
> >
> > On Dec 11, 4:31 pm, kpowerinfinity  wrote:
> >
> > > Same problem here. I placed an order, but the order doesn't appear on
> > > the Brightstar tracking page. It says that no orders have been placed.
> > > I have sent 3 emails to andr...@brightstarcorp.com but not received
> > > any useful replies. Anybody here knows how long it will take the
> > > phones to ship?
> >
> > > I am relying on somebody to bring the phone from the US to India for
> > > me ... and in fact I paid extra shipping to ensure it reaches in time.
> > > In case, they delay shipping too much, I would rather cancel the order
> > > because then I can't get the phone brought to India for me, but the
> > > customer services hasn't even replied. Anybody here can help?
> >
> > > Thanks, Krishna.
> > > kkme...@gmail.com
> >
> > > melp wrote:
> > > > I have the same issue. I placed an order twice on 8 Dec and got the
> > > > confirming email. Both times my credit card was charged(!) but my
> > > > orders disappeared off the tracking page.
> >
> > > > Customer service is non-existent. Repeated emails have not received
> > > > any replies and I have tried calling their number during their stated
> > > > operating hours but always get a recorded message that says they are
> > > > closed or serving someone else.
> >
> > > > Any google employees care to comment?
> >
> > > > On Dec 9, 9:33 pm, Logan  wrote:
> > > > > Does anyone know more about this company, I placed an order and all
> I
> > > > > got was an e-mail confirming my order but no way to check shipping
> > > > > status, etc. Are these phones actually shipping now?
> >
> > > > > On Dec 8, 2:49 pm, Pastymage  wrote:
> >
> > > > > > Does anyone have a more detailed FAQ than the text onhttp://
> android.brightstarcorp.com/?Mymain concern is that GPS is
> > > > > > not listed anywhere in the hardware features - does it actually
> > > > > > support GPS, or not?
> >
> > > > > > Aside from that, I'm unclear on how the 3G bands work - what
> would
> > > > > > the actual bandwidth of this device be on AT&T, for example?
> >
> > > > > > -Dave
>
>
> >
>

--~--~-~--~~~---~--~~
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: Any updates on paid apps timeline?

2008-12-28 Thread Sven Boden
There are already sites out there which allow you to charge for android
apps, for the "official" site I didn't see anything out there yet.

Regards,
Sven


2008/12/28 Redhunt 

>
> Has anyone heard any news on when developers will be able to post apps
> for a fee ?
>
> 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] future app distribution on android

2008-12-28 Thread Sven Boden


Anyone has an idea on how future app distribution will work on
android? I see a possibility for some issues.

Right now you have the G1 phone... probably - except for developers -
everyone is on the same version of the OS. How will app distribution
work in the future when multiple versions of the OS are being used.
Possibly even tweaked on new/other phones (e.g. some firm branching
off the official android platform to provide more custom
functionality)
Unless no interface is broken, some applications could run on 1
version but not on another version.

Regards,
Sven
Living in one of those "ape" countries that only allow sim unlocked
phones :(
--~--~-~--~~~---~--~~
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 Dev Phone Battery life

2008-12-29 Thread Sven Boden
We need to find someone with both a regular G1 and a G1 dev phone... maybe
they tweaked something to make it a real developer's phone and make it last
less than a regular G1: some debug switch, or a service which is always one.

But probably not ;)


2008/12/29 Shane Isbell 

> Less than 24 hours for me.
>
> On Mon, Dec 29, 2008 at 3:18 AM, joshv  wrote:
>
>>
>> Yeah, I am lucky to go a full day on one charge.  90 minutes of web
>> surfing (on the bus to and from work) will easily kill an entire
>> charge.  If I just leave the thing in standby, with wi-fi off, it
>> might last 2 days.
>>
>> On Dec 19, 10:57 am, Vladimir Kelman  wrote:
>> > Hi! For how long do your Android Phone Batteries stay after being
>> > fully charged? It's kind of bad to me: just 3-4 days. My simple
>> > Samsung phone was working a week without recharging.
>>
>>
>
> >
>

--~--~-~--~~~---~--~~
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: future app distribution on android

2008-12-29 Thread Sven Boden
I wasn't actually thinking of hardware requirements.

As hypothetical example, the G1 in Germany is tweaked to the local market at
version x. Android evelopment continues and version x+1 is out which is
already quickly adopted in the US. Some interfaces in x+1 break the x
version of apps, so you need version x of an application for OS x, and
version x+1 for OS x+1. The G1s in Germany stay a while longer on version x
as some small development is needed to tweak x+1 for the german market..

If you would want to distribute 1 application on the 2 OS'es the appstore
would need to carry them both (different compiled versions) and dish up the
right version for the right OS version.

I can also think of more complex scenario's as some hardware company may
take the android source code and specifically change it for their own
hardware (to differentiate themselves e.g.)

Regards,
Sven

2008/12/29 Stephen 

>
> This is a good question, but I think that is the point of android.
>
> Software allows the same applications to be run on each phone.  The
> front end development of android will be the same for each phone...
> applications will just check to verify you satisfy the requirements.
> For example, if a phone comes out with no accelerometer... then you
> wont be able to download those applications.
>
> The way that the back-end will work in code with the phone hardware is
> all handled by android and isnt important... as long as the functions/
> api continue to stay the same.
>
> Steve
>
> On Dec 28, 1:03 pm, Sven Boden  wrote:
> > Anyone has an idea on how future app distribution will work on
> > android? I see a possibility for some issues.
> >
> > Right now you have the G1 phone... probably - except for developers -
> > everyone is on the same version of the OS. How will app distribution
> > work in the future when multiple versions of the OS are being used.
> > Possibly even tweaked on new/other phones (e.g. some firm branching
> > off the official android platform to provide more custom
> > functionality)
> > Unless no interface is broken, some applications could run on 1
> > version but not on another version.
> >
> > Regards,
> > Sven
> > Living in one of those "ape" countries that only allow sim unlocked
> > phones :(
>
> >
>

--~--~-~--~~~---~--~~
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: Any updates on paid apps timeline?

2008-12-29 Thread Sven Boden
I think the answer is guessable (and no I don't work for Google)... when the
android OS settles down more or less. I expect it a little while after the
"cupcake" release. Currently some things are still going to break and if
they would allow you to buy applications from the market, you would need to
get a new version of the applications very quickly, ...

I also don't think android adoption is as quick as the iphone's. In a lot of
countries you can't even get an T1 in a "legal/normal way"... Belgium e.g.
:( . So maybe if applications would come out now as paying applications they
would disappoint the developers as well qua sales.

Regards,
Sven


2008/12/29 NitroDesk 

>
> True, but the most distressing part is the inability to distribute
> paid apps on the market, even with the possibility of charging for
> them offsite.
> I bet this keeps lots of good apps from showing up on the market, and
> worse still, from being developed.
> -Nitro
>
> On Dec 28, 12:48 pm, "Sven Boden"  wrote:
> > There are already sites out there which allow you to charge for android
> > apps, for the "official" site I didn't see anything out there yet.
> >
> > Regards,
> > Sven
> >
> > 2008/12/28 Redhunt 
> >
> >
> >
> >
> >
> > > Has anyone heard any news on when developers will be able to post apps
> > > for a fee ?
> >
> > > Thanks- Hide quoted text -
> >
> > - Show quoted text -
>
> >
>

--~--~-~--~~~---~--~~
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] AsyncTask: onPostExecute always after onProgressUpdate?

2009-06-14 Thread Sven Bendel

Hi all!

I'm messing around with the AsyncTask class for a few hours now and
got a little question:

Is onPostExecute() guaranteed to be executed *after* onProgressUpdate
() in any case?

It should be because both are located in the main thread, at least
that's how i understood the reference, and onPostExecute() is always
run after doInBackground() which executes onProgressUpdate() by
invoking publishProgress(), but nevertheless i'm not completely sure
about the above question.

Thanks in advance,
Sven

--~--~-~--~~~---~--~~
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: AsyncTask: onPostExecute always after onProgressUpdate?

2009-06-14 Thread Sven Bendel

Okay, I found out, that it is like I thought - onPostExecute() is
always run after the last execution of onProgressUpdate().

On 12 Jun., 20:54, Sven Bendel  wrote:
> Hi all!
>
> I'm messing around with the AsyncTask class for a few hours now and
> got a little question:
>
> Is onPostExecute() guaranteed to be executed *after* onProgressUpdate
> () in any case?
>
> It should be because both are located in the main thread, at least
> that's how i understood the reference, and onPostExecute() is always
> run after doInBackground() which executes onProgressUpdate() by
> invoking publishProgress(), but nevertheless i'm not completely sure
> about the above question.
>
> Thanks in advance,
> Sven
--~--~-~--~~~---~--~~
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] @ Android-Dev-Team: Request for AsyncTask.getThread() method

2009-06-14 Thread Sven Bendel

Hi dear Android-Dev-Team!

As I'm working with AsyncTasks for a few days now and enjoyed how easy
you can make use of them, I missed something:

Would it be possible to give us access to the Background-Thread being
created by AsyncTask objects so we can join it, let it sleep etc.?

Regards,
Sven
--~--~-~--~~~---~--~~
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-Dev-Team: Request for AsyncTask.getThread() method

2009-06-15 Thread Sven Bendel

Thanks for the fast answers!

Unfortunately I found out, that I can't use AsyncTask for my task
anyway...

The get() method seems to provide a neat way to pseudo-join the
AsyncTask and the main UI-thread - I found it yesterday evening, too,
and played around with it a little bit. The only problem is, that if
you use it in the main thread, it will wait for the result of
doInBackground and execute all the onProgressUpdate stuff *after*
doInBackground has finished - this destroys all parallelism you
intended to create using the AsyncTask wrapper. That's the reason why
I can't use AsyncTask and in fact threads in general for my purposes
because join() would do the same thing...

Regards,
Sven

PS.: @Streets of Boston: I've tried your idea of writing setter/getter
methods for the AsyncTask - background thread and it works! The only
problem is, that when I try to join the main and the AsyncTask thread
I get a deadlock as the main thread waits for the background thread to
die, but it seems, that it dies *after* the last onProgressUpdated()
was executed which is a task of the (now waiting!!!) main thread. But
nevertheless I'm happy to have gained access to the background thread
- maybe I can use this in another context. Thanks again!
--~--~-~--~~~---~--~~
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] Add calendar item through Intent?

2010-03-19 Thread Sven Jacobs
Hi all,

I'm developing an app that displays a list of events and would like to know
if there's any standard way to add an item to the (Google) calendar,
preferably by sending an Intent? I'm developing for Android 1.5.

Thanks for any hint!

Regards,
Sven

-- 
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] Problems accessing location data in emulator

2010-03-20 Thread Sven Jacobs
Hi all,

I'm trying to access location data in the emulator but always receive null
values :( This is the code:

final LocationManager locationManager = (LocationManager) getSystemService(
Context.LOCATION_SERVICE );

if ( locationManager == null ) {
return;
}

final Criteria criteria = new Criteria();

criteria.setAccuracy( Criteria.ACCURACY_FINE );
criteria.setBearingRequired( false );
criteria.setSpeedRequired( false );
criteria.setAltitudeRequired( false );
criteria.setPowerRequirement( Criteria.NO_REQUIREMENT );

final String provider = locationManager.getBestProvider( criteria, false );
final Location loc = locationManager.getLastKnownLocation( provider );

As described here<http://developer.android.com/guide/topics/location/index.html>
I've
set a fixed position using the geo command on the telnet console but
getLastKnownLocation() always returns null. My app has the following
permissions set

ACCESS_MOCK_LOCATION
ACCESS_COARSE_LOCATION
ACCESS_FINE_LOCATION

Is there anything else that I'm missing?

Many thanks!

Regards,
Sven

-- 
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.


Re: [android-developers] Problems accessing location data in emulator

2010-03-21 Thread Sven Jacobs
2010/3/20 Mark Murphy 

> DDMS/geo only sets a simulated GPS fix (AFAIK -- that's certainly DDMS'
> behavior), and you have not turned on the GPS radio. You need to
> requestLocationUpdates() to turn on GPS, then set the fix. Then, your
> LocationListener will be notified of the fix, and after that point
> getLastKnownLocation() can return it as well.
>
>
Hi Mark,

thanks for the hint! After applying requestLocationUpdates() it works. But I
still find this strange and it's not documented that a single call to
getLastKnownLocation() if I'm not interested in constant location
updates won't return a value.

Nevermind, thanks again!

Sven

-- 
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.


Re: [android-developers] Problems accessing location data in emulator

2010-03-21 Thread Sven Jacobs
2010/3/21 Mark Murphy 

> It's more that if the location technology is not on,
> getLastKnownLocation() won't return a value. GPS is a battery hog, and
> so it is off unless something in the system has said "yo! I want GPS on,
> please!".


I guess the situation is different on a real phone where more location
providers exists (WLAN, GSM/UTMS) that are enabled most of the time?

Greetings,
Sven

-- 
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.


Re: [android-developers] Problems accessing location data in emulator

2010-03-21 Thread Sven Jacobs
2010/3/21 Mark Murphy 
>
> Possibly. I have not tried getLastKnownLocation() for the NETWORK
> provider on a device, to see if that is "always on".


I only need an approximate location and not a up-to-10m-precise GPS position
so WLAN or GSM/UMTS would be sufficient.

Greetings,
Sven

-- 
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.


Re: [android-developers] Excute two activity at the same time

2010-03-22 Thread Sven Jacobs
Hi Michael,

you certainly can't "modify the framework"... I mean, of course you can
check out the sources of the Android framework and modify them but then your
application would only run on devices where *your* version of the framework
is installed. I don't think you want that.

What do you want to archive? Do you want to display two activities from
different apps on the screen simultaneously? Or are the activities part of
your application? If latter is the case, why don't you adjust your app so
that it displays all the data you want on one activity?

Regards,
Sven

2010/3/22 a a 

> Dear Michael Wu
>
> It can't run more then one activity at the same time .
>
> 2010/3/22 Michael Wu :
> > Thanks, aa. I am not sure your mean. Do you mean run back
> > the background service?
> > As far as I know, the run back function would call the background service
> to
> > the surface,
> > and the surface application would change to background service. Could
> > it show two applications on the screen display at the same time?
> >
> > 2010/3/22 a a 
> >>
> >> use service which run back
> >>
> >> 2010/3/22 Michael Wu :
> >> > Hi, all.
> >> >
> >> > I have a question about application excution. Generally, only one
> >> > activity
> >> > could be excuted at the same
> >> > time.
> >> >
> >> > Even though there are still other applications which is excuted in the
> >> > background, there is still only one
> >> > application could be showed on the screen display.
> >> >
> >> > --
> >> > | |
> >> > | AP1  |AP2 is excuted in background.
> >> > | |
> >> > --
> >> >
> >> > My question is, Is it possible  to achieve double activity showing on
> >> > the
> >> > screen display by modifying the
> >> > android framework? As the following picture, two applications are
> >> > excuted and showed on the screen
> >> > display at the same time.
> >> >
> >> > ---
> >> > | AP1   |
> >> > |  |
> >> > | AP2   |
> >> > ---
> >> >
> >> > I have some ideas:
> >> > 1. Change the scale of application into smaller size.
> >> > 2. Modify the framework to activate another view activity.
> >> > However, I am not sure how much effort should I pay on the second
> step.
> >> > Does
> >> > anyone have some ideas
> >> > to share with me?
> >> >
> >> >
> >> > Regards
> >> > Michael
> >> >
> >> > --
> >> > 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.
> >> >
> >>
> >> --
> >> 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.
> >
> >
> >
> > --
> > Michael Wu
> > Quanta Computer
> > Moblie Internet Device 2 BU
> > Kueishan, Taoyuan, Taiwan
> > michaelwu1984...@gmail.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 unsubscrib

[android-developers] Alignment problem of EditText and Button in LinearLayout

2010-03-10 Thread Sven Jacobs
Hi all,

this is the first time I'm developing an Android app so please bear with me
;)

I've put an EditText and Button into a horizontal LinearLayout but
unfortunately the button is not aligned with the text field. In the
Hierarchy Viewer the text field has a absolute_y of 30 while the button has
32. Please see screenshots of the Hierarchy Viewer here:
http://picasaweb.google.com/sj1981/Android

The XML looks like this:

http://schemas.android.com/apk/res/android";
  android:orientation="vertical"
  android:layout_width="fill_parent"
  android:layout_height="fill_parent"
  >



    
    


What's the problem here?

Many thanks,
Sven

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

Re: [android-developers] Re: Alignment problem of EditText and Button in LinearLayout

2010-03-11 Thread Sven Jacobs
2010/3/11 Karan 

> Try using the android:layout_gravity xml parameter.


Hm, I added android:layout_gravity="bottom" to the button, text field AND
the surrounding LinearLayout and it didn't help :(

Regards,
Sven

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

Re: [android-developers] Re: Alignment problem of EditText and Button in LinearLayout

2010-03-11 Thread Sven Jacobs
>
> Hm, I added android:layout_gravity="bottom" to the button, text field AND
> the surrounding LinearLayout and it didn't help :(
>

Adding android:layout_gravity="fill_horizontal" to the button did the trick!
Thanks for the hint! :)

Regards,
Sven

-- 
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: JellyBean systrace in cygwin problem, does not write trace.html

2013-04-04 Thread Sven Kautlenbach
Look here:
https://android-review.googlesource.com/#/c/55170/

If you want to use this stuff open monitor.bat in sdk/tools folder (Make 
sure eclipse is closed or open it there in DDMS view), this has a button 
where you can do it and that one will succeed.

-- 
-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Windows PC for app development

2016-01-04 Thread Sven Hedlund
Dear forum members,

I intend to start learning to develop apps for Android. My PC is a bit old 
however, Intel Core i7 920 2.67 GHz from 2009, with 16 GB ram, running 
Windows 10.

Will this computer be good enough for Android App development? I guess I 
need decent speed of the build process and I need to be able to run various 
emulators sufficiently fast.

If not good enough, could you recommend a decent (Windows) modern computer 
configuration that will not break my bank?

Warm regards,
Sven

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/882b4996-3802-40a7-9e10-b82d845a9f87%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] Adding checkbox

2011-12-15 Thread Sven Meier

You'll have to add a new CheckBox instance on each iteration of your loop:

String[] Tempstr = str.split("#");
LinearLayout.removeAllViews();
for(int x = 0 ; x < Tempstr.length; x++){
   String[] TempTempstr = Tempstr[x].split("@");
   CheckBox cb = new CheckBox(v.getContext());
   cb.setText(TempTempstr[0] + ", " + TempTempstr[1] + ", " + 
TempTempstr[2]);

   LinearLayout.addView(cb);
}

Sven

Am 15.12.2011 12:37, schrieb Knutsford Software:

I am new to android. I have this in my code



CheckBox cb = new CheckBox(v.getContext());




Then a bit later on I have this



String[] Tempstr = str.split("#");
LinearLayout.removeAllViews();
for(int x = 0 ; x < Tempstr.length; x++){
   String[] TempTempstr = Tempstr[x].split("@");
   cb.setText(TempTempstr[0] + ", " + TempTempstr[1] + ", " + 
TempTempstr[2]);

   LinearLayout.addView(cb);
}






When I test it using ecliipse I get




12-15 11:21:45.399: W/KeyCharacterMap(1136): No keyboard for id 0

12-15 11:21:45.399: W/KeyCharacterMap(1136): Using default keymap: 
/system/usr/keychars/qwerty.kcm.bin


12-15 11:21:58.408: D/dalvikvm(1136): GC_CONCURRENT freed 156K, 50% 
free 2854K/5639K, external 505K/517K, paused 7ms+6ms


12-15 11:21:58.510: D/AndroidRuntime(1136): Shutting down VM

12-15 11:21:58.510: W/dalvikvm(1136): threadid=1: thread exiting with 
uncaught exception (group=0x40015560)


12-15 11:21:58.510: E/AndroidRuntime(1136): FATAL EXCEPTION: main

12-15 11:21:58.510: E/AndroidRuntime(1136): 
java.lang.IllegalStateException: The specified child already has a 
parent. You must call removeView() on the child's parent first.


12-15 11:21:58.510: E/AndroidRuntime(1136): at 
android.view.ViewGroup.addViewInner(ViewGroup.java:1976)


12-15 11:21:58.510: E/AndroidRuntime(1136): at 
android.view.ViewGroup.addView(ViewGroup.java:1871)


12-15 11:21:58.510: E/AndroidRuntime(1136): at 
android.view.ViewGroup.addView(ViewGroup.java:1828)


12-15 11:21:58.510: E/AndroidRuntime(1136): at 
android.view.ViewGroup.addView(ViewGroup.java:1808)


12-15 11:21:58.510: E/AndroidRuntime(1136): at 
pub.vacancies.PubVacancies$1.onClick(PubVacancies.java:70)


12-15 11:21:58.510: E/AndroidRuntime(1136): at 
android.view.View.performClick(View.java:2485)


12-15 11:21:58.510: E/AndroidRuntime(1136): at 
android.view.View$PerformClick.run(View.java:9080)


12-15 11:21:58.510: E/AndroidRuntime(1136): at 
android.os.Handler.handleCallback(Handler.java:587)


12-15 11:21:58.510: E/AndroidRuntime(1136): at 
android.os.Handler.dispatchMessage(Handler.java:92)


12-15 11:21:58.510: E/AndroidRuntime(1136): at 
android.os.Looper.loop(Looper.java:123)


12-15 11:21:58.510: E/AndroidRuntime(1136): at 
android.app.ActivityThread.main(ActivityThread.java:3683)


12-15 11:21:58.510: E/AndroidRuntime(1136): at 
java.lang.reflect.Method.invokeNative(Native Method)


12-15 11:21:58.510: E/AndroidRuntime(1136): at 
java.lang.reflect.Method.invoke(Method.java:507)


12-15 11:21:58.510: E/AndroidRuntime(1136): at 
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)


12-15 11:21:58.510: E/AndroidRuntime(1136): at 
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)


12-15 11:21:58.510: E/AndroidRuntime(1136): at 
dalvik.system.NativeStart.main(Native Method)








The problem is this line

LinearLayout.addView(cb);



Can someone tell me why please as I have removed all the views so I am 
stumped






Thanks

Pam



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