Re: [android-developers] Re: how to draw using canvas in single screen with buttons at bottom of the screen

2011-08-17 Thread Ratheesh Valamchuzhy
Hi Divya

For Your requirement it is better to use the tab host in android ..  u
just research abt tab host in android 

But i correct the program as per ur requirement but some problems are
there ,. the view is overwriting the existing view and one thing is that ,
you need to make the code for remove and redraw the canvas..


DrawTest.java
=

package com.DrawTest;

import android.app.Activity;
import android.graphics.Color;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.FrameLayout;
import android.widget.TextView;

public class DrawTest extends Activity implements OnClickListener
{

   //private DrawActivity draw;
   DrawView drawview;
   CircleView circleView;
   Button square,circle;
   FrameLayout Frame;

   /** Called when the activity is first created. */

   @Override
   public void onCreate(Bundle savedInstanceState) {
   super.onCreate(savedInstanceState);
   setContentView(R.layout.main);


Frame=(FrameLayout)findViewById(R.id.MyFreame);
   drawview=new DrawView(this);
   circleView=new CircleView(this);


   square=(Button)findViewById(R.id.buttonTest);
   square.setOnClickListener(this);
   circle=(Button)findViewById(R.id.circleButton);
   circle.setOnClickListener(this);
   }

   public void onClick(View v)
   {
   switch (v.getId()) {
   case R.id.circleButton:

   Frame.addView(circleView);
  // circleView.setBackgroundColor(Color.rgb(40,100,20));
  // circleView.findViewById(R.id.CircleViewId);
  // setContentView(circleView);

   break;

   case R.id.buttonTest:

   //drawview.setBackgroundColor(Color.WHITE);
  // drawview.findViewById(R.id.DrawViewId);
  /// setContentView(drawview);
   Frame.addView(drawview);
   break;
   }
   }
}


*DrawView and CircleView has no change.*.



main.xml
===

?xml version=1.0 encoding=utf-8?

FrameLayout
   xmlns:android=http://schemas.android.com/apk/res/android;
   android:visibility=visible
   android:id=@+id/MyFreame
   android:layout_width=fill_parent
   android:layout_height=fill_parent


   com.DrawTest.DrawView
   android:id=@+id/DrawViewId
   android:layout_width=200dp
   android:layout_height=200dp
   /com.DrawTest.DrawView

   com.DrawTest.CircleView
   android:id=@+id/CircleViewId
   android:layout_width=200dp
   android:layout_height=200dp
   /com.DrawTest.CircleView

LinearLayout

   android:layout_width=fill_parent
   android:layout_height=fill_parent
   android:orientation=horizontal
   android:gravity=bottom


Button
   android:layout_height=wrap_content
   android:text=Circle
   android:id=@+id/circleButton
   android:layout_width=160dp
   
   /Button

   Button
   android:layout_height=wrap_content
   android:text=Square
   android:id=@+id/buttonTest
   android:layout_width=160dp
   /Button




/LinearLayout
/FrameLayout
==


go through the code and modify as u need

or try TABHOST

Thanks

RATHEESH

-- 
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] Realidad Aumentada Android

2011-08-17 Thread danielgo0307
Hola, quiero desarrollar una aplicación para Android q use Realidad
Aumentada usando patrones de textura, inicialmente instalé Eclipse
pero el simulador de las apliciones no me permite ver la imagen de mi
webcam, alguien sabe como configurar eclipse para q reconozca mi
webcam?? o necesito algo adicional para esto??

-- 
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] SubMenu + AdapterContextMenuInfo

2011-08-17 Thread DmitryCh
Hello!
I'm want to delete a row from my sql database with help of SubMenu in
ContextMenu  but get en error when try to get  AdapterContextMenuInfo
info.id.
How can I get my items id from submenu?

public class MainActivity extends ListActivity {
...
  private DBAdapter dbHelper;
...
 this.getListView().setDividerHeight(2);
 dbHelper = new DBAdapter(this);
 dbHelper.open();

...

 @Override
 public void onCreateContextMenu(ContextMenu menu, View v,
 ContextMenuInfo menuInfo) {
 super.onCreateContextMenu(menu, v, menuInfo);
  SubMenu manageClients = menu.addSubMenu(R.string.manageClients);
 manageClients.add(CLIENTS, DELETE_ID, 0, R.string.deleteClient);

 }

 @Override
 public boolean onContextItemSelected(MenuItem item) {
 final AdapterContextMenuInfo info = (AdapterContextMenuInfo) item
 .getMenuInfo();
 switch (item.getItemId()) {
  case DELETE_ID:
  dbHelper.deleteContact(info.id);
 return true;
 }
 return super.onContextItemSelected(item);
 }

-- 
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 2.2 and 7 inch development

2011-08-17 Thread Ash
Hi All,

I have the following TechNexion development boards (with 7 inch panel)
http://www.technexion.com/index.php/development-kits/tsunamipack

It is running Android 2.2. We are developing a front end. The issue I am 
having is that no matter what I do I am not able to get the display to fully 
use the 7 inch space. It seems it is only using 4.3 inch of the whole 
display. In Eclipse I have made a custom 7 inch canvas but with no luck.

Can someone please advice on the steps that I need to take in order to 
create my display for 7 inch panel?

Thanks 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] Bizarre OpenGL performance on Samsung Galaxy.

2011-08-17 Thread calderwa
HI. I have been writing some OpenGL ES 2.0 code, running on both my
Galaxy S and Asus transformer. The Galaxy exhibits a truly weird
behaviour. When the phone is connected to the PC via USB, or if it is
connceted wirelessly using the nVidia SGXPerfServer I get smooth 32
fps performance. If the phone is disconnected it is extremely jerky
and approximately half this rate. There appears to be no appreciable
garbage collection that might explain the effect. It appears not to be
a configuration issue, as the behaviour switched between good and bad
when the app is running, simply by plugging in and out the USB cable.
The Asus transformer just runs the same irrespective of connection
status. Any ideas? I have searched long and hard on the web. I have
found multiple reports of poor openGL performance on Galaxy, but none
related to connection status.
All help gratefully received.

-- 
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] modifying already loaded texture

2011-08-17 Thread Arslan Khan
Hi,

I loaded a texture with alpha value now i want to access pixel data of
texture from the loaded texture. i know i can use getpixel to get a
pixel value from a bitmap but its not efficient because every time i
need a single pixel value i have to reload the bitmap and then recycle
it. is their any api which can access already loaded texture data

-- 
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] Issue with Android socket connectivity.

2011-08-17 Thread N K Shrivastva
Hello all developers,

I am facing this spcl type of issue with socket connection with
server.When first time connect with server then it's true
response.Server connecting successful.

when   trying to connect second time then not connecting with
server.bez socket connection is not closing with server.when
restarting the server then again it's give true response.

after one response it's not connecting with server.first time it's
give response of server  when server startup.

   Socket smtpSocket = null;
String os = null;
DataInputStream is = null;
// Initialization section:
// Try to open a socket on port 25
// Try to open input and output streams
try {

InetAddress serverAddr = InetAddress.getByName(SERVERIP);
smtpSocket = new Socket(serverAddr,SERVERPORT);
if(smtpSocket.isConnected()){
 
System.out.println(##Trueee);
 
System.out.println(1.+smtpSocket.getRemoteSocketAddress());
 
System.out.println(1.+smtpSocket.getReceiveBufferSize());
}

 
System.out.println(smtpSocket.getRemoteSocketAddress());
   // os = new
DataOutputStream(smtpSocket.getOutputStream());
   // is = new
DataInputStream(smtpSocket.getInputStream());
} catch (UnknownHostException e) {
System.err.println(Don't know about host:
hostname);
} catch (IOException e) {
System.err.println(Couldn't get I/O for the
connection to: hostname+e);
}
try {

smtpSocket.close();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}

i thing server is not closing the socket connection so, i am facing
this issue.

Please some one help me what to do kill the connection from server and
clinet side for that socket .

Thanks,

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


[android-developers] Database and ListView

2011-08-17 Thread kirti waykole
hello friends,

 I am displaying data from database in listview. when i select any
row, that row detail should display into toast or into Dialog box .
Here i am using Toast. But instead of displaying the names it shows
android.SQLite@4376f048.

Please help me how i solve this problem

this is my main Activity:


package org.kah;

import android.app.AlertDialog;
import android.app.Dialog;
import android.app.ListActivity;
import android.content.ContentValues;
import android.content.DialogInterface;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.os.Bundle;
import android.provider.BaseColumns;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.widget.CursorAdapter;
import android.widget.EditText;
import android.widget.ListView;
import android.widget.SimpleCursorAdapter;
import android.widget.Toast;


public class SQLiteDemo extends ListActivity
{
private static final int DIALOG_ID = 100;

private SQLiteDatabase database;

private CursorAdapter dataSource;

private View entryView;

private EditText firstNameEditor;

private EditText lastNameEditor;

private static final String fields[] = { first, last, 
BaseColumns._ID };

/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
DatabaseHelper helper = new DatabaseHelper(this);
database = helper.getWritableDatabase();
Cursor data = database.query(names, fields, null, null, null, 
null,
null);

dataSource = new SimpleCursorAdapter(this, R.layout.row, data, 
fields,
new int[] { R.id.first, R.id.last });

ListView view = getListView();
view.setHeaderDividersEnabled(true);
view.addHeaderView(getLayoutInflater().inflate(R.layout.row, 
null));

setListAdapter(dataSource);
}

@Override
public boolean onCreateOptionsMenu(Menu menu) {
menu.add(0, DIALOG_ID, 1, R.string.addItem);
return true;
}

@Override
protected void onListItemClick(ListView l, View v, int position, long 
id) {
super.onListItemClick(l, v, position, id);
// Get the item that was clicked
Object o = this.getListAdapter().getItem(position);
String keyword = o.toString();
Toast.makeText(this, You selected:  + keyword, 
Toast.LENGTH_LONG)
.show();
}

@Override
public boolean onMenuItemSelected(int featureId, MenuItem item) {
if (item.getItemId() == DIALOG_ID) {
showDialog(DIALOG_ID);
}
return true;
}

@Override
protected Dialog onCreateDialog(int id)
{
AlertDialog.Builder builder = new AlertDialog.Builder(this);
entryView = getLayoutInflater().inflate(R.layout.entry, null);
builder.setView(entryView);
firstNameEditor = (EditText) 
entryView.findViewById(R.id.firstName);
lastNameEditor = (EditText) 
entryView.findViewById(R.id.lastName);
builder.setTitle(R.string.addDialogTitle);
builder.setPositiveButton(R.string.addItem,
new DialogInterface.OnClickListener() {

@Override
public void onClick(DialogInterface 
dialog, int which) {
dialog.dismiss();
ContentValues values = new 
ContentValues();
values.put(first, 
firstNameEditor.getText()
.toString());
values.put(last, 
lastNameEditor.getText().toString());
database.insert(names, null, 
values);

dataSource.getCursor().requery();
}
});

builder.setNegativeButton(R.string.cancelItem,
new DialogInterface.OnClickListener()
{

@Override
public void onClick(DialogInterface 
dialog, int which) {
dialog.cancel();
}
});
return builder.create();

[android-developers] Re: MediaPlayer: setDataSource failed (streaming)

2011-08-17 Thread lb
I tried couple from here and it worked for me but they are 3gp videos
though.

http://daily3gp.com/vids/family_guy_bill_cosby.3gp
-lb


On Aug 13, 7:23 am, Dmitry Kazakov dmitriikaza...@gmail.com wrote:
 Hi there.
 I write Android app and I want to playing music from a remote URL via
 HTTP streaming. In official tutorial is showed this code:

 String url = http://;; // your URL here
 MediaPlayer mediaPlayer = new MediaPlayer();
 mediaPlayer.setAudioStreamType(AudioManager.STREAM_MUSIC);
 mediaPlayer.setDataSource(url);
 mediaPlayer.prepare(); // might take long! (for buffering, etc)
 mediaPlayer.start();

 But I don't know what kind of URL I should use. I try to use
 vorbis.com/music/Epoq-Lepidoptera.ogg from google tutorial: it correct
 open in browser but when I have invoked setDataSource(url) I catch
 java.io.IOException: setDataSource failed.: status=0x8000. I
 googled and find meaning of this error: file at which points the this
 path is not valid.
 Can you show me example of URL that I should use for playing music via
 HTTP streaming?

-- 
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: MediaPlayer: setDataSource failed (streaming)

2011-08-17 Thread NaveenShrivastva
On Wed, Aug 17, 2011 at 12:19 PM, lb lakshman.b...@gmail.com wrote:

 I tried couple from here and it worked for me but they are 3gp videos
 though.

 http://daily3gp.com/vids/family_guy_bill_cosby.3gp
 -lb


 On Aug 13, 7:23 am, Dmitry Kazakov dmitriikaza...@gmail.com wrote:
  Hi there.
  I write Android app and I want to playing music from a remote URL via
  HTTP streaming. In official tutorial is showed this code:
 
  String url = http://;; // your URL here
  MediaPlayer mediaPlayer = new MediaPlayer();
  mediaPlayer.setAudioStreamType(AudioManager.STREAM_MUSIC);
  mediaPlayer.setDataSource(url);
  mediaPlayer.prepare(); // might take long! (for buffering, etc)
  mediaPlayer.start();
 
  But I don't know what kind of URL I should use. I try to use
  vorbis.com/music/Epoq-Lepidoptera.ogg from google tutorial: it correct
  open in browser but when I have invoked setDataSource(url) I catch
  java.io.IOException: setDataSource failed.: status=0x8000. I
  googled and find meaning of this error: file at which points the this
  path is not valid.
  Can you show me example of URL that I should use for playing music via
  HTTP streaming?

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



mediaPlayer.setDataSource(url);

here pass url through parse URI.parse(url)

-- 
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: relative layout - landscape - editText stretches [solved]

2011-08-17 Thread TCS
Problem solved - it was my misunderstanding of how android handles the 
activity on screen orientation 

-- 
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: android maps limitations

2011-08-17 Thread עמרי ליבא
Hey
i think i am talking about map tile requests from the native Google
API

but just to be on the safe side :-) :
i just want to embed a map that i can add overlays on in my android
app
Thanks!


On Aug 16, 10:23 pm, lbendlin l...@bendlin.us wrote:
 Are you talking about

 - map tile requests from the native Google API
 - image requests from the static map API
 - Webkit based Javascript Google Maps API

 ?

-- 
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] JDK version ?

2011-08-17 Thread Harris Hussain
Which JDK version I n eed for Windows Vista 32-bit. Please tell me ,
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


Re: [android-developers] notifications of getting e-mail from third party server.(as zimbra)

2011-08-17 Thread shailendra pathak
please suggest me how can i make the application of getting
notification on my smart phone when i get a mail from third party
server (as ZIMBRA)
-- 
sp

-- 
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 to read *.CHM File ?

2011-08-17 Thread Setiaji Kurniawan
Sorry sir, you have to talk in English..
For your question, the answer is you can check the archives..

On Sun, Aug 14, 2011 at 2:00 PM, restu nopiandi irawan 
superexper...@gmail.com wrote:

 saya anggota baru group ini.
 dapatkah saya mendapatkan informasi sebelumnya?
 [?]
 --
 restu nopiandi


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




-- 
*- setiaji -* http://setiaji.wordpress.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=en33E.gif

[android-developers] Intent URI working in default Browser but not in default Email app

2011-08-17 Thread ___
Dear all,

I would like to send a link in an email to trigger the launch of an
Activity.
As for now, with the following link and intent-filter, it works very
well within the default Browser but not in the default Email
application.

HTML link
a
href=intent:#Intent;action=com.mycompany.project.MY_ACTION;package=com.mycompany.project;endclick
here to launch/a

intent-filter
intent-filter
action android:name=com.mycompany.project.MY_ACTION /
category android:name=android.intent.category.DEFAULT/
category android:name=android.intent.category.BROWSABLE/
/intent-filter

I suspect the code in packages/apps/Email/src/com/android/email/
activity/MessageView.java around line 547 to be the cause of the
issue :
  public boolean shouldOverrideUrlLoading(WebView view, String
url) {
// Handle most uri's via intent launch
boolean result = false;
Intent intent = new Intent(Intent.ACTION_VIEW,
Uri.parse(url));
intent.addCategory(Intent.CATEGORY_BROWSABLE);
intent.putExtra(Browser.EXTRA_APPLICATION_ID,
getPackageName());
 
intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET);
try {
startActivity(intent);
.
}

Instead of using Intent.parseUri(url, Intent.URI_INTENT_SCHEME); like
in  BrowserActivity.java (around line 2654) which permits to use
custom action, the Intent action is forced to be Intent.ACTION_VIEW
and the custom action can not be resolved.

Is this a known issue or am I missing something about custom action
and Intents?
Does any workaround exist to get this behavior within the Email client
without using a custom scheme?

Thanks

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


[android-developers] developing a dialect wordlist/app.

2011-08-17 Thread isprins
Hello, does anyone know how i make a dialect wordlist/app ?
I think i can get hold of a word-list from the local mothers tongue
association.
I don't have any programming experience at all..

-- 
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] Problems with emulator

2011-08-17 Thread René
Hi

I have tried the Hello Android application from the Android Developers
page, using eclipse.
When i run the program, the emulator starts, and then nothing seems
to happen.

The output from my Console:
[2011-08-16 13:44:49 - HelloAndroid] --
[2011-08-16 13:44:49 - HelloAndroid] Android Launch!
[2011-08-16 13:44:49 - HelloAndroid] adb is running normally.
[2011-08-16 13:44:49 - HelloAndroid] Performing
com.example.helloandroid.HelloAndroid activity launch
[2011-08-16 13:44:49 - HelloAndroid] Automatic Target Mode: Preferred
AVD 'my_avd' is not available. Launching new emulator.
[2011-08-16 13:44:49 - HelloAndroid] Launching a new emulator with
Virtual Device 'my_avd'
[2011-08-16 13:45:00 - HelloAndroid] New emulator found: emulator-5554
[2011-08-16 13:45:00 - HelloAndroid] Waiting for HOME
('android.process.acore') to be launched...


Could anyone please help?
Regards
René

-- 
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: Activity Start Performance Improvement - how to dealt with loading the data while the UI continues to be displayed

2011-08-17 Thread demon
once you got a(or 10, 20,...) piece of data, post a message or
runnable by Handler. Then update the UI in the method handleMessage()
of Handler or run() of the Runnable.

On Aug 16, 9:15 am, gml gml.check.t...@gmail.com wrote:
 I forgot to mention that I am using AsyncTask.
 Thanks

 On Aug 13, 8:38 pm, nadam a...@anyro.se wrote: Use 
 AsyncTask.http://developer.android.com/reference/android/os/AsyncTask.html

  On 12 Aug, 06:21, gml gml.check.t...@gmail.com wrote:

   Hi guys,

   I have simple application that loading the data needed upon the
  Activitystarts which it consume about 2-3 minutes. Then, the UI
   displayed after that long process.

   Present Scenario:
   1) click the app tostart.
   2) progress bar pop-up while doing the data loading in my localDB
   (about 2-3mins).
   3) progress bar closes, UIstartto load and display the data from
   localDB.

   Problem:
   Want tostartand load/display the UI immediately while loading the
   data into localDB but display it one by one.
   But don't have idea on how to implement it.

   Expected Scenario:
   1) click the app tostart. then immediately load and display the UI.
   2) on the background, get the data and load to localDB while
   displaying it one by one to UI.

   Thanks and regards,

   Eros
   Japan

-- 
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 Google Map caching in MapActivity

2011-08-17 Thread MS
Per 
http://googleblog.blogspot.com/2011/07/download-map-area-added-to-labs-in.html

Can this be done now in our own applications?

-- 
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] Which JDK version I need?

2011-08-17 Thread Harris Hussain
I have Windows Vista 32-bit. Which JDK version I have top Install ??

-- 
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] Phone Gap

2011-08-17 Thread Rathna Kumara Premadasa
Try using,
   http://phonegap.com/



*Rathna Kumara Premadasa*
(Trainee Software Engineer)
Sri Lanka.

-- 
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 OpenOffice with Read only access to Data

2011-08-17 Thread Neeraj
Hi,

I am trying to open PDF/DOC/XLS format using INTENT and Openoffice is
default viewer.

I have defined following properties to launch my PDF/DOC

Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setData(uri);//PDF path
intent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);
context.startActivity(intent);

but even after setting FLAG_GRANT_READ_URI_PERMISSION OpenOffice is
comming with menu that has Save option and  allowing saving of my
PDF file to /sdcard.

Is there is any way to force other application not to save any of data
called through Intent.

Thanks in advance
Neeraj

-- 
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] Computer Sales

2011-08-17 Thread suresh sureshk
http://123maza.com/65/white951/

-- 
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: Phone Gap

2011-08-17 Thread Mlifty
Hi,

I am a web developer and like yourself have just started my mobile
adventure. I decided to use Phong Gap to convert my web apps to native
apps and JQuery Mobile to handle the UI. Yes you can compile your
'Hello World' app to the various platforms, though you would need to
setup a dev enviroment for each platform. Having said that PhoneGap
Build is currently in Beta and allows you to build from the cloud ;-)

I suggest start with android as the setup with eclipse is pretty sweet
(note: I have not tried other environments though IOS is next)

Re

On Aug 16, 9:11 pm, pramod.deore deore.pramo...@gmail.com wrote:
 Hi all, Today I read about phone gap. But I didn't got it clearly.
 Docs says Write a PhoneGap app once with HTML and Javascript and
 deploy it to any mobile device without losing features of a native
 app.

 Is that means PhoneGap developed certain API's and we can use them in
 all above plalforms? Or is it like suppose I developed one application
 say Hello world application in Android platform and using PhoneGap I
 can translate .apk file into other device file say BlackBerry .cod
 file?

 Any help/suggestion highly appreciated.

 Thanks

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


[android-developers] Qooqle

2011-08-17 Thread ece çalıkuş
hi. there is an application called qooqle developed by mit students.
my company that i am intern in ask me to develop this project in
android. but i am not good enough in android. at least can you give me
an opinion where i should start for this project. by the way i am not
going to develop the whole project. my project will include only
uploading pictures to flickr with voice and tagging them with voice..
this is the project if you dont hear before:
http://vimeo.com/23240025

-- 
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] TCP client error

2011-08-17 Thread Matej755N
Hello,

is anybody looks where could be probleme on code as follows. If is IP
address and PORT server on net allright, connection works well, but ..
try .. } catch UnknownHostException and  IOException   no works
(example IP not availbale on net..and so on).. appliaction freeze and
show errors for long time : Activity ... is not responding.

code:
...
...

public class ClientTCP extends Activity {
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.communication);

final TextView textin = (TextView)findViewById(R.id.textback);
final TextView textin1 =
(TextView)findViewById(R.id.textback1);
final TextView textin2 =
(TextView)findViewById(R.id.textback2);
Button bsend = (Button)findViewById(R.id.bsendat);

bsend.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
// TODO Auto-generated method stub
   Socket s = null;
   BufferedReader reader;
   PrintWriter writer;

   try {
   s = new Socket(10.0.0.1, 14000);
InputStreamReader(s.getInputStream()));
textin1.setText(Spojení navázáno, odesílám 
data ...);
writer = new PrintWriter(new
OutputStreamWriter(s.getOutputStream()));
writer.println(Hello Server);
writer.flush();
writer.close();
   } catch (UnknownHostException e) {
// TODO Auto-generated catch block
textin1.setText(Error1);
e.printStackTrace();

   } catch (IOException e) {
// TODO Auto-generated catch block
textin1.setText(Error2);
e.printStackTrace();

   } finally {
   if (s != null){
   try {
s.close();
textin2.setText(Socket terminated);

} catch (IOException e) {
// TODO Auto-generated catch 
block
textin1.setText(Error3);
e.printStackTrace();

}}
   }
}
});
}
}

-- 
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] someone please suggest me how can i get notification on my smart phone when i will be getting e-mail from third-party mail server...

2011-08-17 Thread shailendra pathak
someone please suggest me how can i get notification on my smart phone
when i will be getting e-mail from third-party mail server...

-- 
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] ListActivity and widgets

2011-08-17 Thread fraggjkee
Hello all. I have class, which extends ListActivity. Such class, like
saying in official description, consists of a single, full-screen
list in the center of the screen. I need to refer to some widget
(EditText) from here and get result of .getText(), but if I try to do
something like EditText edit = (EditText)findViewById(R.id.*)  I
have force close when start application.

P.S. Sorry for my 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] Billing Service return RESULT_SERVICE_UNAVAILABLE

2011-08-17 Thread soundyes
Now I have the The market billing service is not available at this
time. You can continue to use this app but you would not be able to
make purchase. problem, too.

I had trid followings by way, but it can't prove the problem  yet.
1. Restart your device.
2. Settings - Application - Application management - Market -
Erase data.
3. Run the market application and approve the agreement.
4. You will see the list of applications. Then, return to the home.
5. Auto-update might possibly begin for the market application, so
please wait for a few minutes.
6. Confirm that the version of the market application is latest
(maybe
2.3.6).
7. Run the market application again, confirm displaying the list of
applications, and return to the home.
8. Run the sample application.


I have checked my Market version is v2.3.6. And my device is
Defy(MB525) of Motorola.

Maybe, Taiwan does not support purchase in the Market now . Is it also
not supported in In-app Billing service?

-- 
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] Programmatically scrolling tabs in ActionBar

2011-08-17 Thread Hospes | Android dev.
How can scroll tabs in ActionBar if we have too many tabs that are
added dynamically?
And if it's impossible, how can we solve this problem differently?

Thanks.

Best regards,
Andrew Khloponin

-- 
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] Problems with emulator

2011-08-17 Thread René
Hi

I have tried to make the HelloAndroid app and run it under the
emulator.
But something goes wrong.

Eclipse starts the emulator, and then it just hangs. The application
never starts.

The console saids:
[2011-08-16 14:26:32 - HelloAndroid] --
[2011-08-16 14:26:32 - HelloAndroid] Android Launch!
[2011-08-16 14:26:32 - HelloAndroid] adb is running normally.
[2011-08-16 14:26:32 - HelloAndroid] Performing
com.example.helloandroid.HelloAndroid activity launch
[2011-08-16 14:26:32 - HelloAndroid] Automatic Target Mode: Preferred
AVD 'my_avd' is not available. Launching new emulator.
[2011-08-16 14:26:32 - HelloAndroid] Launching a new emulator with
Virtual Device 'my_avd'
[2011-08-16 14:26:42 - Emulator] emulator: emulator window was out of
view and was recentred
[2011-08-16 14:26:42 - Emulator]
[2011-08-16 14:26:42 - HelloAndroid] New emulator found: emulator-5554
[2011-08-16 14:26:42 - HelloAndroid] Waiting for HOME
('android.process.acore') to be launched...


Ideas anyone ?

Regards
René

-- 
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] Security code to android phone

2011-08-17 Thread mahesh naik
How to generate random security code and applied it mobile phone as
well as it should be stored in some variable and it is send to the
alternate mobile as sms.I am developing tracking application.please
help

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


[android-developers] about iq packets

2011-08-17 Thread venugopal peparthi
hi friends am venugopal ,beginner please reply for me how to send IQ
packet and receive results ,iam struguling 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] A saveing image file problem

2011-08-17 Thread Wenqil
Hi all,

  I'm trying to transmit files between two phones using WiFi.  After
one of the phones received a image file from the other phone, it save
the file to the SD card, using the dir /sdcard/MyFiles.  I almost
done this work.

  But, the storage has some problem I think, when the image file is
saved, I can't find it using the Gallery app on the phone
immediately,  I must unmount the SD card and mount it again or do
other thing reprepare the SD card. Then, start the Gallery app again,
the image file is found in my dir.

  The following is my code used to save a file:

public boolean SaveFile(Filedata filedata){ // Filedata has two parts:
String filename and byte[] bytes
static final String FILE_DIR = /sdcard/MyFiles;
try{
File FIleDir = new File(FILE_DIR);
if(FileDir.exists() == false){
FileDir.mkdir();
}

File file = new File(FileDir, filedata.filename);
file.createNewFile();

RandomAccessFile fileAccess = new RandomAccessFile (file,
rw);
fileAccess.setLength(0);
fileAccess.write(filedata.bytes);
fileAccess.close();

}catch (Exception ex){

Log.e(TAG, ex.toString());
return false;
}

return true;
}


I don't know what else shoult to do. After quit my app, I want to find
the picture immediately.

Could anyone give some advice?

Thanks,
Best regards,

Wenqi

-- 
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] unresolved: api. facebook.com:443

2011-08-17 Thread russkris
Hello,

I have just started getting this message when trying to access
facebook or use my browser outside a wifi connection. When connected
to wifi, I have no problem using facebook or the browser.

Is this a software problem or service provider?

I have turned the wifi/bluetooth off and tried(when outside a wifi
area). I have turned my phone off and back on again.

Any help would be appreciated.


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] How to display image without blur in imageview

2011-08-17 Thread murali
I am using imageview for displaying image but when i redraw the image
to large size using bitmap, the image is blured...how can i avoid
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] About an operation of In-App Billing Google's server

2011-08-17 Thread Kohei Akita
Hi,

I'm newbie of this forum, so I appreciate if someone can give me
answer my question...

I'm now implementing In-App Billing feature into my apps, however, I
am wondering when contents now proceeding purchase operation would be
put into the state of purchased.

I understand that purchase state put into purchased state if I can
get the response of REQUEST_PURCHASE as RESULT_OK. But I would just
like to know how the Server proceed purchase operation after receiving
REQUEST_PURCHASE request from a client device.
I

Best Regards,

Kohei Akita

-- 
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] Why Does not find /system/lib/*.so files even existed in filesystem ?

2011-08-17 Thread kevin.park
Hi folks.

I am a developer of the android. During the developing I got messages
like below

01-01 09:00:21.168: DEBUG/dalvikvm(2275): No JNI_OnLoad found in /
system/lib/libmbccert.so 0x45fec188, skipping init
01-01 09:00:21.199: DEBUG/dalvikvm(2275): No JNI_OnLoad found in /
system/lib/libttldec.so 0x45fec188, skipping init
01-01 09:00:21.211: INFO/ActivityThread(2282): Publishing provider
media: com.android.providers.media.MediaProvider
01-01 09:00:21.296: VERBOSE/MediaProvider(2282): Attached volume:
internal
01-01 09:00:21.300: DEBUG/dalvikvm(2275): No JNI_OnLoad found in /
system/lib/libthintpegdec.so 0x45fec188, skipping init
01-01 09:00:21.324: DEBUG/dalvikvm(2275): No JNI_OnLoad found in /
system/lib/libadminregion.so 0x45fec188, skipping init
01-01 09:00:21.332: INFO/ActivityThread(2282): Publishing provider
downloads: com.android.providers.downloads.DownloadProvider
01-01 09:00:21.355: DEBUG/dalvikvm(2275): No JNI_OnLoad found in /
system/lib/libthinconverter.so 0x45fec188, skipping init

After i got messages I've searched for filesystem. in there i've seen
a files which is required for running.
also I checked it using YAFFS2 and work fine

i confirmed filesystem working very well because of running the
android well and if filesystem does not find these files, Maybe the
other file not work as i think

So is there time difference in order to run and the other causing ???


Thank in advance.

Kevin.park

-- 
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] Intent Uri and clickable link / not the same behavior in Browser and Email app

2011-08-17 Thread ___
Dear all,

I am trying to trigger an Intent when the user clicks on a link.But
the behavior is different when the link is on a web page accessed by
the Android Browser and when received by email (Android Email
application).

My link and intent filter are as follows
a
href=intent:#Intent;action=com.mycompany.aproject.MYACTION;package=com.mycompany.aproject;end
click to load/a

 intent-filter
action android:name=com.mycompany.aproject.MYACTION /
 category android:name=android.intent.category.DEFAULT /
 category android:name=android.intent.category.BROWSABLE /
 /intent-filter

When the user clicks on this link in the Browser everything works
fine:
I/ActivityManager(   61): Starting: Intent
{ act=com.mycompany.aproject.MYACTION
cat=[android.intent.category.BROWSABLE] pkg=com.orange.test
cmp=com.mycompany.aproject/.AnActivity } from pid 332

But when he clicks on the link within an email:
I/ActivityManager(   61): Starting: Intent
{ act=android.intent.action.VIEW
cat=[android.intent.category.BROWSABLE]
dat=intent:#Intent;action=com.mycompany.aproject.MYACTION;package=com.mycompany.aproject;end
flg=0x8 (has extras) } from pid 295

Instead of my custom action, android.intent.action.VIEW is sent and
the whole uri gets into the data field

This behavior seems be due to a different implentation of the
shouldOverrideUrlLoading(WebView view, String url) method in the
BrowserActivity line 2666
   intent = Intent.parseUri(url, Intent.URI_INTENT_SCHEME);
and in MessageView (part of the email app,)
   Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(url));


Is there any workaround to trigger a custom action with a link in both
applications?
(using a custom android:scheme works in both but does not achieve the
same direct Activity triggering for a custom action)
Is this the normal behavior for the email application? Are there any
standards on how a clickable link triggers an Intent in Android?

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] Closing SQLiteCurser

2011-08-17 Thread PushpRaj
it seems that closing a cursor, also attempt to close the Database
(printing a stacktrace):

at android.database.sqlite.SQLiteDatabase.dbclose(Native Method)
at
android.database.sqlite.SQLiteDatabase.onAllReferencesReleased(SQLiteDatabase.java:
325)
at
android.database.sqlite.SQLiteClosable.releaseReference(SQLiteClosable.java:
45)
at
android.database.sqlite.SQLiteProgram.onAllReferencesReleased(SQLiteProgram.java:
119)
at
android.database.sqlite.SQLiteClosable.releaseReference(SQLiteClosable.java:
45)
at android.database.sqlite.SQLiteProgram.close(SQLiteProgram.java:296)
at android.database.sqlite.SQLiteQuery.close(SQLiteQuery.java:136)
at android.database.sqlite.SQLiteCursor.close(SQLiteCursor.java:506)

does it mean that one shouldn't attempt closing a database explicitly
while using a cursor, as in this case:

SQLiteDatabase rdb = db.getReadableDatabase();
Cursor resultCursor = null;
String patternQuery = SQLiteQueryBuilder.buildQueryString(true,
Store, columns, where, null, null, null, null);

try
{
resultCursor = rdb.rawQuery(patternQuery, null);


resultCursor.moveToFirst();
if (resultCursor.getCount()  0)
{
while (!resultCursor.isAfterLast())
{
result.add(resultCursor.getString(0));
resultCursor.moveToNext();
}
}
}
catch (Exception e)
{
Log.d(DB, Caught an exception while getting pattern
based results:  + e);
}
finally
{
if (resultCursor != null)
{
resultCursor.close();
}
if (rdb.isOpen())
{
rdb.close();
}
}

-- 
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 can I see detail database structure in honeycomb?

2011-08-17 Thread PYH
I pulled a contact.db and setting.db from my target

I used SQLite Database brower to see detail database information which
was pulled from a target.
It works well in GB and previous android version.

But it dosen't work in honeycomb.

Is there a proper tool like SQLite Database brower in honeycomb?

thanks all..

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

2011-08-17 Thread TestApp App
I would like to render/open PDF file (stored in SDCard) in Android
without using in-build application or viewer.

1) We have tried MuPDF open source library but rendering using this
library is very slow.

2) Can we use iText library for rendering PDF files in Android (i.e.
iText as a PDF Viewer).

Is there any other PDF library(open source) that can be used in
Android Or suggest basic guideline for developing PDF viewer for
Android.

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


[android-developers] Using Mock Locations in Google Maps Navigation App

2011-08-17 Thread Paul Crosbie
I'm trying to write an app that will simulate a driving route with
Google Maps Navigation.
I am using:

  LocationManager locationManager =
(LocationManager)getSystemService(Context.LOCATION_SERVICE);
  locationManager.addTestProvider(LocationManager.GPS_PROVIDER, false,
false,false, false, true, true, true, 0, 5);
  locationManager.setTestProviderEnabled(LocationManager.GPS_PROVIDER,
true);
  locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER,
0, 0, this);
  Location location = new Location(LocationManager.GPS_PROVIDER);
  location.setLatitude(latitude);
  location.setLongitude(longitude);
  location.setAltitude(altitude);
 
locationManager.setTestProviderLocation(LocationManager.GPS_PROVIDER,location);

I feed in the latitude, longitude, and altitude at regular
intervals.
The mock locations update properly in Maps and Navigation.  However, I
see a Searching for GPS Signal message at the bottom of Navigation
and the turn-by-turn driving directions / route recalculation features
are not active.
I was wondering if anyone has any advice for how to get the Navigation
application to use my mock coordinates instead of the GPS signal.
I've done a pretty extensive online search over the last few days but
have not found any similar problems.  Thanks for your help.

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


[android-developers] ListActivity and onListItemClick

2011-08-17 Thread masterodst
I've been working on figuring out how to get my onListItemClick to
work.  Here is my code.

package com.at.masterodst.list;

import java.util.ArrayList;

import android.app.ListActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ListView;

import com.at.masterodst.list.item.EntryAdapter;
import com.at.masterodst.list.item.EntryItem;
import com.at.masterodst.list.item.Item;
import com.at.masterodst.list.item.SectionItem;

public class SectionListExample2Activity extends ListActivity {
/** Called when the activity is first created. */

 ArrayListItem items = new ArrayListItem();

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


items.add(new SectionItem(Category 1));
items.add(new EntryItem(Item 1, This is item 1.1));
items.add(new EntryItem(Item 2, This is item 1.2));
items.add(new EntryItem(Item 3, This is item 1.3));


items.add(new SectionItem(Category 2));
items.add(new EntryItem(Item 4, This is item 2.1));
items.add(new EntryItem(Item 5, This is item 2.2));
items.add(new EntryItem(Item 6, This is item 2.3));
items.add(new EntryItem(Item 7, This is item 2.4));

items.add(new SectionItem(Category 3));
items.add(new EntryItem(Item 8, This is item 3.1));
items.add(new EntryItem(Item 9, This is item 3.2));
items.add(new EntryItem(Item 10, This is item 3.3));
items.add(new EntryItem(Item 11, This is item 3.4));
items.add(new EntryItem(Item 12, This is item 3.5));

EntryAdapter adapter = new EntryAdapter(this, items);

setListAdapter(adapter);
}

@Override
protected void onListItemClick(ListView l, View v, int position,
long id) {
if(!items.get(position).isSection()){
EntryItem item = (EntryItem)items.get(position);
startActivity(new Intent(null, Item12.class));
}

}

}


I click Item12 and it errors out...  Any help would be awesome!
Thanks!

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


[android-developers] a to z searchable filter on customized contact listview

2011-08-17 Thread Vaibhav Muley
Hello friends, I have customized listview of contacts with image view,
textview and checkboxes. Now i want to implement a searchable filter
with texviews a to z such that if any any alphabet is clicked then it
will give the contacts name starting from that letter. Also after
clicking on any alphabet it will show that alphabet in small button
for 2 seconds. Please tell me how to do that??

Thanks...

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


[android-developers] Moving widgets across the layout

2011-08-17 Thread menem
Hey there,
i am quit new to android development and i tried tackling this issue
from alot of angles and didn't get any satisfactory results and i
wanted to know could i possibly do to solve this :
the issue is :
i have a Relative layout that has an imageview, textview,
autocompletedittext, listview. what i want to do is when i tap the
edittext i want it to slide up with the keyboard in a bit slower
animation that the keyboard so that the imageview and the textview
aren't shown and i get the autocomplete not stuck to the top edge i
want it to have a margin of 30 dp.
solutions i have tried :
- making a translate animation : got me to display the animation but
didn't really move anything (moving layout and trying to adjust hieght-
failed- ,moving widgets and setfillafter(true) -a bit of success-)
- adding view.gone: after the animation ends i got the img and txt to
disappear but the animation goes up and down
- only view,gone : makes it not animated
- keyboard settings at the androidmanfist.xml to adjustpan and nothing
happened.

please tell me what am i doing wrong or could do to solve this. what i
need is to really move a widget across the layout while giving the
user a feeling of animation

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


[android-developers] App working on 2 phones and emulator but not on other phones

2011-08-17 Thread A Pitt
Hello all,

I am trying to test an app I am developing but I am hitting a few
snags. The program plays small mp3 clips when you press a button. The
app has worked fine on a Samsung Intercept and a Motorola Triumph and
the emulator all running 2.2. When I put the app on a Samsung Galaxy S
or the LG Optimus V it force closes after the program plays a few
sounds. I am wondering how the program can work on 3 out of 5 devices
(including the emulator) but not on the other two. I am hoping there
is something small I am overlooking because I have tried to rearrange
everything and nothing seems to work.

Thanks in advance for any suggestions

-- 
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] Navigating the Android API reference in Firefox

2011-08-17 Thread pb
When I am browsing the Android API reference in Firefox (3.6.18,
Ubuntu) and click on a field or method to take me down to the
description anchor, clicking on the back button does not return me to
my previous position in the field or method list.  The URL in my
address bar changes to remove the anchor, but my position in the
document does not move at all.

This works fine in the Java API reference, for example:
http://download.oracle.com/javase/7/docs/api/java/awt/font/NumericShaper.html

But not in the Android API reference:
http://developer.android.com/reference/java/awt/font/NumericShaper.html

Any suggestions how I can resolve this?  Does it work for you in
Firefox?  If yes, which version and platform?

Thanks.

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


[android-developers] Ksoap with a CXF web service

2011-08-17 Thread Ramya
hi,
Im an amateur android/java programmer..
I want to build an app that accesess a remote database.
For this i implemented a web service using CXF and created an android
client using Ksoap.But apparently im getting an exception on android
client side saying XMLpullParser exception END_TAG missing. and second
on the  side it says service not recognised. I'm not able to debug
this can anyone help.
Atleast point toi a direction where i can find some help regarding
ksoap usage with cxf
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: Communication Between Android App and PC

2011-08-17 Thread sutt2m
If your PC has a wireless card and your a developer (a good developer that 
is...lol) you may be able to sort something out! these wifi apps look for 
servers to connect to and look for user names and passwords so its all to do 
with getting the settings right, without the right set up no connection.
But take it from me get yourself a wifi router if you want the full Android 
experience you wont regret it, you can share files between your phone and 
computer stream music and video to your phone I'm even printing from my 
phone well cloud printing (Google cloud printing -check it out!) 
Basically there is so much you can do with your home network and your phone 
it's mind boggling but a lot easier with a wifi router !!!

-- 
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: app inventor

2011-08-17 Thread MadFrog
 什么语言也可以参与阿?

2011/8/17 Indicator Veritatis mej1...@yahoo.com

 Αλήθεια;

 La verdad es que no hay un lenguaje 'Ingles'. Hay solo 'Inglés´. La
 diferencia está muy precisa.

 Besides: I have seen the posts from a country that shall remain
 unnamed: the resemblance of that language to English is purely
 superficial:(

 Finally, what you should REALLY be criticizing him for is not even
 getting his Spanish right! It is 'algún', not 'algun'! What is worse,
 without punctuation Google translator will stumble badly on it. As it
 is, we can tell that he is  asking about app inventor, NOT about the
 Google SDK, so the question is in the wrong forum anyway.

 On Aug 16, 12:12 pm, TreKing treking...@gmail.com wrote:
  Aquí se habla Ingles.
 
 
 -
  TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
  transit tracking app for Android-powered devices

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


-- 
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] App working on 2 phones and emulator but not on other phones

2011-08-17 Thread Appaholics
LogCat + relevant code please.

On Wed, Aug 17, 2011 at 8:24 AM, A Pitt kingwils...@gmail.com wrote:

 Hello all,

 I am trying to test an app I am developing but I am hitting a few
 snags. The program plays small mp3 clips when you press a button. The
 app has worked fine on a Samsung Intercept and a Motorola Triumph and
 the emulator all running 2.2. When I put the app on a Samsung Galaxy S
 or the LG Optimus V it force closes after the program plays a few
 sounds. I am wondering how the program can work on 3 out of 5 devices
 (including the emulator) but not on the other two. I am hoping there
 is something small I am overlooking because I have tried to rearrange
 everything and nothing seems to work.

 Thanks in advance for any suggestions

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




-- 

Raghav Sood
CEO/Founder/Owner/Dictator/Tyrant at Appaholics (Basically all titles
required to have complete control)
http://www.raghavsood.com/
https://market.android.com/developer?pub=Appaholics
http://www.appaholics.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

Re: [android-developers] Re: Activity Start Performance Improvement - how to dealt with loading the data while the UI continues to be displayed

2011-08-17 Thread GMLチェックツール

That is what I want to implement.
Would you teach me on how to do that? Do you have some code snippet?

Thanks and regards

(2011/08/16 18:06), demon wrote:

once you got a(or 10, 20,...) piece of data, post a message or
runnable by Handler. Then update the UI in the method handleMessage()
of Handler or run() of the Runnable.

On Aug 16, 9:15 am, gmlgml.check.t...@gmail.com  wrote:

I forgot to mention that I am using AsyncTask.
Thanks

On Aug 13, 8:38 pm, nadama...@anyro.se  wrote:  Use 
AsyncTask.http://developer.android.com/reference/android/os/AsyncTask.html


On 12 Aug, 06:21, gmlgml.check.t...@gmail.com  wrote:

Hi guys,
I have simple application that loading the data needed upon the
Activitystarts which it consume about 2-3 minutes. Then, the UI
displayed after that long process.
Present Scenario:
1) click the app tostart.
2) progress bar pop-up while doing the data loading in my localDB
(about 2-3mins).
3) progress bar closes, UIstartto load and display the data from
localDB.
Problem:
Want tostartand load/display the UI immediately while loading the
data into localDB but display it one by one.
But don't have idea on how to implement it.
Expected Scenario:
1) click the app tostart. then immediately load and display the UI.
2) on the background, get the data and load to localDB while
displaying it one by one to UI.
Thanks and regards,
Eros
Japan


--
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: BitmapFactory.DecodeBytearray

2011-08-17 Thread B.Arunkumar
Hi,

Thank you for your reply. The byte array is not null. It has
values like 81,-27,. The image coming from the ffmpeg decoder is
in ARGB format. There are frames coming in from a camera which is
decoded in ARGB format and converted to byte array using env-
NewByteArray and env-setByteArrayRegion in native JNI code.

Thank you,
B.Arunkumar

On Aug 16, 9:44 pm, musfiq musfiqu...@gmail.com wrote:
 At first check if your byte array is not Null?
 In addition, check if the captured image is of JPEG,GIF,BMP or PNG
 format?
 /Musfiq

 On Aug 16, 11:03 am, B.Arunkumar awsnetworkrecor...@gmail.com
 wrote:

  Hi all,
        I have got a byte array decoded from the ffmpeg decoder which I
  am trying to render on an ImageView. I tried to convert the byte array
  into a Bitmap using BitmapFactory.DecodeByteArray but it returns null
  and does not display anything.

      Can anybody give me any suggestions?

  Thank you,
  B.Arunkumar



-- 
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: Phone Gap

2011-08-17 Thread Nico Balestra
iOS? Ah... blasfemy :)

2011/8/16 Mlifty markweb...@gmail.com

 Hi,

 I am a web developer and like yourself have just started my mobile
 adventure. I decided to use Phong Gap to convert my web apps to native
 apps and JQuery Mobile to handle the UI. Yes you can compile your
 'Hello World' app to the various platforms, though you would need to
 setup a dev enviroment for each platform. Having said that PhoneGap
 Build is currently in Beta and allows you to build from the cloud ;-)

 I suggest start with android as the setup with eclipse is pretty sweet
 (note: I have not tried other environments though IOS is next)

 Re

 On Aug 16, 9:11 pm, pramod.deore deore.pramo...@gmail.com wrote:
  Hi all, Today I read about phone gap. But I didn't got it clearly.
  Docs says Write a PhoneGap app once with HTML and Javascript and
  deploy it to any mobile device without losing features of a native
  app.
 
  Is that means PhoneGap developed certain API's and we can use them in
  all above plalforms? Or is it like suppose I developed one application
  say Hello world application in Android platform and using PhoneGap I
  can translate .apk file into other device file say BlackBerry .cod
  file?
 
  Any help/suggestion highly appreciated.
 
  Thanks

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


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To 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 the Nexus S phone and Reader support pear to pear ?

2011-08-17 Thread xiaodai...@163.com
Hello,everyone!
Recently,I started to research the Nexus S mobile phone of P2P
function.I don't know how to start . In the android developers , it
have a demo to introduce this function.I want to know the reader and
phone how to P2P.
Can the reader support P2P ? What can i do first ?

Can you help me ?Thank you very 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


RE: [android-developers] Bizarre OpenGL performance on Samsung Galaxy.

2011-08-17 Thread Dan Raaka
Can you tell me the fingerprint of the device you are seeing this behavior ?
$ adb shell getprop | grep fingerprint 

-Dan

-Original Message-
From: android-developers@googlegroups.com
[mailto:android-developers@googlegroups.com] On Behalf Of calderwa
Sent: Tuesday, August 16, 2011 3:30 PM
To: Android Developers
Subject: [android-developers] Bizarre OpenGL performance on Samsung Galaxy.

HI. I have been writing some OpenGL ES 2.0 code, running on both my Galaxy S
and Asus transformer. The Galaxy exhibits a truly weird behaviour. When the
phone is connected to the PC via USB, or if it is connceted wirelessly using
the nVidia SGXPerfServer I get smooth 32 fps performance. If the phone is
disconnected it is extremely jerky and approximately half this rate. There
appears to be no appreciable garbage collection that might explain the
effect. It appears not to be a configuration issue, as the behaviour
switched between good and bad when the app is running, simply by plugging in
and out the USB cable.
The Asus transformer just runs the same irrespective of connection status.
Any ideas? I have searched long and hard on the web. I have found multiple
reports of poor openGL performance on Galaxy, but none related to connection
status.
All help gratefully received.

--
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] Recodring a video using the front Camera on Honeycomb 3.1 not working for me on Acer A500

2011-08-17 Thread eli
Hi All,
Attached is my CustomVideoCameraExample that records video succsefuly using 
the rear camera, but fails when using the front one, the video is recorded 
with a green background and with no image at all, also when recording with 
the front camera the camera preview flickers, and in some cases crashes, all 
works correctly when using the rear camera.
I use Acer Iconia A500 (which is by the way a great device, and very 
developer friendly), with Honeycomb 3.1, build Acer_A500_4.0.10.11_COM_GEN2.
I tried most of the combinations of codecs, recording sizes etc, in some 
cases it totally crashes (device restart), in the best case it records the 
green screen.
My question is, does this issue is related to Honeycomb or is it device 
specific?
Did anyone managed to record from the front camera using another device the 
use Honeycomb 3.1?

Any help or insights will be greatly appreciated.

Thanks,
Eli

-- 
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=enpackage com.pictell.mirror;

import java.io.File;
import java.io.IOException;
import java.util.List;

import android.app.Activity;

import android.util.Log;
import android.view.View.OnClickListener;
import android.content.pm.ActivityInfo;
import android.graphics.PixelFormat;
import android.hardware.Camera;
import android.hardware.Camera.CameraInfo;
import android.media.CamcorderProfile;
import android.media.MediaRecorder;
import android.os.Bundle;
import android.view.SurfaceHolder;
import android.view.SurfaceView;
import android.view.View;
import android.view.Window;
import android.view.WindowManager;
import android.widget.Button;
import android.widget.ImageButton;
import android.widget.Toast;

public class CustomVideoCameraExample extends Activity implements SurfaceHolder.Callback{

	

	private SurfaceView surfaceView;
	private SurfaceHolder surfaceHolder;
	private Camera camera;
	private boolean previewRunning;
	
	private MediaRecorder mediaRecorder;
	private final int maxDurationInMs = 2;
	private final long maxFileSizeInBytes = 50;
	private final int videoFramesPerSecond = 20;
	private boolean recording = false;
	// front =  1, rear = 0
	private int cameraType = 0;

	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.custom_video_camera_example);
		surfaceView = (SurfaceView) findViewById(R.id.surface2);
		surfaceHolder = surfaceView.getHolder();
		surfaceHolder.addCallback(this);
		surfaceHolder.setType(SurfaceHolder.SURFACE_TYPE_PUSH_BUFFERS);
		
		Button button = (Button)findViewById(R.id.Button01_rec_start_stop);
		button.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
Log.d(Prefs.TAG, record start/ stop clicked);
if (recording) {
	recording = false;
	stopRecording();
} else {
	recording = true;
	if (startRecording4()) {
		Log.d(Prefs.TAG, recording ...);
	}
	else {
		Log.d(Prefs.TAG,  recording failed.);
	}
}

			}
		});
	}

	@Override
	public void surfaceCreated(SurfaceHolder holder) {
		camera = Camera.open(cameraType);
		if (camera != null){
			Camera.Parameters p = camera.getParameters();
		
			camera.setParameters(p);
			camera.setDisplayOrientation(90);
		
			Log.d(Prefs.TAG, Focus Mode:  + p.getFocusMode());
		}
		else {
			Toast.makeText(getApplicationContext(), Camera not available!, Toast.LENGTH_LONG).show();
			finish();
		}
	}

	@Override
	public void surfaceChanged(SurfaceHolder holder, int format, int width, int height) {
		if (previewRunning){
			camera.stopPreview();
		}
		Camera.Parameters p = camera.getParameters();
		
		ListCamera.Size list = p.getSupportedPreviewSizes ();
		//They are ordered from largest to smallest, so the largest will be...
		for (Camera.Size i : list) {
			Log.d(Prefs.TAG, i.height:  + i.height +  i.width + i.width);
		}
		Camera.Size size = list.get(0);

		p.setPreviewSize(480, 640);
		//p.setPreviewSize(size.width, size.height);
	
		camera.setParameters(p);

		try {
			camera.setPreviewDisplay(holder);
			camera.startPreview();
			camera.autoFocus(null);
			previewRunning = true;
		}
		catch (IOException e) {
			Log.e(Prefs.TAG,e.getMessage(), e);
			
		}
	}

	@Override
	public void surfaceDestroyed(SurfaceHolder holder) {
		camera.stopPreview();
		previewRunning = false;
		camera.release();
	}
	
	public boolean startRecording(){
		try {
			Log.d(Prefs.TAG, Start record...);
			camera.unlock();
			

			mediaRecorder = new MediaRecorder();

			mediaRecorder.setCamera(camera);
			mediaRecorder.setAudioSource(MediaRecorder.AudioSource.MIC);
			mediaRecorder.setVideoSource(MediaRecorder.VideoSource.CAMERA);

			

Re: [android-developers] ListActivity and onListItemClick

2011-08-17 Thread Appaholics
LogCat?

On Wed, Aug 17, 2011 at 2:40 AM, masterodst joshker...@gmail.com wrote:

 I've been working on figuring out how to get my onListItemClick to
 work.  Here is my code.

 package com.at.masterodst.list;

 import java.util.ArrayList;

 import android.app.ListActivity;
 import android.content.Intent;
 import android.os.Bundle;
 import android.view.View;
 import android.widget.ListView;

 import com.at.masterodst.list.item.EntryAdapter;
 import com.at.masterodst.list.item.EntryItem;
 import com.at.masterodst.list.item.Item;
 import com.at.masterodst.list.item.SectionItem;

 public class SectionListExample2Activity extends ListActivity {
/** Called when the activity is first created. */

 ArrayListItem items = new ArrayListItem();

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


items.add(new SectionItem(Category 1));
items.add(new EntryItem(Item 1, This is item 1.1));
items.add(new EntryItem(Item 2, This is item 1.2));
items.add(new EntryItem(Item 3, This is item 1.3));


items.add(new SectionItem(Category 2));
items.add(new EntryItem(Item 4, This is item 2.1));
items.add(new EntryItem(Item 5, This is item 2.2));
items.add(new EntryItem(Item 6, This is item 2.3));
items.add(new EntryItem(Item 7, This is item 2.4));

items.add(new SectionItem(Category 3));
items.add(new EntryItem(Item 8, This is item 3.1));
items.add(new EntryItem(Item 9, This is item 3.2));
items.add(new EntryItem(Item 10, This is item 3.3));
items.add(new EntryItem(Item 11, This is item 3.4));
items.add(new EntryItem(Item 12, This is item 3.5));

EntryAdapter adapter = new EntryAdapter(this, items);

setListAdapter(adapter);
}

@Override
protected void onListItemClick(ListView l, View v, int position,
 long id) {
if(!items.get(position).isSection()){
EntryItem item = (EntryItem)items.get(position);
startActivity(new Intent(null, Item12.class));
}

}

}


 I click Item12 and it errors out...  Any help would be awesome!
 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




-- 

Raghav Sood
CEO/Founder/Owner/Dictator/Tyrant at Appaholics (Basically all titles
required to have complete control)
http://www.raghavsood.com/
https://market.android.com/developer?pub=Appaholics
http://www.appaholics.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

Re: [android-developers] Does the Nexus S phone and Reader support pear to pear ?

2011-08-17 Thread Appaholics
No  that I know of or have heard of uses pear 2 pear.

Thanks

On Wed, Aug 17, 2011 at 2:29 PM, xiaodai...@163.com zsbitxiao...@163.comwrote:

 Hello,everyone!
 Recently,I started to research the Nexus S mobile phone of P2P
 function.I don't know how to start . In the android developers , it
 have a demo to introduce this function.I want to know the reader and
 phone how to P2P.
 Can the reader support P2P ? What can i do first ?

 Can you help me ?Thank you very 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




-- 

Raghav Sood
CEO/Founder/Owner/Dictator/Tyrant at Appaholics (Basically all titles
required to have complete control)
http://www.raghavsood.com/
https://market.android.com/developer?pub=Appaholics
http://www.appaholics.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

Re: [android-developers] Security code to android phone

2011-08-17 Thread Appaholics
Generate it using a random method or write an algorithm.

The rest can be found very very easily by typing at this awesome site called
google.com

Thanks

On Tue, Aug 16, 2011 at 4:02 PM, mahesh naik maheshm...@gmail.com wrote:

 How to generate random security code and applied it mobile phone as
 well as it should be stored in some variable and it is send to the
 alternate mobile as sms.I am developing tracking application.please
 help

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




-- 

Raghav Sood
CEO/Founder/Owner/Dictator/Tyrant at Appaholics (Basically all titles
required to have complete control)
http://www.raghavsood.com/
https://market.android.com/developer?pub=Appaholics
http://www.appaholics.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

Re: [android-developers] Does the Nexus S phone and Reader support pear to pear ?

2011-08-17 Thread Appaholics
No device that I know of or have heard of uses pear 2 pear.

Thanks

Sorry my mail client sent a 3 second old draft.
On Wed, Aug 17, 2011 at 3:08 PM, Appaholics raghavs...@appaholics.inwrote:

 No  that I know of or have heard of uses pear 2 pear.

 Thanks


 On Wed, Aug 17, 2011 at 2:29 PM, xiaodai...@163.com 
 zsbitxiao...@163.comwrote:

 Hello,everyone!
 Recently,I started to research the Nexus S mobile phone of P2P
 function.I don't know how to start . In the android developers , it
 have a demo to introduce this function.I want to know the reader and
 phone how to P2P.
 Can the reader support P2P ? What can i do first ?

 Can you help me ?Thank you very 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




 --
 
 Raghav Sood
 CEO/Founder/Owner/Dictator/Tyrant at Appaholics (Basically all titles
 required to have complete control)
 http://www.raghavsood.com/
 https://market.android.com/developer?pub=Appaholics
 http://www.appaholics.in/




-- 

Raghav Sood
CEO/Founder/Owner/Dictator/Tyrant at Appaholics (Basically all titles
required to have complete control)
http://www.raghavsood.com/
https://market.android.com/developer?pub=Appaholics
http://www.appaholics.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] Just to nag about inconsistency in Android api and lack of enough documentation

2011-08-17 Thread Reza Mohammadi
Guess what are the differences between TextView.setText(int) and
TextView.setTextColor(int)

Answer:
the first int should be a resource id, but the second one should NOT
be a resource id.

So if you are calling setTextColor(R.color.red) and you see grey, you
are not necessarily colorblind. Use setTextColor(0x) instead.

-- 
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: Frame by frame animation, how to draw it on top of other canvas objects?

2011-08-17 Thread jakob t
Yes, I know, it's really logic that setBACKGROUND displays it in the
background.
So I could draw an imageview in my onDraw method? I'll try, thanks.
/Jakob

On 16 Aug, 14:19, TreKing treking...@gmail.com wrote:
 On Mon, Aug 15, 2011 at 4:29 AM, jakob t jakob.strom...@gmail.com wrote:
  I use this.set*Background*Resource()
  then get*Background*() convert it to AnimationDrawable and start it in the
  onDraw method.

  It works as expected I guess, but animation is played in the background

 Where did you expect the object set by setBACKGROUNDResource() to play?

 Try an ImageView?

 --- 
 --
 TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
 transit tracking app for Android-powered devices

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


[android-developers] Geo Tagging not working

2011-08-17 Thread Ablaze
Hi all,
From the camera setting, I have enabled the store location option.
Also, checked that GPS is working fine.
Still in Image details, getting unknown location.

Wanna know the probable causes for 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] Stop compass event (/dev/input/event5)

2011-08-17 Thread MaHaJaN
Hi All,

When i start any andorid application, adb shell getevent shows that  (/
dev/input/event5) is dispatched continuously and when i press back
button this event is no longer being dispatched.
But in my application even after pressing back button, this event
(event5) dispatches continuously and never stops, i want to know how
to stop this event from being dispatched when the application goes to
background when the back button is pressed ? However, the event stops
dispatching when i force quit my application.

Thanks in advance,
mAhAjAn

P.S. I am not using any sensor API's


-- 
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] AsyncTask question

2011-08-17 Thread pedramz
I am using AsyncTask from a Service to Post a message to a server.
This is working fine except that we the task is done, my AsyncTask
thread is still in Running state. What should I do here?

Thanks!

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


[android-developers] Creating A3D files from collada, obj etc.

2011-08-17 Thread skyman
Hello,

Is there any documentation about a3d files?
How can I import 3D mesh from for ex. Blender and show it in Renderscript 
application?
Google shown us screenshot with short info: The Androids are loaded from an 
A3D file created in Maya and translated from a Collada file. A3D is an on 
device file format for storing Renderscript objects.
I'm still trying to find out any info about a3d, but I suspect that maybe 
there is no info at all.
Google please give us any info if you want us to create stunning 
applications ;]

-- 
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: Clickable (when select it shows Orange) items within a ListView

2011-08-17 Thread Nick Longinow
Thanks - very good to know that.

I'll git src/com/android/contacts/ContactListActivity.java and see how
the google engineers do it.  The UI seems to be common between HTC and
Motorola devices, so the code must be core. That should at least give
some clues.

On Aug 16, 9:12 pm, lbendlin l...@bendlin.us wrote:
 there are lots of posts about this on this list and on stackoverflow. And
 no, it's not simple.

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

2011-08-17 Thread Mark Murphy
On Tue, Aug 16, 2011 at 11:02 PM, TestApp App testing.iapp...@gmail.com wrote:
 2) Can we use iText library for rendering PDF files in Android (i.e.
 iText as a PDF Viewer).

iText is a parser, not a renderer.

-- 
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 *Advanced* Android Development_ Version 2.0
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


Re: [android-developers] Intent Uri and clickable link / not the same behavior in Browser and Email app

2011-08-17 Thread Mark Murphy
On Tue, Aug 16, 2011 at 4:56 PM, ___ loic.habermac...@gmail.com wrote:
 (using a custom android:scheme works in both but does not achieve the
 same direct Activity triggering for a custom action)

I do not understand this statement. Set up your intent-filter to
watch for http://yourorganization.com/some/path, and use that URL in
the hyperlinks. Bonus points for putting a page on your Web site at
that URL, so people who don't have your app installed get a real page
rather than a 404.

-- 
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 *Advanced* Android Development_ Version 2.0
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


Re: [android-developers] JDK version ?

2011-08-17 Thread Mark Murphy
Java 5 or Java 6. Java 6 is easier to obtain at the moment, IIRC.

On Tue, Aug 16, 2011 at 6:25 AM, Harris Hussain
harris.huss...@gmail.com wrote:
 Which JDK version I n eed for Windows Vista 32-bit. Please tell me ,
 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




-- 
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 *Advanced* Android Development_ Version 2.0
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


Re: [android-developers] Android Google Map caching in MapActivity

2011-08-17 Thread Mark Murphy
On Tue, Aug 16, 2011 at 12:56 PM, MS stone.m...@gmail.com wrote:
 Per http://googleblog.blogspot.com/2011/07/download-map-area-added-to-labs-in.html
 Can this be done now in our own applications?

No, sorry. The Google Maps application does not use MapView. It used
to, way back when, but they forked it.

-- 
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 *Advanced* Android Development_ Version 2.0
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


Re: [android-developers] Motorola Milestone not appearing on Eclipse

2011-08-17 Thread Mark Murphy
If you are on Windows, ensure that you have the latest Motorola USB
drivers for development.

On Wed, Aug 17, 2011 at 1:12 AM, limtc thyech...@gmail.com wrote:
 Hi,

 For some reasons, updated to one of the current Android SDK causes my
 Motorola Milestone no longer appeared on the device list. This used to
 work fine.

 I have checked: USB debugging, Unknown sources are all checked. The
 phone is now running Android 2.1-update 1 (Motorola no longer
 provides , and I can get my wife's Nexus phone to work.

 Any idea what has happened? I am very frustrated to lose a testing
 phone... (to the point that I am considering switching to other
 platforms).

 --
 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 *Advanced* Android Development_ Version 2.0
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] Re: Android PDF Rendering

2011-08-17 Thread Mark Murphy
Redirecting this back to the list...

On Wed, Aug 17, 2011 at 6:30 AM, TestApp App testing.iapp...@gmail.com wrote:
 iText is a parser, not a renderer.

 Ohh - Its my mistake - i miss-understood. Can you please suggest any
 pointers for addressing PDF file rendering stuff in Android...

Launch a third-party PDF viewer. This worked very nicely on the Web
for many years.

-- 
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 *Advanced* Android Development_ Version 2.0
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] Re: AsyncTask question

2011-08-17 Thread pedramz
I think I found my answer. If I understand correctly AsyncTask should
take care of itself and the thread would be killed after a while.
Please correct me if I'm wrong.

-- 
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 + eclipse - strange behavior

2011-08-17 Thread SoMa
Hi!

I use eclipse helios with android plugins. I use this developing tool
for long time ago. Now I realized a strange behavior. Is it a bug?

http://kepfeltoltes.hu/view/110817/eclipse_01_www.kepfeltoltes.hu_.png

http://kepfeltoltes.hu/view/110817/eclipse_02_www.kepfeltoltes.hu_.png


Value of ageOfLocation is -1 and the eclipse step into wrong if else
row. Why?

-- 
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: Open OpenOffice with Read only access to Data

2011-08-17 Thread dara kok
Dont think this is possible. Unless your flag is supported by the target 
application.


dara kok

-- 
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] Phone Gap

2011-08-17 Thread Jalil
hi,

 basically phone gap using html and javascript and every device is able to
understand both, but only what you need to do that use native application
for particular device to generate app for that device, but the whole coding
will be same on all those devices, in other words you just build a app for
particular device, that's what phone gap does.



On Tue, Aug 16, 2011 at 4:11 PM, pramod.deore deore.pramo...@gmail.comwrote:

 Hi all, Today I read about phone gap. But I didn't got it clearly.
 Docs says Write a PhoneGap app once with HTML and Javascript and
 deploy it to any mobile device without losing features of a native
 app.

 Is that means PhoneGap developed certain API's and we can use them in
 all above plalforms? Or is it like suppose I developed one application
 say Hello world application in Android platform and using PhoneGap I
 can translate .apk file into other device file say BlackBerry .cod
 file?

 Any help/suggestion highly appreciated.

 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




-- 
Thanks,

Abdul Jalil Soomro

-- 
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] Using the device as one factor of the authentication

2011-08-17 Thread gagan bhatia
Hi

Is there a way to generate the key pair by the application and install
in the device's trusted keystore.
Application shall access this certificate (x509) generated during the
installation as one factor of authentication.

The query herein is
1) Is is technically possbile by app(during installation) to generate
the keypair
2) Is it possible to manage all certificate as Enterprise Signed (Will
the device trust it, IMHO it wil not)

Any other viable options to use the digital certificates in devices as
one form of authentication. Your opinion on the same

regards
Gags

-- 
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 to you think about the future of PhoneGap

2011-08-17 Thread Cleuton Sampaio
Hi, we have a Blog about Android app development: 
http://www.thecodebakers.org. It is in Portuguese, but we have added a 
Google Translator Widget (bottom right of the pages) which allows you to 
have an english version.

I our Blog we have some free online courses, including a PhoneGap 
programming course. He have also plugins and open source code.

Please, visit us.

-- 
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] Glad to help

2011-08-17 Thread Luis Ramirez
Download adobe PDF viewer

-- 
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] Motorola Milestone not appearing on Eclipse

2011-08-17 Thread Luis Ramirez
Did having the correct drivers solve the issue?
On Aug 17, 2011 3:30 AM, Mark Murphy mmur...@commonsware.com wrote:
 If you are on Windows, ensure that you have the latest Motorola USB
 drivers for development.

 On Wed, Aug 17, 2011 at 1:12 AM, limtc thyech...@gmail.com wrote:
 Hi,

 For some reasons, updated to one of the current Android SDK causes my
 Motorola Milestone no longer appeared on the device list. This used to
 work fine.

 I have checked: USB debugging, Unknown sources are all checked. The
 phone is now running Android 2.1-update 1 (Motorola no longer
 provides , and I can get my wife's Nexus phone to work.

 Any idea what has happened? I am very frustrated to lose a testing
 phone... (to the point that I am considering switching to other
 platforms).

 --
 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 *Advanced* Android Development_ Version 2.0
 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] Motorola Milestone not appearing on Eclipse

2011-08-17 Thread Rathna Kumara Premadasa
Try following link,


http://androidforums.com/motorola-milestone/29426-milestone-usb-stops-working.html

thanks,
Rathna Kumara

-- 
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: Android PDF Rendering

2011-08-17 Thread TestApp App
Thanks Mark

 Launch a third-party PDF viewer. This worked very nicely on the Web
 for many years.

I am able to launch PDF using 3rd party PDF viewer - but i do not want
to open that way - Once PDF file gets open i want to add custom
features like add comments or draw circle etc.. (Like: RepliGo Reader)

On Aug 17, 3:34 pm, Mark Murphy mmur...@commonsware.com wrote:
 Redirecting this back to the list...

 On Wed, Aug 17, 2011 at 6:30 AM, TestApp App testing.iapp...@gmail.com 
 wrote:
  iText is a parser, not a renderer.

  Ohh - Its my mistake - i miss-understood. Can you please suggest any
  pointers for addressing PDF file rendering stuff in Android...

 Launch a third-party PDF viewer. This worked very nicely on the Web
 for many years.

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


Re: [android-developers] Open OpenOffice with Read only access to Data

2011-08-17 Thread Luis Ramirez
Hope this helps
http://developer.android.com/guide/topics/intents/intents-filters.html
On Aug 17, 2011 12:20 AM, Neeraj neeraj.tewar...@gmail.com wrote:
 Hi,

 I am trying to open PDF/DOC/XLS format using INTENT and Openoffice is
 default viewer.

 I have defined following properties to launch my PDF/DOC

 Intent intent = new Intent(Intent.ACTION_VIEW);
 intent.setData(uri);//PDF path
 intent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);
 context.startActivity(intent);

 but even after setting FLAG_GRANT_READ_URI_PERMISSION OpenOffice is
 comming with menu that has Save option and allowing saving of my
 PDF file to /sdcard.

 Is there is any way to force other application not to save any of data
 called through Intent.

 Thanks in advance
 Neeraj

 --
 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: How to you think about the future of PhoneGap

2011-08-17 Thread Luis Ramirez
Thx
On Aug 17, 2011 3:51 AM, Cleuton Sampaio cleuton.samp...@gmail.com
wrote:
 Hi, we have a Blog about Android app development:
 http://www.thecodebakers.org. It is in Portuguese, but we have added a
 Google Translator Widget (bottom right of the pages) which allows you to
 have an english version.

 I our Blog we have some free online courses, including a PhoneGap
 programming course. He have also plugins and open source code.

 Please, visit us.

 --
 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] Motorola Milestone not appearing on Eclipse

2011-08-17 Thread Rathna Kumara Premadasa
Some times this may be work as well
 try 

http://www.motorola.com/Support/US-EN/Support-Homepage/Software_and_Drivers/USB-and-PC-Charging-Drivers


thanks

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

[android-developers] App Crash during HTTP Post

2011-08-17 Thread perumal316
Hi All,

I noticed that during HTTP Post of files to a backend server if the
connection is not established (no reception) or the file size is too
big (10MB) my application crashes.

Is there any way to solve this issue? How do I handle for such errors?

Thanks In Advance,
Perumal

-- 
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: Android PDF Rendering

2011-08-17 Thread Mark Murphy
On Wed, Aug 17, 2011 at 6:51 AM, TestApp App testing.iapp...@gmail.com wrote:
 I am able to launch PDF using 3rd party PDF viewer - but i do not want
 to open that way - Once PDF file gets open i want to add custom
 features like add comments or draw circle etc.. (Like: RepliGo Reader)

You are welcome to try writing your own PDF renderer, I suppose.

-- 
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 *Advanced* Android Development_ Version 2.0
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


Re: [android-developers] App Crash during HTTP Post

2011-08-17 Thread Mark Murphy
On Wed, Aug 17, 2011 at 7:00 AM, perumal316 perumal...@gmail.com wrote:
 I noticed that during HTTP Post of files to a backend server if the
 connection is not established (no reception) or the file size is too
 big (10MB) my application crashes.

 Is there any way to solve this issue? How do I handle for such errors?

Use adb logcat, DDMS, or the DDMS perspective in Eclipse to examine
LogCat and look at the stack trace associated with your crash.

-- 
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 *Advanced* Android Development_ Version 2.0
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


Re: [android-developers] Re: Android PDF Rendering

2011-08-17 Thread TestApp App
Ok. Thanks You.

Any pointer or suggestion regarding developing/starting PDF renderer / PDF
viewer stuff... greatly appreciated - thank you.

On Wed, Aug 17, 2011 at 4:31 PM, Mark Murphy mmur...@commonsware.comwrote:

 On Wed, Aug 17, 2011 at 6:51 AM, TestApp App testing.iapp...@gmail.com
 wrote:
  I am able to launch PDF using 3rd party PDF viewer - but i do not want
  to open that way - Once PDF file gets open i want to add custom
  features like add comments or draw circle etc.. (Like: RepliGo Reader)

 You are welcome to try writing your own PDF renderer, I suppose.

 --
 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 *Advanced* Android Development_ Version 2.0
 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

[android-developers] Checking if texture pixel is visible or not

2011-08-17 Thread Arslan Khan
i am having a problem in accessing loaded texture object. what i want
to do is to check whether user clicked on the visible part of  texture
or not. currently i m loading bitmap for every click to get a single
pixel value and then unload it. which is not a good approach. is it
possible to get texture object from opengl?

i tried saving a buffer of colors of texture but it takes too much
time to load a single texture. so in real time games that's not
possible. any other solutions


Thanks in appreciation

Kind Regards
Arslan Khan

-- 
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] Just received Lodsys letter...

2011-08-17 Thread David Erosa García
Hi all.

I'm a solo developer from Spain and just received a letter from
lodsys claiming infringment for 4 US patents...
I've been in shock since I received it an hour ago and just wanted to
know if any of you has any kind of advise for this situation...  I do
understand almost nothing of the lawyer-style language of the letter
:(

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


Re: [android-developers] App Crash during HTTP Post

2011-08-17 Thread lbendlin
also, implement reachability code, perform the transfer in the background in 
small chunks, and let the server confirm each chunk (via MD5 etc), with 
retransmission if they don't match

-- 
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] getting stuck in database

2011-08-17 Thread TreKing
On Tue, Aug 16, 2011 at 11:45 PM, MrPnut ncavall...@gmail.com wrote:

 I agree.  Double posting is a rather dump ass thing to do.


Nicely done. =D

-
TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
transit tracking app for Android-powered devices

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

Re: [android-developers] Just received Lodsys letter...

2011-08-17 Thread Appaholics
Show it to your lawyer for a start. Do you have any in app billing in your
apps?

Thanks

On Wed, Aug 17, 2011 at 4:47 PM, David Erosa García soul...@gmail.comwrote:

 Hi all.

 I'm a solo developer from Spain and just received a letter from
 lodsys claiming infringment for 4 US patents...
 I've been in shock since I received it an hour ago and just wanted to
 know if any of you has any kind of advise for this situation...  I do
 understand almost nothing of the lawyer-style language of the letter
 :(

 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




-- 

Raghav Sood
CEO/Founder/Owner/Dictator/Tyrant at Appaholics (Basically all titles
required to have complete control)
http://www.raghavsood.com/
https://market.android.com/developer?pub=Appaholics
http://www.appaholics.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

Re: [android-developers] Re: How to read *.CHM File ?

2011-08-17 Thread Nico Balestra
Google translator says:
I am a new member of this group.
can I get information before?

I hope I gave a useful service to this mailing list :)
...

2011/8/16 Setiaji Kurniawan setiaji.kurnia...@gmail.com

 saya anggota baru group ini.
 dapatkah saya mendapatkan informasi sebelumnya?



-- 
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] Does the Nexus S phone and Reader support pear to pear ?

2011-08-17 Thread String
And certainly not apples 2 apples...

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