[android-developers] Offline advertising

2014-08-22 Thread luca
Hi,

offline advertising is worthless from the viewpoint of earning something 
for obvious reasons, but one could always show
a banner or something similar to an interstitial of some other app he/she 
owns, even if they become non-clickable.
The reason to do that is that, even if there is no internet connection, the 
user experience will continue to be the same
as when there is an internet connection. If the model of business of an app 
is free+ad and paid-ad (that is, there is the
free version which shows ads and there is a paid version free of ads and 
possibly with some other features), the free
version should always presents some type of ad interruption. Otherwise 
the user could always go offline to use
the app without the annoying ads (*annoying for the user but vital for the 
developer*).

Could this practice be a problem for google?
What do you think?

-- 
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/d/optout.


Re: [android-developers] Screencast in Android

2014-08-22 Thread Ralph Bergmann | the4thFloor.eu
Am 21.08.14 um 19:14 schrieb Rahul Raja:
 Hey 
 Is there a good app or method by which i can make a screencast for one of my
 Android application?

http://developer.android.com/tools/help/adb.html#screenrecord



signature.asc
Description: OpenPGP digital signature


[android-developers] Play a Youtube video

2014-08-22 Thread Patrick
Hello,
I'm trying to play a Youtube video embedded in my app layout.
I thought it would be easy, but apparently it's not (for me).
I tried with VideoView and a RTSP link but the quality is too bad.
I also tried with a WebView but it doesn't work on some Android versions.
I'd like to support Android 2.x if possible.
On Android 2.3, I have player buttons but the video does not start.
On Android 2.1, when I tap the play button, I have a message An error 
occurred, please try again later.
I also want to support platforms without the Youtube app (like Amazon, 
Blackberry...) so the Youtube Android Player API is not an option for me.
Please help... Thanks in advance!

Here is my code:

public class YoutubeActivity extends Activity {
  private WebView webView;
  public void onCreate (Bundle savedInstanceState) {
super.onCreate (savedInstanceState);
webView = new WebView (this);
setContentView (webView);
webView.getSettings ().setJavaScriptEnabled (true);
webView.setWebChromeClient (new WebChromeClient ());
webView.setWebViewClient (new WebViewClient () {
  public boolean shouldOverrideUrlLoading (WebView view, String url) {
view.loadUrl (url);
return true;
  }
});
if (Build.VERSION.SDK_INT  8) {
  webView.getSettings ().setPluginsEnabled (true);
}
else {
  webView.getSettings ().setPluginState (PluginState.ON);
}
webView.loadUrl (http://youtube.com/embed/sNUNB6CMnE8?rel=0;);
  }
  protected void onPause () {
super.onPause ();
webView.loadUrl (about:blank);
  }
}

-- 
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/d/optout.


[android-developers] Non source code files in Android Studio / Gradle.

2014-08-22 Thread Nathan
I'm new to Android Studio  and Gradle projects. I don't know what all the 
files mean. 

Is there a concise guide for which files/foldes should *not* be in source 
control (ie SVN or Git)?
Or even better, some SVN or Git ignore or other settings which enforce 
that. 

A contractor just put a project into SVN for me, put too much there, and 
frankly, it's a disaster.  

I would like him to fix it, but would like to give him good guidance. 

Nathan

-- 
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/d/optout.


[android-developers] Android Wear Communication between apps

2014-08-22 Thread Nathan
Just barely looking at the communication protocols for Android Wear and 
needed to clarify something before I go too far down the road. 

Is the communication only intended between a mobile app and its 
corresponding Wear app? 

Or could there be a one to many or many to one relationship?

Looking at the documentation, I don't see the part where you specify which 
app you are talking to. 

I think it is unlikely that every wear app gets every message from every 
mobile app, or vice versa. 

So I would assume that a wearables apk must be installed from inside the 
mobile app sdk to be paired with it

and there is no chance, say, for the free and paid version of an app to 
both communicate with the same wearable app. 

In any case, what is the mechanism by which the apps know who their peer 
app is? Is it by using the exact same package name or by some other 
mechanism? 

Nathan

-- 
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/d/optout.