[android-developers] Problem with writing files to internal memory (not visible on file browser on ICS)

2012-02-07 Thread Dirk Vranckaert
I have a problem when I try to write a file to the device's SD-card.

It's an export in CSV format that I save to the directory /Android/
data/eu.vranckaert.worktime/files/worktime/ and the name of the file
is "export.csv" in this case.

File exportDir = ctx.getExternalFilesDir(null);
File file = new File(exportDir, "export.csv");
//Already had the issues before I was applying these
permissions!
file.setReadable(true, false);
file.setWritable(true, false);
file.setExecutable(false, false);
boolean fileAlreadyExists = file.createNewFile();
if(fileAlreadyExists) {
file.delete();
file.createNewFile();
}
FileWriter fw = new FileWriter(file);
BufferedWriter bw = new BufferedWriter(fw);
bw.write(result.toString());
bw.close();
fw.close();

I tested this code and here are the results:
1) Emulator 2.3 with SD => no problem
2) Emulator 3.2 with SD => no problem
3) Emulator 4.0 with SD => no problem
4) HTC Hero (running 2.3.3) with SD => no problem
5) Samsung Galaxy ACE (running 2.3.x) with SD => no problem
6) Samsung Galaxy Nexus (running 4.0) with the 16 GB build-in SD =>
problem!!

The problem I have is that I cannot see the file that is created:
a. when I use a file browser on the device
b. when I connect the device to my windows computer (windows 7)

However I can see the entire directory structure created, just not the
files! I already had this problem before when I was not applying the
permissions, I just thought to try that without any luck.

But I noticed something else, when launching DDMS I can see the file
and download it from the device on my computer.
However this is not user-friendly so I want to have my export working
on ICS as well witouth any hacks for the user to access his exported
files.

I also tried to change the directory where it's saved, instead of the
"/Android/data" directory structure, I set it up to save on my SD-card
to the "/worktime/" directory, but that doesn't work either!

You can check out the DDMS and explorer screenshots I took attached to
the issue on google code: code.google.com/p/worktime/issues/detail?
id=84#c4

Does anyone know what I'm doing wrong or can do better to have this
working?

Kr,

Dirk

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


[android-developers] Re: Fail to connect to camera service <- Camera.open();

2012-02-07 Thread Matt Clark
package tinyClark.util.flashlite;




import java.util.List;




import android.app.Activity;
import android.hardware.Camera;
import android.hardware.Camera.CameraInfo;
import android.hardware.Camera.Parameters;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.Button;




public class Master extends Activity {




String TAG = "tinyClark";
boolean mIsFlashOpen;
Camera mCamera;




// Camera.Parameters CameraInfo;

Button btn1;
Boolean lightToggle;




@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);




btn1 = (Button)findViewById(R.id.btn1);
btn1.setOnClickListener(new View.OnClickListener() {

@Override
public void onClick(View v) {
if(lightToggle == false){
turnLightOn();
lightToggle = true;
}else{
turnLightOff();
lightToggle = false;
}
}
});




}




private void turnLightOn() {




if (false == mIsFlashOpen) {
if (null == mCamera) {
try {
Log.e(TAG, "open");
mCamera = 
Camera.open(CameraInfo.CAMERA_FACING_BACK);
} catch (RuntimeException e) {
try {
Thread.sleep(500);
Log.e(TAG, "second open");
mCamera = 
Camera.open(CameraInfo.CAMERA_FACING_BACK);
} catch (Exception sube) {
Log.e(TAG, "fail to open 
camera");
sube.printStackTrace();
mCamera = null;
}
}
}
if (null != mCamera) {
Parameters parameters = mCamera.getParameters();
if (parameters == null) {
return;
}
List flashModes = 
parameters.getSupportedFlashModes();
// Check if camera flash exists
if (flashModes == null) {
return;
}
String flashMode = parameters.getFlashMode();
if 
(!Parameters.FLASH_MODE_TORCH.equals(flashMode)) {
// Turn on the flash
if 
(flashModes.contains(Parameters.FLASH_MODE_TORCH)) {

parameters.setFlashMode(Parameters.FLASH_MODE_TORCH);
mCamera.startPreview();

mCamera.setParameters(parameters);
// mRightBtn.setEnabled(true);
} else {
Log.e(TAG, "FLASH_MODE_TORCH 
not supported");
}
}
}
}
}




private void turnLightOff() {
if (mIsFlashOpen) {
mIsFlashOpen = false;
if (mCamera == null) {
return;
}
Parameters parameters = mCamera.getParameters();
if (parameters == null) {
return;
}
List flashModes = 
parameters.getSupportedFlashModes();
String flashMode = parameters.getFlashMode();
// Check if camera flash exists
if (flashModes == null) {
return;
}
if (!Parameters.FLASH_MODE_OFF.equals(flashMode)) {
// Turn off the flash
if 
(flashModes.contains(Parameters.FLASH_MODE_OFF)) {

parameters.setFlashMode(Parameters.FLASH_MODE_OFF);
mCamera.se

Re: [android-developers] Starting Android

2012-02-07 Thread ji fei
developer.android.com

On Wed, Feb 8, 2012 at 10:46 AM, Murali Kryshna Pendyala <
pmural...@gmail.com> wrote:

> Hi,
> I am very much interested in learning Android Apps development. Can
> you please share some docs or links useful to start with . 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 post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: imageButton and weight

2012-02-07 Thread pidduweb
Solved:

imgButton.setLayoutParams(new
TableRow.LayoutParams(LayoutParams.wrap_content,LayoutParams.wrap_content,
1f));

Tha last parameter is the weight.

Rocco

On 7 Feb, 09:57, pidduweb  wrote:
> Hi all,
>   i want to set at runtime the layout weight of an imageButton, but i
> not found any method setWeight, any one can help me?
>
> Thanks
> Rocco

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


Re: [android-developers] Re: Re : Grid View

2012-02-07 Thread Farhan Tariq
define a layout with image and text, inflate it and replace a grid cell
with it.

On Wed, Feb 8, 2012 at 12:06 PM, vivek elangovan
wrote:

> Hi Ratheesh,
>   My point is i want to display image with text and
> on clicking the image i want to display the corresponding text in
> another class.
>
> - Vivek
>
> On Feb 8, 11:42 am, Ratheesh Valamchuzhy  wrote:
> > for passing a data to the next activity you can use putextra function..
>
> --
> 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 post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Invert and entire Bitmap

2012-02-07 Thread hhenne
You can make a Paint and setXfermode to XOR (PixelXorXfermode) and the
draw a solid rect on the bitmap. It will invert every bit - so when
you do it once more you are back to non-inverted. I am doing so in my
keyboard (http://www.maxikeys.com) to invert pressed keys - the room
between the keys have the color 50% grey, which will not change, when
being inverted.

Hardy Henneberg

On Feb 7, 10:09 pm, JackN  wrote:
> I don't know if there is 'negative' function, but just go through the
> pixels and transform them to your desire.
>
> On Feb 7, 7:18 am, New Developer  wrote:
>
>
>
>
>
>
>
> > Is there a process/function to invert the colors of an entire bitmap or
> > canvas ?
> > Not just a black and white image that becomes  white and black
> > But a full color image, where the color is inverted ?
>
> > 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


Re: [android-developers] Re: Re : Grid View

2012-02-07 Thread Ratheesh Valamchuzhy
Plse go through this , it may help you.
http://stackoverflow.com/questions/8373041/android-grid-view-display-caption-below-each-grid

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

[android-developers] Re: Re : Grid View

2012-02-07 Thread vivek elangovan
Hi Ratheesh,
   My point is i want to display image with text and
on clicking the image i want to display the corresponding text in
another class.

- Vivek

On Feb 8, 11:42 am, Ratheesh Valamchuzhy  wrote:
> for passing a data to the next activity you can use putextra function..

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


[android-developers] Language Change

2012-02-07 Thread aru padam
Hi all,

  I am developing an app in four different language. The language
can be selected by the user. My problem is when i take the photo from
camera, after that the language is changed as English (from other
three languages). But it working fine in the HTC not in the Samsung
Galaxy Ace. Any one can help me...

Thanks and Regards
Deepesh C

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


Re: [android-developers] Re: Removing Lock Screen

2012-02-07 Thread Dhaval Varia
Dear it is not at all poSsible...
Due to security reason..
Amend me if something wrong
On Feb 8, 2012 4:27 AM, "mgah"  wrote:

> If that is not possible, is there a way to start a timer when the lock
> screen appears and automatically enter the home screen when a timer
> elapses?
>
> On Feb 6, 4:19 pm, mgah  wrote:
> > Hello Developer team,
> >
> > I am trying to remove the lock screen completely from the phone.  My
> > goal is start the phone in the home screen when it boots up instead of
> > starting on the lock screen.
> >
> > Can you help me with this?
> >
> > 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 post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Does android support EAP-SIM authentica​tion for WIFI?

2012-02-07 Thread mask red
if yes, which version,2.​3, 3.0 or 4.0?
if not,when will supprot this function?

if l wan to do EAP-SIM authentication on nexus, how should i do?

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

[android-developers] Chnaging radio button image with each activity

2012-02-07 Thread May
I am working on a quiz activity where there are multiple radio buttons
and every time the activity loads radio button images change according
to the the question.

Is there a way to change the radio button images every time the
activity loads? I want all the radio buttons to have different image/
text each time activity starts.

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


[android-developers] Voicemail API in Ice Cream Sandwich

2012-02-07 Thread bryandunbar
I'm starting to look into the VM api's. Is it possible to retrieve all
the voicemail from the phone programmatically?

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


[android-developers] Activity Life Cycle Issue on Orientation Change

2012-02-07 Thread Jim Duda
I'm developing an application on API 2.2 (Froyo).   I'm having a
problem with myListActivity when I do an orientation change from
Vertical to Horizontal (F11 on emulator).  After the orientation
change, I go through onDestroy and onCreate as expected.  After the
onCreate, the application restarts and I get my first screen.  My
ListActivity changes list adapters as the user makes various
selections.  Each time a selection is made, a new list adapter is
created, setListAdapter( ) is called, followed by
notifyDataSetChanged( ), which results in the new list adapter
displaying the new data on the screen.

For some reason, after the Orientation change, only the first list
adapter works.  After making new selections, creating a new list
adapter, and calling notfiyDataSetChanged( ), I never get the next
display.  It is as if the notifyDataSetChanged( ) isn't working after
the Orientation change.  I have emulated this theory by altering my
app by not calling notifyDataSetChanged, and I get the same behavior
in lieu of doing the orientation change.

I have tried a copy of later APIs, and I get the same results.

I do have some static classes in my application, I tried to null them
out in onDestroy( ), thinking they were causing problems on the return
through onCreate( ), but that didn't help.

Anyone have some advice on what I might be doing wrong?

Regards,

Jim

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


[android-developers] Android ICS 4.0 Placing Flash WebView into full screen calls hideAll Method?

2012-02-07 Thread David Venezuela
android.webkit.PluginFullScreenHolder

http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/4.0.1_r1/android/webkit/PluginFullScreenHolder.java#PluginFullScreenHolder.setContentView%28android.view.View%29

public void show() {
// Other plugins may attempt to draw so hide them while we're
active.
if (mWebView.getViewManager() != null)
mWebView.getViewManager().hideAll();

WebChromeClient client = mWebView.getWebChromeClient();
client.onShowCustomView(mLayout, mOrientation, mCallback);
}

void hideAll() {
if (mHidden) {
return;
}
for (ChildView v : mChildren) {
v.mView.setVisibility(View.GONE);
}
mHidden = true;
}

Its basically hiding my whole WebView on full screen selection now
this does not happen in the default browser and this methods are not
accessible. How can I fix this?

Best Regards

David

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


[android-developers] Constraining FrameLayout dimensions (greater than viewport) using LayoutParams after scaling children

2012-02-07 Thread momo
Sorry about the poor title - it's hard to summarize the issue in one
line.

I'm working on a map tiling system for small-scale maps (imagine
building interiors), with zoom and pan functionality.  Most of this is
working properly, but after a scale operation I try to limit the
scrollable area using LayoutParams and think I'm doing it wrong, as
the behavior is unpredictable (to me, at least).

There's a "main" container (FrameLayout).  On the top layer are the
controls and other elements that don't move or scale.

The bottom layer is another a FrameLayout with scrolling enabled on
both axes (a slightly modified version of
http://blog.gorges.us/2010/06/android-two-dimensional-scrollview/).
This layer has 2 layers - an ImageView that displays a low-res version
of the map on bottom, and another FrameLayout with a "grid" of
ImageView tiles positioned with top/leftMargin.

Tiles are rendered on-demand based on what tiles would be visible (on
screen), so the low-res bottom layer is visible when scrolling or
zooming (before the final viewable area is calculated and the
appropriate tiles are rendered).

Markers and other elements are contained in another FrameLayout in the
scrollable View, above the one that has the 2 map layers (which scale,
together)

So the heirarchy looks like this:

main container
scrollable layer
maps layer
low-res image
tile container
markers layer
controls layer

During a pinch event, I "zoom" the maps layer (inclusive) by
overriding onDraw and using canvas.scale, and maintain scroll position
using getFocusX/Y.  This all works fine.

The issue is that I need to re-assign the total scrollable width and
height of the scrollable layer, so that scrolling stops at the edge of
the (scaled) maps.  Initially this works properly, but after a scale
operation everything goes haywire.  I've tried using
LayoutParams(originalMapWidth * scale, originalMapHeight * scale) on
every possible combination of the layers to be affected (scrollable,
maps, low-res, tiles), but it never lays out correctly - the closest
I've gotten is that the width does get properly constrained by the
height does not.  If I just apply the new LayoutParams to the maps
layer, clipping occurs (it looks like the scale factor is being
applied twice - this appears to be a red herring and I tried to
compensate with simple math (dividing the width/height by the scale,
etc) and it never got to a usable point.

In looking at the source of the one 3rd-party component I'm using (the
2D scrollview linked above), it looks like the issue might be in
there, but my attempts to force it to work with my setup have failed,
and I'm not eager to tackle recreating that feature (but I will if I
have to).

I've got a fairly slimmed down version where I'm trying to target just
this issue (no controls, no markers, a single tile set, etc), but it's
still pretty long and didn't seem appropriate for a post, but I'm glad
to share whatever code would be helpful.

Am I missing something obvious about how layouts work?  I've been
beating up on this one (seeming small) issue for days now, and am
making no progress.  Any insight would be very much appreciated.

TYIA

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


[android-developers] getResponseCode

2012-02-07 Thread Androiding Newbie
Hi guys,

I sorta have a problem. I m currently programming a Android Code for
passing information to a server using httpsURLConnection. However I
have problems when I execute the command: int rc =
httpsUrlConnection.getResponseCode();

It always takes at least half a minute to process this method since I
m sending relatively big strings back. Is there any way to speeden
things up? I tried to leave this command away but then nothing works,
the server does not receive any information.

This is my Code:
if(isOnline(context))
{
byte[] bytes = soap.getBytes();

System.setProperty("http.keepAlive", "false");

SSLContext sslContext = SSLContext.getInstance("TLS");
sslContext.init(null, new TrustManager[] { new 
MyTrustManager() },
new SecureRandom());


HttpsURLConnection.setDefaultSSLSocketFactory(sslContext.getSocketFactory());
HttpsURLConnection.setDefaultHostnameVerifier(new
MyHostnameVerifier());
HttpsURLConnection httpsUrlConnection = 
(HttpsURLConnection) new
URL(APIData.getURL()).openConnection();

TelephonyManager telephonyManager = (TelephonyManager)
ActivityStack.peek().getSystemService(Context.TELEPHONY_SERVICE);
String imei = telephonyManager.getDeviceId();


httpsUrlConnection.addRequestProperty("Authorization", 
"Basic " +
Base64Encoder.encode(imei + ":" + imei));
httpsUrlConnection.addRequestProperty("Content-Length", 
"" +
bytes.length);
httpsUrlConnection.addRequestProperty("Content-Type", 
"text/xml;
charset=\"utf-8\"");
httpsUrlConnection.addRequestProperty("SOAPAction", 
"http://
tempuri.org/IDataUploadWS/UploadSmartPhoneData");

httpsUrlConnection.setRequestMethod("POST");
httpsUrlConnection.setDoInput(true);
httpsUrlConnection.setDoOutput(true);
httpsUrlConnection.connect();

OutputStream output = 
httpsUrlConnection.getOutputStream();

output.write(bytes);
output.flush();
output.close();

int rc = httpsUrlConnection.getResponseCode();
Log.i("", "APIConnection.sendSOAP(...): ResponseCode = 
" + rc);
Log.i("", "APIConnection.sendSOAP(...): ResponseMessage 
= " +
httpsUrlConnection.getResponseMessage());

httpsUrlConnection.disconnect();

result = checkResponseCode(rc);
}

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


[android-developers] Starting Android

2012-02-07 Thread Murali Kryshna Pendyala
Hi,
I am very much interested in learning Android Apps development. Can
you please share some docs or links useful to start with . 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


[android-developers] Re: 4.0 Action Bar - remove app title.

2012-02-07 Thread Chris
How does the Gmail map in ICS do it then?  They have the app title as
a drop down.

On Dec 22 2011, 2:33 pm, Nathan  wrote:
> Oh, and using the "always" tag even works without removing the app
> title. The app title actually does fit in landscape mode and
> disappears in portrait mode.
>
> So if someone else was thinking of pulling out the title to make room,
> you can probably skip it.
>
> 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


Re: [android-developers] Re : Grid View

2012-02-07 Thread Ratheesh Valamchuzhy
for passing a data to the next activity you can use putextra function..

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

[android-developers] Re : Grid View

2012-02-07 Thread vivek elangovan
Hi members,
 I need to develope a gridview with image and text
and on clicking the image i need to display a textview of the
corresponding image.I already tried image alone and its working
fine.For image and text how to pass the id or text of the 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


[android-developers] Does icecream sandwich 4.0.3 enforces more restrictions for application developer in threading usage ?

2012-02-07 Thread Pritam
I am working on an application that was designed for tablet
(specifically tested well on Motorola Xoom and Samsung Galaxy Tab
10.1). The O.S. which was used was HoneyComb.

Recently after updating the O.S. to official Icecream Sandwich 4.0.3,
that was received as notification update, I find the application is
not at all well.
It lags in performance, gives frequent ANR ( Application not
responding ) dialogs.

While I understand the ANR are related to performing more work in the
UI thread, i need to know does this new android version 4.0.3 enforces
more strict restrictions on number of threads that runs in
background ? Or killing them as the activity exists that started it ?

Application uses threads exclusively to load images from server in
list views. Switching between screens makes each individual image
holder to start a new thread for its loading.
Retesting it on Honeycomb makes it work perfectly fine but not with
4.0.3, Why ?

Question is on whether icecream sandwich 4.0.3 makes changes in this
area at O.S. level handling of threads or activity lifecycle for
developers ?

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


[android-developers] SIP Server

2012-02-07 Thread Perumss Naren
HI Friends,

I need to develop *SIP server and client*. in that message, video call, etc
to be added

Sip client will work in android mobile phone, for the we have open source.

Sip server i need open source. and i need information about the  Sip server
any open source or paid that can be used or we  can use any other sip
server (Permission or with permission) please provide some useful link
because im not clear about SIP server
-- 
Regards,

Perumal.N

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

Re: [android-developers] Re: Capture home key event

2012-02-07 Thread v bobbywink
Home key has been captured in framework level.
The third app only can use the method to get home keyevent
getWindow().setType(WindowManager.LayoutParams.TYPE_KEYGUARD)


2012/2/8 Dianne Hackborn 

> On Mon, Jun 28, 2010 at 4:47 AM, Vishal  wrote:
>
>> I do understand the difference between the back key and home key.
>> Anyways, is this the android where developer say anything can be done
>> in android by developer? :-(
>>
>
> Nobody has ever claimed that third party apps can do anything in the world.
>
> --
> Dianne Hackborn
> Android framework engineer
> hack...@android.com
>
> Note: please don't send private questions to me, as I don't have time to
> provide private support, and so won't reply to such e-mails.  All such
> questions should be posted on public forums, where I and others can see and
> answer them.
>
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

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

Re: [android-developers] Re: Fail to connect to camera service <- Camera.open();

2012-02-07 Thread Raghav Sood
The camera can only be used by one application at a time. You must release
it when you are done with it, so that you may use it again. The other
applications can still use the camera as your app force closes, which frees
up the camera.

Thanks

2012/2/8 v bobbywink 

> So strange, can u post all code in this activity?
>
>
> 2012/2/8 Matt Clark 
>
>> Even using your code, in LogCat i get:
>> open
>> second open
>> fail to open camera
>> This happens even after rebooting the phone, however all other
>> applications that use the camera still work.
>>
>> On Feb 7, 2:45 am, v bobbywink  wrote:
>> > well, i think camera has crashed and in the condition u can't get
>> > camera service. U must reboot phone.
>> > when using hardware , u should be careful. u can open  Camera in
>> > onStart() and release Camera in onStop(). Can't open camera many times
>> > in activity, when task finish u must release it .
>> > sample code
>> > private void turnLightOn() {
>> > if (false == mIsFlashOpen) {
>> > if (null == mCamera) {
>> > try {
>> > Log.e(TAG, "open");
>> > mCamera =Camera.open(CameraInfo.CAMERA_FACING_BACK);
>> > } catch (RuntimeException e) {
>> > try {
>> > Thread.sleep(500);
>> > Log.e(TAG, "second open");
>> > mCamera
>> =Camera.open(CameraInfo.CAMERA_FACING_BACK);
>> > } catch (Exception sube) {
>> > Log.e(TAG, "fail to open camera");
>> > sube.printStackTrace();
>> > mCamera = null;
>> > }
>> > }
>> > }
>> > if (null != mCamera) {
>> > Parameters parameters = mCamera.getParameters();
>> > if (parameters == null) {
>> > return;
>> > }
>> > List flashModes =
>> > parameters.getSupportedFlashModes();
>> > // Check if camera flash exists
>> > if (flashModes == null) {
>> > return;
>> > }
>> > String flashMode = parameters.getFlashMode();
>> > if (!Parameters.FLASH_MODE_TORCH.equals(flashMode)) {
>> > // Turn on the flash
>> > if
>> > (flashModes.contains(Parameters.FLASH_MODE_TORCH)) {
>> >
>> > parameters.setFlashMode(Parameters.FLASH_MODE_TORCH);
>> > mCamera.startPreview();
>> > mCamera.setParameters(parameters);
>> > mRightBtn.setEnabled(true);
>> > } else {
>> > Log.e(TAG, "FLASH_MODE_TORCH not supported");
>> > }
>> > }
>> > }
>> > }
>> > }
>> >
>> > private void turnLightOff() {
>> > if (mIsFlashOpen) {
>> > mIsFlashOpen = false;
>> > if (mCamera == null) {
>> > return;
>> > }
>> > Parameters parameters = mCamera.getParameters();
>> > if (parameters == null) {
>> > return;
>> > }
>> > List flashModes =
>> > parameters.getSupportedFlashModes();
>> > String flashMode = parameters.getFlashMode();
>> > // Check if camera flash exists
>> > if (flashModes == null) {
>> > return;
>> > }
>> > if (!Parameters.FLASH_MODE_OFF.equals(flashMode)) {
>> > // Turn off the flash
>> > if (flashModes.contains(Parameters.FLASH_MODE_OFF)) {
>> >
>> > parameters.setFlashMode(Parameters.FLASH_MODE_OFF);
>> > mCamera.setParameters(parameters);
>> > mCamera.stopPreview();
>> > } else {
>> > Log.e(TAG, "FLASH_MODE_OFF not supported");
>> > }
>> > }
>> > }
>> > }
>> >
>> > On 2月7日, 下午1时14分, Matt Clark  wrote:
>> >
>> >
>> >
>> >
>> >
>> >
>> >
>> > > Even as hundreds of other have made them, i am trying my hand at a
>> > > flashlight app. I have the basic GUI and widget working and toggling,
>> > > and i just attempted to implement the actual flash from the phone.
>> > > I have found many places that this is most easily done with this
>> > > snippet of code:
>> >
>> > > Camera mCamera =Camera.open();
>> > > Parameters params = mCamera.getParameters();
>> > > params.setFlashMode( Parameters.FLASH_MODE_TORCH );
>> > > mCamera.setParameters( params );
>> >
>> > > I have tried this code, and every time i run the app it crashes,
>> > > giving me an output in LogCat of the following:
>> >
>> > > 02-07 00:04:49.130: E/AndroidRuntime(4861): Caused by:
>> > > java.lang.RuntimeException: Fail to connect to camera service
>> >
>> > > Every other app that uses the camera or fla

Re: [android-developers] Re: Fail to connect to camera service <- Camera.open();

2012-02-07 Thread v bobbywink
So strange, can u post all code in this activity?

2012/2/8 Matt Clark 

> Even using your code, in LogCat i get:
> open
> second open
> fail to open camera
> This happens even after rebooting the phone, however all other
> applications that use the camera still work.
>
> On Feb 7, 2:45 am, v bobbywink  wrote:
> > well, i think camera has crashed and in the condition u can't get
> > camera service. U must reboot phone.
> > when using hardware , u should be careful. u can open  Camera in
> > onStart() and release Camera in onStop(). Can't open camera many times
> > in activity, when task finish u must release it .
> > sample code
> > private void turnLightOn() {
> > if (false == mIsFlashOpen) {
> > if (null == mCamera) {
> > try {
> > Log.e(TAG, "open");
> > mCamera =Camera.open(CameraInfo.CAMERA_FACING_BACK);
> > } catch (RuntimeException e) {
> > try {
> > Thread.sleep(500);
> > Log.e(TAG, "second open");
> > mCamera
> =Camera.open(CameraInfo.CAMERA_FACING_BACK);
> > } catch (Exception sube) {
> > Log.e(TAG, "fail to open camera");
> > sube.printStackTrace();
> > mCamera = null;
> > }
> > }
> > }
> > if (null != mCamera) {
> > Parameters parameters = mCamera.getParameters();
> > if (parameters == null) {
> > return;
> > }
> > List flashModes =
> > parameters.getSupportedFlashModes();
> > // Check if camera flash exists
> > if (flashModes == null) {
> > return;
> > }
> > String flashMode = parameters.getFlashMode();
> > if (!Parameters.FLASH_MODE_TORCH.equals(flashMode)) {
> > // Turn on the flash
> > if
> > (flashModes.contains(Parameters.FLASH_MODE_TORCH)) {
> >
> > parameters.setFlashMode(Parameters.FLASH_MODE_TORCH);
> > mCamera.startPreview();
> > mCamera.setParameters(parameters);
> > mRightBtn.setEnabled(true);
> > } else {
> > Log.e(TAG, "FLASH_MODE_TORCH not supported");
> > }
> > }
> > }
> > }
> > }
> >
> > private void turnLightOff() {
> > if (mIsFlashOpen) {
> > mIsFlashOpen = false;
> > if (mCamera == null) {
> > return;
> > }
> > Parameters parameters = mCamera.getParameters();
> > if (parameters == null) {
> > return;
> > }
> > List flashModes =
> > parameters.getSupportedFlashModes();
> > String flashMode = parameters.getFlashMode();
> > // Check if camera flash exists
> > if (flashModes == null) {
> > return;
> > }
> > if (!Parameters.FLASH_MODE_OFF.equals(flashMode)) {
> > // Turn off the flash
> > if (flashModes.contains(Parameters.FLASH_MODE_OFF)) {
> >
> > parameters.setFlashMode(Parameters.FLASH_MODE_OFF);
> > mCamera.setParameters(parameters);
> > mCamera.stopPreview();
> > } else {
> > Log.e(TAG, "FLASH_MODE_OFF not supported");
> > }
> > }
> > }
> > }
> >
> > On 2月7日, 下午1时14分, Matt Clark  wrote:
> >
> >
> >
> >
> >
> >
> >
> > > Even as hundreds of other have made them, i am trying my hand at a
> > > flashlight app. I have the basic GUI and widget working and toggling,
> > > and i just attempted to implement the actual flash from the phone.
> > > I have found many places that this is most easily done with this
> > > snippet of code:
> >
> > > Camera mCamera =Camera.open();
> > > Parameters params = mCamera.getParameters();
> > > params.setFlashMode( Parameters.FLASH_MODE_TORCH );
> > > mCamera.setParameters( params );
> >
> > > I have tried this code, and every time i run the app it crashes,
> > > giving me an output in LogCat of the following:
> >
> > > 02-07 00:04:49.130: E/AndroidRuntime(4861): Caused by:
> > > java.lang.RuntimeException: Fail to connect to camera service
> >
> > > Every other app that uses the camera or flash works fine, and i have
> > > no idea what is causing it to fail.
> >
> > > In my android manifest i have:
> >
> > > 
> > > 
> > > 
> > > 
> >
> > > Any and all help is greatly appreciated as I am completely stuck after
> > > sitting at this for the last several hours...
> > > Thanks
> > > ~Matt
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android De

[android-developers] Re: Android AVD simulator won't run Apps with XML Readers`

2012-02-07 Thread shashi asanka
did u sure about the version ,? 2.2  2.3 something like that
I mean at initializing you use 2.3 but AVD is 2.2 something like
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


[android-developers] Anchor tag link to application activity.

2012-02-07 Thread Atluri ajith
I'm getting anchor tag from database like below. displaying using
TextView

Click here information

till now it is fine i'm displayng it using (Html.fromHtml(PostInfo).

Now my question is when i click on this anchor tag it is opening
browser to display page but i've that page in my application activity.
what i need is i want to change that anchor tag url to redirect my
application activity.

Please help me. If it is silly question suggest me in what way i can
achieve this. help would be greatness.

Thank you.
Ajith

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


[android-developers] Re: Re : SMS application

2012-02-07 Thread vivek elangovan
Hi Jagruti,
   The method for SMS is available in android developers
site u can get it from there,first u check that with emulator in real
phones u just put application file it will take the default message
configuration and send message.
If u not able to find mail me i will send the code.

- Vivek

On Feb 3, 10:32 am, Jagruti Sangani 
wrote:
> HI,
> Can you send me your application full code?Because I really want that
> application for my project training.
> 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


[android-developers] android blogs

2012-02-07 Thread T.M.S.VIJAYKUMARR
http://iamvijayakumar.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

[android-developers] Re: TextView scroll in an activity.

2012-02-07 Thread Put_tiMe
Ok, I got it to work.
I HAD to add a scroll view to the text view.
 
http://schemas.android.com/apk/res/android";
 android:layout_width="fill_parent"
 android:layout_height="fill_parent"
 android:orientation="vertical"
 android:isScrollContainer="true"
 android:scrollbars="vertical|horizontal"
 android:scrollbarStyle="outsideOverlay" >
 

android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:inputType="text|textMultiLine"
android:scrollHorizontally="false"

 
And for the word wrap to work, see the attributes for TextView above.
 
 
 

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

[android-developers] Re: Source not found/ArrayAdapter

2012-02-07 Thread Ozone Apps
Thank you Dallas for your response!  And thanks to all others who
helped.  I'm sorry if I seemed incompetent to some of you, I've had
this error for a long time and Google directed me here to find an
answer.  I'm glad I could get help from some experienced folks.
Thanks!

On Feb 7, 4:46 pm, TreKing  wrote:
> On Tue, Feb 7, 2012 at 4:38 PM, Ozone Apps wrote:
>
> > The line that causing the problem is:
>
> > spinner.setAdapter(spinnerArrayAdapter);
>
> If that's the line that causes the problem, and the problem is "null
> pointer", then basic Java knowledge tells you your "spinner" variable is
> null. If you read Dallas' response, he already gave you the answer.
>
> --- 
> --
> TreKing  - Chicago
> transit tracking app for Android-powered devices

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


Re: [android-developers] How to add e new element to public.xml?

2012-02-07 Thread ji fei
So it just can be modify by hand. Thanks

On Wed, Feb 8, 2012 at 10:50 AM, Dianne Hackborn wrote:

> By making it public you are declaring a final resource ID for it that can
> not change.  You should not be doing this unless you are building the next
> API level of the platform.
>
>
> On Tue, Feb 7, 2012 at 5:42 PM, hongbosb  wrote:
>
>> I am modifying framework of AOSP. And i have declare a new style in
>> styles.xml under framework/core/base/res/res/values. This style hasn't been
>> set to hide. When i execute "make update-api" in root directory, it won't
>> add this new element to public.xml. Shoud i add this new entry to pubic.xml
>> by hand? i don't really want to do this because it contains a attribute
>> that is the memory address of this element. It may change later.
>>
>> --
>> 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
>
>
>
>
> --
> Dianne Hackborn
> Android framework engineer
> hack...@android.com
>
> Note: please don't send private questions to me, as I don't have time to
> provide private support, and so won't reply to such e-mails.  All such
> questions should be posted on public forums, where I and others can see and
> answer them.
>
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

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

Re: [android-developers] android fullscreen issue

2012-02-07 Thread ji fei
Try to set sdkVertion to 7. Because i have meet similar issue before, i
just modify like this to solve it. But my android version is gingerbread.

On Tue, Feb 7, 2012 at 9:38 PM, Mark Murphy  wrote:

> What is the specific make/model of the device that is not honoring your
> request?
>
> On Tue, Feb 7, 2012 at 3:56 AM, mark2011 
> wrote:
> > Dear All :
> >
> >   I had written the below command at my project AndroidMainfest.xml.
> > android:theme="@android:style/Theme.NoTitleBar.Fullscreen".
> >
> > I installed the apk into 2 different android phone(one is android
> > 2.2.1, the other is 2.2.2).
> >
> > One is fullscreen display, but the other isn't. It displays electronic
> > cell status still.
> >
> > Is there anyone know the why?
> >
> > Thanks in advanced.
> >
> > BR,
> > Mark
> >
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com
> > For more options, visit this group at
> > http://groups.google.com/group/android-developers?hl=en
>
>
>
> --
> Mark Murphy (a Commons Guy)
> http://commonsware.com | http://github.com/commonsguy
> http://commonsware.com/blog | http://twitter.com/commonsguy
>
> _The Busy Coder's Guide to Android Development_ Version 3.7 Available!
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

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

Re: [android-developers] How to add e new element to public.xml?

2012-02-07 Thread Dianne Hackborn
By making it public you are declaring a final resource ID for it that can
not change.  You should not be doing this unless you are building the next
API level of the platform.

On Tue, Feb 7, 2012 at 5:42 PM, hongbosb  wrote:

> I am modifying framework of AOSP. And i have declare a new style in
> styles.xml under framework/core/base/res/res/values. This style hasn't been
> set to hide. When i execute "make update-api" in root directory, it won't
> add this new element to public.xml. Shoud i add this new entry to pubic.xml
> by hand? i don't really want to do this because it contains a attribute
> that is the memory address of this element. It may change later.
>
> --
> 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




-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

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

Re: [android-developers] Google api 7

2012-02-07 Thread Dhaval Varia
Is this dowmload available offline ?? Where?
On Feb 7, 2012 11:01 PM, "Kristopher Micinski" 
wrote:

>
>
> On Tue, Feb 7, 2012 at 11:35 AM, Dhaval Varia wrote:
>
>> 1. I need google api 7 or less...
>> Where do i get it?
>>
>
> With the android tool that's included in the sdk you can download sdks for
> previous platforms..
>
>
>> 2. I have installed my app on motorola android 2.1 ,it is giving error:
>> unable to parse...
>>
>> is it because i have built my project on 2.3 and try to install on 2.1?
>>
>
> Probably, even if it's not  because of that you still won't be able to
> install a 2.3 build on 2.1...
>
> --
> 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 post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] How to add e new element to public.xml?

2012-02-07 Thread hongbosb
I am modifying framework of AOSP. And i have declare a new style in 
styles.xml under framework/core/base/res/res/values. This style hasn't been 
set to hide. When i execute "make update-api" in root directory, it won't 
add this new element to public.xml. Shoud i add this new entry to pubic.xml 
by hand? i don't really want to do this because it contains a attribute 
that is the memory address of this element. It may change later. 

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

[android-developers] Re: LVL Reasons for answering differently for real users and test accounts

2012-02-07 Thread Gabriel Simões
Forgot to mention, it is happening to 2 different apps, with not equal
but close LVL code.
Have double checked and I haven´t changed the app key file, nor the
passwords or package names.

On 7 fev, 23:26, Gabriel Simões  wrote:
> Hello!
>
> I´m facing an issue I haven´t before and I really don´t know what may
> be causing my issues.
>
> I  have 2 apps implementing LVL. I´ve never faced big issues with LVL
> before but now, for some unknown reason my users started complaining
> that after updates they are not able to validate licenses anymore.
> If I use the same apk and register the user market account as a test
> account, then it works as expected. Everything works fine on my device
> (using the default test account - developer account).
>
> Are there any reasons for an app to answer in different ways for real
> users and test accounts?
> I´ve confirmed the users have bought the app and market has validated
> their licenses before.
>
> Things I´m thinking of:
> - I´ve changed my development environment recently. After changing my
> notebook I´ve had issues signing my apks: went back from JRE 7 to JRE
> 6 and everything seems fine.
> - Any reasons why Android Market should stop validating users after
> updating from one version to another? I´ve double checked
> LICENSE_OLD_KEY using test accounts and it is working as expected.
> - Will I need to create a new user, attach someone else's credit card
> and download my own app so I can debug market answers?
>
> Please, help!
> Thanks,
> Gabriel Simões

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


Re: [android-developers] Re: how can access android phone (sdcard) on my computer browser via wifi ?

2012-02-07 Thread Nikolay Elenkov
On Wed, Feb 8, 2012 at 8:42 AM, gjs  wrote:
> Hi,
>
> Sure write an app with its own http server.
>
> http://developer.android.com/reference/java/net/ServerSocket.html
>
>

There are also apps that let your share it via Samba (Windows file sharing),
but you need a rooted phone.

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


[android-developers] LVL Reasons for answering differently for real users and test accounts

2012-02-07 Thread Gabriel Simões
Hello!

I´m facing an issue I haven´t before and I really don´t know what may
be causing my issues.

I  have 2 apps implementing LVL. I´ve never faced big issues with LVL
before but now, for some unknown reason my users started complaining
that after updates they are not able to validate licenses anymore.
If I use the same apk and register the user market account as a test
account, then it works as expected. Everything works fine on my device
(using the default test account - developer account).

Are there any reasons for an app to answer in different ways for real
users and test accounts?
I´ve confirmed the users have bought the app and market has validated
their licenses before.

Things I´m thinking of:
- I´ve changed my development environment recently. After changing my
notebook I´ve had issues signing my apks: went back from JRE 7 to JRE
6 and everything seems fine.
- Any reasons why Android Market should stop validating users after
updating from one version to another? I´ve double checked
LICENSE_OLD_KEY using test accounts and it is working as expected.
- Will I need to create a new user, attach someone else's credit card
and download my own app so I can debug market answers?

Please, help!
Thanks,
Gabriel Simões

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


Re: [android-developers] Memory usage details in Taskmanager

2012-02-07 Thread Dianne Hackborn
This is an extremely complicated topic.  Here is something I wrote on it:
http://stackoverflow.com/questions/2298208/how-to-discover-memory-usage-of-my-application-in-android/2299813#2299813

On Mon, Feb 6, 2012 at 11:37 PM, avinash kumar  wrote:

> Hi,
>
> My RAM usage memory in TaskManager shows two values.What do those two
> values signify?
> Are they the numbers for Total free memory/Total memory or Used memory/
> Total memory?
>
> Also when I do a cat /proc/meminfo, the memory usage details that I
> get are very much different to the one in Task manager.
> What is the reason for that or am i comparing two different memory
> usage details here?
>
> Regards,
> Avi
>
> --
> 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
>



-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

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

Re: [android-developers] SSL/TSL Over Android 2.1

2012-02-07 Thread Nikolay Elenkov
On Tue, Feb 7, 2012 at 5:16 AM, Yonatan Romero  wrote:
> So I try to connect to others safe-web-pages witch has certificates
> signed by CA authorities like Verisign, Thawte, GoDaddy, Digicert,
> etc. I noticed that the request sometimes throws the exception and
> sometimes not.
>
> I want to purchase a CA-signed certificated, but I don't know what
> requirements takes Android when decides the truthfulness of the
> certificates.

You need to make sure that whatever CA issues the certificate
you intend to buy is found trusted by your device. Some CAs
have a trial certificate with a limited validity (a week or so),
that you can use to do actual testing. Or, you can list
the trusted certificates on the device with something like
this tool (or write your own):

https://market.android.com/details?id=info.guardianproject.cacert

and check that the CA certificate is trusted by your device.

That said, knowing that VeriSign got hacked multiple
times with unknown consequences, you might as well
use a self-signed certificate. It is a bit more work to implement,
but not that much.

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


[android-developers] Re: Fail to connect to camera service <- Camera.open();

2012-02-07 Thread Matt Clark
Even using your code, in LogCat i get:
open
second open
fail to open camera
This happens even after rebooting the phone, however all other
applications that use the camera still work.

On Feb 7, 2:45 am, v bobbywink  wrote:
> well, i think camera has crashed and in the condition u can't get
> camera service. U must reboot phone.
> when using hardware , u should be careful. u can open  Camera in
> onStart() and release Camera in onStop(). Can't open camera many times
> in activity, when task finish u must release it .
> sample code
> private void turnLightOn() {
> if (false == mIsFlashOpen) {
> if (null == mCamera) {
> try {
> Log.e(TAG, "open");
> mCamera =Camera.open(CameraInfo.CAMERA_FACING_BACK);
> } catch (RuntimeException e) {
> try {
> Thread.sleep(500);
> Log.e(TAG, "second open");
> mCamera =Camera.open(CameraInfo.CAMERA_FACING_BACK);
> } catch (Exception sube) {
> Log.e(TAG, "fail to open camera");
> sube.printStackTrace();
> mCamera = null;
> }
> }
> }
> if (null != mCamera) {
> Parameters parameters = mCamera.getParameters();
> if (parameters == null) {
> return;
> }
> List flashModes =
> parameters.getSupportedFlashModes();
> // Check if camera flash exists
> if (flashModes == null) {
> return;
> }
> String flashMode = parameters.getFlashMode();
> if (!Parameters.FLASH_MODE_TORCH.equals(flashMode)) {
> // Turn on the flash
> if
> (flashModes.contains(Parameters.FLASH_MODE_TORCH)) {
>
> parameters.setFlashMode(Parameters.FLASH_MODE_TORCH);
> mCamera.startPreview();
> mCamera.setParameters(parameters);
> mRightBtn.setEnabled(true);
> } else {
> Log.e(TAG, "FLASH_MODE_TORCH not supported");
> }
> }
> }
> }
> }
>
> private void turnLightOff() {
> if (mIsFlashOpen) {
> mIsFlashOpen = false;
> if (mCamera == null) {
> return;
> }
> Parameters parameters = mCamera.getParameters();
> if (parameters == null) {
> return;
> }
> List flashModes =
> parameters.getSupportedFlashModes();
> String flashMode = parameters.getFlashMode();
> // Check if camera flash exists
> if (flashModes == null) {
> return;
> }
> if (!Parameters.FLASH_MODE_OFF.equals(flashMode)) {
> // Turn off the flash
> if (flashModes.contains(Parameters.FLASH_MODE_OFF)) {
>
> parameters.setFlashMode(Parameters.FLASH_MODE_OFF);
> mCamera.setParameters(parameters);
> mCamera.stopPreview();
> } else {
> Log.e(TAG, "FLASH_MODE_OFF not supported");
> }
> }
> }
> }
>
> On 2月7日, 下午1时14分, Matt Clark  wrote:
>
>
>
>
>
>
>
> > Even as hundreds of other have made them, i am trying my hand at a
> > flashlight app. I have the basic GUI and widget working and toggling,
> > and i just attempted to implement the actual flash from the phone.
> > I have found many places that this is most easily done with this
> > snippet of code:
>
> > Camera mCamera =Camera.open();
> > Parameters params = mCamera.getParameters();
> > params.setFlashMode( Parameters.FLASH_MODE_TORCH );
> > mCamera.setParameters( params );
>
> > I have tried this code, and every time i run the app it crashes,
> > giving me an output in LogCat of the following:
>
> > 02-07 00:04:49.130: E/AndroidRuntime(4861): Caused by:
> > java.lang.RuntimeException: Fail to connect to camera service
>
> > Every other app that uses the camera or flash works fine, and i have
> > no idea what is causing it to fail.
>
> > In my android manifest i have:
>
> > 
> > 
> > 
> > 
>
> > Any and all help is greatly appreciated as I am completely stuck after
> > sitting at this for the last several hours...
> > Thanks
> > ~Matt

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


Re: [android-developers] Re: Capture home key event

2012-02-07 Thread Dianne Hackborn
On Mon, Jun 28, 2010 at 4:47 AM, Vishal  wrote:

> I do understand the difference between the back key and home key.
> Anyways, is this the android where developer say anything can be done
> in android by developer? :-(
>

Nobody has ever claimed that third party apps can do anything in the world.

-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

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

Re: [android-developers] Calling WCF Restfull

2012-02-07 Thread Heladio Benicio
json

2012/2/7 James Black 

> How is the data packaged?
>
> Is JSON or XML, for example
> On Feb 7, 2012 5:02 PM, "Heladio Benicio" 
> wrote:
>
>> Hi all,
>>
>> Does anyone know how to call a service rest "post" parameter passing
>> an object as an object and getting in return?
>>
>> 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 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
>



-- 
*Att,*
*
*
*Heládio Benicio*

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

Re: [android-developers] Re: Supporting Galaxy Note Issues Due To It Displaying Itself as a LARGE screen layout.

2012-02-07 Thread Dianne Hackborn
On Sun, Feb 5, 2012 at 5:42 AM, albnok  wrote:

> Er... since when could we do that? As far as I know the exact
> qualifiers only came about in Android 3.2.
>
> layout-large-port-xhdpi-1280x800
>
> I am thinking layout-large-port-xhdpi would make sense, though.
>

You should never, ever see a resource qualifier like that.  That is,
frankly, insane.

Also mixing density with screen size almost certainly means you are doing
something on.  I can guarantee that you that there will be device
configurations in the future that break with such things, because density
has *nothing* to do with screen size.

The first this is please, please read the documentation and my blog post
here:
http://android-developers.blogspot.com/2011/07/new-tools-for-managing-screen-sizes.html

The blog post includes examples of how to use the new selectors in a
compatible way with older devices.

Also, yes, the large size bucket is problematic, as the blog post
discusses.  There isn't anything we can do to help this for older versions
of the platform. My suggestion if you need to deal with this is to just
fall back on doing it programmatically -- define two layouts that are not
qualified by screen size, and when your code runs look at the actual screen
size (converted to dp units) and pick the one to use based on that.

Or alternatively, just forget about large, code against xlarge and the new
-sw qualifier, and make sure your normal layout resizes reasonably when
running on a larger screen.

-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

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

[android-developers] Re: I've been making games for a while now but how do I make them successful?

2012-02-07 Thread gjs
Hi,

One suggestion is not to mention that the game is still in development
even if it is, some people may think it is not complete or has bugs
etc and they are just being used to test your game.

Keep trying to make a great game with great visuals.

Regards

On Feb 7, 5:04 pm, Pedro Gabriel Fonteles Furtado
 wrote:
> I have just released this 
> game:https://market.android.com/details?id=monster.puzzle
>
> It has okay visuals, okay gameplay, I think it even hits some
> interesting key words. Yet it's not getting a lot of downloads.
>
> I used to think you need to hit popular key words to be successful in
> order to have organic growth, but that doesn't seem to be the case.
> The popular key words are drowned with applications so you can't rank
> high on searches.
>
> How do you make an fresh new game app successful? Do you have to beg
> for reviews from different websites?
> Do you have to hit popular key words that don't have a lot of apps?
>
> What's the trick?
>
> Thank you for your time!

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


Re: [android-developers] GPS - SMS - Mock Location

2012-02-07 Thread Kristopher Micinski
gjs is right, you're almost certainly exhibiting some sort of
nullpointerexception or securityexception, perhaps if you posted a log of
the program's behavior people could help you!

kris

On Mon, Feb 6, 2012 at 3:58 PM, Hohorlan B wrote:

> I have this code for my project. (Not mine, but I revised it so it
> will suit my needs.)
>
> http://pastebin.com/Tn4guLNR
>
> My Project is about a specific GPS hardware that will send GPS
> position to the Android Phone. The phone will have to display the
> location via Offline maps like mapdroyd. This program, when the button
> is clicked, it will display the offline map. The gps mock location
> will then be turned on. So the map will display the Mocked location
> from SMS.
>
> However, my program keeps on Showing Force close. Can someone help me
> for 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 post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] How do I get started on the right track

2012-02-07 Thread TreKing
On Tue, Feb 7, 2012 at 5:51 PM, Mark McDonald wrote:
>
>  I would love to have some help creating the code for the first button
> that opens the program which is planned to have 3 lower case letters in it.
>

What have you done so far? Have you read the documentation? Thoroughly?
Gone through the samples? Used Google to find more examples? What is the
exact issue at hand? Be specific.

-
TreKing  - Chicago
transit tracking app for Android-powered devices

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

[android-developers] Re: GPS - SMS - Mock Location

2012-02-07 Thread gjs
Hi,

Someone might help if you post the log with FC details.

Regards

On Feb 7, 7:58 am, Hohorlan B  wrote:
> I have this code for my project. (Not mine, but I revised it so it
> will suit my needs.)
>
> http://pastebin.com/Tn4guLNR
>
> My Project is about a specific GPS hardware that will send GPS
> position to the Android Phone. The phone will have to display the
> location via Offline maps like mapdroyd. This program, when the button
> is clicked, it will display the offline map. The gps mock location
> will then be turned on. So the map will display the Mocked location
> from SMS.
>
> However, my program keeps on Showing Force close. Can someone help me
> for 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


Re: [android-developers] Calling WCF Restfull

2012-02-07 Thread James Black
How is the data packaged?

Is JSON or XML, for example
On Feb 7, 2012 5:02 PM, "Heladio Benicio"  wrote:

> Hi all,
>
> Does anyone know how to call a service rest "post" parameter passing
> an object as an object and getting in return?
>
> 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 post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] How do I get started on the right track

2012-02-07 Thread Mark McDonald
I have installed Eclipse and SDK Kit and am ready to start writing my
application.  Can someone help me get started on the right track?  I
am writing an application that is a tracker for certain words and am
having trouble getting started.  I would love to have some help
creating the code for the first button that opens the program which is
planned to have 3 lower case letters in it.  Any help would be greatly
apreciated.  Thank you, Mark.

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


[android-developers] Re: Bluetooth insecurerfcomm automated pairing request on ICS

2012-02-07 Thread gjs
Hi,

Just ignore the pairing, or pair it anyway it should only happen
once...

Regards

On Feb 8, 3:27 am, rapgaroo  wrote:
> I own a Nexus S and it's currently running ICS 4.0.3 (OTA from T-
> Mobile). I have my own application which does Bluetooth connection
> stuff using Insecure method to ignore the boring pairing process.
> After when I updated my Android OS to ICS 4.0.3, my app is requesting
> for a pairing with the Bluetooth device even though I'm using
> createInsecureRfcommSocketToServiceRecord method. I already changed
> API to 4.0.3 for the application but I cannot find any clear answer to
> this type of problem.
> The exact same code works fine under Gingerbread and Honeycomb (i tested it)
> Under Gingerbread and Honeycomb, it does not require any pairing process if
> I use insecurerfcomm...
>
> Anyone has advice or idea to this matter?
>
> Please help me out here...

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


Re: [android-developers] shutter closed and exposure time

2012-02-07 Thread Jim Graham
On Tue, Feb 07, 2012 at 04:53:58AM -0800, Rok wrote:
> 
> I am working on an application for astronomy and I would like to
> measure so called dark current of a CCD (in electrons per second).
> To do this I have to take pictures with shutter closed and at
> different exposition times.
> Is there a way to do this with android (or is there another way to get
> dark current)?

*IF* (and I stress **IF**) I understand correctly, the shutter doesn't
actually close, as such.  The preview image you see is using the camera's
sensor.  When you take a picture, it just records the displayed image.

My suggestion would be to use a very good shield to cover the lens
(perhaps a deep black towel with the device resting on it ... in a
tightly sealed box).  It wouldn't be perfect, but it might be as good
as you can get.  Then, you could either use video mode rather than camera
mode, and analyze each frame, or take repeated photos using the longest
exposure time you can.  Then do your analysis using (forgot the name) the
process NASA, JPL, etc. use for deep space imagery, where they take
multiple images of the same object and let the computer determine, by
comparing ALL of them, what's real (i.e., stays in the image) and what's
noise (moving or otherwise not constant).

Hopefully someone here can tell you how to do it the right way...but if
not, maybe this will help.

Btw, to get a longer exposure, if your device supports it, use the
SCENE_MODE_NIGHT parameter (see "Camera.Parameters" in the developers
guide (http://developer.android.com) for more information.

Later,
   --jim

PS:  I'm doing the studying right now, but am planning on working on a
 photo app, myself.  There are a lot of features that I just can't
 find in any of the existing camera apps, most of which I'm fairly
 certain will prove to be easy...or at least, not insanely difficult.
 The others are probably impossible to do without an SLR or DSLR.

-- 
THE SCORE:  ME:  2  CANCER:  0
73 DE N5IAL (/4)MiSTie #49997  < Running FreeBSD 7.0 >
spooky1...@gmail.comICBM/Hurr.: 30.44406N 86.59909W

  "The iPad is a status symbol for yuppies. The Android
 is for people who actually want something that works."

Android Apps Listing at http://www.jstrack.org/barcodes.html

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


[android-developers] Re: how can access android phone (sdcard) on my computer browser via wifi ?

2012-02-07 Thread gjs
Hi,

Sure write an app with its own http server.

http://developer.android.com/reference/java/net/ServerSocket.html

Regards

On Jan 31, 2:01 pm, ltvie  wrote:
> Hi everyone...!!
>
> I want to know,,how can access android phone (sdcard) on my computer
> browser via wifi ?
> for example,from my computer browser i can access android phone just
> type IP and port (http://192.168.2.125:8080).. than show webpage from
> android phone ??
>
> #sorry for my bad english..:)

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


[android-developers] Re: Supporting Galaxy Note Issues Due To It Displaying Itself as a LARGE screen layout.

2012-02-07 Thread Doug
On Feb 5, 6:22 am, Daniele Segato  wrote:
> On 01/20/2012 02:40 PM, Chris wrote:
>
> > My app runs on Android 2.1+ , so I can't use the DPI based screen
> > differentiation ,
>
> are you sure about this?

I can tell you that I created an emulator with Android version 2.3.3,
told it to be 1280x800, and it picked up my very specific layout that
I stored in layout-large-port-xhdpi-1280x800.  Was that a fluke?  I
don't know.  But we haven't had any complaints from Note users,
whereas if the old layout was used, we would definitely receive some
complaints.

I think Samsung was aware of the problems with the way that the Note
works with some apps, because my company was directly contacted by a
representative from Samsung who helped us work out the layout issue
with our app on the Note.

Doug

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


[android-developers] Re: good android blog

2012-02-07 Thread Ali Chousein
When promoting own work, it's a good practice to avoid using articles
like "good", "great", "excellent", "mind-blowing" etc. Posting the
relevant link is usually considered to be enough. It's up to the
audience to choose adjectives for describing the contents of the link.


On Feb 7, 4:47 pm, "T.M.S.VIJAYKUMARR" 
wrote:
> Hi
>
> this blog for androidhttp://iamvijayakumar.blogspot.com
> --
>
> -
> Thanks & Regards,
> T.M.S.VIJAYKUMARR

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


[android-developers] Re: ADT 16 crashes

2012-02-07 Thread theSmith
Never mind. This is related to custom attributes in a library project
which is still unsupported.



On Feb 7, 5:28 pm, theSmith  wrote:
> Eclipse 3.6.2
> ADT 16.0.1
> OSX 10.6.8
>
> I'm in the process of creating a new library project out of a previous
> project and am now trying to create a project that depends on it.
> This isn't the first time I've used Libraries and have several that
> work just fine.
>
> When trying to build the project (not library) Eclipse encounters an
> error (below).  Has anyone seen this before and know how to fix it?
>
> Errors occurred during the build.
> Errors running builder 'Android Pre Compiler' on project 'Photomash'.
> java.lang.NullPointerException
>
> Stacktrace:
>
> java.lang.NullPointerException
> at
> com.android.ide.eclipse.adt.internal.build.AaptParser.getResourceFromFullPa 
> th(AaptParser.java:
> 721)
> at
> com.android.ide.eclipse.adt.internal.build.AaptParser.checkAndMark(AaptPars 
> er.java:
> 473)
> at
> com.android.ide.eclipse.adt.internal.build.AaptParser.parseOutput(AaptParse 
> r.java:
> 370)
> at
> com.android.ide.eclipse.adt.internal.build.AaptParser.parseOutput(AaptParse 
> r.java:
> 204)
> at
> com.android.ide.eclipse.adt.internal.build.builders.PreCompilerBuilder.exec 
> Aapt(PreCompilerBuilder.java:
> 784)
> at
> com.android.ide.eclipse.adt.internal.build.builders.PreCompilerBuilder.hand 
> leResources(PreCompilerBuilder.java:
> 689)
> at
> com.android.ide.eclipse.adt.internal.build.builders.PreCompilerBuilder.buil 
> d(PreCompilerBuilder.java:
> 532)
> at org.eclipse.core.internal.events.BuildManager
> $2.run(BuildManager.java:629)
> at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
> at
> org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:
> 172)
> at
> org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:
> 203)
> at org.eclipse.core.internal.events.BuildManager
> $1.run(BuildManager.java:255)
> at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
> at
> org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:
> 258)
> at
> org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.j 
> ava:
> 311)
> at
> org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:
> 343)
> at
> org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:
> 144)
> at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:
> 242)
> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

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


[android-developers] progressBar for percentage of file-uploaded

2012-02-07 Thread Farhan Tariq
Hi guys,

I have written a piece of code in an application that uploads a file to a
location, if provided with path of a file. What i am missing is a way to
show the percentage of file uploaded. I am using apache's http library for
this purpose (found it on the internet). The relevant code is here:

final File file = new
File(filePathToUpload);
final HttpClient client = new
DefaultHttpClient();
...
...
String postURL= Constants.BASE_URL;
HttpPost post = new HttpPost(postURL);
FileBody bin = new FileBody(file);
MultipartEntity reqEntity = new
MultipartEntity(HttpMultipartMode.BROWSER_COMPATIBLE);
reqEntity.addPart("myFile", bin);
post.setEntity(reqEntity);
client.execute(post);

I need help/suggestions with how do, if i can, get an output stream, if
that would help, from the HttpClient and get the number of bytes sent? I
need to show the percentages on my progressBar...
Is it even possible with httpClient?

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

[android-developers] Re: Removing Lock Screen

2012-02-07 Thread mgah
If that is not possible, is there a way to start a timer when the lock
screen appears and automatically enter the home screen when a timer
elapses?

On Feb 6, 4:19 pm, mgah  wrote:
> Hello Developer team,
>
> I am trying to remove the lock screen completely from the phone.  My
> goal is start the phone in the home screen when it boots up instead of
> starting on the lock screen.
>
> Can you help me with this?
>
> 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


[android-developers] Re: Capture home key event

2012-02-07 Thread TreKing
On Tue, Feb 7, 2012 at 1:54 AM, Jatin Patel  wrote:

> One of the reason can be to stop Audio Recording, when user leaves
> application.?
>

A) Please reply to the group.
B) That is not a good reason. You can use onStop() for that.

-
TreKing  - Chicago
transit tracking app for Android-powered devices

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

Re: [android-developers] Re: Source not found/ArrayAdapter

2012-02-07 Thread TreKing
On Tue, Feb 7, 2012 at 4:38 PM, Ozone Apps wrote:

> The line that causing the problem is:
>
> spinner.setAdapter(spinnerArrayAdapter);
>

If that's the line that causes the problem, and the problem is "null
pointer", then basic Java knowledge tells you your "spinner" variable is
null. If you read Dallas' response, he already gave you the answer.

-
TreKing  - Chicago
transit tracking app for Android-powered devices

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

Re: [android-developers] Re: Documentation for the Android/Google TV YouTube player parameters

2012-02-07 Thread Kamil Javorcik
intent.setAction(android.content.Intent.ACTION_VIEW);
Uri.parse(" http://www.youtube.com/watch?v=VIDEO_ID.";);
intent.setDataAndType(Uri.fromFile(file),
"application/vnd.android.package-archive");
startActivity(intent);

change uri

2012/2/6 Wiktor Gworek 

> Just fire VIEW intent for YouTube url. That is
> http://www.youtube.com/watch?v=VIDEO_ID.
>
> --
> 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 post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Source not found/ArrayAdapter

2012-02-07 Thread Ozone Apps
The line that causing the problem is:

spinner.setAdapter(spinnerArrayAdapter);

The rest of the code is pasted above.

I've used other programs that use spinners, this one doesn't want to
work.





On Feb 6, 6:41 am, drac94  wrote:
> "Source Not Found" means you haven't linked the Android source code
> into Eclipse, and you are trying to step into that code. The debugger
> can't step into it if the source isn't available to it.
>
> So, that is not the real problem for your spiner. Check the log cat
> and try to locate the first error line, then paste it here for see
> what is the problem, and if you can paste some of your code will be
> easier to help you.
>
> On Feb 4, 2:57 pm,OzoneApps  wrote:
>
>
>
>
>
>
>
> > Hello Everyone! I am trying to use a spinner, and the program is
> > throwing a Source Not Found error when I set an array adapter to that
> > spinner.  The array I am referencing contains valid elements and no
> > null elements...it was working but all of a sudden it kept giving me
> > the error. 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


[android-developers] ADT 16 crashes

2012-02-07 Thread theSmith
Eclipse 3.6.2
ADT 16.0.1
OSX 10.6.8

I'm in the process of creating a new library project out of a previous
project and am now trying to create a project that depends on it.
This isn't the first time I've used Libraries and have several that
work just fine.

When trying to build the project (not library) Eclipse encounters an
error (below).  Has anyone seen this before and know how to fix it?

Errors occurred during the build.
Errors running builder 'Android Pre Compiler' on project 'Photomash'.
java.lang.NullPointerException


Stacktrace:

java.lang.NullPointerException
at
com.android.ide.eclipse.adt.internal.build.AaptParser.getResourceFromFullPath(AaptParser.java:
721)
at
com.android.ide.eclipse.adt.internal.build.AaptParser.checkAndMark(AaptParser.java:
473)
at
com.android.ide.eclipse.adt.internal.build.AaptParser.parseOutput(AaptParser.java:
370)
at
com.android.ide.eclipse.adt.internal.build.AaptParser.parseOutput(AaptParser.java:
204)
at
com.android.ide.eclipse.adt.internal.build.builders.PreCompilerBuilder.execAapt(PreCompilerBuilder.java:
784)
at
com.android.ide.eclipse.adt.internal.build.builders.PreCompilerBuilder.handleResources(PreCompilerBuilder.java:
689)
at
com.android.ide.eclipse.adt.internal.build.builders.PreCompilerBuilder.build(PreCompilerBuilder.java:
532)
at org.eclipse.core.internal.events.BuildManager
$2.run(BuildManager.java:629)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at
org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:
172)
at
org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:
203)
at org.eclipse.core.internal.events.BuildManager
$1.run(BuildManager.java:255)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at
org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:
258)
at
org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:
311)
at
org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:
343)
at
org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:
144)
at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:
242)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

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


[android-developers] Re: Why would PackageManager throw PackageNotFound for its own App Package?

2012-02-07 Thread William Ferguson
But I didn't feed anything after midnight.
Honest


On Feb 8, 3:15 am, Mark Murphy  wrote:
> Yup, definitely gremlins. :-)
>
> On Tue, Feb 7, 2012 at 8:46 AM, William Ferguson
>
>  wrote:
> > Hi Mark,
>
> > Its on the UI thread from a button click.
>
> > William
>
> > On Feb 7, 11:37 pm, Mark Murphy  wrote:
> >> When are you calling this?
>
> >> One conceivable scenario would be if you are doing this a bit
> >> asynchronously from your activity (e.g., AsyncTask). If the user fired
> >> up your activity, then hustled over to uninstall it, *and* if the
> >> uninstall process were to update the package info before terminating
> >> your process, *and* your background work called getPackageInfo()
> >> between the update of PackageManager and your process being
> >> terminated, I can see you getting this error. Even assuming all the
> >> implementation stuff works as described, though, this seems like a
> >> low-probability event.
>
> >> Beyond that, all I can think of are gremlins.
>
> >> On Tue, Feb 7, 2012 at 7:43 AM, William Ferguson
>
> >>  wrote:
> >> > I'm received several instances of the IllegalStateException being
> >> > thrown out in the wild.
> >> > It's very rare and I can't reproduce it locally.
>
> >> > How is it possible for it to occur?
> >> > NB Context below is this case is an Activity.
>
> >> > final String packageName = context.getPackageName();
> >> > try {
> >> >    return context.getPackageManager().getPackageInfo(packageName,
> >> > PackageManager.GET_SIGNATURES);
> >> > } catch (PackageManager.NameNotFoundException e) {
> >> >    throw new IllegalStateException("Could not find the package for "
> >> > + packageName + "!!", e);
> >> > }
>
> >> > William
>
> >> > --
> >> > You received this message because you are subscribed to the Google
> >> > Groups "Android Developers" group.
> >> > To post to this group, send email to android-developers@googlegroups.com
> >> > To unsubscribe from this group, send email to
> >> > android-developers+unsubscr...@googlegroups.com
> >> > For more options, visit this group at
> >> >http://groups.google.com/group/android-developers?hl=en
>
> >> --
> >> Mark Murphy (a Commons 
> >> Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> >> _The Busy Coder's Guide to Android Development_ Version 3.7 Available!
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> _The Busy Coder's Guide to *Advanced* Android Development_ Version 2.4
> Available!

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


[android-developers] Comparing Ice Cream Sandwich with iOS 5

2012-02-07 Thread swingyang yang
In this document, I am trying to compare the APIs of ICS with those of
iOS 5. So, the comparison is from the point of view of the developer.
And, I am looking only at the public APIs documented on the Android
SDK web site. I know there are other APIs in the source code and they
may be used by some applications. But if they are private it means
they may change in the future and the applications using them would
break.

Both systems are huge and not always very well documented. The best
way to check the assumptions is by writing code and experimenting. But
it is taking time and I don't have it. I used to develop for iOS but I
stopped at iOS 3.0 and only explored a few domains. I developed a bit
for Android and stopped at Froyo. So, obviously this comparison is
containing mistakes. I am sure I have missed some features (specially
on ICS side). I hope my readers will help me to improve the
comparison. I am far from being an expert at all of those domains. So,
this document is first to help me improve my understanding and also
for the non-experts who'd like to know more about each OS.

So, please, don't be too harsh with me if you find some big
mistakes :-) Because I am sure you'll find some.

Comparing ICS and iOS 5 is a risky thing to do :-) So, for the
trollers and zealots : don't waste your time and mine. You'll be
censored heavily. Freedom of speech means you can express yourself on
your blog and I don't have to read it. It does not mean you can say
anything here.

This document is sometimes using the word «OS» for Android or iOS. Of
course, it is incorrect since they are distributions. But, most people
are speaking like that so the document is following the general
trend.

I have tried to avoid copy/pasting extracts of the OS documentations
but in some cases it was too tempting.

Finally, this document will be improved based upon the comments. So,
I'll track here the list of changes I have made

sorry , the rest of content as following:

http://www.alpheccar.org/content/95.html

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


[android-developers] Parsing Images

2012-02-07 Thread Stan
Hello guys;

i really want help;

i have a URL inside it a pictures in categories its php url and i want
to show them in grip vew

let me clear my idea i want to show the pictures in grid view and
those pictures found on URL (http://something.php)

and i read i have to parse the url?? i want some help plz
anything u provide helps

thank u

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


[android-developers] auto change focus

2012-02-07 Thread kumar raja
i want the answer for the following link

http://stackoverflow.com/questions/8237336/how-to-set-time-based-focus-on-buttons-in-android

how to change the focus between the elements in a screen with some time
delay, please tell me where can i find the relevant code..



-- 
Regards
Kumar Raja
M.Tech(SIT)
IIT Kharagpur,
10it60...@iitkgp.ac.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

[android-developers] Multiple ProximityAlerts

2012-02-07 Thread Georg Kaspar
Dear group,

I'm trying to set up a mapping application that allows to track down
multiple POIs where different kinds of location based information
(images, texts, audiofiles) are provided.
For each point, a ProximityAlert is added to the LocationManager with
a
PendingIntent:

private void addProximityAlert(double latitude, double longitude) {

Intent intent = new
Intent("org.something.ProximityIntentReceiver");
PendingIntent proximityIntent =
PendingIntent.getBroadcast(this,
0, intent, 0);

locationManager.addProximityAlert(
latitude, // the latitude of the central point of the
alert
region
longitude, // the longitude of the central point of the
alert region
20, // the radius of the central point of the alert
region,
in meters
-1, // time for this proximity alert, in milliseconds, or
-1
to indicate no expiration
proximityIntent // will be used to generate an Intent to
fire when entry to or exit from the alert region is detected
   );

   IntentFilter filter = new
IntentFilter("de.eulegdi.rieselfelder.ProximityIntentReceiver");
   registerReceiver(new ProximityIntentReceiver(), filter);
   int g = 0;
}

I found this Example on
"http://www.javacodegeeks.com/2011/01/android-proximity-alerts-
tutorial.html",
it makes use of ProximityIntentReceiver class (an extension of
BroadcasReceiver).

Unfortunately, when I reach proximity of a POI all Intents are fired
at
once though each one is defined using different coordinates. What am I
doing wrong? The example only uses one POI at a time though more than
one should be possible!?

Any help is appreciated! Thanks & best regards,
Georg

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


[android-developers] Need to develop full tamil android apps.

2012-02-07 Thread Rajkumar M.Tech
Dear all,

I planned to do android apps similar to google translator.  Myself
much interested to do work with you people. Kindly share your
experience regarding tamil android development challenges. like
unicode and english typing text that would convert to tamil words.

I believe you only can guide me better.


Kind Regards,

Rajkumar.
B.S.Abdur Rahman university
Chennai.

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


[android-developers] Re: Fail to connect to camera service <- Camera.open();

2012-02-07 Thread v bobbywink
well, i think camera has crashed and in the condition u can't get
camera service. U must reboot phone.
when using hardware , u should be careful. u can open  Camera in
onStart() and release Camera in onStop(). Can't open camera many times
in activity, when task finish u must release it .
sample code
private void turnLightOn() {
if (false == mIsFlashOpen) {
if (null == mCamera) {
try {
Log.e(TAG, "open");
mCamera =
Camera.open(CameraInfo.CAMERA_FACING_BACK);
} catch (RuntimeException e) {
try {
Thread.sleep(500);
Log.e(TAG, "second open");
mCamera =
Camera.open(CameraInfo.CAMERA_FACING_BACK);
} catch (Exception sube) {
Log.e(TAG, "fail to open camera");
sube.printStackTrace();
mCamera = null;
}
}
}
if (null != mCamera) {
Parameters parameters = mCamera.getParameters();
if (parameters == null) {
return;
}
List flashModes =
parameters.getSupportedFlashModes();
// Check if camera flash exists
if (flashModes == null) {
return;
}
String flashMode = parameters.getFlashMode();
if (!Parameters.FLASH_MODE_TORCH.equals(flashMode)) {
// Turn on the flash
if
(flashModes.contains(Parameters.FLASH_MODE_TORCH)) {
 
parameters.setFlashMode(Parameters.FLASH_MODE_TORCH);
mCamera.startPreview();
mCamera.setParameters(parameters);
mRightBtn.setEnabled(true);
} else {
Log.e(TAG, "FLASH_MODE_TORCH not supported");
}
}
}
}
}

private void turnLightOff() {
if (mIsFlashOpen) {
mIsFlashOpen = false;
if (mCamera == null) {
return;
}
Parameters parameters = mCamera.getParameters();
if (parameters == null) {
return;
}
List flashModes =
parameters.getSupportedFlashModes();
String flashMode = parameters.getFlashMode();
// Check if camera flash exists
if (flashModes == null) {
return;
}
if (!Parameters.FLASH_MODE_OFF.equals(flashMode)) {
// Turn off the flash
if (flashModes.contains(Parameters.FLASH_MODE_OFF)) {
 
parameters.setFlashMode(Parameters.FLASH_MODE_OFF);
mCamera.setParameters(parameters);
mCamera.stopPreview();
} else {
Log.e(TAG, "FLASH_MODE_OFF not supported");
}
}
}
}




On 2月7日, 下午1时14分, Matt Clark  wrote:
> Even as hundreds of other have made them, i am trying my hand at a
> flashlight app. I have the basic GUI and widget working and toggling,
> and i just attempted to implement the actual flash from the phone.
> I have found many places that this is most easily done with this
> snippet of code:
>
> Camera mCamera = Camera.open();
> Parameters params = mCamera.getParameters();
> params.setFlashMode( Parameters.FLASH_MODE_TORCH );
> mCamera.setParameters( params );
>
> I have tried this code, and every time i run the app it crashes,
> giving me an output in LogCat of the following:
>
> 02-07 00:04:49.130: E/AndroidRuntime(4861): Caused by:
> java.lang.RuntimeException: Fail to connect to camera service
>
> Every other app that uses the camera or flash works fine, and i have
> no idea what is causing it to fail.
>
> In my android manifest i have:
>
> 
> 
> 
> 
>
> Any and all help is greatly appreciated as I am completely stuck after
> sitting at this for the last several hours...
> Thanks
> ~Matt

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


[android-developers] imageButton and weight

2012-02-07 Thread pidduweb
Hi all,
  i want to set at runtime the layout weight of an imageButton, but i
not found any method setWeight, any one can help me?

Thanks
Rocco

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


[android-developers] shutter closed and exposure time

2012-02-07 Thread Rok
Hi!

I am working on an application for astronomy and I would like to
measure so called dark current of a CCD (in electrons per second).
To do this I have to take pictures with shutter closed and at
different exposition times.
Is there a way to do this with android (or is there another way to get
dark current)?

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


Re: [android-developers] Re: auto starting application after boot complete

2012-02-07 Thread soheb somani
my application is same as urs and it shud work at start up.bt whn it 
works first i am gettin force close and whn i press dat, my app. works 
prfctly, so can u suggest me the solution and can u provide me a snippet 
for that lock removal

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

[android-developers] How to use Google Map API for Android with the offline catch of map

2012-02-07 Thread King Leung
Hello, may I ask a question: How to use Google Map API for Android
with offline map catch? Because our application will use in this
nonetwork places, we must pre download the offline catch of map.
If it's only supply for enterprise, and what is the price for it, and
what is the contact? I'm in china.
Thanks a lot!

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


[android-developers] Editing arabic

2012-02-07 Thread wael gala
Hi,all
How i editing arabic languge to my htc hero?

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

[android-developers] Re: Source not found/ArrayAdapter

2012-02-07 Thread drac94
"Source Not Found" means you haven't linked the Android source code
into Eclipse, and you are trying to step into that code. The debugger
can't step into it if the source isn't available to it.

So, that is not the real problem for your spiner. Check the log cat
and try to locate the first error line, then paste it here for see
what is the problem, and if you can paste some of your code will be
easier to help you.

On Feb 4, 2:57 pm, Ozone Apps  wrote:
> Hello Everyone! I am trying to use a spinner, and the program is
> throwing a Source Not Found error when I set an array adapter to that
> spinner.  The array I am referencing contains valid elements and no
> null elements...it was working but all of a sudden it kept giving me
> the error. 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


[android-developers] Return the status program of "Suspended" to "Published"

2012-02-07 Thread dvpt
Hi!
For violations of the agreement is suspended a program to run in the
Android Market. It's a shame of course. By not knowing.
Can Android Market program to return the status of "Suspended" to
"Published"?
The best regards

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


[android-developers] Debug Android code from Dreamweaver 5.5 in my device

2012-02-07 Thread publ...@emdr-es.com
I am programming Android apps with Jquery mobile in Dreamweaver 5.5
but only can run the apps via AVD manager.

The AVD emulator its so slow !

How can i run apps directly in my phone UBS connected? Could  create a
new AVD as my phone in AVD Manager?

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


[android-developers] Multi-choice alert dialog

2012-02-07 Thread Juxtenia
As part of an app I'm writing I've got to get a multi choice dialog
where the user can select people who are travelling on a holiday.
However when i try to initiate this dialog it never appears and if I
try to do anything else I get ANR. The initialising code in the
onCreateDialog(int id) method is as follows:

case PEOPLE_CHOSING_DIALOG:
AlertDialog.Builder builder = new 
AlertDialog.Builder(this);
builder.setTitle("Select Travellers");
builder.setMultiChoiceItems(peepses, results, this);
Looper.prepare();
AlertDialog alert = builder.create();
return alert;

I know this code is being run but the dialog is not appearing. peepses
contains the names of the people and results is an all false array of
boolean. The class this is being run in is WorldActivity which
implements the OnMultiChoiceClickListener interface.

Any help would be much appreciated, thanks in advance.

Juxtenia

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


[android-developers] Re: Documentation for the Android/Google TV YouTube player parameters

2012-02-07 Thread Wiktor Gworek
Just fire VIEW intent for YouTube url. That is 
http://www.youtube.com/watch?v=VIDEO_ID.

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

[android-developers] Removing Lock Screen

2012-02-07 Thread mgah
Hello Developer team,

I am trying to remove the lock screen completely from the phone.  My
goal is start the phone in the home screen when it boots up instead of
starting on the lock screen.

Can you help me with this?

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


[android-developers] imgButton and weight at runtime

2012-02-07 Thread pidduweb
HI all,
  i want to set at runtime the weight of a imagebutton, but there isn't a 
method setWeight, any one can help me?

Thanks
Rocco

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

[android-developers] SSL/TSL Over Android 2.1

2012-02-07 Thread Yonatan Romero
I attempt to connect to my web-site with a self-signed certificate. I
received a SSLException ("Not trusted server certificate") because my
website doesn't have a trust certificate.

So I try to connect to others safe-web-pages witch has certificates
signed by CA authorities like Verisign, Thawte, GoDaddy, Digicert,
etc. I noticed that the request sometimes throws the exception and
sometimes not.

I want to purchase a CA-signed certificated, but I don't know what
requirements takes Android when decides the truthfulness of the
certificates.

Does somebody can help me?

Thanks in advance.
Yonatan Romero

The stacktrace is here when attempt to connect
https://ebankpersonas.bancopatagonia.com.ar/eBanking/usuarios/login.htm
:

 02-06 17:06:21.216: W/System.err(3698): javax.net.ssl.SSLException:
Not trusted server certificate
02-06 17:06:21.247: W/System.err(3698): at
org.apache.harmony.xnet.provider.jsse.OpenSSLSocketImpl.startHandshake(OpenSSLSocketImpl.java:
360)
02-06 17:06:21.256: W/System.err(3698): at
org.apache.http.conn.ssl.AbstractVerifier.verify(AbstractVerifier.java:
92)
02-06 17:06:21.266: W/System.err(3698): at
org.apache.http.conn.ssl.SSLSocketFactory.connectSocket(SSLSocketFactory.java:
321)
02-06 17:06:21.276: W/System.err(3698): at
org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:
129)
02-06 17:06:21.287: W/System.err(3698): at
org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:
164)
02-06 17:06:21.299: W/System.err(3698): at
org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:
119)
02-06 17:06:21.306: W/System.err(3698): at
org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:
348)
02-06 17:06:21.318: W/System.err(3698): at
org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:
555)
02-06 17:06:21.327: W/System.err(3698): at
org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:
487)
02-06 17:06:21.336: W/System.err(3698): at
org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:
465)
02-06 17:06:21.346: W/System.err(3698): at
ar.com.firstsystems.example.https.BasicHttpClient.connect(BasicHttpClient.java:
41)
02-06 17:06:21.356: W/System.err(3698): at
ar.com.firstsystems.example.android.service.UpdateService.checkNewUpdates(UpdateService.java:
40)
02-06 17:06:21.366: W/System.err(3698): at
ar.com.firstsystems.example.android.service.UpdateService.onCreate(UpdateService.java:
25)
02-06 17:06:21.376: W/System.err(3698): at
android.app.ActivityThread.handleCreateService(ActivityThread.java:
2780)
02-06 17:06:21.386: W/System.err(3698): at
android.app.ActivityThread.access$3200(ActivityThread.java:119)
02-06 17:06:21.396: W/System.err(3698): at android.app.ActivityThread
$H.handleMessage(ActivityThread.java:1917)
02-06 17:06:21.396: W/System.err(3698): at
android.os.Handler.dispatchMessage(Handler.java:99)
02-06 17:06:21.406: W/System.err(3698): at
android.os.Looper.loop(Looper.java:123)
02-06 17:06:21.416: W/System.err(3698): at
android.app.ActivityThread.main(ActivityThread.java:4363)
02-06 17:06:21.429: W/System.err(3698): at
java.lang.reflect.Method.invokeNative(Native Method)
02-06 17:06:21.436: W/System.err(3698): at
java.lang.reflect.Method.invoke(Method.java:521)
02-06 17:06:21.449: W/System.err(3698): at
com.android.internal.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:860)
02-06 17:06:21.476: W/System.err(3698): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
02-06 17:06:21.496: W/System.err(3698): at
dalvik.system.NativeStart.main(Native Method)
02-06 17:06:21.506: W/System.err(3698): Caused by:
java.security.cert.CertificateException:
java.security.cert.CertPathValidatorException: TrustAnchor for
CertPath not found.
02-06 17:06:21.566: W/System.err(3698): at
org.apache.harmony.xnet.provider.jsse.TrustManagerImpl.checkServerTrusted(TrustManagerImpl.java:
168)
02-06 17:06:21.606: W/System.err(3698): at
org.apache.harmony.xnet.provider.jsse.OpenSSLSocketImpl.startHandshake(OpenSSLSocketImpl.java:
355)
02-06 17:06:21.619: W/System.err(3698): ... 23 more
02-06 17:06:21.627: W/System.err(3698): Caused by:
java.security.cert.CertPathValidatorException: TrustAnchor for
CertPath not found.
02-06 17:06:21.656: W/System.err(3698): at
org.bouncycastle.jce.provider.PKIXCertPathValidatorSpi.engineValidate(PKIXCertPathValidatorSpi.java:
149)
02-06 17:06:21.676: W/System.err(3698): at
java.security.cert.CertPathValidator.validate(CertPathValidator.java:
211)
02-06 17:06:21.686: W/System.err(3698): at
org.apache.harmony.xnet.provider.jsse.TrustManagerImpl.checkServerTrusted(TrustManagerImpl.java:
164)
02-06 17:06:21.69

Re: [android-developers] voice input for people with tremors (or large fingers)

2012-02-07 Thread Megan Clark
There is an app called Vlingo Virtual Assistant -- I'm not sure it
will help but it might save your brother some frustration until
someone comes up with something more accessible. I played with it on
my phone a few months ago, but I can't remember much about it other
than nice voice utility and big buttons.

Good luck!


On Sat, Feb 4, 2012 at 11:04 AM, James Hadley  wrote:
> Hi all,
>
> The microphone "button" on all Android "keyboards"  that I've seen are
> too small for people with tremors or large fingers.
>
> My brother has tremors and was trying to use several of the Android
> phones with the largest screens.
>
> Using Google Mobile's Voice Actions app, he could easily open gmail
> and then "compose new message".
>
> But, to start using the voice input (which works well) he has to press
> a tiny mic button, using either the QWERTY or Compact QWERTY input
> method keyboard types.
>
> This stopped him cold every time.
>
> All that is needed is an Android keyboard with a really large mic
> button.  Everything else needed for people with tremors or large
> fingers comes standard with Android phones, for example: Voice Actions
> and voice input.
>
> Things we tried that didn't work:
>  -  Eyes-Free Keyboard
>  -  FlexT9 app (from nuance.com)
> Both of these have the same issue as the QWERTY or Compact QWERTY
> standard Android keyboards -- the mic buttons are too small.
>
> Suggestions?  We'd happily give an award to anyone that makes a
> keyboard to fix this!
>
> Cheers,
> JH
>
> --
> 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 post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Android ICS: Default browser not respecting viewport tags

2012-02-07 Thread santa
In our android webapp for tatgeting various screens of andorid deive,
we use the following meta view port tag for scaling based on device
viewport scale



But in Android ICS version of device, above Meta tag has NO effect on
the application. The UI appears to be zoomed out and the app loses
functionality.

Any help would be appreciated.

- Santa

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


[android-developers] Open Source Android Project

2012-02-07 Thread armors...@live.com

Hello ,

I'm looking for open source Android Projects. Let me know if you have 
one please. I made available a restaurant menu system here 
 open source. It's also in 
the app store search for "Eat Dude".


-The "web app" is hosted on Google app engine. Google handles all the 
user authentication. You can create/manage your restaurant menu that is 
then made available immediately to the Android app ( Python / Web.py ).


regards
-wiley

--
Eat Dude Mobile Menus  ( 
Restaurant Menus )


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

[android-developers] Calling WCF Restfull

2012-02-07 Thread Heladio Benicio
Hi all,

Does anyone know how to call a service rest "post" parameter passing
an object as an object and getting in return?

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


Re: [android-developers] Re: Source not found/ArrayAdapter

2012-02-07 Thread Dallas Gutauckis
Try moving your call to setContentView before the call to findViewById. If
you don't have layout, findViewById won't find a view. I'm assuming your
NPE is on that spinner.setAdapter(...) line.

On Mon, Feb 6, 2012 at 22:30, Ozone Apps  wrote:

> Sorry for being so vague the first time.  I was in a rush!  Heres the
> code thats causing the error:
>
> CODE
>
> String[] spinnerArray =
> getResources().getStringArray(R.array.a_chords);
>  Spinner spinner = new Spinner(this);
>ArrayAdapter spinnerArrayAdapter = new
> ArrayAdapter(
>this, android.R.layout.simple_spinner_item,
> spinnerArray);
>
> spinnerArrayAdapter.setDropDownViewResource(
> android.R.layout.simple_spinner_dropdown_item );
>
>
>spinner = (Spinner) findViewById( R.id.choose_key);
>spinner.setAdapter(spinnerArrayAdapter);
>setContentView(R.layout.main);
>
> CODE
>
> The array I'm getting from the resources is here:
>
> 
>A
>Bm
>C#m
>D
>E
>F#m
>E7th
>
>
> Heres the logcat:
>
> java.lang.NullPointerException
>
> any ideas?
>
>
>
> On Feb 6, 12:04 pm, TreKing  wrote:
> > On Sat, Feb 4, 2012 at 2:57 PM, Ozone Apps  >wrote:
> >
> > > Any ideas?
> >
> > Debug your app.
> > Explain "throwing a Serouce Not Found error".
> > Post a logcat.
> > Show some code.
> >
> >
> ---
> --
> > TreKing  - Chicago
> > transit tracking app for Android-powered devices
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

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

[android-developers] Re: Can't get cursor position from InputConnection

2012-02-07 Thread Frank Chun Yat Li
I am wondering the same thing. How would anyone use the setComposingRegion 
or setSelection without knowing the current cursor position?


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

[android-developers] Memory usage details in Taskmanager

2012-02-07 Thread avinash kumar
Hi,

My RAM usage memory in TaskManager shows two values.What do those two
values signify?
Are they the numbers for Total free memory/Total memory or Used memory/
Total memory?

Also when I do a cat /proc/meminfo, the memory usage details that I
get are very much different to the one in Task manager.
What is the reason for that or am i comparing two different memory
usage details here?

Regards,
Avi

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


[android-developers] Unable to connect Oracle database

2012-02-07 Thread indumathy raju
Hi all,
I'm new to android application. I'm trying to access oracle database from
my application. Below is my code for my database connectivity. I'm unable
to connect.  i put ojdbc14.jar in class path also. but getting class not
found error in log cat. I'm using android 1.6. can anybody help to fix this
issue???

try {

Class.forName("oracle.jdbc.driver.OracleDriver");



 Connection connection = DriverManager
.getConnection("jdbc:oracle:thin:10.0.2.2:1521:XE",
"training", "training");

if (connection != null) {
System.out
.println("connected to your database now!");
Toast.makeText(CategoryDisplayActivity.this, "DB
Connected!",
Toast.LENGTH_SHORT).show();

} else {
System.out.println("Failed to make connection!");
}
} catch (ClassNotFoundException e) {

System.out.println("Where is your Oracle JDBC Driver?");
e.printStackTrace();
return;

} catch (SQLException e) {

System.out.println("Connection Failed! Check output console");
e.printStackTrace();
return;

}


-- 
Cheers,

INDU

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

[android-developers] ScrollView in SYSTEM_TYPE_ALERT is blurred

2012-02-07 Thread Drew
I have an android app that displays an system alert from a service:

WindowManager.LayoutParams params = new
WindowManager.LayoutParams(WindowManager.LayoutParams.FILL_PARENT,
WindowManager.LayoutParams.FILL_PARENT,
WindowManager.LayoutParams.TYPE_SYSTEM_ALERT,
WindowManager.LayoutParams.FLAG_ALT_FOCUSABLE_IM, PixelFormat.OPAQUE);

((WindowManager) getSystemService(WINDOW_SERVICE)).addView(view,
params);

I have set view to a GridView, Scrollable TextView, and a Gallery and
on all of them if I scroll the images/text blend together. Everything
is blurred together. It is as if the new image/text is drawn on the
screen but the old image/text is not removed. Any idea on how to fix
this? Does anyone have an example of a TYPE_SYSTEM_ALERT where the
content is scrollable?

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


[android-developers] Re: Using ViewPager with dynamic view sets

2012-02-07 Thread HeneryH
tatebn, did you ever solve this problem?  I have been going crazy trying to 
dynamically add views to a viewpager based on database items.

If I find one more sample with three statically defined views each adding a 
textview with the index I will go crazy!


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

[android-developers] Re: SDK Manager won't launch

2012-02-07 Thread broderix
I confirm that!
I also got "parsesdkcontent failed " error, that couldn't load sdk

On 6 фев, 00:48, hhenault  wrote:
> Hello Android developpers,
>
> since several days, when I try to launch the SDK manager, I get the
> following set of error messages:
>
> Fetchinghttps://dl-ssl.google.com/android/repository/addons_list-1.xml
> Failed to fetch 
> URLhttps://dl-ssl.google.com/android/repository/addons_list-1.xml,
> reason: Stub!
> Fetched Add-ons List successfully
> Fetching URL:https://dl-ssl.google.com/android/repository/repository-5.xml
> Failed to fetch 
> URLhttps://dl-ssl.google.com/android/repository/repository-5.xml,
> reason: Stub!
> Fetching URL: file://d:/java/android-sdk-windows/tools/repository-5.xml
> Failed to fetch URL 
> file://d:/java/android-sdk-windows/tools/repository-5.xml/addon.xml,
> reason: Stub!
> Done loading packages.
>
> The network is running, correctly, I can access those URL's easily
> with any Internet browser.
>
> Uninstall-reinstall the SDK Manager does not fix the problem.
>
> Is there a way to trace what the SDK manager does ?
>
> Any help welcome, thanx 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


[android-developers] GPS - SMS - Mock Location

2012-02-07 Thread Hohorlan B
I have this code for my project. (Not mine, but I revised it so it
will suit my needs.)

http://pastebin.com/Tn4guLNR

My Project is about a specific GPS hardware that will send GPS
position to the Android Phone. The phone will have to display the
location via Offline maps like mapdroyd. This program, when the button
is clicked, it will display the offline map. The gps mock location
will then be turned on. So the map will display the Mocked location
from SMS.

However, my program keeps on Showing Force close. Can someone help me
for 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


[android-developers] Application to allow selected application to connect to the internet via 3G

2012-02-07 Thread Nwanna Anthony
I have successfully written the android code that will totally disable 3G 
on a device. What I want to do next is to edit the code so that only 
selected application can access the internet via 3G while others cannot.
My application is just like the Droid wall but with some difference. I have 
been working on this application for quite sometime because I just started 
learning android some months back.
Please I need help with a line code or references to a web link that I can 
get an Idea.
Am using this as my final year project and the last part of the code 
modification has been holding me back.

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

[android-developers] I've been making games for a while now but how do I make them successful?

2012-02-07 Thread Pedro Gabriel Fonteles Furtado
I have just released this game:
https://market.android.com/details?id=monster.puzzle

It has okay visuals, okay gameplay, I think it even hits some
interesting key words. Yet it's not getting a lot of downloads.

I used to think you need to hit popular key words to be successful in
order to have organic growth, but that doesn't seem to be the case.
The popular key words are drowned with applications so you can't rank
high on searches.

How do you make an fresh new game app successful? Do you have to beg
for reviews from different websites?
Do you have to hit popular key words that don't have a lot of apps?

What's the trick?

Thank you for your time!

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


[android-developers] Re: Heyzap

2012-02-07 Thread Jude Gomila
If anyone wants to reach out to me, I'm one of the co founders of
Heyzap and I'm happy to discuss the integration. Best

On Jan 30, 10:03 pm, bob  wrote:
> Has anyone here spent any time on integrating Heyzap?
>
> Is this worth it at all or not-so-much?
>
> 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


  1   2   >