[android-developers] Re: Meta: Changes to new-user moderation policy

2019-09-09 Thread Bob
Thank you

On Monday, September 2, 2019 at 5:01:39 AM UTC-7, Nisha George wrote:
>
> you can block the all fake incoming call on your Android by adding it to 
> block list. Call history > Upper fight corner Settings > Call Blocking > 
> Add the number and Block. Steps may very for different versions of Android
>
> On Friday, February 16, 2018 at 11:09:44 AM UTC+5, abdul basit wrote:
>>
>> Can some one help me. i want to override the default incoming call 
>> activity
>>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/b43d6c40-1a5f-4b7a-9e6f-5560d4519f89%40googlegroups.com.


[android-developers] Lunch Activity into Freeform Stack

2016-10-13 Thread Bob Peng
Recently , I was developing android framework , I want to lunch activity to 
freeform stack directly, I wonder if anyone can tell me how to do it ?
the default entry is lunch from the SystemUI recent activity ! 

-- 
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/67d33637-48b4-49e1-90c6-d5aae85ab164%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Loading a local mp4 video from an html link on Android Samsung tablet

2016-09-08 Thread Bob Achgill


I have a html file on my Samsung android tablet that has a link like this:


Click to play local 
0001_a1.mp4


When I click it I wanted it to open the video file that is in the sub 
directory /video beneath but only the link background changes like the link 
is being pressed but no video plays. If I remove the video file and press 
the link I get an error that it can't find the file. So I know that 
something is trying to happen. I have also tried


Click to play local 0001_a1.mp4


With the same results. Both work fine when on a Windows PC.

How can I load local videos using an html link on Android?


A guy on Stack Overflow 
<http://stackoverflow.com/questions/39399172/loading-an-mp4-video-from-an-html-link-on-android>
 
suggested...


In mobile browsers you must call window.open inside onClick instead of set 
href attribute:



Click to play local 0001_a1.mp4



But that only results in refreshing the same page to the top of the page... not 
showing the video in a new window.  Surely this is not a new thing that I am 
trying to do.  Any suggestions??

My first thought was to bypass the built in HTMLViewer and install the Chrome 
browser to open the file.  But I could not find a way to change settings so 
html files get opened by Chrome instead of HTMLViewer.

Thanks!

Bob

-- 
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/a6e6d134-4142-4b8b-afa9-dfc9fead5e2f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Android app licensing error class not found

2016-07-16 Thread Bob B.


I have worked through the example in the SDK and am now receiving the 
following error when trying to run the demo app.


Caused by: java.lang.ClassNotFoundException: Didn't find class 
"com.rythmair.licenseverification.MainActivity" on path: DexPathList[[zip 
file 
"/data/app/com.rythmair.licenseverification-2/base.apk"],nativeLibraryDirectories=[/vendor/lib,
 
/system/lib]]


Here is my full MainActivity


package com.rythmair.licenseverification;
import android.app.Activity;import android.app.AlertDialog;import 
android.app.Dialog;import android.content.DialogInterface;import 
android.content.Intent;import android.net.Uri;import android.os.Bundle;import 
android.os.Handler;import android.provider.Settings;import 
android.util.Log;import android.view.View;import android.widget.Button;import 
android.widget.TextView;
import com.google.android.vending.licensing.AESObfuscator;import 
com.google.android.vending.licensing.LicenseChecker;import 
com.google.android.vending.licensing.LicenseCheckerCallback;import 
com.google.android.vending.licensing.Policy;import 
com.google.android.vending.licensing.ServerManagedPolicy;
public class MainActivity extends Activity {

String tag = "LICENSE: ";

private static final String BASE64_PUBLIC_KEY = "MY_KEY_REMOVED";

// Generate your own 20 random bytes, and put them here.
private static final byte[] SALT = new byte[] {
-46, 65, 30, -128, -103, -57, 74, -64, 51, 88, -95, -45, 77, -117, 
-36, -113, -11, 32, -64,
89
};

private TextView mStatusText;
private Button mCheckLicenseButton;

private LicenseCheckerCallback mLicenseCheckerCallback;
private LicenseChecker mChecker;
// A handler on the UI thread.
private Handler mHandler;

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);

Log.i(tag, "Just in onCreate method.");

mStatusText = (TextView) findViewById(R.id.status_text);
mCheckLicenseButton = (Button) findViewById(R.id.check_license_button);
mCheckLicenseButton.setOnClickListener(new View.OnClickListener() {
public void onClick(View view) {
doCheck();
}
});

mHandler = new Handler();
Log.i(tag, "Just set mHandler to new Handler.");
// Try to use more data here. ANDROID_ID is a single point of attack.
String deviceId = Settings.Secure.getString(getContentResolver(), 
Settings.Secure.ANDROID_ID);

// Library calls this when it's done.
Log.i(tag, "Setting new mLicenseCheckerCallback");
mLicenseCheckerCallback = new MyLicenseCheckerCallback();

// Construct the LicenseChecker with a policy.
Log.i(tag, "Setting mChecker variable.");
mChecker = new LicenseChecker(
this, new ServerManagedPolicy(this,
new AESObfuscator(SALT, getPackageName(), deviceId)),
BASE64_PUBLIC_KEY);
doCheck();
}

protected Dialog onCreateDialog(int id) {
final boolean bRetry = id == 1;
return new AlertDialog.Builder(this)
.setTitle(R.string.unlicensed_dialog_title)
.setMessage(bRetry ? R.string.unlicensed_dialog_retry_body : 
R.string.unlicensed_dialog_body)
.setPositiveButton(bRetry ? R.string.retry_button : 
R.string.buy_button, new DialogInterface.OnClickListener() {
boolean mRetry = bRetry;
public void onClick(DialogInterface dialog, int which) {
if ( mRetry ) {
doCheck();
} else {
Intent marketIntent = new 
Intent(Intent.ACTION_VIEW, Uri.parse(
"http://market.android.com/details?id=; + 
getPackageName()));
startActivity(marketIntent);
}
}
})
.setNegativeButton(R.string.quit_button, new 
DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int which) {
finish();
}
}).create();
}

private void doCheck() {
mCheckLicenseButton.setEnabled(false);
setProgressBarIndeterminateVisibility(true);
mStatusText.setText(R.string.checking_license);
mChecker.checkAccess(mLicenseCheckerCallback);
}

private void displayResult(final String result) {
mHandler.post(new Runnable() {
public void run() {
mStatusText.setText(result);
setProgressBarIndeterminateVisibility(false);
mCheckLicenseButton.setEnabled(true);
}
});
}

private void displayDialog(final boolean showRetry) {
mHandler.post(new Runnable() {

[android-developers] Am I missing a qualifier?

2016-07-05 Thread Bob B.
Hello all, 

I am continue to build my knowledge around Android design and could use 
some clarification.

I am trying to understand how you can get two different sized devices which 
have the same dpi use two different image assets.

I have built an application which has a significant number of res folders 
which use one or more resource qualifiers.

For example, I have the following.

drawable-sw320dp-mdpi
drawable-sw320dp-xxhdpi
drawable-sw800dp-mdpi

layout-sw720dp-mdpi
layout-sw720dp-xxxhdpi
layout-sw800dp-mdpi

I've had to do this in order to keep images in my application proportional 
from one screen size / density to the next.

Here is where things are getting a bit rough.

Take a phone that is listed at 768x1280, mdpi, 160dp.

If I am understanding things correctly, this means the following.

It is an mdpi device so 1px = 1dp
The size of the device in dp is 768x1280
This device will use my layout in the layout-sw800dp-mdpi folder
It should use the image asset that is in my drawable-sw800dp-mdpi folder

Am I correct up to this point?

Now, let's say I have a tablet, that is 2048 x 1536 (Galaxy Tab S2) and is 
mdpi.

Does this mean that it will use the same layout and drawable resources as 
the previously mentioned phone?

Does this also mean that the resource in my drawable folder should be as 
follows?

dpi = 48
size (what fits my needs)

Given this information is correct, I would expect that the single image of 
sizeX and dpi of 48 would look proportional on both devices, which 
unfortunately I am not always finding to be correct.

If someone could tell me if I'm in the ball park or WAY off base on my 
understanding up to this point, I would really appreciate it.

Thank you!
Bob





-- 
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/fde4f66f-f9bd-4310-890e-93bb3c561100%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Android virtual device help

2016-07-04 Thread Bob B.
Hello all, 

I am looking to be able to test a wide variety of screens in Android studio 
and am wondering if someone could point me to a resource or provide some 
assistance?

My goal is to be able to develop against the following.

sw240dp...

sw320dp-mdpi
sw320dp-hdpi
sw320dp-xhdpi
sw320dp-xxhdpi
sw320dp-xxxhdpi

sw600dp-mdpi
sw600dp-hdpi
sw600dp-xhdpi
sw600dp-xxhdpi
sw600dp-xxxhdp8

... the same for sw720dp

I am guessing there are profiles you can download and load in to the AVD 
manager?  Or do you need to build them manually?  

I have tried to setup a few of them but I am not fully understanding the 
AVD yet for getting new device definitions in to it.

I am using this many qualifiers due to the fact that I have some images 
that I need to stay proportional between smaller and larger same density 
devices.  Unfortunately, Androids scaling to ensure things stay the same 
size between a 3" phone and 10" tablet that both happen to have a dp of 320 
is not helping me here.

Thanks!
Bob


-- 
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/50ec71e5-9ee4-4ebb-89d9-a78f2c3d1d47%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] SURELY, someone out there can help/explain this to me.

2016-07-02 Thread Bob B.
Hi all, 

(as you read through this)
-- I am not hard coding ANY dimensions or sizes for anything
-- All elements use wrap content and match parent
-- I have read over the Android development for different screen sizes so 
many times I can almost recite the page (not to say I haven't missed 
something, so if I have, please point it out).

I am literally on weeks of trying to figure this out and have read (many 
times) every resource I can find and am still clearly missing something.

I am attempting to get image assets to stay in proportion to the screen on 
different devices.  This seems very fundamental and there is tons of 
documentation, but I am still struggling and would greatly appreciate some 
assistance.

I have created 5 sets of images which look like the following.

ldpi
- dpi of the images is 36 x 36

mdpi 
- dpi of the images is 48 x 48

hdpi
- dpi of the images is 72 x 72

xhdpi
- dpi of the images is 96 x 96

xxhdpi 
- dpi of the images is 144 x 144

I am designing in Android Studio and using one of the 10" xhdpi tablet 
devices to design against.

I have a square image that I am placing 4 times (roughly evenly spaced) at 
the top of my screen and when viewing the screen, the image takes up 
roughly one inch or so. 

To accomplish this, I created an image that is 325x325px with a dpi of 96 
and it looks fantastic.

The problem comes when I try to view my app on smaller device with the same 
density of xhdpi.  In these situations, the image is HUGE and takes up far 
more space than it should.

I believe I understand the difference between pixel (tablet that is 1200 px 
x 800 px) and dip/dp.  Given that the dimensions in pixels are 1200 x 800 
and the density is xhdpi, the dimension in dp would be 600 x 400.

This is where I am getting totally lost.  Clearly I am missing something 
and there must be a way to keep images proportioned correctly when you go 
from a small device size to a larger device size when both use the same 
density (for example, a  800 pixel x 600 px 3" phone and a 2500 pixel x 
1600 pixel 10" tablet which both have a density of xhdpi).

I do also realize that this is only 1/2 of the equation and the use of 
additional layout folders with qualifiers will be needed to potentially 
make adjustments for different screen sizes.  That part I am ok with but I 
am losing my mind over trying to figure out how to get my image assets to 
look the way I need.

Any help would be OH so much appreciated.

One final note.  I have seen several posts where people have stated, "Just 
use xhdpi assets and Android will scale everything for you."  Yes, I know 
this is a performance issue, but even trying that, it certainly is not 
scaling things down for me.  One thing I have noticed is that if I set the 
background property of a layout to an image asset, it seems to display as 
I'd want on every device, regardless of size or density.  However, the 
issue I am having is with image views specifically, so does my problem 
exist there?

Thanks!
Bob

-- 
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/d9c3d809-d511-4800-8234-bc2512b4869e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Missing something when sizing images to support different screens

2016-07-01 Thread Bob B.
I have been reading over this information, forums, developer site, etc. for 
the past week and still have been unsuccessful in fully understanding how 
to size images such that things appear acceptable on different sized 
devices.  Certainly there is something I am missing, as this can't be that 
difficult, can it?  If someone could please point me in the right 
direction, I would be ever so grateful.

I am using qualifiers on the drawable and layout folders in an attempt to 
handle the various screen sizes and densities.

I have created drawable-ldpi, drawable-mdpi, drawable-hdpi, and 
drawable-xhdpi
I have created layout-w320dp, layout-w480dp, layout-w600dp, and 
layout-w720dp

I have placed a copy of the layout I am dealing with in each of the layout 
folders so I can adjust each as needed.

I have placed my graphics that I am testing with in their respective 
drawable folder.  

I initially designed my app using a Galaxy Tab 10" and scaled my graphics 
(png) files in GIMP with a dpi of 320 and sized to fit how I wanted them to 
look in the 10" environment.

I then took the original graphic (unmodified) that was used for the 
previously mentioned image and made the mdpi version by changing the dpi to 
160 and setting the pixel width/height to 1/2 of the previously mentioned 
image.

For the rest, I followed the information from the design guide of...

ldpi = .75 of the mdpi
hdpi = 1.5 of the mdpi
With the first image created being the xhdpi

Question 1:  Should you scale all images such that the following are true, 
regardless of the dimensions of each image?

- ldpi images should always be 120dpi
- mdpi images should always be 160dpi
- hdpi images should always be 240dpi
- xhdpi images should always be 320dpi 

Here is an example of what I have done and what specifically is not working.

I have a logo that is 400 x 400 and has a dpi of 320.  This image looks 
beautiful on my tablet and the image file resides in the xhdpi folder
I then took a copy of this image and scaled it to 200 x 200 with a dpi of 
160 for my mdpi version and placed the file in the mdpi folder.
When viewing a 10" device in Android Studio, it looks great
When viewing a phone 3-4" device in Android Studio, the logo in HUGE!

My goal is basically this.

If I have an image that takes up exactly 1/4 of my screen on a tablet in 
the lower left corner, I want that image to take up the same 1/4 of the 
screen on the smaller devices, not be huge, taking up pretty much the 
entire screen.

Question 2:  I thought Android was supposed to down-sample the images of 
larger than what was needed so it would essentially scale things down for 
me, with a better goal of providing assets that are close to where they 
should be, which is what I am attempting to do.  Is this not the case?

There has to be some formula / step that I am simply missing here so if 
anyone could shed some light on this for me, I would greatly appreciate it.

Thank you all!

Bob


-- 
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/390111ec-3b70-4668-8d35-a688a974fe26%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] trying to run Android Studio in Ubuntu 14.04 can't read documentation, or create virtual device

2016-04-21 Thread Bob Mounger
I want to port 

http://generalfuzz.net/acrn/

to android to help my (and other peoples) tinnitus. I tried AppInventor but 
it could not make the frequency slider. & then PhoneGap which only produced 
a part of the app.

So I thought I have to start from scratch.
I am running Ubuntu 14.04 32 bit on machine with 310 GB.  My reading of the 
requirements was that this is sufficient.
I installed Oracle Java 8, &  Android Studio & tried to create MyFirstApp.
It does not find my samsung phone in developer mode, tells me that my 
laptop lacks an intel processor & is therefore  inadequate to create a 
virtual device & refuses to run online documentation. There was an adb 
error at the bottom of the screen which I tried to fix by rolling back 
platform-tools & now it simply refuses to react to the request for online 
documentation.

Q1 Is this laptop able to develop in android studio?
Q2 How can I debug the online documentation failure?


-- 
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/60b328ad-f26e-4707-89fa-28742f1d6e64%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Newbie Problem

2016-02-01 Thread Bob Reeves
i am going though a tutorial trying to learn this so i can show others.

I have this line:



getSupportActionBar().setDisplayShowHomeEnabled(true);

when i try to run on emulator the program compiles, but when the emulator comes 
up, I get an error indicating the app has stopped functioning.  If i comment 
this out, the app runs perfectly except the icon bar does not show up at the 
top.  This is the error explanation i get but quite honestly i do not 
understand it, what do i need to do to get this to work?



-- 
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/b75aad74-a295-4d39-9db5-0b4c3fe3f6fb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Re: Newbie Problem

2016-02-01 Thread Bob Reeves
and thank you in advance.

On Monday, February 1, 2016 at 1:26:44 PM UTC-5, Bob Reeves wrote:
>
> i am going though a tutorial trying to learn this so i can show others.
>
> I have this line:
>
>
> <https://lh3.googleusercontent.com/-fD_TlOkiAQs/Vq-jVQCSbJI/AGc/moax15TbucI/s1600/error.jpg>
>
> getSupportActionBar().setDisplayShowHomeEnabled(true);
>
> when i try to run on emulator the program compiles, but when the emulator 
> comes up, I get an error indicating the app has stopped functioning.  If i 
> comment this out, the app runs perfectly except the icon bar does not show up 
> at the top.  This is the error explanation i get but quite honestly i do not 
> understand it, what do i need to do to get this to work?
>
>
>
>

-- 
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/68634af0-38b0-4ddc-8553-8fbfe5341b1f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] You need to enter a valid YouTube address

2014-12-19 Thread Bob S
Hello,

  I'm trying to submit an Android App to Google Play.  The form has a line 
where you can enter a YouTube video promo.  But I can't get it to accept my 
URL.  I found this thread where they say you simply have to change https 
to http, but that does not work for me:

https://groups.google.com/forum/#!searchin/android-developers/You$20need$20to$20enter$20a$20valid$20Youtube$20address/android-developers/ALLqV2zmyZE/qWPy8lIokcgJ

So does anyone know what you have to do to get it to work? 

Thanks
Bob

-- 
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] Activity partially offscreen

2013-10-10 Thread bob
Is there a way to push an activity to the right or left so that half of it 
is off the screen?

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
--- 
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] Hax freeze

2013-10-09 Thread bob
Has anyone gotten Intel Hax working on a Macbook Pro or other Apple machine?

I've got it installed on my Macbook Pro, but my entire computer freezes 
when I launch the Android Virtual Device that uses the Hax.

Has anyone else seen this?

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

2013-09-30 Thread bob
I saw this in styles.xml:

item name=android:background?android:attr/editTextBackground/item

Is there a way to figure out exactly what ?android:attr/editTextBackground 
is?

Is that a nine-patch somewhere?

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
--- 
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] mixing themes

2013-09-28 Thread bob
Is there an easy way to have a widget take on the style of a theme other 
than the current one?

For instance, maybe the current theme is Theme.Holo but you want a widget 
to look like Theme.Light.

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

2013-08-10 Thread bob
Does anyone know why the MediaController class doesn't show up on the 
screen when I define it in an XML layout?

I saw this in the docs:

*The way to use this class is to instantiate it programatically.*

However, the docs seem to contradict themselves when they go on to say:

*Functions like show() and hide() have no effect when MediaController is 
created in an xml layout. *

That implies to me that it is okay to create it in an XML layout if you 
want a MediaController that is always visible.

Anyone know what the story is?

I've googled it and not found the answer.

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
--- 
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] Re: Stretch videostrong

2013-07-26 Thread bob
Thanks. 

I got that working.

Any tips on how to stick an AdView at the top?

I think it might be tricky since that RelativeLayout thing is kind of a 
hack.



On Tuesday, July 23, 2013 8:09:56 AM UTC-5, Matt wrote:

 Take the VideoView under a RelativeLayout and define it as below:

 VideoView
 android:layout_width=fill_parent
 android:layout_height=fill_parent
 android:layout_alignParentBottom=true
 android:layout_alignParentLeft=true
 android:layout_alignParentRight=true
 android:layout_alignParentTop=true / 

 On Saturday, July 20, 2013 7:04:46 PM UTC+5:30, bob wrote:

 Anyone know if there's an easy way to scale a VideoView so the video 
 takes up the whole screen?

 I want it to be stretched.

 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
--- 
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] make a VideoView loop seamlessly?

2013-07-24 Thread bob
Is there any way to make a VideoView loop completely seamlessly?

The video seems to stutter a bit.

I have tried the OGG format (OGV), but the Nexus 7 says it doesn't know how 
to play it.

I think it would help if I knew how to load the whole thing into RAM.

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
--- 
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] Stretch videostrong

2013-07-20 Thread bob
Anyone know if there's an easy way to scale a VideoView so the video takes 
up the whole screen?

I want it to be stretched.

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
--- 
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] Re: Can an image be embedded in an email body?

2013-05-23 Thread bob
Why not try something like this:

*   Intent emailIntent = new 
Intent(android.content.Intent.ACTION_SEND); *
*emailIntent.setType(application/image);*
*emailIntent.putExtra(android.content.Intent.EXTRA_EMAIL, new 
String[]{b...@example.com}); *
*emailIntent.putExtra(android.content.Intent.EXTRA_SUBJECT,Test 
Subject); *
*emailIntent.putExtra(android.content.Intent.EXTRA_TEXT, From My 
App); *
*emailIntent.putExtra(Intent.EXTRA_STREAM, 
Uri.parse(file:///mnt/sdcard/sc.png));*
*startActivity(Intent.createChooser(emailIntent, Send mail...));*

Based on code from here:
http://stackoverflow.com/questions/14457457/android-intent-send-an-email-with-image-attachment


Thanks.


On Wednesday, May 22, 2013 7:45:56 PM UTC-5, Sonia Gupta wrote:

 I am facing the same issue...need to embed an image, but not able to find 
 a solution yet. Did you get anything?

 Sonia

 On Wednesday, March 23, 2011 2:14:57 AM UTC-7, Mathieu wrote:

 Zarah did you manage embed your image ?



-- 
-- 
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] Re: Suddenly Lots of Apps in Play Store are no longer compatible my Galaxy Tablet

2013-05-23 Thread bob
Yes, setting *android:targetSdkVersion* to 11 worked for me.

Thanks.


On Thursday, May 23, 2013 2:23:29 PM UTC-5, Fredrik Hyttnäs-Lenngren wrote:

 Confirmed! Adding *android:targetSdkVersion *with a value higher or equal 
 to 11 fixed this issue.

 On Thursday, 23 May 2013 19:20:04 UTC+2, Fredrik Hyttnäs-Lenngren wrote:

 I added the *android:targetSdkVersion *with a value higher or equal to 
 11 to my manifest file and uploading it to the developer console. The apk 
 details now highlights *xlarge * as a new feature. Going to publish 
 the update and see if it REALLY did it or if it's just the Developer 
 Console fooling me.

 // Fredrik

 On Thursday, 23 May 2013 17:50:41 UTC+2, jjbunn wrote:

 Hi Fredrik,

 I'm also having the same problem as OP. Nothing changed in my Manifest, 
 or build procedure, but now Google Play marks my app as incompatible with 
 e.g. the Nexus 10.

 It would be really nice if there was some way of asking Google directly 
 if they have changed something, rather than us all speculating on what 
 might have happened or what the fix might be :-)

 If I browse the APK in the dev. console I see the following. (I'm not 
 sure what this information means precisely - I've never looked at it 
 before!)

 Previously active APKs supported more devices than those in the draft 
 configuration. Some devices will not receive upgrades. Less 

- Devices currently running *version 76* are no longer supported by 
the current configuration. Such devices will not receive upgrades. 
*API levels* = 4 and 
*Screen layouts* containing any of [small, normal, large, xlarge*]and 
*Features* containing all of [android.hardware.MICROPHONE, 
android.hardware.TOUCHSCREEN]
- Devices currently running *version 13* are no longer supported by 
the current configuration. Such devices will not receive upgrades. 
*API levels* = 3 and 
*Screen layouts* containing any of [normal, large*, xlarge*] and 
*Features* containing all of [android.hardware.MICROPHONE, 
android.hardware.TOUCHSCREEN]

 Julian

 On Thursday, May 23, 2013 2:35:05 AM UTC-7, Fredrik Hyttnäs-Lenngren 
 wrote:

 I actually see now that when I browse the APK in the developer console 
 to read the details about it, that it claims that it only supports 
 3-screen-layout, rather than 4 (xlarge missing).
 It should be possible to tinker with the manifest and upload a new apk, 
 look at the details and verify what does the trick instead of uploading - 
 publish - wait - check - repeat...

 // Fredrik

 On Thursday, 23 May 2013 09:21:09 UTC+2, Fredrik Hyttnäs-Lenngren wrote:

 Did you update the apps My Anchor Watch Free and My Anchor Watch 
 Pro or did they just suddenly become incompatible?  
 I'm looking towards adding the *android:targetSdkVersion *to one of 
 my apps and release it and see if it works.

 This is exactly the issue Google had with the Hangout app not being 
 compatible with tables once they update it from Talk, so they must have 
 been caught by surprise as well.

 Fredrik

 On Thursday, 23 May 2013 08:54:52 UTC+2, Terry wrote:

 I don't think that *android:**minSdkVersion or **
 android:targetSdkVersion *has anything to do with it. Some of my 
 apps which are now shown as incompatible *and *some which are 
 still compatible, *both *only have the *android:**minSdkVersion *in 
 the AndroidManifest file.

 Two of my apps which were shown in the Play Store as compatible 
 only a few days aga, but which are now shown as incompatible (with 
 e.g. 
 GT-P7500) are My Anchor Watch Free and My Anchor Watch Pro. They are 
 both listed as compatible (with this particular device) in the 
 Developer's 
 Console.

 Terry


 On Wednesday, May 22, 2013 7:15:57 PM UTC+2, Fredrik Hyttnäs-Lenngren 
 wrote:

 I published a completely new app at the same time I published the 
 updates, and it shows up on Google Play for all devices.
 Only difference I can see between them is that the new app has the *
 android:targetSdkVersion* included within the *uses-sdk *tag while 
 the others only have the *android:minSdkVersion. *
 *
 *
 *
 *

 On Wednesday, 22 May 2013 18:42:05 UTC+2, Terry wrote:

 I have not found a common denominator yet. Strangely enough, those 
 of my apps which are suddenly incompatible with the GT-P7500, 
 (according 
 to Play Store), are listed as compatible with the same device in the 
 Developers Console. So it seems pretty obvious that something on Play 
 Store 
 has been broken.
 Terry



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

Re: [android-developers] Re: Donwloadin incomplete file

2013-05-22 Thread bob
Well, there's a limit to what I can do since that URL is on your LAN, and I 
don't have access to it.

However, it seems like it is getting the file name correctly as *
You_Should_Be_Working.jpg*.  

I would go to that URL in a web browser and make sure it shows the image.

It would not surprise me if the JSP script at that URL is buggy.

It also would not surprise me if it has something to do with using port 
8080.  Port 80 is much more likely to be open and unfiltered.

Let me know if the image here shows okay in your web browser:

http://192.168.9.67:8080/branch15/control/ipw/downloadFile?fileName=You_Should_Be_Working_1921117838.jpgdirectory=attachment/AUDITdisplayfile=You_Should_Be_Working.jpg


Thanks.


On Wednesday, May 22, 2013 1:33:34 AM UTC-5, rahul kaushik wrote:


 http://192.168.9.67:8080/branch15/control/ipw/downloadFile?fileName=You_Should_Be_Working_1921117838.jpgdirectory=attachment/AUDITdisplayfile=You_Should_Be_Working.jpg

 Thanks


 On Tue, May 21, 2013 at 7:58 PM, bob b...@coolfone.comze.comjavascript:
  wrote:

 What is the URL you are downloading from?

 Thanks.


 On Tuesday, May 21, 2013 4:45:44 AM UTC-5, rahul kaushik wrote:

 yes am searching for the= sign and i have set both the permissions but 
 same result

 Thanks



 On Tue, May 21, 2013 at 1:18 AM, bob b...@coolfone.comze.com wrote:

  Actually, I was looking at your code some more, and *I would want to 
 know the URL you are downloading from* to get a better idea of the 
 correctness.  I see that you are searching for an equals sign and using 
 that to find the file name.

 If it turns out you are coming up with an okay file name, the problem 
 is almost certainly one of permissions - you will need INTERNET permission 
 as well as WRITE_EXTERNAL_STORAGE.

 Thanks.


 On Monday, May 20, 2013 7:25:12 AM UTC-5, rahul kaushik wrote:

 Hi,

 I am trying to download the file as this is 2 mb but it is downlaoding 
 only 7.1 kb below is my code
 class DownloadFileFromURL extends AsyncTaskString, String, String {

 /**
  * Before starting background thread Show Progress Bar Dialog
  * */
 @Override
 protected void onPreExecute() {
 super.onPreExecute();
 showDialog(progress_bar_type);
 }

 /**
  * Downloading file in background thread
  * */
 @Override
 protected String doInBackground(String... f_url) {
 int count;
 final int BUFFER_SIZE = 128;
 File root = android.os.Environment.**getExte**
 rnalStorageDirectory();
 try {
 URL url = new URL(f_url[0]);
 String fileName=url.toString();;
 // String Filename=   getFileName(url);
   
 String newpath = fileName.replace('\\','/');
 int start = newpath.lastIndexOf(=);
 if ( start == -1)
 {
   start = 0;
 }
 else
 {
   start = start + 1;
 }
 String pageName = newpath.substring(start, 
 newpath.length());
   
  
 long startTime = System.currentTimeMillis();
  Log.d(getFileName, pageName);

  
  URLConnection ucon = url.openConnection();
  ucon.connect();
  int lengthofFile = ucon.getContentLength();
  /*
   * Define InputStreams to read from the URLConnection.
   */
  InputStream is = ucon.getInputStream();
  BufferedInputStream bis = new BufferedInputStream(is);

  /*
   * Read bytes to the Buffer until there is nothing more 
 to read(-1).
   */
  ByteArrayBuffer baf = new ByteArrayBuffer(5);
  int current = 0;
  while ((current = bis.read()) != -1) {
  baf.append((byte) current);
  }

  /* Convert the Bytes read to a String. */
  File file = new File(fileName);
  FileOutputStream fos = new FileOutputStream(Environment.*
 *g**etExternalStorageDirectory().**t**oString()+ /+pageName.trim());
  //Log.d(root:, root.toString());
  fos.write(baf.toByteArray());
  fos.close();
  Log.d(ImageManager, download ready in
  + ((System.currentTimeMillis() - 
 startTime) / 1000)
  +  sec);
  
  
  
  
  
 } catch (Exception e) {
 Log.e(Error: , e.getMessage());
 }

 return null;
 }

 /**
  * Updating progress bar
  * */
 protected void onProgressUpdate(String... progress) {
 // setting progress percentage
 pDialog.setProgress(Integer.**p**arseInt(progress[0]));
 }

 /**
  * After completing background task Dismiss the progress dialog
  * **/
 @Override
 protected void onPostExecute(String file_url) {
 // dismiss the dialog after

[android-developers] Re: Suddenly Lots of Apps in Play Store are no longer compatible my Galaxy Tablet

2013-05-22 Thread bob
I have seen something similar to this.

Can you maybe list a few apps where you've seen this so maybe we can figure 
out the common denominator?

I have seen this with my app when minSdkVersion=3.

The problem went away when I set minSdkVersion=15 and targetSdkVersion=15.

Thanks.


On Wednesday, May 22, 2013 5:15:41 AM UTC-5, Terry wrote:

 Suddenly a lot of Apps in the Google Play Store no longer seem 
 compatible with (e.g.) my Galaxy Tablet 10.1 (Model GT-P7500).
 They were shown (as available) a few days ago, but now they are gone. I 
 guess that something regarding device compatibility on the Play Store is 
 BROKEN.
 Amongst them are several of my own apps, which I have sold for this tablet 
 for a long time. Suddenly they are shown as incompatible.

 What has happened?

 Regards, Terry



-- 
-- 
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] Re: collision detection

2013-05-22 Thread bob
Well, I was looking for something to check if objects in a game collide.

I guess this is the closest I could find:  (in the Rect class):

/**
 * If the rectangle specified by left,top,right,bottom intersects this
 * rectangle, return true and set this rectangle to that intersection,
 * otherwise return false and do not change this rectangle. No check is
 * performed to see if either rectangle is empty. Note: To just test for
 * intersection, use {@link #intersects(Rect, Rect)}.
 *
 * @param left The left side of the rectangle being intersected with 
this
 * rectangle
 * @param top The top of the rectangle being intersected with this 
rectangle
 * @param right The right side of the rectangle being intersected with 
this
 *  rectangle.
 * @param bottom The bottom of the rectangle being intersected with this
 * rectangle.
 * @return true if the specified rectangle and this rectangle intersect
 *  (and this rectangle is then set to that intersection) 
else
 *  return false and do not change this rectangle.
 */
*public boolean intersect(int left, int top, int right, int bottom) {*
*if (this.left  right  left  this.right  this.top  bottom  
top  this.bottom) {*
*if (this.left  left) this.left = left;*
*if (this.top  top) this.top = top;*
*if (this.right  right) this.right = right;*
*if (this.bottom  bottom) this.bottom = bottom;*
*return true;*
*}*
*return false;*
*}*

Thanks.


On Friday, March 25, 2011 8:33:57 PM UTC-5, Hari Edo wrote:


 On Mar 25, 8:36 pm, bob b...@coolgroups.com wrote: 
  Does android have any libraries to help with collision detection? 

 Not going to give us much to go on, right?  What do you mean? 
 Phone-hits-pavement, finger-thumps-phone, finger-taps-widget, 
 circle-intersects-with-circle, rectangle-intersects-with-line, 
 sphere-intersects-with-ray, mesh-intersects-with-mesh, what? 

 Actually, I guess the answer is simpler than the question. 
 In all but one of those cases, the answer is generally no. 


-- 
-- 
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] Re: TextView's line breaking algo leaves whitespace at line beginnings (?)

2013-05-22 Thread bob
Maybe post a screenshot and/or your layout code?

I tried and I cannot reproduce your issue:

https://lh5.googleusercontent.com/-7vrHInHVCZU/UZzs2smGQ7I/AhM/WklR-yaiAvQ/s1600/cnr2.png


Thanks.


On Wednesday, May 22, 2013 10:50:33 AM UTC-5, latimerius wrote:

 Hello,

 I just noticed that some lines in my multi-line TextViews (line breaks 
 added by TextView itself) can occasionally turn out slightly indented to 
 the right.  I'm not sure what the cause is but it does look a lot like 
 there was a space at the beginning of the line.

 Is this how TextView works, or am I doing something wrong?  It's not a 
 huge problem but it looks a bit ugly so I'd be keen to fix it if possible.

 Thank in advance!



-- 
-- 
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] Re: Create an app to store a list of values locally on the phone/device

2013-05-22 Thread bob
It sounds like the Notepad sample is very similar to what you are looking 
for:

https://lh4.googleusercontent.com/-q5ckV96UK3E/UZ0DgFUyrjI/Ahc/kGZGbYZv4r4/s1600/notepad2.png


Thanks.


On Wednesday, May 22, 2013 10:31:34 AM UTC-5, Dan Cha wrote:

 Ive looked around and found only a few apps kinda close to what im trying 
 to do and few good examples on how to successfully setup SQL lite or 
 whatever database to tie to the app to store the values on the phone/device.
  
 What im trying to make is a very simple app for now that is just a long 
 list of entries so that my daughter can reference it as she needs.
  
 So for this first version i want to setup a local db that will be stored 
 with the app on the phone/device.
 Setup a simple entry form with 1 or 2 fields, submit and now you have a 
 list.
  
 Maybe give the ability to search or sort the list as it will grow into 
 over hundred entries.
  
 Can anyone offer a good site or online example of setting up such a app, 
 not looking for someont to do it, just a sample site that shows how to link 
 a db to your app so that values can be stored.
  
 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/groups/opt_out.




[android-developers] Re: Long Press on custom View

2013-05-22 Thread bob
It sounds like you want to call this method on your view:

*/***
* * Register a callback to be invoked when this view is clicked and 
held. If this view is not*
* * long clickable, it becomes long clickable.*
* **
* * @param l The callback that will run*
* **
* * @see #setLongClickable(boolean)*
* */*
*public void setOnLongClickListener(OnLongClickListener l) {*
*if (!isLongClickable()) {*
*setLongClickable(true);*
*}*
*getListenerInfo().mOnLongClickListener = l;*
*}*


Thanks.


On Wednesday, May 22, 2013 11:32:50 AM UTC-5, Robert wrote:

 Long story, short.
 1. I have a relative layout
 2. I need to program stuff to happen when the user long presses inside the 
 view


 What I would really like is to have a delete button appear on the side 
 that the user presses and the view goes away.
 Any idea how to do that?


-- 
-- 
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] Re: Android native libraries: How can they be used?

2013-05-22 Thread bob


On Wednesday, May 22, 2013 2:42:30 PM UTC-5, Ishan Sharma wrote:

 Hello!

 I have been reading Android architecture for some time and have some 
 questions pertaining to the native libraries.
 a) Are the native libraries used by the Application Framework? 


Yes.

 


 b) There are some libraries like media framework which provides media 
 codecs etc. Does this mean that when I use the  Android API (core 
 libraries) to play media files, the API interacts with the media framework 
 in the native library.


Most likely. Here is code for playing a media file:

/**
 * Starts or resumes playback. If playback had previously been paused,
 * playback will continue from where it was paused. If playback had
 * been stopped, or never started before, playback will start at the
 * beginning.
 *
 * @throws IllegalStateException if it is called in an invalid state
 */
public  void start() throws IllegalStateException {
stayAwake(true);
_start();
}

private native void _start() throws IllegalStateException;

As you can see, the code calls a native function ( _start )

 


 c) Is NDK the only way I can use the native libraries?



No.  You can use the Java SDK, which uses the native libraries indirectly.

Thanks.


 


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




Re: [android-developers] Re: Donwloadin incomplete file

2013-05-21 Thread bob
What is the URL you are downloading from?

Thanks.


On Tuesday, May 21, 2013 4:45:44 AM UTC-5, rahul kaushik wrote:

 yes am searching for the= sign and i have set both the permissions but 
 same result

 Thanks



 On Tue, May 21, 2013 at 1:18 AM, bob b...@coolfone.comze.comjavascript:
  wrote:

 Actually, I was looking at your code some more, and *I would want to 
 know the URL you are downloading from* to get a better idea of the 
 correctness.  I see that you are searching for an equals sign and using 
 that to find the file name.

 If it turns out you are coming up with an okay file name, the problem is 
 almost certainly one of permissions - you will need INTERNET permission as 
 well as WRITE_EXTERNAL_STORAGE.

 Thanks.


 On Monday, May 20, 2013 7:25:12 AM UTC-5, rahul kaushik wrote:

 Hi,

 I am trying to download the file as this is 2 mb but it is downlaoding 
 only 7.1 kb below is my code
 class DownloadFileFromURL extends AsyncTaskString, String, String {

 /**
  * Before starting background thread Show Progress Bar Dialog
  * */
 @Override
 protected void onPreExecute() {
 super.onPreExecute();
 showDialog(progress_bar_type)**;
 }

 /**
  * Downloading file in background thread
  * */
 @Override
 protected String doInBackground(String... f_url) {
 int count;
 final int BUFFER_SIZE = 128;
 File root = android.os.Environment.**
 getExternalStorageDirectory();
 try {
 URL url = new URL(f_url[0]);
 String fileName=url.toString();;
 // String Filename=   getFileName(url);
   
 String newpath = fileName.replace('\\','/');
 int start = newpath.lastIndexOf(=);
 if ( start == -1)
 {
   start = 0;
 }
 else
 {
   start = start + 1;
 }
 String pageName = newpath.substring(start, newpath.length());
   
  
 long startTime = System.currentTimeMillis();
  Log.d(getFileName, pageName);

  
  URLConnection ucon = url.openConnection();
  ucon.connect();
  int lengthofFile = ucon.getContentLength();
  /*
   * Define InputStreams to read from the URLConnection.
   */
  InputStream is = ucon.getInputStream();
  BufferedInputStream bis = new BufferedInputStream(is);

  /*
   * Read bytes to the Buffer until there is nothing more to 
 read(-1).
   */
  ByteArrayBuffer baf = new ByteArrayBuffer(5);
  int current = 0;
  while ((current = bis.read()) != -1) {
  baf.append((byte) current);
  }

  /* Convert the Bytes read to a String. */
  File file = new File(fileName);
  FileOutputStream fos = new FileOutputStream(Environment.**
 getExternalStorageDirectory().**toString()+ /+pageName.trim());
  //Log.d(root:, root.toString());
  fos.write(baf.toByteArray());
  fos.close();
  Log.d(ImageManager, download ready in
  + ((System.currentTimeMillis() - startTime) 
 / 1000)
  +  sec);
  
  
  
  
  
 } catch (Exception e) {
 Log.e(Error: , e.getMessage());
 }

 return null;
 }

 /**
  * Updating progress bar
  * */
 protected void onProgressUpdate(String... progress) {
 // setting progress percentage
 pDialog.setProgress(Integer.**parseInt(progress[0]));
 }

 /**
  * After completing background task Dismiss the progress dialog
  * **/
 @Override
 protected void onPostExecute(String file_url) {
 // dismiss the dialog after the file was downloaded
 dismissDialog(progress_bar_**type);
// String imagePath = Environment.**
 getExternalStorageDirectory().**toString() + /downloadedfile.jpg;
 // setting downloaded into image view
   //  my_image.setImageDrawable(**Drawable.createFromPath(**
 imagePath));
 }

  }

 PLease Suggest
 Thanks
 RK

  -- 
 -- 
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to 
 android-d...@googlegroups.comjavascript:
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com javascript:
 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 javascript:.
 For more options, visit https

[android-developers] Re: Some tablets marked as Incompatible in Play Store, but not in Developer Console

2013-05-21 Thread bob
I agree that *it probably does not have to do with the 2.2 build*.

I was having the same problem and was using the 2.2 build.

However, I switched from 2.2 to 4.2 SDK, and this did not remedy the 
problem.

However, I was able to sort of remedy the problem by setting

minSdkVersion=15
targetSdkVersion=15

You might want to try that as an experiment.

Thanks.


On Monday, May 20, 2013 2:15:43 PM UTC-5, jjbunn wrote:

 I don't think it has anything to do with the 2.2 build (what makes you 
 think it does?) as I already tried a version targeting 4.0 and the result 
 was the same.

 My users report that there are several other apps in the Play Store that 
 are now marked as incompatible for their tablets, which were compatible a 
 few days ago.

 So, my impression is that the problem is in the Play Store, but I'd love 
 to be wrong, because then I could fix it myself!

 Julian


 On Monday, May 20, 2013 10:41:46 AM UTC-7, Jonathan S wrote:

 Problem is Android 2.2 SDK build. You can built it on 4.0 and keep 
 minimum API level. Just be very careful.

 On Monday, May 20, 2013 12:50:39 PM UTC-4, jjbunn wrote:

 I uploaded a new APK for one of my apps on Friday. There was no change 
 to the manifest or build settings for the app, but some of my 
 customers using tablets like the Note 10 and Nexus 10 tell me that the 
 new APK is marked as incompatible in the Google Play store, whereas 
 they were happily using the previous version on those devices. 

 In my Android Developer Console, the APK is marked as being compatible 
 with those tablets (in fact it is marked as compatible with over 2000 
 devices, and incompatible with 0 (zero)). 

 So I am very puzzled what has happened, and would really appreciate 
 some help :-) 

 Here is the Manifest. I build with the Android 2.2 SDK. 

 ?xml version=1.0 encoding=utf-8? 
 manifest xmlns:android=http://schemas.android.com/apk/res/android; 
   package=com.xxx.xxx.xxx 
   android:installLocation=auto 
   android:versionCode=76 android:versionName=5.9.2 
uses-permission 
 android:name=android.permission.RECORD_AUDIO/ 
uses-permission 
 android:name=android.permission.MODIFY_AUDIO_SETTINGS/ 
uses-permission 
 android:name=android.permission.WRITE_EXTERNAL_STORAGE/ 
uses-sdk android:minSdkVersion=4/ 
 application android:icon=@drawable/icon 
 android:label=@string/app_name 
 android:theme=@android:style/Theme.NoTitleBar  
 activity android:name=.MyApp 
   android:label=@string/app_name 
 intent-filter 
 action android:name=android.intent.action.MAIN / 
 category 
 android:name=android.intent.category.LAUNCHER / 
 /intent-filter 
 /activity 
 /application 
 /manifest 



-- 
-- 
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] Re: Another Resources.NotFoundException with setContentView()

2013-05-21 Thread bob
I bet it is looking for the resource in a directory called 
layout-somethingweird, and it's not there.

What are the names of all your folders that start with layout?  Do they all 
contain the resource in question?

For instance, you might say:

*layout-large*
*layout-small*
*layout-medium  *

Thanks.


On Tuesday, May 21, 2013 8:15:10 AM UTC-5, plnelson wrote:

 I don't expect it to be reproducible unless you had my entire project and 
 all its settings.   This is a large (~20 Activities) industrial-control 
 app.   Think of the question as How do I debug a 
 Resources.NotFoundException?   or What EXACTLY does a 
 Resources.NotFoundException mean?
 My IDE is Eclipse Indigo.

 On Monday, May 20, 2013 4:43:48 PM UTC-4, bob wrote:

 I cannot reproduce the error you are getting.  What IDE are you using?

 Thanks.


 On Monday, May 20, 2013 3:35:24 PM UTC-5, plnelson wrote:



 On Monday, May 20, 2013 4:26:05 PM UTC-4, Jonathan S wrote:

 how about ant clean build


 This isn't an ant-based project, and anyway, ant is just supposed to 
 emulate the regular IDE so why  whould it be any better than what I've 
 already tried?What does it do in a clean and build that's 
 different/better for a problem like this?  



-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
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] fatal errors

2013-05-21 Thread bob
I've been contemplating fatal errors.  Back in the DOS days, I would just 
print them out and exit the program.  This was often adequate because you 
could instantly see what had happened.  However, with Android, when your 
program exits, nothing from it is left on the screen.  

Any ideas as to what is the best way to handle these?  I want to have a 
mode where I can see on the screen exactly what just happened.  

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
--- 
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] Re: OpenMAL-AL based app in Ginger bread

2013-05-21 Thread bob
Is this file present in your jni directory?

*libnative-media-jni.so*

Thanks.


On Tuesday, May 21, 2013 6:25:43 AM UTC-5, vigneshwaran s wrote:

 Hi,

 I'm trying to develop android app, in gingerbread using 
 OpenMAX-AL.Basically openMAX-AL library not supporatable in GingerBread.So 
 im using the openmax-al libray from ics (by building source).I able to 
 compile my sample application using that library without error after 
 installing in Ginger bread its showing error as below..And also i tried to 
 push the library inside my application lib folder still same error. 

 What should i do to use openmax-al library in gingerbread. Can u any one 
 suggest me idea ,im struggling for last one week? Thanks in advance.

 used in Android.mk file to compile:
 LOCAL_LDLIBS := $(LIB)/libOpenMAXAL.so 

 05-21 16:31:37.270: E/AndroidRuntime(28217): 
 java.lang.ExceptionInInitializerError
 05-21 16:31:37.270: E/AndroidRuntime(28217): at 
 java.lang.Class.newInstanceImpl(Native Method)
 05-21 16:31:37.270: E/AndroidRuntime(28217): at 
 java.lang.Class.newInstance(Class.java:1409)
 05-21 16:31:37.270: E/AndroidRuntime(28217): at 
 android.app.Instrumentation.newActivity(Instrumentation.java:1021)
 05-21 16:31:37.270: E/AndroidRuntime(28217): at 
 android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1610)
 05-21 16:31:37.270: E/AndroidRuntime(28217): at 
 android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1716)
 05-21 16:31:37.270: E/AndroidRuntime(28217): at 
 android.app.ActivityThread.access$1500(ActivityThread.java:124)
 05-21 16:31:37.270: E/AndroidRuntime(28217): at 
 android.app.ActivityThread$H.handleMessage(ActivityThread.java:968)
 05-21 16:31:37.270: E/AndroidRuntime(28217): at 
 android.os.Handler.dispatchMessage(Handler.java:99)
 05-21 16:31:37.270: E/AndroidRuntime(28217): at 
 android.os.Looper.loop(Looper.java:123)
 05-21 16:31:37.270: E/AndroidRuntime(28217): at 
 android.app.ActivityThread.main(ActivityThread.java:3806)
 05-21 16:31:37.270: E/AndroidRuntime(28217): at 
 java.lang.reflect.Method.invokeNative(Native Method)
 05-21 16:31:37.270: E/AndroidRuntime(28217): at 
 java.lang.reflect.Method.invoke(Method.java:507)
 05-21 16:31:37.270: E/AndroidRuntime(28217): at 
 com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
 05-21 16:31:37.270: E/AndroidRuntime(28217): at 
 com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
 05-21 16:31:37.270: E/AndroidRuntime(28217): at 
 dalvik.system.NativeStart.main(Native Method)
 05-21 16:31:37.270: E/AndroidRuntime(28217): Caused by: 
 java.lang.UnsatisfiedLinkError: Cannot load library: link_image[1964]:  
 1240 could not load needed library 'libOpenMAXAL.so' for 
 'libnative-media-jni.so' (load_library[1106]: Library 'libOpenMAXAL.so' not 
 found)
 05-21 16:31:37.270: E/AndroidRuntime(28217): at 
 java.lang.Runtime.loadLibrary(Runtime.java:434)
 05-21 16:31:37.270: E/AndroidRuntime(28217): at 
 java.lang.System.loadLibrary(System.java:554)
 05-21 16:31:37.270: E/AndroidRuntime(28217): at 
 com.example.nativemedia.NativeMedia.clinit(NativeMedia.java:338)
 05-21 16:31:37.270: E/AndroidRuntime(28217): ... 15 more
  

 regards
 VS


-- 
-- 
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] Re: Android shared preference via JNI

2013-05-21 Thread bob
Why would you *need* to implement that via JNI?

The obvious solution is to just use Java.

Thanks.


On Tuesday, May 21, 2013 1:34:08 AM UTC-5, Mr cool wrote:

 in my android application in need to access the shared memory between the 
 two application ,i knew android kernel is not  like Linux kernel to 
 implement the shared memory concept ,so i have choosen the shared 
 preference in android but i need to implement this via JNI not in java part 
 i have tried to create a shared preference in jni but i cant get it 
 properly 
 this my code

 JNIEXPORT jlong JNICALL Java_com_sharedpref1_test_savevalue
   (JNIEnv *env, jobject ctx, jstring store, jstring key, jlong value);
 
 
 
 jobject shared_preferences = (*env)-CallObjectMethod(env, 
 ctx, (*env)-GetMethodID(env (*env)-FindClass(env, 
 android/content/Context), getSharedPreferences, 
 (L/java/lang/String;I)Landroid/content/SharedPreferences;),
 jstore,
 1);
 jobject preferences_editor = (*env)-CallObjectMethod(env, 
 shared_preferences, (*env)-GetMethodID(env,
 (*env)-FindClass(env, 
 android/content/SharedPreferences), editor, 
 ()Landroid/content/SharedPreferences$Editor;));
 
 (*env)-CallObjectMethod(env, preferences_editor, 
 (*env)-GetMethodID(env, 
 (*env)-FindClass(env, 
 android/content/SharedPreferences/Editor), putLong, 
 (Ljava/lang/String;J)Landroid/content/SharedPreferences$Editor;),
jkey,
 value);
 
 
 }

 can any know how to done shared preference in jni on android.


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




Re: [android-developers] Re: App not compatible on Samsung GT-P3110

2013-05-20 Thread bob
Well, I changed from Android 1.5 to '4.0 and up', and now it shows up as 
compatible with tablets.

I think I changed minSdkVersion and targetSdkVersion to 15.

I might have linked to a newer JAR also.

Not sure what did it exactly or why.

Not sure if it's worth my time to pinpoint it.

Thanks.


On Saturday, May 18, 2013 10:10:16 AM UTC-5, bob wrote:

 I added this line to the manifest:

 uses-feature
 android:name=android.hardware.telephony
 android:required=false /

 As far as I can tell, it made no difference.  It still claims its not 
 compatible with all tablets on Google Play.

 Thanks.


 On Saturday, May 18, 2013 12:41:23 AM UTC-5, MagouyaWare wrote:

 You need to do a combination of uses-permission and uses-feature...  
 Certain permissions automatically set the feature to be required.  If you 
 don't want it to be required you need to specify that the feature is not 
 required using uses-feature:


- 

 http://developer.android.com/guide/topics/manifest/uses-permission-element.html
- 
developer.android.com/guide/topics/manifest/uses-feature-element.html 



 Thanks,
 Justin Anderson
 MagouyaWare Developer
 http://sites.google.com/site/magouyaware


 On Fri, May 17, 2013 at 9:24 PM, bob b...@coolfone.comze.com wrote:

 I don't think there is a requiredattribute for the uses-permission tag.

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





-- 
-- 
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] Re: Donwloadin incomplete file

2013-05-20 Thread bob
I'd say you are probably trying to write to a bad filename.

Maybe try changing the file open code to this: 

FileOutputStream fos = new FileOutputStream(Environment
.getExternalStorageDirectory().toString()
+ /
+ *test.hmm*);



Thanks.


On Monday, May 20, 2013 7:25:12 AM UTC-5, rahul kaushik wrote:

 Hi,

 I am trying to download the file as this is 2 mb but it is downlaoding 
 only 7.1 kb below is my code
 class DownloadFileFromURL extends AsyncTaskString, String, String {

 /**
  * Before starting background thread Show Progress Bar Dialog
  * */
 @Override
 protected void onPreExecute() {
 super.onPreExecute();
 showDialog(progress_bar_type);
 }

 /**
  * Downloading file in background thread
  * */
 @Override
 protected String doInBackground(String... f_url) {
 int count;
 final int BUFFER_SIZE = 128;
 File root = android.os.Environment.getExternalStorageDirectory();
 try {
 URL url = new URL(f_url[0]);
 String fileName=url.toString();;
 // String Filename=   getFileName(url);
   
 String newpath = fileName.replace('\\','/');
 int start = newpath.lastIndexOf(=);
 if ( start == -1)
 {
   start = 0;
 }
 else
 {
   start = start + 1;
 }
 String pageName = newpath.substring(start, newpath.length());
   
  
 long startTime = System.currentTimeMillis();
  Log.d(getFileName, pageName);

  
  URLConnection ucon = url.openConnection();
  ucon.connect();
  int lengthofFile = ucon.getContentLength();
  /*
   * Define InputStreams to read from the URLConnection.
   */
  InputStream is = ucon.getInputStream();
  BufferedInputStream bis = new BufferedInputStream(is);

  /*
   * Read bytes to the Buffer until there is nothing more to 
 read(-1).
   */
  ByteArrayBuffer baf = new ByteArrayBuffer(5);
  int current = 0;
  while ((current = bis.read()) != -1) {
  baf.append((byte) current);
  }

  /* Convert the Bytes read to a String. */
  File file = new File(fileName);
  FileOutputStream fos = new 
 FileOutputStream(Environment.getExternalStorageDirectory().toString()+ 
 /+pageName.trim());
  //Log.d(root:, root.toString());
  fos.write(baf.toByteArray());
  fos.close();
  Log.d(ImageManager, download ready in
  + ((System.currentTimeMillis() - startTime) / 
 1000)
  +  sec);
  
  
  
  
  
 } catch (Exception e) {
 Log.e(Error: , e.getMessage());
 }

 return null;
 }

 /**
  * Updating progress bar
  * */
 protected void onProgressUpdate(String... progress) {
 // setting progress percentage
 pDialog.setProgress(Integer.parseInt(progress[0]));
 }

 /**
  * After completing background task Dismiss the progress dialog
  * **/
 @Override
 protected void onPostExecute(String file_url) {
 // dismiss the dialog after the file was downloaded
 dismissDialog(progress_bar_type);
// String imagePath = 
 Environment.getExternalStorageDirectory().toString() + 
 /downloadedfile.jpg;
 // setting downloaded into image view
   // 
  my_image.setImageDrawable(Drawable.createFromPath(imagePath));
 }

  }

 PLease Suggest
 Thanks
 RK


-- 
-- 
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] Re: Donwloadin incomplete file

2013-05-20 Thread bob
Actually, I was looking at your code some more, and *I would want to know 
the URL you are downloading from* to get a better idea of the correctness. 
 I see that you are searching for an equals sign and using that to find the 
file name.

If it turns out you are coming up with an okay file name, the problem is 
almost certainly one of permissions - you will need INTERNET permission as 
well as WRITE_EXTERNAL_STORAGE.

Thanks.


On Monday, May 20, 2013 7:25:12 AM UTC-5, rahul kaushik wrote:

 Hi,

 I am trying to download the file as this is 2 mb but it is downlaoding 
 only 7.1 kb below is my code
 class DownloadFileFromURL extends AsyncTaskString, String, String {

 /**
  * Before starting background thread Show Progress Bar Dialog
  * */
 @Override
 protected void onPreExecute() {
 super.onPreExecute();
 showDialog(progress_bar_type);
 }

 /**
  * Downloading file in background thread
  * */
 @Override
 protected String doInBackground(String... f_url) {
 int count;
 final int BUFFER_SIZE = 128;
 File root = android.os.Environment.getExternalStorageDirectory();
 try {
 URL url = new URL(f_url[0]);
 String fileName=url.toString();;
 // String Filename=   getFileName(url);
   
 String newpath = fileName.replace('\\','/');
 int start = newpath.lastIndexOf(=);
 if ( start == -1)
 {
   start = 0;
 }
 else
 {
   start = start + 1;
 }
 String pageName = newpath.substring(start, newpath.length());
   
  
 long startTime = System.currentTimeMillis();
  Log.d(getFileName, pageName);

  
  URLConnection ucon = url.openConnection();
  ucon.connect();
  int lengthofFile = ucon.getContentLength();
  /*
   * Define InputStreams to read from the URLConnection.
   */
  InputStream is = ucon.getInputStream();
  BufferedInputStream bis = new BufferedInputStream(is);

  /*
   * Read bytes to the Buffer until there is nothing more to 
 read(-1).
   */
  ByteArrayBuffer baf = new ByteArrayBuffer(5);
  int current = 0;
  while ((current = bis.read()) != -1) {
  baf.append((byte) current);
  }

  /* Convert the Bytes read to a String. */
  File file = new File(fileName);
  FileOutputStream fos = new 
 FileOutputStream(Environment.getExternalStorageDirectory().toString()+ 
 /+pageName.trim());
  //Log.d(root:, root.toString());
  fos.write(baf.toByteArray());
  fos.close();
  Log.d(ImageManager, download ready in
  + ((System.currentTimeMillis() - startTime) / 
 1000)
  +  sec);
  
  
  
  
  
 } catch (Exception e) {
 Log.e(Error: , e.getMessage());
 }

 return null;
 }

 /**
  * Updating progress bar
  * */
 protected void onProgressUpdate(String... progress) {
 // setting progress percentage
 pDialog.setProgress(Integer.parseInt(progress[0]));
 }

 /**
  * After completing background task Dismiss the progress dialog
  * **/
 @Override
 protected void onPostExecute(String file_url) {
 // dismiss the dialog after the file was downloaded
 dismissDialog(progress_bar_type);
// String imagePath = 
 Environment.getExternalStorageDirectory().toString() + 
 /downloadedfile.jpg;
 // setting downloaded into image view
   // 
  my_image.setImageDrawable(Drawable.createFromPath(imagePath));
 }

  }

 PLease Suggest
 Thanks
 RK


-- 
-- 
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] Re: Another Resources.NotFoundException with setContentView()

2013-05-20 Thread bob
I cannot reproduce the error you are getting.  What IDE are you using?

Thanks.


On Monday, May 20, 2013 3:35:24 PM UTC-5, plnelson wrote:



 On Monday, May 20, 2013 4:26:05 PM UTC-4, Jonathan S wrote:

 how about ant clean build


 This isn't an ant-based project, and anyway, ant is just supposed to 
 emulate the regular IDE so why  whould it be any better than what I've 
 already tried?What does it do in a clean and build that's 
 different/better for a problem like this?  


-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
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] Re: rendering international text into GL texture with correct line breaks

2013-05-20 Thread bob
You may be able to just stick a TextView or even a sophisticated layout 
right over the OpenGL surface.  This would save you the hassle of writing 
code to convert to textures.  It would be like this:

*setContentView(yourGLSurfaceView);*
*addContentView(yourTextOverlayView);*

Thanks.


On Sunday, May 19, 2013 12:55:23 PM UTC-5, latimerius wrote:

 Hello,

 I'm looking into localising an OpenGL app into several languages.  I'm not 
 too worried about short strings like button labels, however the welcome 
 screen contains a paragraph or two of text and the tutorial has a couple of 
 2-3 lines text strings.  Currently, they are pre-rendered and distributed 
 as PNGs but ideally, they should be rendered on-the-fly to save texture 
 space and avoid scaled text.

 To achieve that, it seems necessary to handle line breaking properly. 
  However, I couldn't find an API in Android to help with that.  I'm aware 
 of Paint.breakText() but it seems too primitive for the task - it actually 
 doesn't seem to handle proper line breaking at all.  For Western languages, 
 it should be mostly fine just to back off to the first space from what 
 breakText() returns and break the line there.  The problem is how to deal 
 with Asian languages (Chinese, Japanese and Korean - also Thai would be 
 nice), and later on with RTL languages, too.

 Some googling gave me the impression that in general, people like me 
 shouldn't try to tackle the problem themselves - it's too complex and 
 belongs into an operating system/application framework anyway.

 Is there something in Android platform to help turn a paragraph of text 
 into a decent PNG of specified dimensions?

 Thanks in advance!

  

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




Re: [android-developers] Re: App not compatible on Samsung GT-P3110

2013-05-18 Thread bob
I added this line to the manifest:

uses-feature
android:name=android.hardware.telephony
android:required=false /

As far as I can tell, it made no difference.  It still claims its not 
compatible with all tablets on Google Play.

Thanks.


On Saturday, May 18, 2013 12:41:23 AM UTC-5, MagouyaWare wrote:

 You need to do a combination of uses-permission and uses-feature...  
 Certain permissions automatically set the feature to be required.  If you 
 don't want it to be required you need to specify that the feature is not 
 required using uses-feature:


- 

 http://developer.android.com/guide/topics/manifest/uses-permission-element.html
- developer.android.com/guide/topics/manifest/uses-feature-element.html 



 Thanks,
 Justin Anderson
 MagouyaWare Developer
 http://sites.google.com/site/magouyaware


 On Fri, May 17, 2013 at 9:24 PM, bob b...@coolfone.comze.comjavascript:
  wrote:

 I don't think there is a requiredattribute for the uses-permission tag.

 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-d...@googlegroups.comjavascript:
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com javascript:
 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 javascript:.
 For more options, visit https://groups.google.com/groups/opt_out.





-- 
-- 
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] Re: License for Google Volley

2013-05-17 Thread bob
Maybe ask Ficus Kirkpatrick?

Here's what he says: 

I'm going to be giving a talk at #io2013  on Volley, a library me and a 
few of my teammates developed that makes it really easy to build super-fast 
networked applications for Android.

Honestly, I'm not quite sure I get it with regards to Volley.  I don't 
think most of the networking speed impediments can be corrected with 
software.

Thanks.


On Thursday, May 16, 2013 11:44:31 AM UTC-5, Tom Opgenorth wrote:

 I caught the steaming video for Google Volley yesterday.  Seems 
 impressive. Forgive the silly question, but what are the Terms of 
 Service / licensed used for Volley? 
 -- 
 http://www.opgenorth.net 


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




Re: [android-developers] Re: App not compatible on Samsung GT-P3110

2013-05-17 Thread bob
Hmm… I'm seeing something similar.

My app is supposedly not compatible on the Galaxy Tab 10.1:

https://lh5.googleusercontent.com/-NCgl7hkQ_cg/UZZB18hne4I/Aeo/RkAr85u5r30/s1600/notcompat2.jpg


It only requires Android 1.5, and I think it was compatible a few days ago 
before I made a minor change.

Thanks.


On Thursday, May 16, 2013 10:20:07 AM UTC-5, MagouyaWare wrote:


 On Thu, May 16, 2013 at 8:14 AM, bob b...@coolfone.comze.comjavascript:
  wrote:

 Why is it not compatible?

 I believe that would be his question... 
  

 Why not just make it compatible?

 Because he doesn't know why it isn't compatible...


 Thanks,
 Justin Anderson
 MagouyaWare Developer
 http://sites.google.com/site/magouyaware
  

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




Re: [android-developers] Re: App not compatible on Samsung GT-P3110

2013-05-17 Thread bob
Heh… I've been looking into this, and the Nexus 7 is saying the same thing.

This is very interesting as I'm pretty sure I downloaded the app as a test 
to the Nexus 7 from Play Store a few days ago.

So, it seems like, a few days ago, version 59 of my app was compatible with 
the Nexus 7.  And, today, for some reason, version 59 is supposedly not 
compatible.

Not sure what I can do except wait and hope this gets fixed.

Thanks.


On Friday, May 17, 2013 9:42:54 AM UTC-5, bob wrote:

 Hmm… I'm seeing something similar.

 My app is supposedly not compatible on the Galaxy Tab 10.1:


 https://lh5.googleusercontent.com/-NCgl7hkQ_cg/UZZB18hne4I/Aeo/RkAr85u5r30/s1600/notcompat2.jpg


 It only requires Android 1.5, and I think it was compatible a few days ago 
 before I made a minor change.

 Thanks.


 On Thursday, May 16, 2013 10:20:07 AM UTC-5, MagouyaWare wrote:


 On Thu, May 16, 2013 at 8:14 AM, bob b...@coolfone.comze.com wrote:

 Why is it not compatible?

 I believe that would be his question... 
  

 Why not just make it compatible?

 Because he doesn't know why it isn't compatible...


 Thanks,
 Justin Anderson
 MagouyaWare Developer
 http://sites.google.com/site/magouyaware
  


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




Re: [android-developers] Re: App not compatible on Samsung GT-P3110

2013-05-17 Thread bob
Well, I'm continuing to investigate why Google suddenly thinks my app is 
incompatible with certain devices.  I went to the Play Store and created 
this compatibility screen shot:

https://lh6.googleusercontent.com/-bN8RhI8X9mo/UZaS7QLWZ8I/Ae4/374B1EPPm10/s1600/playstore.png


It confirms that Google does in fact believe my app is incompatible with 
the Nexus 7 and the Galaxy Tab.  Interestingly, the Nexus 7 it says it is 
incompatible with is the very device I developed and tested the most recent 
update on.

Please let me know if you see any rhyme or reason to this.

Thanks.


On Friday, May 17, 2013 11:16:52 AM UTC-5, bob wrote:

 Heh… I've been looking into this, and the Nexus 7 is saying the same thing.

 This is very interesting as I'm pretty sure I downloaded the app as a test 
 to the Nexus 7 from Play Store a few days ago.

 So, it seems like, a few days ago, version 59 of my app was compatible 
 with the Nexus 7.  And, today, for some reason, version 59 is supposedly 
 not compatible.

 Not sure what I can do except wait and hope this gets fixed.

 Thanks.


 On Friday, May 17, 2013 9:42:54 AM UTC-5, bob wrote:

 Hmm… I'm seeing something similar.

 My app is supposedly not compatible on the Galaxy Tab 10.1:


 https://lh5.googleusercontent.com/-NCgl7hkQ_cg/UZZB18hne4I/Aeo/RkAr85u5r30/s1600/notcompat2.jpg


 It only requires Android 1.5, and I think it was compatible a few days 
 ago before I made a minor change.

 Thanks.


 On Thursday, May 16, 2013 10:20:07 AM UTC-5, MagouyaWare wrote:


 On Thu, May 16, 2013 at 8:14 AM, bob b...@coolfone.comze.com wrote:

 Why is it not compatible?

 I believe that would be his question... 
  

 Why not just make it compatible?

 Because he doesn't know why it isn't compatible...


 Thanks,
 Justin Anderson
 MagouyaWare Developer
 http://sites.google.com/site/magouyaware
  


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




Re: [android-developers] Re: App not compatible on Samsung GT-P3110

2013-05-17 Thread bob
Okay.  Here is the manifest:
*   *
?xml version=1.0 encoding=utf-8?
manifest xmlns:android=http://schemas.android.com/apk/res/android;
android:installLocation=preferExternal
package=com.myapp
android:versionCode=59
android:versionName=59.0 

uses-sdk android:minSdkVersion=3 /

uses-permission android:name=android.permission.INTERNET 
/uses-permission
uses-permission android:name=android.permission.READ_PHONE_STATE 
/uses-permission
uses-permission android:name=android.permission.ACCESS_NETWORK_STATE 

/uses-permission

application
android:name=MyApplication
android:icon=@drawable/icon2
android:label=@string/app_name 
activity
android:name=.My_Activity
android:label=@string/app_name
android:screenOrientation=landscape
android:theme=@style/Theme.NoBackground 
intent-filter
action android:name=android.intent.action.MAIN /

category android:name=android.intent.category.LAUNCHER /
/intent-filter
/activity
activity
android:name=com.google.ads.AdActivity
android:configChanges=keyboard|keyboardHidden|orientation /


activity
android:name=com.greystripe.android.sdk.AdView
android:configChanges=keyboard|keyboardHidden|orientation 
intent-filter
category android:name=android.intent.category.LAUNCHER /
/intent-filter
/activity
/application

/manifest
* *
Thanks.




On Friday, May 17, 2013 4:18:39 PM UTC-5, RichardC wrote:

 If you want help on Play Store compatibility issues you need to show us 
 the Manifest.

 On Friday, May 17, 2013 9:28:43 PM UTC+1, bob wrote:

 Well, I'm continuing to investigate why Google suddenly thinks my app is 
 incompatible with certain devices.  I went to the Play Store and created 
 this compatibility screen shot:


 https://lh6.googleusercontent.com/-bN8RhI8X9mo/UZaS7QLWZ8I/Ae4/374B1EPPm10/s1600/playstore.png


 It confirms that Google does in fact believe my app is incompatible with 
 the Nexus 7 and the Galaxy Tab.  Interestingly, the Nexus 7 it says it is 
 incompatible with is the very device I developed and tested the most recent 
 update on.

 Please let me know if you see any rhyme or reason to this.

 Thanks.


 On Friday, May 17, 2013 11:16:52 AM UTC-5, bob wrote:

 Heh… I've been looking into this, and the Nexus 7 is saying the same 
 thing.

 This is very interesting as I'm pretty sure I downloaded the app as a 
 test to the Nexus 7 from Play Store a few days ago.

 So, it seems like, a few days ago, version 59 of my app was compatible 
 with the Nexus 7.  And, today, for some reason, version 59 is supposedly 
 not compatible.

 Not sure what I can do except wait and hope this gets fixed.

 Thanks.


 On Friday, May 17, 2013 9:42:54 AM UTC-5, bob wrote:

 Hmm… I'm seeing something similar.

 My app is supposedly not compatible on the Galaxy Tab 10.1:


 https://lh5.googleusercontent.com/-NCgl7hkQ_cg/UZZB18hne4I/Aeo/RkAr85u5r30/s1600/notcompat2.jpg


 It only requires Android 1.5, and I think it was compatible a few days 
 ago before I made a minor change.

 Thanks.


 On Thursday, May 16, 2013 10:20:07 AM UTC-5, MagouyaWare wrote:


 On Thu, May 16, 2013 at 8:14 AM, bob b...@coolfone.comze.com wrote:

 Why is it not compatible?

 I believe that would be his question... 
  

 Why not just make it compatible?

 Because he doesn't know why it isn't compatible...


 Thanks,
 Justin Anderson
 MagouyaWare Developer
 http://sites.google.com/site/magouyaware
  


-- 
-- 
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] Re: Updated to ADT 22: 'R cannot be resolved to a variable'

2013-05-17 Thread bob
I also encountered this oddity.

I had to run *android* at the command line on two separate occasions, 
thus performing two updates.  Not sure why one update didn't get the job 
done.

Thanks.




On Thursday, May 16, 2013 11:02:14 AM UTC-5, Stefano G. Rago wrote:

 Same here!!! I was working without any problem, after an edit on a layout 
 the R cannot be resolved to a variable appeared. 
 I have lost some hours, nothing worked (new repo, new project, new import, 
 clean and reclean, delete gen and bin, etc)
 I have last adt + last sdk on windows 7 64bit



 On Thursday, May 16, 2013 11:11:45 AM UTC+2, BoD wrote:

 Since the update, I have this error in all my projects (including when 
 creating a new Android project from scratch).
 I am stuck.
 Does anybody have this issue?
 Is there an easy way to downgrade to the previous version?

 Thanks a lot=

 -- 
 BoD



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




Re: [android-developers] Re: App not compatible on Samsung GT-P3110

2013-05-17 Thread bob
I don't think there is a requiredattribute for the uses-permission tag.

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




Re: [android-developers] Re: JNI on SDCard?

2013-05-16 Thread bob
You may want to take a look here:

http://developer.android.com/guide/topics/data/install-location.html

In particular:

*  
   *

Beginning with API Level 8, you can allow your application to be installed 
on the external storage (for example, the device's SD card). This is an 
optional feature you can declare for your application with the 
android:installLocation manifest attribute. *If you do not declare this 
attribute, your application will be installed on the internal storage only 
and it cannot be moved to the external storage.*
*
*
*
*
*  
   *
*
*

It seems like the obvious solution is to just disallow people to move your 
app to the external storage.

Thanks.


On Thursday, May 16, 2013 4:19:20 AM UTC-5, Filipe wrote:

 Hi,
  
 Thanks for the help.
 The problem is that I don't know where the libraries go to when I move the 
 app to SD on my HTC for me to use System.load().
  
 So the only workaround I found is to check for the existance of the .so 
 file in the predefined folder /data/data/your_package_name/lib.
 If it is not there, then I unzip it from the package APK file to 
 /data/data/your_package_name/files folder and load it from there.
  
 Thanks
  


 On Wed, May 15, 2013 at 11:29 PM, Piren gpi...@gmail.com javascript:wrote:

 That's actually the same person making pretty much the same reply :-)
  

 On Thursday, May 16, 2013 1:02:10 AM UTC+3, bob wrote:

 I found this one using Google:

 https://groups.google.com/**forum/?fromgroups=#!topic/**
 android-ndk/0uY4qgam1Wshttps://groups.google.com/forum/?fromgroups=#!topic/android-ndk/0uY4qgam1Ws

 It says:

 You must use System.load() if you want to specify the full path name 
 of the file, System.loadLibrary() is only for ones in the default 
 location. 

 Also *you should not be able to load an .so off the SDCARD on an ARM *
 *system by normal means*, as ARM supports non-executable pages and 
 android's implementation of mmap() refuses to map executable pages 
 backed by a noexec file system.  To load from such a file system you 
 would have to map anonymous executable pages and manually load the .so 
 into them, doing appropriate interpretation of the contents and all 
 fixups normally performed by the runtime linker. 

 Thanks.


 On Wednesday, May 15, 2013 4:32:37 PM UTC-5, Piren wrote:

 That's what bing got me :)
  
 http://stackoverflow.com/**questions/2826412/how-to-load-**
 jni-from-sd-card-on-android-2-**1http://stackoverflow.com/questions/2826412/how-to-load-jni-from-sd-card-on-android-2-1

 On Wednesday, May 15, 2013 12:00:50 PM UTC+3, Filipe wrote:

 Hi,
  
 I had only used Bing up till now ;)
 Thanks for your great tutorial on this new thing called Google.
 I tryed it, but still did not find the answer.
  
 The libs are under the /data/data/your_package_name/**lib folder.
 When I move the App I start getting java.lang.**UnsatisfiedLinkError: 
 findLibrary returned null
  
 I found some new things
 This works without problems on AVD. But I noticed that even if I move 
 the App to the sdcard on the AVD, the lib remains in the same folder.
  
 So maybe the problem is specific to my HTC.
 Using adb shell I can find the libs in this folder. After moving to 
 sdcard, when I use adb shell I get permission denied trying to access 
 the lib folder !!!
 So I'm gessing that on my HTC the libs are moved, I just don't know 
 where to.
  
  
 Thanks

 Terça-feira, 14 de Maio de 2013 23:51:21 UTC+1, Lew escreveu:

 Filipe wrote:

 I have a project in Eclipse that uses some jni [sic] libraries that 
 I load using System.loadLibrary(**myNativeLib).


 Those libraries are native to what platform?
  

  
 This works great, but if I move my app to the SDCard it stops 
 working, because it can't load the library.


 Did you take note of this from the Javadocs for 
 'System.loadLibrary()'?
 The mapping of the specified library name to the full path for 
 loading the library is implementation-dependent. 

 Where did you put the library on the device. Is this where the system 
 expects to find libraries?

  Are there any limitations on moving the app to SDCard when using 
 jni? Or do I have to change my call to System.loadLibrary ?


 http://developer.android.com/**reference/java/lang/System.**
 html#loadLibrary(java.lang.**String)http://developer.android.com/reference/java/lang/System.html#loadLibrary(java.lang.String)

 Also, I see some potentially useful links here:
 http://lmgtfy.com/?q=Android+**JNI http://lmgtfy.com/?q=Android+JNI

 -- 
 Lew
  

  -- 
 -- 
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to 
 android-d...@googlegroups.comjavascript:
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com javascript:
 For more options, visit this group

[android-developers] Re: App not compatible on Samsung GT-P3110

2013-05-16 Thread bob
Why is it not compatible?

Why not just make it compatible?

Thanks.


On Thursday, May 16, 2013 2:23:45 AM UTC-5, Avinhood wrote:

 Hi,

 Please help me on this. I have an app on Play which is not compatible on a 
 this specific device Samsung  GT-P3110, a 7tab.

 Its compatible on other tabs and devices and on Samsung devices too.

 I know that we have to include this code in the Manifest.
 supports-screens
 android:anyDensity=true
 android:largeScreens=true
 android:normalScreens=true
 android:resizeable=true
 android:smallScreens=true 
 /supports-screens
 I have not used this code in the manifest yet but doubt if the problem due 
 to this.

 Please help or throw some light on this issue.



-- 
-- 
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] Re: Losing OpenGL context when home button is pressed! How to fix?

2013-05-16 Thread bob
Why not take a look at the *BasicGLSurfaceView* sample and maybe use that 
as a template?

Thanks.


On Thursday, May 16, 2013 7:13:28 AM UTC-5, reaktor24 wrote:

 I am trying to fix my apps OpenGL context loss whe the home button is 
 pressed or when a call is received. How do I retreive the previous OpenGL 
 states?? I am using OpenGL ES 2 and make sure to reload all the textures 
 when a SurfaceCreated() is detected but it still isn't working. I assume I 
 have to reload my shaders in the SurfaceCreated() and do I have to recall 
 things like glViewport()?? Because all I am getting at the moment is a 
 black screen. My shaders were moved to where the textures are loaded (as 
 static objects) but unfortunately they don't work when I try to assign 
 matrix handles to the shaders. I get java io exception errors. Null pointer 
 exception etc. Will fixing this problem fix the overall context loss 
 issue?? 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
--- 
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.




Re: [android-developers] show toast message while waiting for location

2013-05-16 Thread bob
Toasts automatically disappear after a short period of time.

Thanks.


On Thursday, May 16, 2013 2:10:38 AM UTC-5, geo wrote:

 The problem is that it doesn't work.
 When I press now the button to start searching for signal it doesn't start 
 at all.
 Also, I am not sure if it will work like the way I want.
 Show Waiting while searching for signal and then show the coordinates 
 when it will find them.


 Τη Πέμπτη, 16 Μαΐου 2013 12:01:24 π.μ. UTC+3, ο χρήστης MagouyaWare έγραψε:

 Ummm... what exactly is your question?

 Thanks,
 Justin Anderson
 MagouyaWare Developer
 http://sites.google.com/site/magouyaware


 On Wed, May 15, 2013 at 2:25 AM, geo geoan...@gmail.com wrote:

 Hello , 

 I have an application where I use GPS and I want while GPS is looking 
 for position to display a toast Waiting for location and when location is 
 found show the location.

 To start GPS I press a button:

 case R.id.getlocation:

 gps = new GPSTracker(ShowList.this);


 // check if GPS enabled

 if(gps.canGetLocation()){


 latitude = gps.getLatitude();

 longitude = gps.getLongitude();

  

 Toast.makeText(getApplicationContext(), Your Location is \nLat:  + 
 latitude + \nLong:  + longitude, Toast.LENGTH_LONG).show();



 }else{

 //show dialog for enabling GPs

 gps.showSettingsAlert();

 }


 Now, with the above it shows latitude and latitude :0  because I 
 initialize them to 0. 

 case R.id.getlocation:

 gps = new GPSTracker(ShowList.this); 

 // check if GPS enabled

 if(gps.canGetLocation()){

 showToast();

 }else{



 gps.showSettingsAlert();

 }


 private void showToast() {

 new Thread() {

 public void run() {

 try { 

 while (message) {

 runOnUiThread(new Runnable() {

 @Override

 public void run() {


 latitude = gps.getLatitude();

  longitude = gps.getLongitude();


 Toast.makeText(getApplicationContext(), Waiting for location, 
 Toast.LENGTH_LONG).show();


 //}else{

 // gps.showSettingsAlert();

 // }


 }

 });

 Thread.sleep(1000);

 message=false;


 } 

 } catch (InterruptedException e) {

 e.printStackTrace();

 }

 }

 }.start();

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




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

2013-05-16 Thread bob
Can someone help me understand why I can't find GLES20Canvas in my 
android.jar?

I see it here:

http://grepcode.com/file_/repository.grepcode.com/java/ext/com.google.android/android/4.2.2_r1/android/view/GLES20Canvas.java/?v=source

But, it's not here:

https://lh3.googleusercontent.com/-Lq8ZI3GiXYw/UZU82_wyI4I/AeY/r8ICEQL35v0/s1600/gles20.png


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




Re: [android-developers] Phone does not update an app from google store

2013-05-16 Thread bob
Also, updates do not seem to be 100% instantaneous:

http://forum.xda-developers.com/showthread.php?t=1498892

*Auto-updates don't seem to be immediate. It could be similar to when an 
OTA starts rolling out. It will update in waves, so that if say, Google 
Maps gets an update, they don't have 20 million users or whatever trying to 
get the same file at the same time from all over the world. I have had apps 
auto-update on their own, but it is usually after the update has been out 
for a day or two.*

Today, I personally saw some auto-update apps that were sitting around 
until I clicked something like Update all.




Thanks.


On Thursday, May 16, 2013 2:36:38 PM UTC-5, MagouyaWare wrote:

 Manual Updates are usually due to permission changes... When permissions 
 change the user needs to physically agree to the permission changes.

 Thanks,
 Justin Anderson
 MagouyaWare Developer
 http://sites.google.com/site/magouyaware


 On Thu, May 16, 2013 at 11:26 AM, gt8887b gt8...@gmail.com 
 javascript:wrote:

 Hello,

 I am experiencing a strange issue with one of my customers.  Their 
 Android phone does not download updates from the google play store.

 They have PlayStore app configured to Auto-update apps at any time. 
  However, even though the new update is online it would not install it for 
 some reason.  

 I am noticing on my own phone that some applications are not 
 auto-updating either.  I have the same setting Auto-update apps at any 
 time. set but there are a few apps (YouTube, TeleNav GPS, Expedia app, 
 etc.) that show up under Manual Updates in the play store app and would 
 not update automatically.

 Do you know what the reason may be?

 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-d...@googlegroups.comjavascript:
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com javascript:
 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 javascript:.
 For more options, visit https://groups.google.com/groups/opt_out.
  
  




-- 
-- 
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] Re: How to Send MMS

2013-05-15 Thread bob
*// Get the URI of a piece of media to attach. *
*Uri attached_Uri = Uri.parse(content://media/external/images/media/1); *
*
*
*// Create a new MMS intent *
*Intent mmsIntent = new Intent( Intent.ACTION_SEND, attached_Uri); *
*mmsIntent.putExtra(sms_body, Please see the attached image); *
*mmsIntent.putExtra(address, 07912355432); *
*mmsIntent.putExtra(Intent.EXTRA_STREAM, attached_Uri); *
*mmsIntent.setType(image/jpeg); *
*startActivity(mmsIntent);*

Meier, Reto (2012-04-05). Professional Android 4 Application Development 
(Wrox Professional Guides) (Kindle Locations 18791-18794). John Wiley and 
Sons. Kindle Edition. 




On Tuesday, May 14, 2013 9:49:38 PM UTC-5, askl wrote:

 Dear All,

 Please help me, how to send a *MMS *in Android Programmatically*. Please 
 give a sample code for that.*
 *Thanks*
 *ASK.*


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




Re: [android-developers] Too large bitmap to be uploaded into a texture - Getting max texture size.

2013-05-15 Thread bob
I'm looking at the code for *getMaximumBitmapWidth*, and it looks like it 
always returns 32766:

  private static final int MAXMIMUM_BITMAP_SIZE = 32766;

*   public int getMaximumBitmapWidth() {*
* return MAXMIMUM_BITMAP_SIZE;*
* }*

Am I missing something?

Thanks.




On Tuesday, May 14, 2013 3:58:05 PM UTC-5, Romain Guy (Google) wrote:

 You can query the maximum size using Canvas.getMaximumBitmapWidth/Height():

 http://developer.android.com/reference/android/graphics/Canvas.html#getMaximumBitmapWidth()

 You can also assume 2048px as the maximum unless the screen is bigger 
 (Nexus 10 for instance supports 4096px max since the screen is bigger than 
 2048px.)


 On Tue, May 14, 2013 at 11:08 AM, Thyme Cypher 
 thyme@gmail.comjavascript:
  wrote:

 I'm attempting to display a rather large bitmap VIA an ImageView, which 
 when Hardware Acceleration is enabled of course, has issues with texture 
 sizes (I'm well aware of texture size limitations in 3D engines). My 
 question is how to get what the maximum image size is without an OpenGL 
 context (As I'm not creating one and don't have access to the one that the 
 operating system creates, as far as I know at least) and ideally without 
 first attempting to render said image (As so there isn't a flash frame 
 without an image) and using exception handling.

 Thanks,
 James L

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




 -- 
 Romain Guy
 Android framework engineer
 roma...@android.com javascript:
  

-- 
-- 
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] Re: JNI on SDCard?

2013-05-15 Thread bob
I found this one using Google:

https://groups.google.com/forum/?fromgroups=#!topic/android-ndk/0uY4qgam1Ws

It says:

You must use System.load() if you want to specify the full path name 
of the file, System.loadLibrary() is only for ones in the default 
location. 

Also *you should not be able to load an .so off the SDCARD on an ARM *
*system by normal means*, as ARM supports non-executable pages and 
android's implementation of mmap() refuses to map executable pages 
backed by a noexec file system.  To load from such a file system you 
would have to map anonymous executable pages and manually load the .so 
into them, doing appropriate interpretation of the contents and all 
fixups normally performed by the runtime linker. 

Thanks.


On Wednesday, May 15, 2013 4:32:37 PM UTC-5, Piren wrote:

 That's what bing got me :)
  

 http://stackoverflow.com/questions/2826412/how-to-load-jni-from-sd-card-on-android-2-1

 On Wednesday, May 15, 2013 12:00:50 PM UTC+3, Filipe wrote:

 Hi,
  
 I had only used Bing up till now ;)
 Thanks for your great tutorial on this new thing called Google.
 I tryed it, but still did not find the answer.
  
 The libs are under the /data/data/your_package_name/lib folder.
 When I move the App I start getting java.lang.UnsatisfiedLinkError: 
 findLibrary returned null
  
 I found some new things
 This works without problems on AVD. But I noticed that even if I move the 
 App to the sdcard on the AVD, the lib remains in the same folder.
  
 So maybe the problem is specific to my HTC.
 Using adb shell I can find the libs in this folder. After moving to 
 sdcard, when I use adb shell I get permission denied trying to access 
 the lib folder !!!
 So I'm gessing that on my HTC the libs are moved, I just don't know where 
 to.
  
  
 Thanks

 Terça-feira, 14 de Maio de 2013 23:51:21 UTC+1, Lew escreveu:

 Filipe wrote:

 I have a project in Eclipse that uses some jni [sic] libraries that I 
 load using System.loadLibrary(myNativeLib).


 Those libraries are native to what platform?
  

  
 This works great, but if I move my app to the SDCard it stops working, 
 because it can't load the library.


 Did you take note of this from the Javadocs for 'System.loadLibrary()'?
 The mapping of the specified library name to the full path for loading 
 the library is implementation-dependent. 

 Where did you put the library on the device. Is this where the system 
 expects to find libraries?

  Are there any limitations on moving the app to SDCard when using jni? 
 Or do I have to change my call to System.loadLibrary ?



 http://developer.android.com/reference/java/lang/System.html#loadLibrary(java.lang.String)

 Also, I see some potentially useful links here:
 http://lmgtfy.com/?q=Android+JNI

 -- 
 Lew
  



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




Re: [android-developers] setEGLConfigChooser

2013-05-14 Thread bob
It seems like I did not need the alpha channel.  

I wasn't sure because I was using some less common Porter-Duff blending for 
a fire and explosion particle effect.  Anyhow, I removed the alpha channel, 
and it looks the same.  

Also, I made a mistake, and I didn't really need the depth buffer.  So, I'm 
basically trying RGB 888 now with no depth buffer.

It's pretty much this:

this.setEGLConfigChooser(8, 8, 8, 0, 0, 0); 

I'm going to keep an eye on the ACRA logs, and hopefully I won't see any 
more stuff about EGL_BAD_MATCH.

Thanks.


On Monday, May 13, 2013 2:45:24 PM UTC-5, Romain Guy (Google) wrote:

 I don't know of any device out there that doesn't support RGB 888 with a 
 16 bits depth buffer. The Android UI toolkit requires an RGBA  
 configuration to work.

 By the way, do you need the alpha channel? Unless your window is 
 translucent you should avoid using it.


 On Mon, May 13, 2013 at 12:32 PM, bob b...@coolfone.comze.comjavascript:
  wrote:

 Let's say you're setting up a GLSurfaceView.

 You want it to look good, so you do this:

 this.setEGLConfigChooser(8, 8, 8, 8, 16, 0);

 That's probably fine *if* the user can support that video mode.

 But what about, if for some reason, the user's device can't support that 
 mode?

 Is there a graceful way to detect this condition and fall back to a less 
 desirable video mode?

 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-d...@googlegroups.comjavascript:
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com javascript:
 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 javascript:.
 For more options, visit https://groups.google.com/groups/opt_out.
  
  




 -- 
 Romain Guy
 Android framework engineer
 roma...@android.com javascript:
  

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




Re: [android-developers] Custom Base Adapter.

2013-05-14 Thread bob
It sounds like he may want to call *Collections.sort()* on the backing 
collection.  Probably a *Vector*.

Thanks.


On Tuesday, May 14, 2013 2:08:37 PM UTC-5, MagouyaWare wrote:

 So you just need to be able to sort the data?

 Thanks,
 Justin Anderson
 MagouyaWare Developer
 http://sites.google.com/site/magouyaware


 On Thu, May 9, 2013 at 1:26 AM, Seshu s.ses...@gmail.com javascript:wrote:

 Hi All,
   My requirements is i have a multiple listviews. i used base
 adapter class for each listview. Now i want to display this listview
 like contacts screen i.e., alphabetic order
 for example:
 A
 Ant
 Apple
 B
 Bat
 Boy
 C
 Camel
 Cat
 etc.
 for above requirement i need to change in all adapter classes.
 for above problem i created one class i.e., MainBaseAdapter which
 extends baseadapter. Now for all adapter classes i extends
 MainBaseAdapter class instead of BaseAdapter class. In MainBaseAdapter
 the above alphabetic sorter is implemented. Now i need 2 show both own
 adapter data with the above alphabetic sorder order for all adapters.

 I ll use MainBaseAdapter class for all adapers to show the data. i am
 facing here. how to combine that my own adapter with above alphabetic
 sorting. this alphabetic sorting i.e., MainBaseAdapter is common class
 extending to all my adapter class.

 How to acheive this task in android. if any one knows then please
 provide solution.

 Thanks  Regards,
 S.Seshu.

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





-- 
-- 
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] Re: Dispalying PDF files within a tablet application

2013-05-13 Thread bob
Why not just use an image?

Thanks.


On Saturday, May 11, 2013 10:33:23 AM UTC-5, Simon Giddings wrote:

 I have seen that this topic has been raised a number of times over the 
 last few years.
 I am surprised that Google has not thought of adding a native API to keep 
 up with the other side (IOS and iPad).

 I am needing to display PDF files of sheet music within my application
 - this might be a scanned image
 - or a real print to PDF format, which means mixed text and image

 Commercial libraries are way over priced for what I could ever hope for in 
 terms of revenue as this will be distributed in France to 
 evangelical/protestant churches.
 So I will not be able to charge high prices for this.

 Can anyone recommend a good, robust PDF display engine which will allow me 
 to determine how the user can navigate within the file, zoom levels, etc ?
 Or perhaps there is a commercial engine provider who would be willing to 
 make a commercial gesture for this case ? :-D


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




Re: [android-developers] Re: Update a textview from another thread

2013-05-13 Thread bob
Yes.  It will be something like this:


*public class MainActivity extends Activity {*
*
*
* public static Handler handler = new Handler();*


In other thread:

   

*MainActivity.handler.post(new Runnable() {*
*
*
* @Override*
* public void run() {*
* tv.setText(test);*
*
*
* }*
* });*


Thanks.


On Sunday, May 12, 2013 1:59:15 AM UTC-5, Piren wrote:

 or just use Handlers/postOnUIThread.

 On Sunday, May 12, 2013 8:14:27 AM UTC+3, Michael Leung wrote:

 Ok thanks. Maybe i use subscriber pattern to do that

 Regards,
 Michael Leung
 http://www.itblogs.info
 On 12/05/2013 8:29 AM, Jonathan S xfsu...@gmail.com wrote:

 No. TextView only be updated in the Main Thread. Why not to pass String?

 On Saturday, May 11, 2013 5:56:00 PM UTC-4, Michael Leung wrote:

 Is it possible to Update a textview from another thread?
 I got a list item in list view from another fragement.

 -- 
 Regards,
 Michael Leung
 http://www.itblogs.info - My IT Blog
 http://diary.skynovel.info - My Blog
 http://www.michaelleung.info - My Homepage
  
  -- 
 -- 
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-d...@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en
 --- 
 You received this message because you are subscribed to the Google 
 Groups Android Developers group.
 To 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.
  
  



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

2013-05-13 Thread bob
Let's say you're setting up a GLSurfaceView.

You want it to look good, so you do this:

this.setEGLConfigChooser(8, 8, 8, 8, 16, 0);

That's probably fine *if* the user can support that video mode.

But what about, if for some reason, the user's device can't support that 
mode?

Is there a graceful way to detect this condition and fall back to a less 
desirable video mode?

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
--- 
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] video error messages?

2013-05-10 Thread bob
 

Is there any way to get good information concerning an error when a 
VideoView won't play a video file?

It seems like the OnErrorListener doesn't give much info when there's an 
error.  

It just passes this in:

 public static final int MEDIA_ERROR_UNKNOWN = 1;

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
--- 
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] Re: Download file in webview from url

2013-05-10 Thread bob
I think the only one of those you can definitely load in a WebView is an 
image.

That would be done like so:

* @Override*
* protected void onCreate(Bundle savedInstanceState) {*
* super.onCreate(savedInstanceState);*
* WebView wv = new WebView(this);*
* setContentView(wv);*
* wv.loadUrl(https://www.google.com/images/srpr/logo4w.png;);*
* }*

Also, be sure you have this permission:

*android.permission.INTERNET*

Thanks.


On Friday, May 10, 2013 4:15:01 AM UTC-5, rahul kaushik wrote:

 Hi,

 How to download file(image or pdf or docs..) in webview from url
 Thanks
 RK


-- 
-- 
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] Intent confusion

2013-05-10 Thread bob
I'm trying to understand Intents better.
So I have this code to show a PDF:
*String file_loc = /mnt/sdcard/mypdf.pdf;*
*Uri dest = Uri.fromFile(new File(file_loc));*
* *
*Intent i = new Intent();*
*i.setPackage(com.adobe.reader);*
*i.setDataAndType(dest, application/pdf);*
*startActivity(i);*
I thought it would definitely pop up Adobe Reader, but instead it gives a 
strange choice:

https://lh6.googleusercontent.com/-eO6koTVzS3U/UY05mCP0i0I/Adg/PAQSwyBiQ8A/s1600/for_signature.png

Why does it offer the option Send for Signature?  Shouldn't it know what 
to do since I specified the exact package name?
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
--- 
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] Re: Intent confusion

2013-05-10 Thread bob
Hmmm… I guess so.

It just works if I use a different PDF reader (Foxit):

*i.setPackage(com.foxit.mobile.pdf.lite);*

Thanks.




On Friday, May 10, 2013 1:44:12 PM UTC-5, Streets Of Boston wrote:

 I guess the *Send For Signature *Activity is part of the Adobe Reader 
 package/app *com.adobe.reader* as well.

 On Friday, May 10, 2013 2:17:05 PM UTC-4, bob wrote:

 I'm trying to understand Intents better.
 So I have this code to show a PDF:
 *String file_loc = /mnt/sdcard/mypdf.pdf;*
 *Uri dest = Uri.fromFile(new File(file_loc));*
 * *
 *Intent i = new Intent();*
 *i.setPackage(com.adobe.reader);*
 *i.setDataAndType(dest, application/pdf);*
 *startActivity(i);*
 I thought it would definitely pop up Adobe Reader, but instead it gives a 
 strange choice:


 https://lh6.googleusercontent.com/-eO6koTVzS3U/UY05mCP0i0I/Adg/PAQSwyBiQ8A/s1600/for_signature.png

 Why does it offer the option Send for Signature?  Shouldn't it know 
 what to do since I specified the exact package name?
 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
--- 
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] Re: drawing over everything

2013-05-10 Thread bob
I'm thinking maybe I can do this by using whatever technique the *Toast*uses.

I noticed that toasts do show up over the keyboard and probably everything 
else.

Anyone know where to look to see the actual code that puts the *Toast*above 
everything else?  I didn't see it in the most obvious place, the 
Toast class itself.

Thanks.




On Thursday, May 9, 2013 4:08:56 PM UTC-5, bob wrote:

 Is there an easy way to draw over the whole screen including the soft 
 keyboard?


 I'm trying to create an app that has a fire effect using particle effects 
 wherever the user presses the screen.


 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
--- 
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] drawing over everything

2013-05-09 Thread bob
 

Is there an easy way to draw over the whole screen including the soft 
keyboard?


I'm trying to create an app that has a fire effect using particle effects 
wherever the user presses the screen.


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
--- 
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] form special effects

2013-05-08 Thread bob
 

So, I have a typical form interface, and I want to add some special effects 
to it.


Basically, I want to have a water splashing particle effect when the user 
touches it.


Anyone know the best way to do this?  I'm not quite sure how to draw on top 
of all the other stuff... text fields and such.


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




Re: [android-developers] Switching between GLES2.0 and native Canvas rendering on the fly works in 2.3.6 but no in 4.2.2

2013-05-08 Thread bob
If you want to use Canvas and OpenGL at the same time, why not just do 
something like this?


@Override
protected void onCreate(Bundle icicle) {
super.onCreate(icicle);
mView = new BasicGLSurfaceView(getApplication());
setContentView(mView);

Button b = new Button(this);
b.setText(hmm);

ViewGroup.LayoutParams params = new ViewGroup.LayoutParams(200,200);

addContentView(b, params);

}

https://lh5.googleusercontent.com/-dpD4LNO_hAs/UYpjzWOJcDI/AdI/4TXxYlVNiKI/s1600/canopen.png



The button is drawn using Canvas, and the background is drawn using OpenGL. 
 Of course, instead of using a Button, you would use your own subclass of 
View and size it accordingly.

Thanks.


On Tuesday, May 7, 2013 12:53:37 PM UTC-5, Alex Rempel wrote:

 But GLES to Canvas works fine on all versions, it's the other way around?

 Thx for the answers if you really meant Canvas to GLES.
 That's a shame though, because as far as I know you can switch the 
 GLES.EGL contexts on a single display (here: Surface) without any problems, 
 provided these are unlocked carefully.


 On Tuesday, May 7, 2013 5:32:18 PM UTC+2, Romain Guy (Google) wrote:


  1. There is no drawing with GLES and Canvas at the same time

 I understand but that is not supported. Once you've rendered in a Surface 
 with OpenGL it cannot be used with Canvas.



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

2013-05-08 Thread bob
So, I have this layout…  It starts out like this:


?xml version=1.0 encoding=utf-8?
TableLayout xmlns:android=http://schemas.android.com/apk/res/android;
android:layout_width=wrap_content
android:layout_height=wrap_content
android:layout_gravity=center_horizontal
android:layout_margin=35dp 

TableRow
android:id=@+id/tableRow1
android:layout_width=match_parent
android:layout_height=wrap_content 

TextView
android:id=@+id/textView1
android:layout_width=wrap_content
android:layout_height=wrap_content
android:shadowColor=#000
android:shadowDx=0

When I do a setContentView with it, it is centered on the screen and looks 
as I want it to.

However, I am now placing a video behind it, so I'm using addContentView 
instead.  In order to use addContentView, I believe I need to use the 
LayoutInflater.  So, I'm doing this…

LayoutInflater inflater =  this.getLayoutInflater();
 View v = inflater.inflate(R.layout.main2,null);

Anyhow, it is no longer centered.  It is left-justified.  Is there an easy 
way to center this again?

I have fiddled with this a lot, and it is getting frustrating.

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




Re: [android-developers] Using App Cache - Without Trying to

2013-05-08 Thread bob
Maybe if you try this option

*android:installLocation=preferExternal*


you might be able to find them on your SD Card?

You can also call this once in awhile:

*webview.clearCache(true);*

Maybe at least call it on startup?

Thanks.


On Wednesday, May 8, 2013 4:11:58 PM UTC-5, Nathan wrote:



 On Wednesday, May 8, 2013 1:27:47 PM UTC-7, TreKing wrote:


 On Wed, May 8, 2013 at 3:21 PM, Nathan nathan@gmail.com wrote:

 I checked the code. I am not using the App Cache, at least on purpose.


 I believe some some components, like WebView and MapView, will 
 automatically store things in the cache directory. I'd check your usage of 
 those to start with.


 Webview will be my top suspect. 

 I guess I can't actually look for those files without a rooted device. 

 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/groups/opt_out.




[android-developers] Re: Getting webview content

2013-05-07 Thread bob
Maybe just create an HttpURLConnection to the URL?

There's an example here:

*http://developer.android.com/reference/java/net/HttpURLConnection.html*

It says:

*  URL url = new URL(http://www.android.com/;);*
*   HttpURLConnection urlConnection = (HttpURLConnection) 
url.openConnection();*
*   try {*
* InputStream in = new 
BufferedInputStream(urlConnection.getInputStream());*
* readStream(in);*
*finally {*
* urlConnection.disconnect();*
*   }*
* }*




Thanks.



On Tuesday, May 7, 2013 8:04:04 AM UTC-5, ANKUR1486 wrote:

 Hi all , 


 how can we get the webview contents 

 urgent pls help

 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
--- 
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] video background

2013-05-07 Thread bob
 

I have an Activity that is basically a form, and I would like to use a 
video background.  It would probably be about a 2 megabyte MP4 file.  The 
easiest way for me to plug it into the existing code would probably be if 
there existed a subclass of Drawable called VideoDrawable, but it does not 
seem to exist.

Anyone know a decent way to do this?  

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
--- 
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] drawing horizontally flipped Bitmap

2013-05-07 Thread bob
 

So, I have a fish Bitmap that is facing left.  I want to draw the Bitmap 
facing right sometimes though.


Any thoughts on the best way to do this on a Canvas object?


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
--- 
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] How to do the slicing effect as in fruit ninja when user touches the screen?

2013-05-06 Thread bob
Maybe look at this?


http://www.iossourcecode.com/2012/06/23/how-to-make-a-game-like-fruit-ninja-with-box2d-and-cocos2d-part-3/

-- 
-- 
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] GridView inside ListView giving OutOfMemoryError

2013-05-06 Thread bob
It sounds like you may need to put this in your manifest:

android:largeHeap=true

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
--- 
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] Re: Application background image auto resize problem

2013-05-06 Thread bob
 

It sounds like you will want to subclass *Drawable*.

Then you implement the *draw(Canvas c)* method in My_Drawable.

Then you do

*view.setBackground(my_drawable);*


Thanks.



On Thursday, May 2, 2013 8:43:04 PM UTC-5, Gerson Novais wrote:

 Hi,

 I have an application using custom theme in the activity. This theme using 
 android: windowBackground. The problem lies in how the image is displayed. 
 I am setting up gravity to top or center but out instead of the image 
 display only part of the image corresponding to the device screen. The 
 Andorid is resizing the image so that it fits entirely on the screen. How 
 do I transpose the image it leaves the device screen?

 Any idea?

 ?xml version=1.0 encoding=utf-8?

 resources xmlns:android=http://schemas.android.com/apk/res/android;

 style name=CustomWindowTitleBackground

 item name=android:background@android:color/transparent/item

 /style

  

 style name=CustomTheme parent=android:Theme

 item name=android:windowTitleSize48dip/item

 item name=android:windowTitleBackgroundStyle
 @style/CustomWindowTitleBackground/item

 item name=android:windowContentOverlay@null/item

 item name=android:windowBackground@drawable/bk/item

 /style/resources

 Atenciosamente,
 Gerson Novais
  

-- 
-- 
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] activity on boot

2013-05-06 Thread bob
So, I have a broadcast receiver that is supposed to start an activity on 
device boot:

public class Boot_Receiver extends BroadcastReceiver
{

@Override
public void onReceive(Context context, Intent intent)
{
Intent activity_intent = new Intent(Main_Activity.class.getName());
activity_intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
context.startActivity(activity_intent);
}

}


I think it used to work, but now it gives an error.  I can't seem to make 
heads or tails of the error:

https://lh4.googleusercontent.com/-WeZCMwK-87E/UYgFlPDjJ2I/AcU/Vd-AhGl9h2g/s1600/bootissue2.png



Any ideas?

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
--- 
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] Re: activity on boot

2013-05-06 Thread bob
 

Actually, I guess the key was realizing I could have multiple intent-filter 
tags.  Adding the latter one resolved the issue:

https://lh4.googleusercontent.com/-GSsL3J2AkgQ/UYgJ68MEJ3I/Acg/80M0xd3PDVE/s1600/intentfilter.png



I guess I had previously been swapping between the two as I needed.


Thanks.





On Monday, May 6, 2013 2:34:04 PM UTC-5, bob wrote:

 So, I have a broadcast receiver that is supposed to start an activity on 
 device boot:

 public class Boot_Receiver extends BroadcastReceiver
 {

 @Override
 public void onReceive(Context context, Intent intent)
 {
 Intent activity_intent = new Intent(Main_Activity.class.getName());
 activity_intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
 context.startActivity(activity_intent);
 }

 }


 I think it used to work, but now it gives an error.  I can't seem to make 
 heads or tails of the error:


 https://lh4.googleusercontent.com/-WeZCMwK-87E/UYgFlPDjJ2I/AcU/Vd-AhGl9h2g/s1600/bootissue2.png



 Any ideas?

 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
--- 
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] Re:

2013-05-06 Thread bob
 

Well, what is line 217 of *MapWs.java*?


I bet mc is probably null?


Thanks.



On Sunday, May 5, 2013 2:13:52 PM UTC-5, ASMA wrote:

 Hii , i want  to get the current position on the map on basis of latitude 
 and longitude. But the program crashes with a null pointer exception 
 05-05 18:05:34.444: E/AndroidRuntime(858): java.lang.NullPointerException
 05-05 18:05:34.444: E/AndroidRuntime(858): at 
 hello.WSTest.MapWs.onLocationChanged(MapWs.java:217)
 05-05 18:05:34.444: E/AndroidRuntime(858): at 
 android.location.LocationManager$ListenerTransport._handleMessage(LocationManager.java:227)
 05-05 18:05:34.444: E/AndroidRuntime(858): at 
 android.location.LocationManager$ListenerTransport.access$000(LocationManager.java:160)
 05-05 18:05:34.444: E/AndroidRuntime(858): at 
 android.location.LocationManager$ListenerTransport$1.handleMessage(LocationManager.java:176)

 i have used the code below

 public void onLocationChanged(Location location) {
  lat = location.getLatitude();
  lng = location.getLongitude();
 Toast.makeText(
 getBaseContext(),
 Location change to : Latitude =  + lat +  Longitude = 
 + lng, Toast.LENGTH_SHORT).show();
 GeoPoint p = new GeoPoint((int) (lat * 1E6), (int) (lng * 
 1E6));
 mc.animateTo(p);
 mc.setCenter(p);
 }
 please can someone help me to solve that issue , thanks in advance
  

-- 
-- 
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] custom views

2013-05-03 Thread bob
I'm trying to learn custom views.  So I went here:

http://developer.android.com/training/custom-views/create-view.html

Then I downloaded the sample:

https://lh4.googleusercontent.com/-HP0GlAFmogc/UYPCOWqrJWI/AcA/8-bFwiRp5YU/s1600/download_sample.png


However, I don't see any Eclipse project files, and I can't get it to 
import into Eclipse.


Any ideas?

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
--- 
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] Re: New to Android

2013-05-03 Thread bob
 

You will want to put your code in a file called beta.java.


Then you can add this to your onCreate function:

*   *

*beta.main(null);*

*   *

*
*

*
*

Thanks.



On Tuesday, April 16, 2013 8:10:28 PM UTC-5, rlloyd wrote:

 I have a java file that I would like to incorporate in to an android 
 application. I'm not sure where in the code I put my java that I've made. I 
 use Eclipse with the newest SDKs. Where in the following code am I supposed 
 to input my code? Also, The code of mine takes input data, manipulates it, 
 and gives back 5 data sets (words, letters etc.). How on the interface 
 builder do I connect text boxes to use for input and output? I have used 
 xcode before but I am completely lost with the JAVA and the whole android 
 thing. I didn't think this would be a necessarily hard project though.

 Code that appears with new project:

 package com.example.f;

 import android.os.Bundle;
 import android.app.Activity;
 import android.view.Menu;

 public class DNA extends Activity {

 @Override
 protected void onCreate(Bundle savedInstanceState) {
 super.onCreate(savedInstanceState);
 setContentView(R.layout.activity_dn);
 }

 @Override
 public boolean onCreateOptionsMenu(Menu menu) {
 // Inflate the menu; this adds items to the action bar if it is present.
 getMenuInflater().inflate(R.menu.dn, menu);
 return true;
 }

 }


 My Code:

 Begins with:

 import java.util.Scanner;

 class beta

  { //entire program brackets

 public static void main (String[] args)

  { //meat of program

 Scanner scan = new Scanner( System.in );




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




Re: [android-developers] Re: How to get scrolling to just scroll endlessly when you swipe the screen up or down?

2013-05-03 Thread bob
Try changing this:

*TextView textView = new TextView(this);*
*setContentView(textView);*
*textView.setMovementMethod(new ScrollingMovementMethod());*


to this:

*  
*
*ScrollView sv = new ScrollView(this); *
*TextView textView = new TextView(this); *
*sv.addView(textView);*
*setContentView(sv);*
*  
*


Thanks.



On Friday, May 3, 2013 9:48:47 AM UTC-5, Dan Cha wrote:

 Testing on my Galaxy Nexus phone running 4.2.2
  
 Looking at my code i provided lastnight, does there seem to be anything 
 that stands out as possible cause?
  
 This portion of my code, is what im referring to.. since its not the same 
 as yours.. 
  

  // TODO Auto-generated method stub

   super.onCreate(savedInstanceState);

  TextView textView = new TextView(this);

  setContentView(textView);

  textView.setMovementMethod(new ScrollingMovementMethod());


 On Thu, May 2, 2013 at 11:58 PM, TreKing treki...@gmail.com javascript:
  wrote:


 On Thu, May 2, 2013 at 11:07 PM, Daniel Chacon 
 cuba...@gmail.comjavascript:
  wrote:

 thanks, I update the xml layout to match your example and still doing 
 the same thing, 
  
 Now here is my code as it stands now and everything is returned, but not 
 scrolling as expected.


 What are you testing on? Have you tried a different device or emulator?



 -
 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-d...@googlegroups.comjavascript:
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com javascript:
 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 javascript:.
 For more options, visit https://groups.google.com/groups/opt_out.
  
  




-- 
-- 
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] Re: Splash Screen: When my splash screen loads and i hit the back button, the application still shows?? why??

2013-05-03 Thread bob
This guy has a splash screen example that uses a flag 
(mIsBackButtonPressed) to see if back was pressed:

http://myandroidsolutions.blogspot.com/2012/06/android-simple-splash-screen.html

So, he basically guards against what you're talking about.

Thanks.



On Friday, May 3, 2013 9:18:45 AM UTC-5, mrallen302 wrote:


 Do u mean delete when the back button is pushed as I am quite new to 
 android or do u mean delete the timer from my code

 Thank you for replying though


-- 
-- 
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] Re: getVoiceMessageCount?

2013-05-03 Thread bob
 

I think it's because the method uses an *@hide* annotation.


So, I think you have to use Reflection to call it.


Thanks.



On Monday, April 22, 2013 9:39:33 PM UTC-5, steve...@gmail.com wrote:

 I am trying to get the number of voicemails on an Android using 
 TelephonyManager, seems it should be easy enough using the 
 getVoiceMessageCount() nethod (not documented but its in the source code!  
 But I get an error saying there is no such method ;-( 

 any ideas?


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




Re: [android-developers] dial a predefined number directly from app

2013-05-03 Thread bob
Yes, I think you use ACTION_CALL as shown here:

http://www.mkyong.com/android/how-to-make-a-phone-call-in-android/

Something like this:

**
Intent callIntent = new Intent(Intent.ACTION_CALL);
callIntent.setData(Uri.parse(tel:8675309));
startActivity(callIntent);
**

Thanks.


On Thursday, May 2, 2013 7:01:13 PM UTC-5, kaushikpendurthi wrote:

 ITs a very simple intent call .. :) 


 On Thu, May 2, 2013 at 4:56 PM, TreKing treki...@gmail.com 
 javascript:wrote:


 On Tue, Apr 30, 2013 at 2:35 AM, Rahul Kumar rish...@gmail.comjavascript:
  wrote:

 How can i make a direct call from the app?


 Type that, exactly, into Google.


 -
 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-d...@googlegroups.comjavascript:
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com javascript:
 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 javascript:.
 For more options, visit https://groups.google.com/groups/opt_out.
  
  




 -- 
 ThanksRegards
 Kaushik Pendurthi

 http://kaushikpendurthi.blogspot.com/ 


-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
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] Re: ATT making it impossible to enable USB debugging on Samsung Galaxy S4

2013-05-03 Thread bob
Have you tried this?

http://timgray.blogspot.com/2012/11/enable-developer-mode-on-your-jelly.html


*to turn on developer mode  go into settings, then go to about tablet or 
about phone and then tap on the build number 7 times.*



Thanks.


On Friday, May 3, 2013 4:47:23 PM UTC-5, Jungle Jim wrote:

 I bought a new Galaxy S4 at Radio shack yesterday and was going to start 
 doing some developing with it.

 I finally realized, to my considerable dismay, that ATT's version of the 
 S4 does not allow you to enable USB debugging. There's no option for it in 
 the Settings menu. I chatted online with Samsung's tech support and they 
 said ATT has disabled it. You know what that means.No developing Android 
 apps on an S4. 

 There's probably some way to enable it if you root the phone. But I can't 
 afford to void my warranty.

 Anyone else encounter this? I really need a phone with 4.2 for 
 developmment.


-- 
-- 
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] Re: program crashes when i try to create a table for my app

2013-05-02 Thread bob
 

I think there should not be a *db.close()* in the onCreate method.


Thanks.



On Tuesday, April 23, 2013 8:43:06 AM UTC-5, Manish Jain wrote:

 here is the code of my database java file

 package com.example.docterapp;

 import java.util.ArrayList;
 import java.util.List;

 import android.content.ContentValues;
 import android.content.Context;
 import android.database.Cursor;
 import android.database.sqlite.SQLiteDatabase;
 import android.database.sqlite.SQLiteOpenHelper;
 import android.util.Log;

 public class DatabaseHandler extends SQLiteOpenHelper {

 // private dbhelper ourdbhelper;

 // private final Context ourContext;

 // private SQLiteDatabase ourdatabase;

 SQLiteDatabase db;
 private String Doctor_ID;
 private String Online_status;
 private String Appointment;
 private String Department;
 private String Password;
 private String Name;
 private String Address1;
 private String Address2;
 private String mobile_no;
 private String Patient_ID;
 private String age;
 private String gender;
 private String Ailment;
 private String Previous_report;
 private String Hospital;
 private String Degree;
 private String Grad_College;
 private String Experience;
 private String Avail_time;
 public static String DBNAME = DO.db;
 public static String TABLE1 = patient_pers_rec;
 public static String TABLE2 = doctor_pers_rec;
 public static String TABLE3 = Patient_medical_rec;
 public static String TABLE4 = doctor_professional_details;
 public static String TABLE5 = doctor_availability;
 public static final int DATABASE_VERSION = 1;

 public DatabaseHandler(Context context) {
 super(context, DBNAME, null, DATABASE_VERSION);

 }

 @Override
 public void onCreate(SQLiteDatabase db) {
 
 
 //db.openOrCreateDatabase(DBNAME, , null);
 //db = openOrCreateDatabase(;
 db.execSQL(CREATE TABLE  + TABLE1 +  ( + Patient_ID
 +  INTEGER PRIMARY KEY, + Password +  TEXT, + Name
 +  TEXT, + age +  INTEGER, + gender +  TEXT, + 
 mobile_no
 +  INTEGER););
 // }
 Log.i(INFO,Tb1 made);
 // public void onCreate(SQLiteDatabase db)
 // {

 db.execSQL(CREATE TABLE  + TABLE2 +  ( + Doctor_ID
 +  INTEGER PRIMARY KEY, + Password +  TEXT, + Name
 +  TEXT, + Address1 +  TEXT, + Address2 +  TEXT,
 + mobile_no +  INTEGER, + ););

 db.execSQL(CREATE TABLE  + TABLE3 +  ( + Patient_ID
 +  INTEGER PRIMARY KEY, + Ailment +  TEXT,
 + Previous_report +  TEXT, + ););

 db.execSQL(CREATE TABLE  + TABLE4 +  ( + Doctor_ID
 +  INTEGER PRIMARY KEY, + Hospital +  TEXT, + Degree
 +  TEXT, + Grad_College +  TEXT, + Department +  
 TEXT,
 + Experience +  INTEGER, + ););

 db.execSQL(CREATE TABLE  + TABLE5 +  ( + Doctor_ID
 +  INTEGER PRIMARY KEY, + Avail_time +  INTEGER,
 + Online_status +  TEXT, + Appointment +  TEXT ););
 db.close();
 }

 @Override
 public void onUpgrade(SQLiteDatabase db, int oldversion, int 
 newversion) {
 db.execSQL(DROP TABLE IF EXISTS + TABLE1);
 db.execSQL(drop table if exists + TABLE2);
 db.execSQL(drop table if exists + TABLE3);
 db.execSQL(drop table if exists + TABLE4);
 db.execSQL(drop table if exists + TABLE5);
 onCreate(db);
 }

 void add(patient_pers_rec patient_pers_rec) {
 SQLiteDatabase db = this.getWritableDatabase();

 ContentValues values = new ContentValues();
 values.put(Patient_ID, patient_pers_rec.getPatient_ID());
 values.put(Password, patient_pers_rec.getPassword());
 values.put(Name, patient_pers_rec.getName());
 values.put(age, patient_pers_rec.getage());
 values.put(gender, patient_pers_rec.getGender());

 // Inserting Row
 db.insert(TABLE1, null, values);
 db.close(); // Closing database connection
 }

 void add(doctor_pers_rec doctor_pers_rec) {
 SQLiteDatabase db = this.getWritableDatabase();

 ContentValues values = new ContentValues();
 values.put(Patient_ID, doctor_pers_rec.getDoctor_ID());
 values.put(Password, doctor_pers_rec.getPassword());
 values.put(Name, doctor_pers_rec.getName());
 values.put(Address1, doctor_pers_rec.getAddress1());
 values.put(Address2, doctor_pers_rec.getAddress2());
 values.put(mobile_no, doctor_pers_rec.getMobile_no());

 // Inserting Row
 db.insert(TABLE2, null, values);
 db.close(); // Closing database connection
 }

 void add(Patient_medical_rec Patient_medical_rec) {
 SQLiteDatabase db = this.getWritableDatabase();

 ContentValues values = new 

[android-developers] Re: To play gif from a file

2013-05-02 Thread bob
No problem.

Also, what you may want to do is simply use the *GifDecoderView* class that 
is also in that project:


*FileInputStream fis = null;*
*try {*
* fis = new FileInputStream(/mnt/sdcard/piggy.gif);*
*} catch (FileNotFoundException e) {*
* **e.printStackTrace();*
*}*
*
*
*GifDecoderView view = new GifDecoderView(this, fis);*
*
*
*setContentView(view);*

It seems to work well.


Thanks.


On Wednesday, May 1, 2013 3:50:47 PM UTC-5, Beyza Nur Kökcan wrote:

 Thank you so much, it works fine now

-- 
-- 
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] Re: My published app does not appear in Google Play

2013-05-01 Thread bob
 

It looks like it is there now:

https://lh6.googleusercontent.com/-g-exvaE1Kc0/UYEjN5hZNvI/Abg/9LIOx65ESI8/s1600/sidefx2.png



Thanks.



On Tuesday, April 30, 2013 9:29:02 PM UTC-5, scrayne wrote:

 It appears on the website, but not in Google Play on my phone, even using 
 the direct url.  I have attached the manifest, and I don't think there are 
 any filtering problems.  The phone is a Droid Razr M running Android 
 version 4.1.2.  I have successfully run this app on the phone during 
 development.  Any help would be much appreciated.

 Susan


-- 
-- 
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] Re: My published app does not appear in Google Play

2013-05-01 Thread bob
What happens when you go here?

https://play.google.com/store/apps/details?id=com.oryxtech.android.sideeffects

Thanks.


On Wednesday, May 1, 2013 9:56:06 AM UTC-5, scrayne wrote:

 Bob, I can't see your image. When I search in google play my app is still 
 not listed
 Susan

-- 
-- 
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] Re: To play gif from a file

2013-05-01 Thread bob
 

I have looked further into this issue, and the issue is actually a bug in 
FileInputStream.  Basically, every class that derives from InputStream 
needs to implement the reset() method, and FileInputStream neglects to do 
so.  


Please see this in the InputStream source code:


https://lh5.googleusercontent.com/-YogltbfLGX4/UYFag1esuRI/Abw/SLb_MigbW9Y/s1600/reset.png



Thanks.



On Tuesday, April 30, 2013 9:09:26 AM UTC-5, Beyza Nur Kökcan wrote:

 Hi,
 I have found tutorials about how to play animated gifs in android by 
 reading it from an asset or using a drawable object. But what I want is to 
 read a gif file from sdcard. 
 I have changed the project reading gif from assets a little bit.

 In the main activity, I basically create gifMovieView then setContent(
 gifMovieView)
 In the constructor of the GifMovieView class, I have initailized the Movie 
 object like in the project eu.andlabs.tutorial.animatedgifs. But I have 
 used decodeFile giving the file path instead of decodeStream getting 
 inputStream.

 File file = new File 
 (Environment.getExternalStorageDirectory().getAbsolutePath(),piggy.gif);

 if(file.exists()){
 
mMovie = Movie.decodeFile(file.getPath()); 
}


 I HAVE GİVEN I/O EXCEPTION for this line. It finds the file but decodeFile 
 gives exception.


 In onDraw ;

 @Override
 protected void onDraw(Canvas canvas) {
 canvas.drawColor(Color.TRANSPARENT);
 super.onDraw(canvas);
 final long now = SystemClock.uptimeMillis();

 if (mMoviestart == 0) { 
 mMoviestart = now;
 }

 
 Log.i(,+mMovie.duration());
 
 Log.i(,+mMoviestart);
 
 final int relTime = (int)((now - mMoviestart) % mMovie.duration());
 mMovie.setTime(relTime);
 mMovie.draw(canvas, 10, 10);
 this.invalidate();
 }


 BECAUSE OF THE EXCEPTION, movie.duration becomes 0 causing the error.

 Any suggestions?

 Thank you in advance


-- 
-- 
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] Re: To play gif from a file

2013-05-01 Thread bob
As a workaround, you can probably do something like this:

*FileInputStream  fis = new FileInputStream(/mnt/sdcard/piggy.gif);*
*BufferedInputStream bis = new BufferedInputStream(fis);*
*bis.mark(10);*
*Movie movie = Movie.decodeStream(bis);*
*int width = movie.width();*
*int height = movie.height();*
*Log.d(gif, width =  + width + , height =  + height);*

Basically, you need to create an InputStream where reset() works (or at 
least doesn't throw an Exception).

For me, the code correctly showed the width and height of the GIF to be 
85x85.

Thanks.


On Wednesday, May 1, 2013 1:10:22 PM UTC-5, bob wrote:

 I have looked further into this issue, and the issue is actually a bug in 
 FileInputStream.  Basically, every class that derives from InputStream 
 needs to implement the reset() method, and FileInputStream neglects to do 
 so.  


 Please see this in the InputStream source code:


 https://lh5.googleusercontent.com/-YogltbfLGX4/UYFag1esuRI/Abw/SLb_MigbW9Y/s1600/reset.png



 Thanks.



 On Tuesday, April 30, 2013 9:09:26 AM UTC-5, Beyza Nur Kökcan wrote:

 Hi,
 I have found tutorials about how to play animated gifs in android by 
 reading it from an asset or using a drawable object. But what I want is to 
 read a gif file from sdcard. 
 I have changed the project reading gif from assets a little bit.

 In the main activity, I basically create gifMovieView then setContent(
 gifMovieView)
 In the constructor of the GifMovieView class, I have initailized the 
 Movie object like in the project eu.andlabs.tutorial.animatedgifs. But I
  have used decodeFile giving the file path instead of decodeStream 
 getting inputStream.

 File file = new File 
 (Environment.getExternalStorageDirectory().getAbsolutePath(),piggy.gif);

 if(file.exists()){
 
mMovie = Movie.decodeFile(file.getPath()); 
}


 I HAVE GİVEN I/O EXCEPTION for this line. It finds the file but 
 decodeFile gives exception.


 In onDraw ;

 @Override
 protected void onDraw(Canvas canvas) {
 canvas.drawColor(Color.TRANSPARENT);
 super.onDraw(canvas);
 final long now = SystemClock.uptimeMillis();

 if (mMoviestart == 0) { 
 mMoviestart = now;
 }

 
 Log.i(,+mMovie.duration());
 
 Log.i(,+mMoviestart);
 
 final int relTime = (int)((now - mMoviestart) % 
 mMovie.duration());
 mMovie.setTime(relTime);
 mMovie.draw(canvas, 10, 10);
 this.invalidate();
 }


 BECAUSE OF THE EXCEPTION, movie.duration becomes 0 causing the error.

 Any suggestions?

 Thank you in advance



-- 
-- 
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] Re: Pixelated interface

2013-05-01 Thread bob
 

You can draw to a Bitmap.


Then scale it down real small like *100x100* using this function:


  static 
Bitmaphttp://developer.android.com/reference/android/graphics/Bitmap.html
 
createScaledBitmaphttp://developer.android.com/reference/android/graphics/Bitmap.html#createScaledBitmap(android.graphics.Bitmap,%20int,%20int,%20boolean)
(Bitmaphttp://developer.android.com/reference/android/graphics/Bitmap.htmlsrc,
 int dstWidth, int dstHeight, boolean filter)

Creates a new bitmap, scaled from an existing bitmap, when possible.


Then scale it back up to about 800x1280 or whatever the screen size is.  
Then it will be very pixelated.


Thanks.



On Sunday, April 28, 2013 3:04:40 PM UTC-5, Vlad wrote:

 I wat to create an android app, a tamagochi to be more specific. For that 
 i need to create a pixelated interface. How can I simulate a big pixel 
 and how can I animate the big pixels?


-- 
-- 
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] Re: Application forced Close

2013-04-30 Thread bob
The problem is that you are not calling super.onCreate.  Make this the 
first line of your onCreate method:

*super.onCreate(savedInstanceState);*

Thanks.




On Monday, April 15, 2013 10:52:18 PM UTC-5, Sachin Sharma wrote:

 I am developing my first app using  android tutorials given on android 
 developers site.When i run the app it shows me message  Application has 
 stopped unexpectedly force close.How to fix it!!!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
--- 
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] Re: new in development plz help

2013-04-30 Thread bob
It sounds like you will want to read this book:

*Beginning Android Games* *by Mario Zechner and Robert Green*

I have it, and I enjoyed it greatly.

Thanks.


On Tuesday, April 16, 2013 5:03:21 PM UTC-5, yaqub seyidov wrote:

 hi guys i need your help i wanna make great apps and games for android os 
 but i am totally new on this way i mean i have no java knowledge, no 
 eclipse experience  even no programming knowledge all i wanna to know that 
 can i make great apps and games by reading all articles in this site 
 https://developer.android.com? or do i need additional alternative books 
 or something? i mean https://developer.android.com is this site is enough 
 to know all things about program developmen? make programs?. if yes what 
 can u advise to do?  thanks for paying attention


-- 
-- 
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] Re: To play gif from a file

2013-04-30 Thread bob
 

I have played animated GIFs on Android before simply by loading them in a *
WebView*.


Thanks.



On Tuesday, April 30, 2013 9:09:26 AM UTC-5, Beyza Nur Kökcan wrote:

 Hi,
 I have found tutorials about how to play animated gifs in android by 
 reading it from an asset or using a drawable object. But what I want is to 
 read a gif file from sdcard. 
 I have changed the project reading gif from assets a little bit.

 In the main activity, I basically create gifMovieView then setContent(
 gifMovieView)
 In the constructor of the GifMovieView class, I have initailized the Movie 
 object like in the project eu.andlabs.tutorial.animatedgifs. But I have 
 used decodeFile giving the file path instead of decodeStream getting 
 inputStream.

 File file = new File 
 (Environment.getExternalStorageDirectory().getAbsolutePath(),piggy.gif);

 if(file.exists()){
 
mMovie = Movie.decodeFile(file.getPath()); 
}


 I HAVE GİVEN I/O EXCEPTION for this line. It finds the file but decodeFile 
 gives exception.


 In onDraw ;

 @Override
 protected void onDraw(Canvas canvas) {
 canvas.drawColor(Color.TRANSPARENT);
 super.onDraw(canvas);
 final long now = SystemClock.uptimeMillis();

 if (mMoviestart == 0) { 
 mMoviestart = now;
 }

 
 Log.i(,+mMovie.duration());
 
 Log.i(,+mMoviestart);
 
 final int relTime = (int)((now - mMoviestart) % mMovie.duration());
 mMovie.setTime(relTime);
 mMovie.draw(canvas, 10, 10);
 this.invalidate();
 }


 BECAUSE OF THE EXCEPTION, movie.duration becomes 0 causing the error.

 Any suggestions?

 Thank you in advance


-- 
-- 
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] Re: NOOB Android Beginner Development Question!?!?

2013-04-30 Thread bob
 

I would try putting it here:

https://lh5.googleusercontent.com/-Oknzy-fCVvU/UX_fQGfhM2I/AbM/T-ix19zlXxM/s1600/sendmsg2.png



Thanks.




On Friday, April 26, 2013 7:48:00 PM UTC-5, Akshay Kumar wrote:

 I am having some trouble with the development tutorials on 
 developer.android.com.

 They say that I have to add:

 /** Called when the user clicks the Send button */
 public void sendMessage(View view) {
 // Do something in response to button
 }

 in the MainActivity class. The problem is, I don't know where to put this 
 code!!

 After the above step is completed, they say:

 Inside the sendMessage() method, create an 
 Intenthttp://developer.android.com/reference/android/content/Intent.html to 
 start an activity called DisplayMessageActivity:

 I cant find the sendMessage ()!!! All i have is the sendMessage (View 
 view)..

 Here is a link to the tutorial : 
 http://developer.android.com/training/basics/firstapp/starting-activity.html

 here is a 
 screenshothttps://lh4.googleusercontent.com/-FFzKe7_JG8I/UXsf4uzKGII/AcA/ZzjLVuazRno/s1600/forum+help.png
 link if the screenshot didn't show up: 
 http://s13.postimg.org/mtks800kn/forum_help.png


 Sorry if this is a noob question. I am new to development. 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
--- 
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] Re: Problems playing diferents songs with Android MediaPlayer

2013-04-30 Thread bob
 

Maybe in the *onPause* method of the SongPlay activity, you tell it to stop 
playing the song?


Thanks.



On Monday, April 29, 2013 4:44:53 PM UTC-5, Luis Torres Coronel wrote:

 Hi guys, a question, 
 I have three songs in a list (listview), selected one of these will launch 
 a new activity and plays the song. Return to the previous activity, select 
 a new song and this also is playing together with the above at once, how 
 could avoid this?

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




  1   2   3   4   5   6   7   8   9   10   >