[android-developers] Re: Grey buttons when adding actions to a notification in Jelly Bean

2012-08-28 Thread Christer Nordvik
Seems this was a bug or a feature when targeting SDK level 8. Ah well, I 
guess we have to change or target SDK and rewrite to actionbar soon anyway. 

kl. 23:38:07 UTC+2 mandag 27. august 2012 skrev Christer Nordvik følgende:

 I have a strange issue where I've started using the support library (v4) 
 to extend our notifications to have actions inside of them. The problem is 
 that the actions are displayed as large grey buttons and the text is white 
 so it's impossible to see it. 

 All the samples I have seen have the nice black buttons, and the API 
 doesn't seem to expose setting any styling of the buttons so I am really 
 confused on how I managed to get them to display grey. The project has gone 
 through a lot of stages since Android 1.1 so it wouldn't surprise me if we 
 got something in our manifest file that could cause it, but I have tried 
 setting various themes like Holo dark but to no avail. 

 Here is the question complete with code and screenshot: 

 http://stackoverflow.com/questions/12133759/grey-buttons-when-adding-actions-to-notifications-in-jelly-bean


 https://lh6.googleusercontent.com/-9J_aWze4Bl8/UDvolUG5q4I/YuY/da-t7rU8Y6M/s1600/notification.pnghttps://lh6.googleusercontent.com/-9J_aWze4Bl8/UDvolUG5q4I/YuY/da-t7rU8Y6M/s1600/notification.png








 Hope anyone out there have some insight to share! 

 -Christer


-- 
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] Grey buttons when adding actions to a notification in Jelly Bean

2012-08-27 Thread Christer Nordvik
I have a strange issue where I've started using the support library (v4) to 
extend our notifications to have actions inside of them. The problem is 
that the actions are displayed as large grey buttons and the text is white 
so it's impossible to see it. 

All the samples I have seen have the nice black buttons, and the API 
doesn't seem to expose setting any styling of the buttons so I am really 
confused on how I managed to get them to display grey. The project has gone 
through a lot of stages since Android 1.1 so it wouldn't surprise me if we 
got something in our manifest file that could cause it, but I have tried 
setting various themes like Holo dark but to no avail. 

Here is the question complete with code and screenshot: 
http://stackoverflow.com/questions/12133759/grey-buttons-when-adding-actions-to-notifications-in-jelly-bean

https://lh6.googleusercontent.com/-9J_aWze4Bl8/UDvolUG5q4I/YuY/da-t7rU8Y6M/s1600/notification.pnghttps://lh6.googleusercontent.com/-9J_aWze4Bl8/UDvolUG5q4I/YuY/da-t7rU8Y6M/s1600/notification.png








Hope anyone out there have some insight to share! 

-Christer

-- 
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: Directly accessing the e-mail app.

2012-04-13 Thread Christer Nordvik
Try this magic code: 

Intent i = *new* Intent(android.content.Intent.ACTION_SEND);
//i.setType(text/plain); //use this line for testing in the emulator  
i.setType(message/rfc822) ; // use from live device*
i.putExtra(Intent.EXTRA_SUBJECT, Subject of this great email);
i.putExtra(Intent.EXTRA_EMAIL, *new* String[]{to_my_em...@myemail.no});
startActivity(Intent.*createChooser*(i, Choose email app));

kl. 07:43:34 UTC+2 fredag 13. april 2012 skrev Put_tiMe følgende:

 I'm looking at this: if *com.android.email* package exists, then I want 
 to open the compose activity, and automatically fill up the fields, such 
 as 'to', 'subject', etc...

 If the default mail package doesn't exist, then I don't mind showing the 
 chooser.

 The reason I want to do this is:
 I know I want to send an e-mail. I don't want the user to choose 
 'bluetooth'.
 Because I know I don't want to use the 'bluetooth'.

 I need to do at least this: the chooser should should only the e-mail 
 capable apps. is that possible?




 On Thursday, April 12, 2012 9:07:45 PM UTC+5:30, TreKing wrote:

 In addition to what's been said, there exists the remote possibility that 
 an email app does not even exist on a device, in which case your attempt to 
 go directly to the 'default' email app will fail miserably.


 -
 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 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] App taken down by fake DMCA, no response from Google

2011-12-01 Thread Christer Nordvik
Our app FotMob, 
https://market.android.com/details?id=com.mobilefootie.wc2010, was taken 
down by a fake DMCA and has been down for 4 days. We have confirmation from 
the ones who apparently sent the DCMA that they never sent it and have 
forwarded this information to Google 2 days ago with no response. Does the 
Android Market team have a phonenumber where they can be reached? I 
attended Google Dev conference in London so I know where some of them sit, 
but I don't want to travel all the way to London to knock on their doors 
:-) 

-- 
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: App taken down by fake DMCA, no response from Google

2011-12-01 Thread Christer Nordvik
 You're obviously new around here. That made my day. Thanks.

I think our app was nr 48 in the appstore when it opened so not that
new :-) I've been to Google's offices so I know (contrary to common
belief) that there are actually human beings working with the Android
Market that can be spoken to and they were actually quite responsive
one-on-one. Big mistake to not get their phonenumbers though as
contacting them through Google+ doesn't give much response.

I really hope that someone from Google reads this and can ask the
market team to have a look. That a fake DMCA can take down our app
without Google taking any action really is beyond what I thought could
happen in the marketplace. And I have been through all the bugs with
missing apps, console deleting apps when uploading, apps getting
multiple app icons ++.

-- 
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] Svar: Re: == Populated MatrixCursor returned to the Global Search shows wrong results ==

2011-07-20 Thread Christer Nordvik
Thanks for this, I spent hours wasting my time on the docs with an Android 
2.3 device. Added the columns you specified and everything works great. 

Hope someone can update the docs someday... it's been a while since Android 
2.2 was released... 

-Christer

-- 
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] Animate Dialogfragment

2011-06-11 Thread Christer Nordvik
Is it possible to animate a DialogFragment when it appears? I want a
flip animation (from zero width and then flip into view, but nothing
happens when I try to animate it.

I asked the question here also (no answers):
http://stackoverflow.com/questions/6129567/is-it-possible-to-animate-a-dialogfragment

My relevant code:

FragmentTransaction ft =
getFragmentManager().beginTransaction();
InfoDialogFragment newFragment = InfoDialogFragment.newInstance();
ft.setCustomAnimations(R.anim.grow_in, R.anim.fadeout);
ft.add(newFragment, dialog);
ft.commit();
...
public class InfoDialogFragment extends DialogFragment {

-- 
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: Actionbar.DISPLAY_HOME_AS_UP causes activity to not call destroy, is this by design?

2011-06-05 Thread Christer Nordvik
That's what I get for coding at night. I had forgotten that I had
created my own base activity that had implemented starting a new
Intent and no finish call.

Sorry about that, and thanks for responding :-)

-Christer

On Jun 5, 1:31 am, Mark Murphy mmur...@commonsware.com wrote:
 AFAIK, the top left icon has no effect, other than whatever effect you
 apply yourself. Just marking it as up enabled does not cause Android
 to somehow magically know how to handle that. Instead, you have to
 override onOptionsItemSelected() and watch for android.R.id.home and
 do something there.

 For example, in one of my activities that uses
 setDisplayHomeAsUpEnabled(), I have:

         @Override
         public boolean onOptionsItemSelected(MenuItem item) {
                 switch (item.getItemId()) {
                         case android.R.id.home:
                                 finish();

                                 return(true);
                 }

                 return(super.onOptionsItemSelected(item));
         }

 In this case, the flow is much like yours -- up equates to back,
 so I just finish() the current activity to make it happen.

 If you are using startActivity() with FLAG_ACTIVITY_REORDER_TO_FRONT
 to go home, that's not going to immediately destroy your original
 activity, any more than any other startActivity() call does.

 So... what are you doing in onOptionsItemSelected()?









 On Sat, Jun 4, 2011 at 7:22 PM, Christer Nordvik cnord...@gmail.com wrote:
  I have two activities.

  1. Home
  2. Details

  In the details activity I set:
   ActionBar actionBar = this.getActionBar();
   actionBar.setDisplayHomeAsUpEnabled(true);

  and this causes the top left icon to act as a home button.

  But what I hadn't anticipated was that the details activity isn't
  destroyed when pressing the home button. If I press the back button
  then the activity is destroyed.

  Can anyone explain why the details activity isn't destroyed? Do I need
  to intercept the user clicking the home button and destroy the
  activity myself since I want to cleanup the image resources it uses...

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

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

 _The Busy Coder's Guide to Android Development_ Version 3.6 Available!

-- 
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] Actionbar.DISPLAY_HOME_AS_UP causes activity to not call destroy, is this by design?

2011-06-04 Thread Christer Nordvik
I have two activities.

1. Home
2. Details

In the details activity I set:
 ActionBar actionBar = this.getActionBar();
 actionBar.setDisplayHomeAsUpEnabled(true);

and this causes the top left icon to act as a home button.

But what I hadn't anticipated was that the details activity isn't
destroyed when pressing the home button. If I press the back button
then the activity is destroyed.

Can anyone explain why the details activity isn't destroyed? Do I need
to intercept the user clicking the home button and destroy the
activity myself since I want to cleanup the image resources it uses...

-- 
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: Amazon Appmarket is now open!

2011-03-23 Thread Christer Nordvik
How do all of you take into account:

- C2DM (push messaging only available on Android Market)
- House-ads via AdMob that links to apps in the Android Market
- In-app purchasing that is coming soon on the Android Market
- Links to additional content in Android Market from your app

Are you all having a lot of if(AmazonMarket) in your code? I am very
doubtful that all developers will go this route, but then again Amazon
Appstore probably only need the premium apps and not all the garbage
that is flooding the Android Market.

-Christer

On 23 Mar, 09:35, Marcin Orlowski webnet.andr...@gmail.com wrote:
 Not that I am surprised too much. Frankly, what surprised me most, was the
 fact that you got no influence on how DRM is applied to your app. With LVL
 you could at least mess with checking code to some degree, which makes
 automated attacks futile. With Amazon's approach you got one ring to rule
 them all thing. Once it failed, it failed for every app too.

 Regards,
 Marcin Orlowski

 Tray Agenda http://bit.ly/trayagenda - keep you daily schedule handy...

-- 
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: How is your sales model changing with the introduction of Android 3.0 and tablets, or is it?

2011-03-18 Thread Christer Nordvik
I am thinking about #1 since you can always slap on a HD at the end
like Angry App HD and charge the users more. At least that's the
standard practice on iPad. But then you have to have some extra
features (or just better graphics) on the HD version of your app.

My main problem is that the Xoom doesn't give the tablet-only apps
any special treatment so it will probably be drowned in other apps and
doesn't take advantage of current rankings of your app.

-Christer

On Mar 18, 5:44 am, Zsolt Vasvari zvasv...@gmail.com wrote:
 I am going with route #2, and I haven't had too many problems up till
 now.  The major stumbling block I see in the business side of things
 is that I cannot charge more for a Tablet version than I can for the
 phone version, even though the usuability can be much greater on the
 tablet version.

 Option #1 is not the best, as you pointed out, you cannot force the
 users to pay twice.  I can see forcing them to pay the difference in
 price if they upgrade to a tablet, but to make them buy the app all
 over is a huge no-no and you would end up with some very unhappy users
 -- and rightfully so.

 I think there needs to be a way to set price points based on the form
 factor of the device.  Hopefully, the Amazon market will have this
 feature.

 On Mar 18, 12:13 pm, Chris Stewart cstewart...@gmail.com wrote:



  Now that I'm working on a tablet-centric version of my app, I'm considering
  how it will impact my existing application in the Market.  As far as I can
  see it, there are two ways this can go:

  1) Leave your existing app as-is in the Market.  Build a tablet version
  taking full advantage of Android 3.0, setting your minSdk to 11, using your
  existing code base (as applicable) as a library to share core code, and sell
  the apps independent of each other.  Here you'll need to manage two code
  bases, even if only the UI side which we all know varies greatly from app
  to app.  You're also requiring users to purchase twice effectively, assuming
  they want the app on both their phone and the tablet-centric version on
  their tablet.  I guess the phone version would still work on the tablet,
  just not optimized for it.

  2) Integrate fragments into your existing application and bundle in the
  tablet version along with the phone version.  You'll need to drop support
  for Android 1.5 for the compatibility library, work around API differences
  between the phone and tablet APIs at run-time, and handle your UI activities
  and views differently between platforms.  I'm not sure about that last part
  -- but it seems like with such a different UI concept behind 3.0 with the
  Action Bar and the general flow of an application can be so different, that
  you might need to break that apart.  Could be very wrong there however and
  would love for someone to show me otherwise.

  There are a few things at play here.  It's the battle on the technical side
  of dealing with different applications (package names, projects in Eclipse,
  apks, etc).  It's also bringing into question how you want to manage your
  app; whether you want to charge for a tablet-optimized version or include it
  with the phone app someone has already purchased.

  Depending on what I learn related to packaging tablet specific features to
  an existing phone app, I'm quite undecided on which way I'll go.  I suspect
  many of you have already been thinking about this very subject and I'm
  curious how you're planning to handle it.  Please do include more options as
  you see them.  How do the different API versions impact your thinking on the
  subject?

  --
  Chris Stewarthttp://chriswstewart.com- 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] Re: Renderscript, YouTube example

2011-03-01 Thread Christer Nordvik
 The 3D carousel should be open sourced with the platform.

That's amazing news. I had hoped the source-code would be out already
since the Xoom has launched, but I guess it will be out in 1-2 weeks?
If the carousel is as good as it looks then it will work wonders for a
lot of apps :-)


-Christer

-- 
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] In-app purchase, how to test it on Android 2.3.3?

2011-02-27 Thread Christer Nordvik
I have a Nexus One with Android 2.3.3 and Market version 2.3.2.

This method always returns false:
   @Override
public void onBillingSupported(boolean supported)

How are we supposed to test this then? This code is taken from the
sample app so should be correct...

-Christer

-- 
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] Renderscript, YouTube example

2011-02-23 Thread Christer Nordvik
I noticed that the Renderscript examples (http://developer.android.com/
resources/samples/Renderscript/index.html) just showed very basic
usage of Renderscript.

Would it be possible to have the source code for the YouTube
Renderscript screen where the videos are displayed? Or at least a
small article explaining how it was built and some code samples?

A lot of companies are building video-content apps that lists the
videos like YouTube so I believe an article surrounding this would
benefit a lot of developers. Not everybody needs to use Renderscript
but it definitively makes the app stand out from the crowd.

-- 
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: Sending emails from the android app

2011-02-23 Thread Christer Nordvik
http://groups.google.com/group/android-developers/browse_frm/thread/88bb36c676e3217b

-Christer

On 21 Feb, 12:37, ronil vanza ronilpva...@gmail.com wrote:
 This is the code that I am using to send emails, however it says 'No
 applications can send the email'. I have no idea what that means and
 would really like some help on that matter to get me started

 http://www.helloandroid.com/tutorials/how-send-email-your-application...

 Is some change required in the code itself to get it working or an
 entirely new code is required. If somebody does have it, could they
 just send it to me. It would really help me get this done.

 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: Renderscript documentation

2011-02-17 Thread Christer Nordvik
Any news of docs for Renderscript? Since the Xoom is soon launching it
would be nice to build some apps using Renderscript for this device.
And it would be great if the Renderscript code used in the YouTube app
could be shared with the developers :-)

-Christer

On 28 Jan, 20:18, Xavier Ducrohet x...@android.com wrote:
 as I said above,Renderscriptrequires tools support which is not ready.
 Once this is done, the build system in Ant and ADT will automatically
 compile the .rs files (the same way it deals with .aidl files)

 Xav



 On Thu, Jan 27, 2011 at 12:18 AM, jimmy yang jimmy.sh.y...@gmail.com wrote:
  RS Samples in SDK are not compiled. Samples need some java code
  preprocessed from RS script.
  How to preprocess RS script? or process on-the-fly?

  On Jan 27, 3:03 pm, Romain Guy romain...@android.com wrote:
  More detailed documentation will come :)

 RenderScriptis more than just a drawing API, it's also a programming
  language, compiled on the device (and partly on the host with LLVM.)
 RenderScriptwas designed for high performance. For instance, all the
  allocations happen outside of the scripts, which allows the system to run
  your scripts on multiple cores (CPU or GPU.)

  On Wed, Jan 26, 2011 at 9:54 PM, Peter Eastman 
  peter.east...@gmail.comwrote:

   Is there any documentation available forRenderscript?  I downloaded
   the SDK docs, but aside from the Javadocs (which aren't very
   enlightening), it doesn't seem to be mentioned at all.  What are the
   capabilities ofRenderscript?  When would it make sense to use it
   instead of OpenGL?

   Peter

   --
   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.comandroid-developers%2Bunsubs
cr...@googlegroups.com
   For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en

  --
  Romain Guy
  Android framework engineer
  romain...@android.com

  Note: please don't send private questions to me, as I don't have time to
  provide private support.  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

 --
 Xavier Ducrohet
 Android SDK Tech Lead
 Google Inc.http://developer.android.com|http://tools.android.com

 Please do not send me questions directly. 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