Re: [android-developers] Re: how to add URL button

2014-11-01 Thread sree android
try this code

public void callWebURL( String urlLink) {
Intent urlCalling= new Intent( Intent.ACTION_VIEW , Uri.parse( urlLink) );
startActivity( urlCalling);
}


On Sat, Nov 1, 2014 at 10:30 AM, Naresh Pedagani nareshpedag...@gmail.com
wrote:


 for this you can use webview,please go through bellow example.
 http://javatechig.com/android/android-webview-example




 On Wednesday, October 29, 2014 6:06:29 PM UTC+5:30, Osamah Alzouby wrote:

 Hello
 I want to add URL button to my project. How I can create it?

 Thank you

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


-- 
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] Re: libdrm1.so and libdrm1_jni.so, what are those libs purpose ?

2014-11-01 Thread David Parry
They are used for digital rights management framework libraries used by HAL in 
android. They should be implementing the industry standard for encryption to 
video music streams. I do not believe the default media player calls them since 
it does not play DRM streams. Something like Netflix player I am sure does. 
also next player works with http://www.verimatrix.com/es/blog-tags/drm to 
encrypt the video and then decrypt it on the client android using these 
libraries.

-- 
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] Re: how to add URL button

2014-11-01 Thread Sheharyar Naseer
From what I understand, you want to add a Button that when tapped, would 
open a specific URL in the browser, right?

Place a button in your Layout, give it an ID and in your Java Code, use 
this:

Button button = (Button) findViewById(R.id.button_id);

button.setOnClickListener(new OnClickListener() {
public void onClick(View v) {
Intent intent = new Intent();
intent.setAction(Intent.ACTION_VIEW);
intent.addCategory(Intent.CATEGORY_BROWSABLE);
intent.setData(Uri.parse(http://www.yourURL.com;));
startActivity(intent);
}
});


Replace `button_id` with your button's id and the url, with the one you 
want.

-- 
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] Re: How to develop openvpn.

2014-11-01 Thread Sheharyar Naseer
Hey @sree,
Have you tried taking a look at ICS-OpenVPN 
https://code.google.com/p/ics-openvpn/? Maybe that's what you're looking 
for.

-- 
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] Re: Android Wear: Disable wakeup gesture?

2014-11-01 Thread Sheharyar Naseer
Bump for potential

-- 
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] Re: Is it possible to make an Android device appear as a Bluetooth speaker?

2014-11-01 Thread Sheharyar Naseer
Here are some links that you might find useful:

   - Bluetooth audio streaming between Android devices 
   
http://stackoverflow.com/questions/20159457/bluetooth-audio-streaming-between-android-devices
   - How to stream audio from PC to Android device over Bluetooth 
   
http://android.stackexchange.com/questions/19161/how-to-stream-audio-from-pc-to-android-device-over-bluetooth
   - Use Android Phone or Tablet as a PC Speaker over Bluetooth 
   
http://superuser.com/questions/644138/android-phone-or-tablet-as-pc-speaker-over-bluetooth

Here are some apps that already do what you're asking (and tutorials on how 
to use them):

   - Sound Seeder 
   
http://galaxy-note2.wonderhowto.com/how-to/mobile-surround-sound-make-any-android-device-wireless-speaker-for-your-samsung-galaxy-note-2-0148335/
   - Soundwire 
   
http://www.ilovefreesoftware.com/04/android-2/how-to-use-android-phone-as-pc-speakers.html


Do let us know if it worked out for you!

-- 
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 download library does not find the remote expansion/.obb file if it's large

2014-11-01 Thread Mathias Lin
I am implementing an app with an expansion file, and as recommended in the 
Android Developer docs, I am also doing a manual check when the app starts, 
whether the expansion file exists, and if not, download it manually via the 
Download Library, that comes with the Android SDK samples.

https://developer.android.com/google/play/expansion-files.html#Preparing

I have it running and it's working with my app and a relatively small 
expansion file (1.4 MB).
When I upload my app to the Google Play store (Alpha test mode), the app is 
available after 2-3 hours, as usual. And at the same time, the download 
library is also able to find and download the expansion file in my app, if 
it's not there. 
(For testing purposes, I delete the expansion file manually on my sdcard, 
in order to test that the download check works correctly).

*But when I use a much larger expansion file of around 340 MB size, the 
manual download from within my app does not find that file, even though the 
app is available in the Play store.*
When I download the app from Google Play, it downloads the app including 
the large expansion file just fine. But when I then, for testing purposes, 
delete the expansion file from my sdcard, and restart my app, the app 
should check if the expansion file exists (it doesn't) and should download 
it.
But this time, it cannot find the resource.

Download failed because the resource could not be found. is the message I 
am getting when I run the (modified) sample app that comes with the Android 
SDK. (According to that message, the DownloadClient state seems to be in 
this: static final int STATE_FAILED_FETCHING_URL = 16;)

I'm on Android 4.4.4 with a Nexus 4.

Has anyone experienced this problem with large expansion files and those 
not being available via manual download (through the Android download 
library)?

I checked the log, no errors, and no other changes in the app. Or is there 
a longer waiting time until a large expansion file gets available, beyond 
those regular 2-3 hours until an app update is available in Google Play?

-- 
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] Re: Android Studio Editor feature

2014-11-01 Thread Sheharyar Naseer
Hi @Doug,

This is an awesome feature and I don't know why you would want to disable 
that, but if you would still want to, you can do this:

   1. Open Android Studio
   2. Navigate to *Settings ** Editor ** Code Folding*
   3. Uncheck the *Android String References *option

If you would like to enable it again in the future, simply check the option 
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
--- 
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] Re: Run custom android without rooting device

2014-11-01 Thread Sheharyar Naseer
Hi @pedr0,

Yes, this isn't possible without root. You need to unlock your bootloader 
to be able to install custom ROMs.

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