[android-developers] Re: How can we keep a particular application on the top always

2011-08-01 Thread Ankit
Hi ,

Thanks for your valuable suggestions.
Actually we want to know if it is possible using launch modes and task
affinities basically without changing the System Image.

We want to place our application over other applications, while
keeping the background application working as normal. Please note our
application may not be full screen.
Thus this also creates another problematic scenario:-
Our android activity stack is having following activity A, B, C. The
order in which the activities have opened is : C-B-A (with A on top
of the stack). And activity B, C are full screen but A is not full
screen.

Now we close activity B by clicking a close button in Activity B which
finishes the activity (Note activity B is visible as A is not full
screen).
Expected behavior :- Activity C and Activity A should be visible. That
is Activity Stack is A, C (with activity A on top).
But this not the behavior that is shown.
Actual Behavior happening :- On closing activity B we see a black
screen with activity A on top.

Note : Our constraint is that we can't change system image.

Thanks ,
Ankit

On Jul 29, 12:54 pm, firstName lastName
john.smith.qwert.t...@gmail.com wrote:
 Try SYSTEM_ALERT_WINDOW
 uses-permission android:name=android.permission.SYSTEM_ALERT_WINDOW /

 Create a service and in the service,

      WindowManager mWindowManager =
 (WindowManager)getSystemService(WINDOW_SERVICE);

      LayoutInflater inflater =
 (LayoutInflater)getSystemService(Context.LAYOUT_INFLATER_SERVICE);
      mTopView = (ViewGroup) inflater.inflate(R.layout.top_view, null);

      WindowManager.LayoutParams mWmlp = new
 WindowManager.LayoutParams(LayoutParams.FILL_PARENT,
 LayoutParams.FILL_PARENT);
      mWmlp.flags = WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE  |
 WindowManager.LayoutParams.FLAG_WATCH_OUTSIDE_TOUCH;
      mWmlp.type = WindowManager.LayoutParams.TYPE_SYSTEM_ALERT;
      mWmlp.width = 300;
      mWmlp.height = 200;
      mWmlp.format = PixelFormat.TRANSPARENT;
      mWmlp.x = 0;
      mWmlp.y = 0; //will be in the center of screen
      mWindowManager.addView(mTopView, mWmlp);

 On Fri, Jul 29, 2011 at 3:44 PM, Dianne Hackborn hack...@android.comwrote:

  What I am saying is you shouldn't use an activity, you should go modify the
  SystemUI code to introduce your window there in the same way the status bar
  is done.

  On Thu, Jul 28, 2011 at 10:37 PM, trickybit jmack...@gmail.com wrote:

  Is there a way for an activity to specify the type of its main window,
  in time for it to matter?

  Thanks

  On Jul 28, 12:11 pm, Dianne Hackborn hack...@android.com wrote:
   I suggest looking at the SystemUI process
   (frameworks/base/packages/SystemUI), which is responsible for showing
  the
   status bar and extending as desired.

   First question you will need to answer is what layer your UI goes in to:
   above everything including the lock screen, above the system bar /
   notifications, above toasts, just above apps.  It is likely you will
  need to
   define a new private window type with its own layer (assigned in
   PhoneWindowManager) to get it z-ordered where you want.

    On Thu, Jul 28, 2011 at 1:32 AM, Ankit ank82...@gmail.com wrote:
Hi ,
I want to keep my application ( Application A ) on the top always in
Android.  Application A is not a full screen  application, it is a
floating window or dialog theme based application. The Application A
can launch other application.\ from its own UI portion also other
applications can be launched from background from Home screen
shortcut / Application Launcher screen.
How can we do it?

Also the application which are in the background with Application A on
top should work normally. e.g. it can Launch other activities (of it
own own or some other application), dialog etc.

Second doubt/ requirement  is -  Activity Y is below Activity X,
Activity X is below Activity A (of Application A) . Activity X has a
close/exit button which would finish its own activity X. Now when that
button is pressed the activity get closed but leaves a black screen
below activity A.

Why does this happen (i think may be because it requires the Back
stack to be rearranged)  and is their a turn around way of being able
to do this.

If any  application in the background  launches another activity/
application then also my application ( Application A ) should come at
the top of the launched activity/application.

Thanks ,
Ankit

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

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

   Note: 

Re: [android-developers] context menu

2011-08-01 Thread arun kumar
can any one tell where is error in my code...

Thankyou
arun

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] RECORDING THE VOICE IN ANDROID.... For a Game

2011-08-01 Thread Kunju Vava
 Hi All

In my App I want to record an audio and play  the same record when ever the
recording is completed...

it is just like the tom cat app in android .. when the user say
something to the screen it should be recorded and give the reply at
suddenlty using the same audio.


Thanks in Advance








-- 
-- 
ωιтн яєgαя∂ѕ
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] OnClick error

2011-08-01 Thread mark2011
Dear All :

  I install eclipse  Android SDK under the Windows/XP successful. If
I test a program using onClick that I want to click a button, it
displays an error. But the code is ok on an another pc. Can anyone
help me?

my code is that :

btnNumberOne.setOnClickListener(new ImageButton.OnClickListener()
{
@Override
public void onClick(View v) { =error line

Thanks.

BR,
mark

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


[android-developers] Re: Comms with Intent

2011-08-01 Thread kypriakos

Thanks for the response Nikolay ---

 Assuming the servlet runs in a separate thread, no. Not directly
 at least.

That's what I was afraid of ...

 You could launch the activity using the FLAG_ACTIVITY_SINGLE_TOP
 flag. Then when you call startActivity() again, a new instance
 won't be created, the intent will be delivered to onNewIntent().

Worth trying.

 Alternatively, you could use a Handler to send messages to
 the GUI thread. The hard part may be how to get a GUI-thread
 Handler to your servlet container though. Assuming the whole
 app server is started from the GUI thread, you have to create
 a Handler (on the GUI thread) and find a way to stuff it in a
 globally accessible place (Application static field, etc.)

Yes I agree, not sure how I can get the Handler but I will look into
it. Not a bad idea at all! Thakns

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

2011-08-01 Thread Robin Talwar
Did u import onclicklistener library and wots d error line ?

On 1 Aug 2011 11:59, mark2011 androidmark2...@gmail.com wrote:
Dear All :

 I install eclipse  Android SDK under the Windows/XP successful. If
I test a program using onClick that I want to click a button, it
displays an error. But the code is ok on an another pc. Can anyone
help me?

my code is that :

btnNumberOne.setOnClickListener(new ImageButton.OnClickListener()
   {
   @Override
   public void onClick(View v) { =error line

Thanks.

BR,
mark

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

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Changes in Developer Console - longer time for app update to appear in Market?

2011-08-01 Thread gjs
Hi,

Yes, if you do this too frequently you do not see your app appear in
'just in', how frequently is something like once about every 12 days,
but that is just a guess.

Regarsd

On Jul 30, 8:49 am, pawpaw17 georgefraz...@yahoo.com wrote:
 Has anyone else noticed a much longer latency for your app update to
 appear in the Market? Usually I see the update in the Just In
 section within a few minutes of clicking publish.

 With the recent changes that partition the developer console into two
 tabs, and the removal of the publish button, I think I've saved my
 APK update correctly, but I still don't see my app in Just In or
 even the new version in my product description.

 Anyone else noticing this?

 Thanks

 pawpaw17

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: File transfer via TCP\IP - language independency (Java vs C++)

2011-08-01 Thread gjs
Hi,

http

Regards

On Jul 30, 3:57 am, haci.2x mlendz...@gmail.com wrote:
 Hello,

 I have a problem with sending a file from my PC to Android application
 via WiFi. PC App is wirtten entirely in .NET (but I would prefer to do
 it in C++) and Android version in Java.

 Now I want to send a file that is partitioned in small packages and
 send by using notifications that in fact are XMLs with file data
 encdoded in Base64.

 I am not sure if this approach is OK. Maybe I should send a file in
 binary form, but I am not sure what problems this might cause. For now
 I know that my XML solution generates twice data as needed to send a
 file from PC to Android.

 I would appreciate any kind of advice or hint what is the best way to
 send a file between apps written in different languages.

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

2011-08-01 Thread gjs
Hi,

http://www.itwizard.ro/interfacing-cc-libraries-via-jni-example-tesseract-163.html

regards

On Jul 29, 7:34 pm, barun barunala...@gmail.com wrote:
  I want to implement the optical  character recognition  program  for
 Android  phone. if any body knows something please help me. Thanks in
 Advance.
                                                    Barun Kumar Nirala

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 find available services in a bluetooth connected device

2011-08-01 Thread gjs
Hi

try -

Hint: If you are connecting to a Bluetooth serial board then try using
the well-known SPP UUID 1101--1000-8000-00805F9B34FB. However
if you are connecting to an Android peer then please generate your own
unique UUID.

see 
http://developer.android.com/reference/android/bluetooth/BluetoothDevice.html

regards


On Jul 31, 2:46 pm, CBD androi...@gmail.com wrote:
 I am having exactly the same problem. I need to connect to a device
 and the docs for it do not say anything about what profiles it
 supports.. The device is paired, that was no problem, but I have no
 idea what UUID the device supports.. Been through the Blutooth API a
 few times, and since I'm on 3.1 I can use the latest. It must be there
 I'm just missing it in the docs..

 Thanks in advance for any light you guys can shed..

 -Charlie

 On Jul 30, 7:03 pm, guich guiha...@gmail.com wrote:







  Hi,

  I'm trying to establish a connection between an Android device and a
  cell phone (this is my first test, in the real world, i'll be
  connecting to any device, like a printer).

  I was already able to discover the device, and now i'm trying to
  connect to it. However, i didn't find in the android API a way to
  retrieve the services available and their UUIDs, so i can communicate
  to each one separately.

  Is there a way to do this on Android?

  Just as a simple test i tried to use the SPP UUID but it failed to
  connect (yes, all devices have bt on and are discoverable).

  Any help is appreciated

  regards

       guich

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

2011-08-01 Thread ajaykumar kanchak
here u need to handle resolution and also screen size make all child to be
act with parent if not they will be closed any small configuration is not
oaky then ur whole application is not support in device help the users and
suggest them as per ur application settings while installation or u make it
up with ur resolution take some text identify the device and set the screen
resolution.

On Sat, Jul 30, 2011 at 11:48 PM, Marcin Orlowski
webnet.andr...@gmail.comwrote:

 tried using ACRA? may help to catch the bug (as users are usually less than
 useful)
  On Jul 30, 2011 6:28 PM, bob b...@coolgroups.com wrote:
 
 
  My stuff is getting really low ratings partly because it doesn't work
  on certain phones.
 
  Can someone take a look at my app here and help me figure it out?
 
 
 https://market.android.com/details?id=com.coolfone.sonicboomfeature=search_result
 
  If you have an HTC Eris, this would be especially helpful.
 
  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-developers@googlegroups.com
  To unsubscribe from this group, 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




-- 
Thanks  Regards
K. Ajay Kumar
9700188853

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 highlight and select a button in listview item

2011-08-01 Thread Ethan Gao
Hi everyone:

 I am working on an app which contains a listView to display the
products user is interested. And for each product at the listview, we
have a delete button to delete the product from list.  I can
hightlight the product in listview using trackball, but can not
highlight the delete button. Is there anyone who know how to resolve
this?  thanks a lot 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: Force close

2011-08-01 Thread ajaykumar kanchak
hi saurab,

first u need to check is there any value is going to be null when u r
passing values handle the null values first and then enter it into
database, if u r passing any value as null application will give force
close most of the problem are for null values and handle them okay and
also take the database parameters check either the pass holdings u r
passing or correct or not(?,?) like this while inserting into
database.

On Jul 30, 7:35 pm, Mark Murphy mmur...@commonsware.com wrote:
 Use adb logcat, DDMS, or the DDMS perspective in Eclipse to examine
 LogCat and look at the stack trace associated with your force close.

 On Sat, Jul 30, 2011 at 10:32 AM, saurabh kulkarni

 funwit.saur...@gmail.com wrote:
  My app gives me force close when I add one record to database and
  then  returns to privious activity which shows me added record.So why
  force 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

 --
 Mark Murphy (a Commons 
 Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy

 Android 3.1 Programming Books:http://commonsware.com/books

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

2011-08-01 Thread AJ
When ever i change a home screen wallpaper on my samsung galaxy ace,
first it shows  Saving picture  and then shows  Setting wallpaper
.. Can i know where this picture is getting saved ? Is it into any
temporary memory which i need to delete? I need to know if its eating
up my phone memory or any memory for that matter..

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


[android-developers] How to add stream as an attachment file

2011-08-01 Thread RVM
How to add stream (String or CharSequence)  as an attachment file
without save stream in a file?

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


Re: [android-developers] How to tell if an intent-filter caught a custom url from the browser

2011-08-01 Thread Tom Fairfield
These are existing applications, not something I'm building.

As far as error dialogs, the only thing that happens normally is the browser
navigates to a can't find the page screen.  By trying the navigation in an
iframe this can be avoided, though.

On Fri, Jul 29, 2011 at 2:31 PM, Mark Murphy mmur...@commonsware.comwrote:

 On Thu, Jul 28, 2011 at 7:20 PM, Tom Fairfield fairfi...@cs.xu.edu
 wrote:
  From a webpage I need to try several different custom urls:
 
  foo://bar.baz
  bar://bar.baz
  baz://bar.baz

 Please do not invent custom schemes. Please use http:// URLs that your
 native applications respond to.

  Each of these has an intent filter registered by a native app.  Zero or
 more
  of these native apps may be installed.
 
  I want to try each url in order and, when the first url is handled by a
  native app, stop trying any further.
 
  Is there a way to determine that a native app has launched?

 Not that I'm aware of, but I am not an expert in JS/DOM events. Note
 that the user will probably be presented with error dialogs for all
 your failures, which will tend to disrupt the user experience.

 --
 Mark Murphy (a Commons Guy)
 http://commonsware.com | http://github.com/commonsguy
 http://commonsware.com/blog | http://twitter.com/commonsguy

 Android Training in NYC: http://marakana.com/training/android/

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

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

2011-08-01 Thread ajaykumar kanchak
Hi developers,

If u r having net with you go to the android sdk and check the third
party adons and then you will get list of google apis with version,
select ur version and thenn select install. for map view

com.google.android.maps.MapView
xmlns:android=http://schemas.android.com/apk/res/android;
android:id=@+id/mapview
android:layout_width=fill_parent
android:layout_height=fill_parent
android:clickable=true
android:apiKey=Your Maps API Key key

u have to generate the map key by using commands by using java key
tool u will get application key and then post that key in google then
u will get the map key that key u need to post in apikey

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

2011-08-01 Thread Giggybyte
1.) Is there a way to make a button load another layout XML by
android:onClick in XML?
2.) In my other XML, I have a WebView that fills the screen. How can I
set the homepage for this WebView?

Thanks for the 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] How to add stream to email as an attachment file

2011-08-01 Thread RVM
How to add stream (String or CharSequence)  to email  as an attachment
file without save stream in a file?

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

2011-08-01 Thread G
I am trying to draw a line between two points that the user chooses on
a map, I am using the Google maps library for this. The user has to
choose from a menu what they want to do so when they press the draw
line button it allows them to choose the two points and it draws the
line. I can get it to draw the line but when you try to draw another
line on the map it deletes the first one and draws the second. I want
every line that is drawn to stay on the map and not to disappear when
the user wants to draw another one. I believe it has something to do
with the Canvas clearing what was there originally. Can anyone help me
with this issue? Below is what I have in my draw method:

Projection projection = mapView.getProjection();
Paint mPaint = new Paint();
mPaint.setDither(true);
mPaint.setColor(Color.GREEN);
mPaint.setStyle(Paint.Style.FILL_AND_STROKE);
mPaint.setStrokeJoin(Paint.Join.ROUND);
mPaint.setStrokeCap(Paint.Cap.ROUND);
mPaint.setStrokeWidth(4);

Point p1 = new Point();
Point p2 = new Point();

Path path = new Path();

projection.toPixels(dp1, p1);
projection.toPixels(dp2, p2);

canvas.drawLine(p1.x,p1.y,p2.x,p2.y,mPaint);

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

2011-08-01 Thread byron
Hello im devoliping this app where I initialize the TextToSpeech tool
from a service after Boot Completed, and I keep it running, but when i
try to use it from one of my activities by instatiating it comes the
error. Does anybody have any suggestion?

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

2011-08-01 Thread Gaetan
Hi !

I'm working on a future Android  iOS game, using the latest NDK (r6).

I want to load some textures with C/C++ code.
I've seen it's possible to use a native Asset Manager on Gingerbread 
platform (android 2.3 - API 9),
but I currently work with Froyo (2.2 - API 8) because Gingerbread is not yet 
widespread.

I'm still a beginner with NDK, and I would like to know if there is a method 
to load files from native C/C++ code.

Tanks a lot !
Gaetan

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Image buttons selector XML - how to align with phone's original theme?

2011-08-01 Thread Eric
Hi all,

I have a Button object with custom background image. When the button
is being pressed, I can change the background image with a selector
XML.

However I observed that different Android phones have different themes
--- some phones highlight their buttons in blue when pressed; some
phones do it in yellow, etc.

Is there a way to align my custom background image with the phone's
default theme? Such that my App doesn't look strange on any Android
phones.

Thanks.

-Eric

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


[android-developers] unable to update SDK

2011-08-01 Thread Bruce Ferrell
I have a fresh install of opensuse 11.4 and I'm getting thhe following 
error we I attempt an update:


Failed to fetch URL 
https://dl-ssl.google.com/android/repository/repository.xml, reason: 
java.lang.RuntimeException: Unexpected error: 
java.security.InvalidAlgorithmParameterException: the trustAnchors 
parameter must be non-empty


Anyone know what's wrong here?

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] A new Android project

2011-08-01 Thread balbayrak
tell me the way to make any service running automatically when
the phone is turned on.And this service provide me notification every
time such as breaking of talking with phone

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


[android-developers] Breaking of talking with android app

2011-08-01 Thread balbayrak
How can I break talking on phone with my custom android application.

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

2011-08-01 Thread John
I'm trying my best to figure out how the default resource size system
works in android without much success.

Working on an ASUS eeePad Transformer tablet

1) I worked through the notepad tutorial and the font size is so small
for the row entries that I can't select rows.

2) Tried some market apps to change app icons and they all turn out to
be resized to 40x40 instead of 60x60

Looking at the following sites:

developer.android.com/guide/practices/ui_guidelines/
icon_design_launcher.html
developer.android.com/guide/practices/screens_support.html

I have found that:

1) layout-exlarge directory name does not solve the font problem for
the notepad tutorial

2) I think that the ui_guidelines/icon_design_launcher.html document
has a bug in the icon size guideline, it should _not_ be based on the
density, but on the screen size and defined in dp (density-independent
pixel)
The eeePad has medium density, which according the guideline means
40x40, but it actually should be 60x60

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] Re: custom events in android

2011-08-01 Thread Chris
I was wondering about this as well; I figured the Google team would
have incorporated a GWT EventBus into Android, as it works very well
in the GWT framework.

On Jul 5, 2:58 am, Nikolay Elenkov nikolay.elen...@gmail.com wrote:
 On Tue, Jul 5, 2011 at 1:46 PM, doles sachin.d...@gmail.com wrote:
  So, is there any way to fire events on an event bus in Android then?

 There is nothing specific to Android. Just define a listener interface,
 register some listeners and call those to fire an event. If you want to
 pass data, you can extends java.util.EventObject, but that doesn't
 buy you much.

 You can look at Handler if you want to send messages across
 threads.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 set focus on the item in Gallery view when activity is started

2011-08-01 Thread Chuan
Hi, I am developing an application that is navigated by DPad, and I
use gallery view as the navigation bar.

How do I set the initial focus to be on the central item of the
gallery view? I know that some control like EditText can attract the
focus, but I still have no luck after trying gallery.requestFocus() or
gallery.requestFocusFromTouch().

Really appreciate if someone can help me out, 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] locking msg inbox

2011-08-01 Thread AJ
How do i lock my message inbox ( or any thread ) and gallery in
samsung galaxy ace .. Is there any privacy lock within the phone or do
i need to download any app, if yes can i know the name of the app..

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

2011-08-01 Thread Chris
You need to have a reference to the other activity, from which you
would call your second (or third) activity's method to update the
coordinates

For example, your second activity could have a static method to return
the component/widget or entire activity.

SecondActivity.java
--
public static Canvas getCoordinateCanvas() {
 return this.myCanvas;
}

FirstActivity.java
--
private void someMethod() {
  Canvas canvasToUpdate = SecondActivity.getCoordinateCanvas();
  canvasToUpdate.your update code
}

On Jul 28, 5:49 pm, Victor Basurto victor.b.r@gmail.com wrote:
 Hi, I'm new in android, i have a problem, i have 3 activities, in the
 first one i have a map where i want to draw a point with a coordinates
 that obtain in the second activity and third one i have a picture, but
 i want to use and refresh this coordinates and navigate between
 activities one and third, how can i refresh this coordinates obtained
 in the second activity without go to this.

 Thanks excuses 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] Re: Need help diagnosing problem

2011-08-01 Thread ajaykumar kanchak
you need arrange the things like for example u may used only for
drawable ldpi, only but having mdpi ldpi hdpi so u have check out the
things may be it may work only landscape make it as potrait and take
resolutions dynamically it may fix only for some screens.

On Jul 30, 9:27 pm, bob b...@coolgroups.com wrote:
 My stuff is getting really low ratings partly because it doesn't work
 on certain phones.

 Can someone take a look at my app here and help me figure it out?

 https://market.android.com/details?id=com.coolfone.sonicboomfeature=...

 If you have an HTC Eris, this would be especially helpful.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Handling MIME type that is the result of a browser POST in Android

2011-08-01 Thread Mark
I have an Activity that is successfully invoked for the MIME type in
which I'm interested. The content being sent from the server is an XML
document created as the result of a POST. I've tried to process the
result two different ways and I'm not having luck with either:

   1. android:scheme=http Doing this, my activity runs, but the URI
I get from Intent.getData() is the URL used for the post. A call to
getContentResolver().openInputStream() results in
java.io.FileNotFoundException: No content provider: http://
Obviously, just hitting that URL won't work as I don't have the posted
data.

   2. android:pathPattern=*/custom.app The last segment of the URL
is custom.app, so I tried using that with a path pattern. This way,
the browser attempts to download the document and one of two things
happens: The stock browser attempts to download untitled and fails.
Opera downloads the document, naming it as hoped, but claims there's
no application to deal with the result.

I'd like to use the first option, but could put up with the second
even if it required Opera. I just can't see a way to get an input
stream for the result being sent from the 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] Re: Multiple Intents

2011-08-01 Thread ajaykumar kanchak
u need differentiate them with messages and handle them and which u
want onActivity apply it in a thread and use that thread in oncreate
okay

On Jul 30, 2:12 pm, perumal316 perumal...@gmail.com wrote:
 Hi All,

 If I got multiple intents, how do I use:

     @Override
         protected void onActivityResult(int requestCode, int
 resultCode,
 Intent data) {
              .
         }

 I have multiple intents upon different button clicks in my
 application, and for one of the intent, I need to use
 onActivityResult. If I just place it at the bottom, it is not
 executing.

 How to differentiate between he different intents?

 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


[android-developers] Read icon from apk file

2011-08-01 Thread NkD
How can I read icon from apk file (not installed) ? I need it in my file 
manager to show on ListView.

I found: 

if (file.getPath().endsWith(.apk)) {
PackageInfo pi = 
context.getPackageManager().getPackageArchiveInfo(file.getAbsolutePath(), 
0);
Drawable icon = 
pi.applicationInfo.loadIcon(context.getPackageManager());
 use Drawable
}

but this code return default icon for apk - green android on white 
background not icon which represent installed apk.

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

2011-08-01 Thread Jorge Garcia
I get the same problem on a Samsung Exhibit 4G android 2.3.3

On Jun 30, 10:01 am, dingding dangdang ustcchenj...@gmail.com wrote:
 I have some codes of takeing picture working at Android 2.1 and 2.2.
 But these codes broke at Android 2.3.
 After spending a time to fix this issue in vain, I would like to ask for
 help here.

 My code flow to take picture is like this:

 1. create a class Camlayer extends SurfaceView

         public class CamLayer extends SurfaceView implements
 SurfaceHolder.Callback {

             private void init(Context context){
                 // Install a SurfaceHolder.Callback so we get notified when
 the
                 // underlying surface is created and destroyed.
                 mHolder = getHolder();
                 mHolder.addCallback(this);
                 mHolder.setType(SurfaceHolder.SURFACE_TYPE_PUSH_BUFFERS);

                 mCamera = Camera.open();
             }

             public CamLayer(Context context) {
                 super(context);
                 init(context);
             }

             public CamLayer(Context context, AttributeSet attrs) {
                 super(context, attrs);
                 init(context);
             }

             public void surfaceChanged(SurfaceHolder holder, int format, int
 w, int h) {
                 Log.i(TAG+.surfaceChanged, being called!);
                 Log.i(TAG+.surfaceChanged, w=+w);
                 Log.i(TAG+.surfaceChanged, h=+h);

                 if (isPreviewRunning) {
                     mCamera.stopPreview();
                 }

                    try {
                     mCamera.setPreviewDisplay(holder);
                     mCamera.setPreviewCallback(mPreviewCallback);
                 } catch (IOException e) {
                     Log.e(TAG+.surfaceCreated,
 mCamera.setPreviewDisplay(holder););
                 }

                 Camera.Parameters p = mCamera.getParameters();
                 setOptimalSize(p, w, h, SIZEOFPREVIEW);
                 setOptimalSize(p, w, h, SIZEOFPICTURE);
                 mCamera.setParameters(p);

                 mCamera.startPreview();
                 isPreviewRunning = true;
             }

             public void takePicture(){
                 Log.i(TAG+.takePicture, being called!);
                 mCamera.takePicture(null, null, mPictureCallback);
                 Log.i(TAG+.takePicture, call ended!);
             }

 2. CamLayer.takePicture() will be called by external classes to start

 3. The problem is that at Android 2.3.3, the takePicture will hang, so an
 ANR problem is found. In /data/anr/traces.txt, below are found. As u can
 see, the native_takePicture never returns.

 DALVIK THREADS:

 (mutexes: tll=0 tsl=0 tscl=0 ghl=0 hwl=0 hwll=0)

 main prio=5 tid=1 NATIVE

   | group=main sCount=1 dsCount=0 obj=0x40022170 self=0xce68

   | sysTid=2411 nice=0 sched=0/0 cgrp=default handle=-1345006464

   at android.hardware.Camera.native_takePicture(Native Method)

   at android.hardware.Camera.takePicture(Camera.java:746)

   at android.hardware.Camera.takePicture(Camera.java:710)

   at oms.cj.tube.camera.CamLayer.takePicture(CamLayer.java:256)

   at oms.cj.tube.camera.DefineColor.takePicture(DefineColor.java:61)

   at oms.cj.tube.camera.DefineColor.onKeyUp(DefineColor.java:71)

   at android.view.KeyEvent.dispatch(KeyEvent.java:1280)

   at android.app.Activity.dispatchKeyEvent(Activity.java:2078)

   at
 com.android.internal.policy.impl.PhoneWindow$DecorView.dispatchKeyEvent(Pho 
 neWindow.java:16
 66)
   at
 android.view.ViewRoot.deliverKeyEventToViewHierarchy(ViewRoot.java:2571)

   at android.view.ViewRoot.handleFinishedEvent(ViewRoot.java:2546)

   at android.view.ViewRoot.handleMessage(ViewRoot.java:1878)

   at android.os.Handler.dispatchMessage(Handler.java:99)

   at android.os.Looper.loop(Looper.java:123)

   at android.app.ActivityThread.main(ActivityThread.java:3691)

   at java.lang.reflect.Method.invokeNative(Native Method)

   at java.lang.reflect.Method.invoke(Method.java:507)

   at
 com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java: 
 841)

   at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:599)

   at dalvik.system.NativeStart.main(Native Method)

 Is there anybody having the same problem? And know how to fix it?

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

2011-08-01 Thread Lucas
 

Hey folks!

I have been very excited about the fact that one can make Android apps using 
HTML, CSS, and JavaScript. Therefore I bought the following book: O'Reilly 
- Building Android Apps with HTML, CSS, and JavaScript by Jonathan Stark. 
Since then I have been trying to get the AndroidSDK/PhoneGap to work. I've 
been trying to do so for almost an entire week now. I did try on a MacBook 
Pro with Mac OS X Lion, and right now I sit in front of a IBM ThinkPad with 
openSUSE 11.4. *Both times I failed at exactly the point!* Why is it so hard 
to make it work? I have been closely following Jonathan Stark's 
directions... So here's what I did.

   1. 
   
   I downloaded the Android SDK (*android-sdk_r12-linux_x86.tgz*), extracted 
   it on my desktop, and renamed the folder - for simplicity's sake - to 
   Android. 
   2. 
   
   Then I opened up Terminal and navigated to the tools directory, which 
   is located within the Android folder: *cd ~/Desktop/Android/tools*/ 
   3. 
   
   In order to start the Android SDK and AVD Manager I typed in the 
   following: *./android* 
   4. 
   
   The Android SDK and AVD Manager started properly and I successfully 
   installed the whole Android Repository. I did not install Third-party 
   Add-Ons. 
   5. 
   
   After quitting the Android SDK and AVD Manager as well as Terminal, I 
   downloaded Jonathan Stark's version of PhoneGap (*
   jonathanstark-phonegap-android-0.9.0-79-ge6b114c.zip*) from 
   https://github.com/jonathanstark/phonegap-android, extracted it on my 
   desktop, and renamed the folder - for simplicity's sake - to PhoneGap. 
   6. 
   
   Next I tried to configure my PATH variable - whatever that is... Neither 
   on Mac nor on Linux the following command worked: *ls -l 
~/.bash_profile*Since there apparently was no such file or directory, I 
created one. I am 
   totally new to Linux, therefore I did not know how to create a file using 
   Terminal. So I navigated in my home directory using Dolphin, 
   right-clicked Create New  HTML File. I then renamed this empty HTML 
   file to .bash_profile. It immediately became invisible.
   7. 
   
   However, now the file existed. At least I think that. I could now use the 
   following command to edit it using the Nano-Editor, which was 
   pre-installed on Mac OS X (not so on openSUSE 11.4): *nano 
   ~/.bash_profile* 
   8. 
   
   I added the following line of code: *
   PATH=$PATH:~/Desktop/Android/tools:~/Desktop/PhoneGap/bin* 
   9. 
   
   I saved changes and quit everything. 
   
At this point, Stark tells the reader to run the following two commands in a 
new Terminal - If they work, proceed, if not, get help. At first, I run *
android*. I opens up the Android SDK and AVD Manager once again. So far so 
good. Next, I run *adb*. On Mac OS X simply nothing happened, on openSUSE I 
get the following information: If 'adb' is not a typo you can use 
command-not-found to lookup the package that contains it, like this: cnf 
adb. On Mac OS X, I simply ignored the fact that adb was not working, 
therefore I had trouble later on. So this time, I want to do it right. If 
you have any idea what I've been doing wrong - pleeaase, tell me!

Thank you very much in advance!

Lucas

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

2011-08-01 Thread Yashwant kumar
Hello there,

I am learning android. Please give some online links and please give some
practice application on android development.

thanks in advance.


Regards
Yashwant

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

2011-08-01 Thread Iacopo Rozzo
Hi,
I'm an Android newbie, and I'm developing an application that performs
REST calls. I'm using a service that executes the calls in background
and puts the results on a content provider. The requests are enquehed
by the service and performed one at a time in a worker thread. My
doubt is on how the service can send callbacks to the activities, to
communicate the start and the end of the call (so that the activities
know if the call was succesfull). While the service is performing a
call the displayed activity may change. My current approach for the
service is to entends the class binder, to call directly the methods
of the service from the activities (that binds on start and unbinds on
stop). The activities implements an interface with the methods void
onCallStart() and void onCallFinish(), and have an handler. The
methods of the service take as parameter the handler and the context
of the acrivity (e.g. public void searchReports(final int
latitude,final int longitude,final int radius,final Handler
handler,final Context context)), so that the callbacks are performed
in this way :

handler.post(new Runnable() {
public void run() {
((IMyRestActivity)
context).onFinishCall(result,message);
}
});

My questions are:
1) Passing the context of the activities in this way I'm leaking
memory?
2) If yes, what is the better approach to use to perform callbacks,
avoiding this problem?

Thanks in advance,
Iacopo

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


[android-developers] Multiple onTouchListeners

2011-08-01 Thread John
Hi, 

I'm trying to create multiple ImageView's each with its own onTouchListener
that will redraw a bitmap on motion events.  I dynamically create a new
object for each ImageView and this works fine but the onTouchListener seems
to only be tied to the last view created.  I think this is because the
ImageViews are taking the entire screen and just overlaying on each other.
So while I can see the previous image I can't get to the onTouchListener for
it because everything is intercepted by the last ImageView laid down.  If I
try to limit the size of the ImageView to the size of my Bitmap I can't move
the Bitmap outside of those boundaries and still see it on the screen.  Can
anyone explain how I can get each 50 x 50 ImageView to appear on the screen,
each with its own onTouchListener?

 

Thanks!

 

Here's my main:

public class dominotest extends Activity {

  

  private static final int FILL_PARENT = -1;

  FrameLayout mainLayout;

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

@Override

public void onCreate(Bundle savedInstanceState) {

super.onCreate(savedInstanceState);

   mainLayout = new FrameLayout(this);

   LayoutParams mainLayoutParams = new LayoutParams(FILL_PARENT,
FILL_PARENT);

   mainLayout.setLayoutParams(mainLayoutParams);

 

   ImageView i = new ImageView(this);

   ImageView j = new ImageView(this);



   TileView stile = new TileView(i.getContext(), 1);

   TileView stile2 = new TileView(j.getContext(), 2);

   mainLayout.addView(stile);

   mainLayout.addView(stile2);



   setContentView(mainLayout);



}

}

 

Here's my TileView class:

 

public class TileView extends View {

  

  public TileView(Context context, int dots) {

super(context);

initTile(dots);



// TODO Auto-generated constructor stub

  }

 

  private final Paint mPaint = new Paint();

  private Bitmap myTile;

private int leftPos = 60;

private int topPos = 60;

  

  public void initTile(int dots) {

setFocusable(true);



Resources r = this.getContext().getResources();

if ( dots == 1 ) {
loadTile(r.getDrawable(R.drawable.stile_1dot));

  leftPos = 10; 

  topPos = 10;

}

else if ( dots == 2 ) {
loadTile(r.getDrawable(R.drawable.stile_2dots));

  leftPos=50; 

  topPos = 50;}





this.setOnTouchListener(new View.OnTouchListener() {

 

  @Override

  public boolean onTouch(View v, MotionEvent event) {

// TODO Auto-generated method stub

int x = (int)event.getX();

int y = (int)event.getY();

leftPos = x;

topPos = y;

TileView.this.invalidate();

  return true;

  }

});



  }

  public void loadTile(Drawable tile) {



int tileWidth = 50;

int tileHeight = 50;

Bitmap bitmap = Bitmap.createBitmap(tileWidth, tileHeight,
Bitmap.Config.ARGB_);

Canvas canvas = new Canvas(bitmap);

tile.setBounds(0, 0, tileWidth, tileHeight);

tile.draw(canvas);



myTile = bitmap;



}

  

  public void onDraw(Canvas canvas) {

super.onDraw(canvas);

canvas.drawBitmap(myTile, leftPos, topPos, mPaint);

}

  

}

 

 

 

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Extending Interface of Dynamically Loaded Dex File

2011-08-01 Thread Kenley Capps
Hi Matt,

I think your choice to introduce Foo2 has caused some of these issues. Maybe 
I'm misunderstanding something, but you're implying that you're adding more 
functionality to Foo by creating a new interface called Foo2 that extends 
Foo. In doing so, you'll have to have a dex class entry for both Foo and 
Foo2, which is what brings backwards compatibility into question (older 
Interface.jar files will not contain a class def for Foo2, which your newer 
Implementation.jar will depend on. You attempted to move your Interface.jar 
definitions into Implementation.jar to get around this, but that causes 
problems in MyApp.apk, right?)

However, if you simply modify foo (backwards compatible-changes only), then 
there's no need for a new Dex entry. If you need a non-backwards compatible 
change, or if you add new interfaces, you're going to need a different 
Implementation.jar chosen automatically (either at build-time or run-time.)

-Kenley

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

2011-08-01 Thread 晨 梁
ERROR/Database(373): android.database.sqlite.SQLiteException: no such
table: collTb1: , while compiling: INSERT INTO collTb1(desc, url,
name) VALUES(?, ?, ?);

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

2011-08-01 Thread Jorge Garcia
I just posted a fix on stackoverflow, let me know if it works:
http://stackoverflow.com/questions/6535652/takepicture-hangs-on-android-2-3-3/6886993#6886993

On Jul 20, 3:51 pm, musfiq musfiqu...@gmail.com wrote:
 I get the similar kind of error in 2.3.4 but don't know how to fix
 it.

 On Jun 30, 10:01 am, dingding dangdang ustcchenj...@gmail.com wrote:







  I have some codes of takeing picture working at Android 2.1 and 2.2.
  But these codes broke at Android 2.3.
  After spending a time to fix this issue in vain, I would like to ask for
  help here.

  My code flow to take picture is like this:

  1. create a class Camlayer extends SurfaceView

          public class CamLayer extends SurfaceView implements
  SurfaceHolder.Callback {

              private void init(Context context){
                  // Install a SurfaceHolder.Callback so we get notified when
  the
                  // underlying surface is created and destroyed.
                  mHolder = getHolder();
                  mHolder.addCallback(this);
                  mHolder.setType(SurfaceHolder.SURFACE_TYPE_PUSH_BUFFERS);

                  mCamera = Camera.open();
              }

              public CamLayer(Context context) {
                  super(context);
                  init(context);
              }

              public CamLayer(Context context, AttributeSet attrs) {
                  super(context, attrs);
                  init(context);
              }

              public void surfaceChanged(SurfaceHolder holder, int format, int
  w, int h) {
                  Log.i(TAG+.surfaceChanged, being called!);
                  Log.i(TAG+.surfaceChanged, w=+w);
                  Log.i(TAG+.surfaceChanged, h=+h);

                  if (isPreviewRunning) {
                      mCamera.stopPreview();
                  }

                     try {
                      mCamera.setPreviewDisplay(holder);
                      mCamera.setPreviewCallback(mPreviewCallback);
                  } catch (IOException e) {
                      Log.e(TAG+.surfaceCreated,
  mCamera.setPreviewDisplay(holder););
                  }

                  Camera.Parameters p = mCamera.getParameters();
                  setOptimalSize(p, w, h, SIZEOFPREVIEW);
                  setOptimalSize(p, w, h, SIZEOFPICTURE);
                  mCamera.setParameters(p);

                  mCamera.startPreview();
                  isPreviewRunning = true;
              }

              public voidtakePicture(){
                  Log.i(TAG+.takePicture, being called!);
                  mCamera.takePicture(null, null, mPictureCallback);
                  Log.i(TAG+.takePicture, call ended!);
              }

  2. CamLayer.takePicture() will be called by external classes to start

  3. The problem is that at Android2.3.3, thetakePicturewill hang, so an
  ANR problem is found. In /data/anr/traces.txt, below are found. As u can
  see, the native_takePicture never returns.

  DALVIK THREADS:

  (mutexes: tll=0 tsl=0 tscl=0 ghl=0 hwl=0 hwll=0)

  main prio=5 tid=1 NATIVE

    | group=main sCount=1 dsCount=0 obj=0x40022170 self=0xce68

    | sysTid=2411 nice=0 sched=0/0 cgrp=default handle=-1345006464

    at android.hardware.Camera.native_takePicture(Native Method)

    at android.hardware.Camera.takePicture(Camera.java:746)

    at android.hardware.Camera.takePicture(Camera.java:710)

    at oms.cj.tube.camera.CamLayer.takePicture(CamLayer.java:256)

    at oms.cj.tube.camera.DefineColor.takePicture(DefineColor.java:61)

    at oms.cj.tube.camera.DefineColor.onKeyUp(DefineColor.java:71)

    at android.view.KeyEvent.dispatch(KeyEvent.java:1280)

    at android.app.Activity.dispatchKeyEvent(Activity.java:2078)

    at
  com.android.internal.policy.impl.PhoneWindow$DecorView.dispatchKeyEvent(Pho 
  neWindow.java:16
  66)
    at
  android.view.ViewRoot.deliverKeyEventToViewHierarchy(ViewRoot.java:2571)

    at android.view.ViewRoot.handleFinishedEvent(ViewRoot.java:2546)

    at android.view.ViewRoot.handleMessage(ViewRoot.java:1878)

    at android.os.Handler.dispatchMessage(Handler.java:99)

    at android.os.Looper.loop(Looper.java:123)

    at android.app.ActivityThread.main(ActivityThread.java:3691)

    at java.lang.reflect.Method.invokeNative(Native Method)

    at java.lang.reflect.Method.invoke(Method.java:507)

    at
  com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java: 
  841)

    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:599)

    at dalvik.system.NativeStart.main(Native Method)

  Is there anybody having the same problem? And know how to fix it?

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

2011-08-01 Thread imsmooth
I want to start writing some apps for the android/droid.  I have
written some for the iPhone.

I have a Windows XP.

Which SDK should I use and which JDK?  I was going to use JDK 7.  Is
that ok?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: SIPMANAGER RETURNS NULL FROM EMULATOR AND SAMSUNG GALAXY S 2

2011-08-01 Thread jakkaxe
The SipManager isn't supported in the emulator.  Not all Gingerbread
phones support it either (as you've found out).  Cyangenmod does for
sure (I've used it to test with) as does the stock Honeycomb on the
Xoom.

Amir

On Jul 28, 2:53 pm, Graham Bright gbwienmobil...@gmail.com wrote:
 Hi,

 Has anyone had any luck with SipManager. I have been playing around
 with the sipdemo and I have created simple application. The
 application creates SIPManager object and attempts to connect using
 SipProfile to sip2sip.info.

 But manager, api and voip are not supported.

 This doesn't work either from the phone or the emulator.

 Thanks in advance,

 Graham

 package gb.org;

 import java.text.ParseException;

 import android.app.Activity;
 import android.net.sip.*;
 import android.os.Bundle;
 import android.util.Log;
 import android.widget.EditText;
 import android.widget.Toast;

 public class gbsip extends Activity {

         public SipManager manager = null;
                  public SipProfile me = null;

         //temporary sip settings
         public String name = gbwien;
         public String domain = sip2sip.info;
         public String password = h7eefbtcff;

     /** Called when the activity is first created. */
     @Override
     public void onCreate(Bundle savedInstanceState) {
         super.onCreate(savedInstanceState);
         setContentView(R.layout.main);

         //this.apiSupport = (EditText) findViewById(R.id.api);
         //this.voipSupported = (EditText) findViewById(R.id.voip);

         initializeManager();
     }

     //CREATE A NEW SIP MANAGER INSTANCE
     public void initializeManager() {
         if(manager == null) {
           manager = SipManager.newInstance(this);
          Toast.makeText(gbsip.this,  Manager supported  +
 manager.isApiSupported(this), Toast.LENGTH_LONG).show();
          Toast.makeText(gbsip.this,  VOIP supported  +
 manager.isVoipSupported(this), Toast.LENGTH_LONG).show();

         }
         initializeLocalProfile();

     }
         //LOG INTO SIP ACCOUNT USING A SIP PROFILE LOCAL TO THE
         //DEVICE

         public void initializeLocalProfile() {
                 if (manager == null) {
                         Toast.makeText(gbsip.this, manager is null  ,
 Toast.LENGTH_LONG).show();
                 return;

             }

                 if (me != null) {
                 closeLocalProfile();
             }

                 try {

                                 SipProfile.Builder builder = new 
 SipProfile.Builder(name, domain);
                                 builder.setPassword(password);
                                 me = builder.build();
                                 Toast.makeText(gbsip.this, SIP Registration 
 successful  ,
 Toast.LENGTH_LONG).show();

                                 // Otherwise the methods aren't guaranteed to 
 fire.

                     manager.setRegistrationListener(me.getUriString(), new
 SipRegistrationListener() {
                             public void onRegistering(String localProfileUri)
 {
                                 Toast.makeText(gbsip.this, Registrating with
 SIP Server , Toast.LENGTH_LONG).show();
                             }

                             public void onRegistrationDone(String
 localProfileUri, long expiryTime) {
                                 Toast.makeText(gbsip.this, Ready ,
 Toast.LENGTH_LONG).show();
                             }
                             public void onRegistrationFailed(String
 localProfileUri, int errorCode,
                                     String errorMessage) {
                                 Toast.makeText(gbsip.this, SIP Registration
 error  , Toast.LENGTH_LONG).show();
                             }
                         });

                 } catch (ParseException e) {
                                 // TODO Auto-generated catch block
                                 e.printStackTrace();
                                 Toast.makeText(gbsip.this, SIP Registration 
 error  ,
 Toast.LENGTH_LONG).show();
                         } catch (SipException e) {
                                 // TODO Auto-generated catch block
                                 e.printStackTrace();
                                 Toast.makeText(gbsip.this, SIP Exception has 
 occurred  ,
 Toast.LENGTH_LONG).show();
                         }

         }

     //END OF initializeLocalProfile
         public void closeLocalProfile() {
             if (manager == null) {
                 return;
             }
             try {
                 if (me != null) {
                     manager.close(me.getUriString());
                 }
             } catch (Exception ee) {
                 Log.d(failed , Failed to close local profile.,
 ee);
             }
         }

 }

 Manifest

 ?xml version=1.0 encoding=utf-8?
 manifest xmlns:android=http://schemas.android.com/apk/res/android;
       package=gb.org
       android:versionCode=1
 

[android-developers] HTC Legend

2011-08-01 Thread killer00911
Hello,
   I want to know how to install .apk files in my SD card; so
that I can have my phone memory free. I downloaded softwares to move
application from phone to sd but it said package error!!! So help me
please.
Thank you,
killer00911

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 apps from market can catogery itself automaticly?just like iPhone.

2011-08-01 Thread jb qiu
I think it is a useful function.From other application,I know someone
do it but it is not automaticly,it is based on user's input.why google
does not do this function? or is it in plan ?who can 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


[android-developers] Line2D?

2011-08-01 Thread bob
Anyone know why Line2D doesn't work on Android?

http://download.oracle.com/javase/1.4.2/docs/api/java/awt/geom/Line2D.html

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


[android-developers] Re: Android Market news

2011-08-01 Thread moster67
yep, I noted that as well. Don't know what's going on...

Browsing Android Market (using https://market.android.com/) shows
correct amount of comments but the graphic showing the star-ratings is
wrong (and seems to correspond with the wrong value shown in the
Developer Console).

Maybe they are changing something?

On 30 Lug, 06:51, Nikolay Elenkov nikolay.elen...@gmail.com wrote:
 This is new: woke up to find that the number of ratings is a few hundred
 less
 than the day before. And that's across all apps. I've reported it, for all
 the
 good that this does. For now, this is only in the developer console,
 not in the actual Market, hopefully it won't propagate there.

 Anyone experiencing the same issue?

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


[android-developers] Re: Is it possible to use MonkeyRunner from java

2011-08-01 Thread Nitin Chhabra
Hi Bill/Karthikeyan,

Can you please help me out as well in this regard. I am able to run
MonkeyRunner using Python Scripts on Windows
Platform. But I would like to use it in Java, as my test application
is being
built in Java. I am using MonkeyRunner to automate things only. I can
call my Python script using Java to run MonkeyRunner, but that is not
a clean solution!

Karthik, can you please help me as you have mentioned that you have
got that running. Can you please point me to some sample code as well.




On Jun 28, 9:44 am, Karthikeyan R dba.kart...@gmail.com wrote:
 Hi Bill,

 Thank you so much for pointing me to those links.

 It helps me a lot and now I can able use monkey runner from java.

 This group is rocking . . .

 Thanks
 --Karthik

 On Jun 28, 2:19 am, Bill Napier nap...@android.com wrote:







  MonkeyRunner actually has a small example of doing this in it's own source
  code:

 http://android.git.kernel.org/?p=platform/sdk.git;a=blob;f=monkeyrunn...

  IMonkeyBackend adb = new AdbBackend();
  IMonkeyDevice device = adb.waitForConnection();

  And you can see the IMonkeyDevice source 
  here:http://android.git.kernel.org/?p=platform/sdk.git;a=blob;f=monkeyrunn...

  And see that it has a bunch of methods on it like takeSnapshot, touch,
  drag, etc.

  Hopefully that's enough to get you started.

  Bill

  On Fri, Jun 24, 2011 at 7:27 PM, Karthikeyan R dba.kart...@gmail.comwrote:

   Hi Bill,

   Thank you so much for sharing the information.

   we wanted to create a automation framework in java having MonkeyRunner
   as base.

   Could you give me one small sample using java, it will be really
   helpful for us.

   To give you a context we wanted to automated the device as a whole
   where we interact with multiple apk's  hope our choice of monkey
   runner is right for that.

   Thank you in advance.

   Thanks
   --Karthik

   On Jun 24, 10:39 am, Bill Napier nap...@android.com wrote:
If you mean from Java on the phone (like as part of an application), 
then
the answer is no.

If you mean from Java on a computer, then the answer is yes.  You just
   need
to make your java project depend on the MonkeyRunner.jar and you can 
call
some of it's internal classes to do what you need.

We're in the middle of changing how the code is structured to make this
   even
easier, but it's not quite ready yet.

On Wed, Jun 22, 2011 at 8:16 PM, Karthik dba.kart...@gmail.com wrote:
 Hi,

 Is it possible to use monkeyrunner from java.

 If yes please let me know the approach.

 Thanks in advance

 Thanks
 --Karthik

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

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Windows 64-bit drivers for HTC Dream G1

2011-08-01 Thread Neel Mehta
Hi.

I have been trying to do this since ages but I am unable to install 64-
bit Windows 7 drivers for my HTC Dream G1. Can someone please guide
me.

Thanks,
Neel

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


[android-developers] Re: Can I use google weather api in commercial app?

2011-08-01 Thread Novice
I mean android application.

On Jul 30, 4:17 am, TreKing treking...@gmail.com wrote:
 On Fri, Jul 29, 2011 at 1:56 AM, Novice noviceplayer1...@gmail.com wrote:
  Can I use google weather api in commercial applications?

 This has nothing to do with Android.

 -
 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] how to make a service that can'e be killed by task killer?

2011-08-01 Thread micxfile
i make a security application, so the application can lock a android
phone when it lost (like a Mcafee wave secure).. my application is
listen to the SMS.. when the phone owner send a command set to the
phone when it lost, it will lock the phone so the thief can't access
that phone.. my problem is on the task killer.. when my service for
listening SMS has been stopped, that phone will be unsecured because
it can't listen to the command, so the thief can be free to access
that phone.. i appreciate that if the user force-stops my application
via Settings or a task killer, the user is saying that your app is not
supposed to run, but it's security application.. so i must keep on the
listen SMS service.. can u help me for resolving my problem?? i have
using a start_sticky, but it takes longer time to restart the
service.. i have using a onDestroy() too, but it can only show a
toast.. any solution.. please help me for resolving my final project..
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] Implement Android MonkeyRunner in Java Only

2011-08-01 Thread Nitin Chhabra
I am able to run MonkeyRunner using Python Scripts on Windows
Platform.
But I would like to use it in Java, as my test application is being
built in Java. I am using MonkeyRunner to automate things only. I can
call my Python script using Java to run MonkeyRunner, but that is not
a clean solution!

I notice the monkeyrunner.jar file being present in my \android-sdk
\tools\lib folder.
However, I am unable to figure out how to incorporate that in my
project. If anyone had success with this, pls let me know.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Help! My App dissappeared from Android Market after routine Update

2011-08-01 Thread piezo
I have a similar issue. After a regular update, without any changes to
the manifest, the device availability dialog suddenly showed only 8
devices - as apposed to 400+ for the older version. I noticed that

android.hardware.screen.portrait

appeared only for this latest version, allthough

android:screenOrientation=portrait

had been in the manifest for all earlier versions, too. I removed the
portrait mode from the manifest and now all devices are listed again.

Looks like a bug to me. As a workaround, you can force the orientation
to portrait in code (via setRequestedOrientation()). If you use
getWidth() / getHeight(), compare both and swap the values if width is
bigger than height. setRequestedOrientation() sems to slow down the
activity startup though.


On 30 Jul., 01:20, pawpaw17 georgefraz...@yahoo.com wrote:
 Hi Guys,

 I've just done a regular bugfix update for my app, and now it seems to
 have disappeared from Android Market entirely!! This is the first
 update I've done with the new developer console interface where the
 APK and App Info is separated into different tabs.

 If I search by the name of my app, no dice, it is gone. Maybe this is
 an intermittent state while my update is being processed? But I've
 never waited more than 20 minutes or so for an update to appear and it
 has been almost 2 hours.

 Please if anyone has info on I'd great appreciate it.

 Thanks!

 pawpaw17

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] inApp soundgeneration possible without heavy use of CPU ?

2011-08-01 Thread Peter Pippinger
Hello,

I have now completed my first app ( 
https://market.android.com/details?id=com.pippinger.android.frogthiswayfree).
For the music I was working with http://www.warmplace.ru/soft/sunvox/ which 
is a very powerful synthesizer in my opinion.
I think the chiptunes-style fits best for android-apps. 
On the other side it takes much memory for having long music in the app if 
you are insert it by .ogg or something like that.

So my question: is it possible to do some synthesizer-calculation in Java 
for the music with not to much CPU-consumption?
Maybe you have some links (maybe also to some apps which are doing something 
like this)?

Thanks a lot and kind regards,
Peter

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

2011-08-01 Thread Christiaan Schoenaker
Hi all,

As of this morning, 25% of my ratings are gone, just like all these
people choose to clear the rating they send me. I'm frustrated about
this, since a large portion of my 5star rating has gone now!

Big deal?: (don't read this if you know why I am frustrated about
this) Yes, before my last update I had a place on the market outside
many peoples reach. (place ~700), now I have managed to get a place
300! And my average downloads a day increase tremendous! From 100
people a day, to 600 even 900! I don't now how android market lists
there apps, I guess no developer knows this magic formula, but I guess
ratings by users are a part of it (seems logical). Since my stars have
dropped, my place on the market will drop, people who download my app
drops, and eventually, I will be back again at place 700 and make
little revenue with my adds.

Question: Is this a temp error, will my stars/ratings reappear after
some time? Or is it gone forever..

Hope you people can help me

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

2011-08-01 Thread Christiaan Schoenaker
this is ridicules,  my ratings dropped with 25% and got me -0.2
average rating. Since ratings are probably in the formula for place on
the market, and place on the market determine how many people download
your app everyday, and if your app has ads, these people determine
great deal of your revenue!

On Jul 30, 10:14 am, Ecthelion ep...@joergjahnke.de wrote:
 Yes, I am having the same issue. But now changed ratings affected by
 this bug are also visible on the market :-(.

 On 30 Jul., 06:51, Nikolay Elenkov nikolay.elen...@gmail.com wrote:







  This is new: woke up to find that the number of ratings is a few hundred
  less
  than the day before. And that's across all apps. I've reported it, for all
  the
  good that this does. For now, this is only in the developer console,
  not in the actual Market, hopefully it won't propagate there.

  Anyone experiencing the same issue?

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


[android-developers] how to set reminder for Future event

2011-08-01 Thread kirti waykole
hello friends,
  I am new in android . I am getting problem while using AlarmManager.
i want to use AlarmManager for setting future event. please send me
code for how i set future event. Please guide me.

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] How to add multiple buttons and multiple tablerows dynamically

2011-08-01 Thread grebwerd
Hello I want to click a button that will add a new button to a table
row every time it is clicked. After 3 buttons have been added to the
row, I want to dynamically create a new table row and add a new button
to it.

I know how to add a row with a button(s) to a tableLayout if I click a
button. I don't know how to modify the table row every time I click so
I can add an additional button.

Any advice would be quite helpful and appreciated.

Thanks in advanced

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

2011-08-01 Thread sansknowledge
Hi,
I am new to android, and got one nexus s, so while trying to play with
NFC Capabilities, when i try to write to a mifare classic 1k card ,
Ndef.get(tag) returns null, upon searching, i find that tag is not
listed in tech list. but when i issue getTechList() command, i am able
to find
MifareClassic , NdefA and Ndefformatable are listed, so where am i
missing.

here is my code
public void onClick(View v) {


IntentFilter ndef=new
IntentFilter(NfcAdapter.ACTION_TECH_DISCOVERED );
try{
ndef.addDataType(*/*);
}catch(MalformedMimeTypeException e){
throw new RuntimeException(fail,e);
}

mFilters=new IntentFilter[]{ndef,};
showMessage( mFilters.toString());
// Setup a tech list for all NfcF tags
mTechLists = new String[][] { new String[] { 
MifareClassic.class
.getName() } };

Intent intent=getIntent();
String action=intent.getAction();
if(NfcAdapter.ACTION_TECH_DISCOVERED.equals(action) ){
String msg=Discovered Tag with Intent  + intent;
status_Data.setText(msg);
Tag 
tagFromintent=intent.getParcelableExtra(NfcAdapter.EXTRA_TAG);
MifareClassic mfc=MifareClassic.get(tagFromintent);
boolean auth=false;
try {
String[] ttype=tagFromintent.getTechList();
//  Ndef ndef1=Ndef.get(tagFromintent); [here i am 
getting null]


mfc.connect();
auth = mfc.authenticateSectorWithKeyA(0,
MifareClassic.KEY_DEFAULT);
} catch (IOException e1) {
status_Data.setText(Authentication of Block 1 
Failed);
}
try {
if (auth){
write(tagFromintent);}
} catch (IOException e) {
status_Data.setText(e.toString());

} catch (FormatException e) {
status_Data.setText(e.toString());
//e.printStackTrace();
}


}else{
showMessage(Nothing to read);
}
}
};

any help will be greatly appriciated.

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

2011-08-01 Thread Sumedh
I want to access data which is stored on external database server.
is it possible?
if yes please tell me how
thanx in advance

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


[android-developers] How to broadcast information with Bluetooth on Android?

2011-08-01 Thread Siea Chin Chuan


I'd like to know how to broadcast information with Bluetooth on Android.

I'm thinking to utilize the service name for SDP record in 
listenUsingRfcommWithServiceRecord() to broadcast the information. However, 
I couldn't find any method to use to read the service name for SDP record. 
May I know is there any way to read that?

Or is there any other more appropriate approach to broadcast information 
with Bluetooth? Plz enlighten me. Ur help would be greatly appreciated. =)

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

2011-08-01 Thread WinuX
hi all ;

i am new here with you.. i wanna develop some apps 4 android. but i
know nothing about JAVA. i can code in python as OOPL.. So what can i
do? if there is a option like this for us ; what about editor?  as i
know ; the dwnload links r about java.. and how i can upload my app?

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] connecting to tcp/ip server using gprs

2011-08-01 Thread Sumedh
Hi,
How to setup connection to TCP/IP server using GPRS, in emulator,
please help
thanx in advance

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


[android-developers] Re: 2D Live Wallpaper Tutorial

2011-08-01 Thread Dr. House
Thanks for the reply.
What I would like to do is very simple, for the images are already
created.

Here's an example of one of the stages I made that I would like to
convert to a Live Wallpaper.
http://www.youtube.com/watch?v=2uGBcopMrMQ

I need to do it in layers so I can have the flexibility to have each
separate layer scroll at a different rate as to give the impression of
3D.
Foreground images would move across the screen at a faster rate than
background images.

I will take a look at the documentation again and also dissect a 2D
live wallpaper that I have found on the Market.

Thanks again

On Jul 31, 2:29 pm, nadam a...@anyro.se wrote:
 You can use the sample from the 
 SDK.http://developer.android.com/resources/samples/CubeLiveWallpaper/inde...
 Yes, it's a cube which is 3D, but it's actually using the ordinary 2D
 graphics features of Android (http://developer.android.com/guide/
 topics/graphics/2d-graphics.html), so it's probably a good start for
 what you want to do.

 On 29 Juli, 03:32, Dr. House rominu...@gmail.com wrote:







  I've seen plenty of examples of how to do a 3D Live Wallpaper but
  nothing for 2D.
  I used to create and code 2D video game fighting stages. I would like
  to make them into Live Wallpapers.

  I'm very new, minimal understanding so far.
  I have all the images created, now I need to know how to implement
  them.
  I would greatly appreciate any help or direction toward an example or
  tutorial.

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

2011-08-01 Thread sandeep agrawal
I am developing one  android application in which i can draw any shape
using orientation sensor i.e. by moving my phone. Can you all please
suggest me any api or algorithms for shape detection like if i draw a
line it should pop up  this is a line  , if i draw a rectangle 
this is a rectangle .

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 Market user ratings disappeared on July 29, 2011

2011-08-01 Thread Scott
Yesterday (July 29, 2011), I had two apps with ratings of
approximately 4.5 (a network calculator) and 4.0 (a spinning polyhedra
live wallpaper). That changed late last night. Approximately 50% and
75%, respectively, of my user ratings vanished! Now I have ratings of
4.3 and 3.0!

Taking a full star drop is quite a hit. Going from 4.0 to 3.0 is the
difference between, This might be neat, to, Meh, for most users
hunting for new applications.

It seems most of my user comments are intact.

Is anyone else having a similar problem?

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

2011-08-01 Thread Doug
On Jul 31, 1:41 am, Zsolt Vasvari zvasv...@gmail.com wrote:
  But I am curious why you're serializing to JSON but not sending or
  saving it anywhere, unless I'm misunderstood your previous message?

 I am storing JSON encoded objects in the Activity state in
 onSaveInstanceState().  It's used by Android to restore the state of
 the Activity if it was removed from memory for whatever reason.

Why wouldn't you just serialize the members of your object(s) directly
to the Bundle you're being given in onSaveInstanceState()?  It would
be much much faster and you'd retain all your data types.  You could
also put bundles within bundles in you need to handle nesting/
recursion.  And Bundles don't throw checked exceptions.  :-)

Doug

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


[android-developers] Hi Alireza

2011-08-01 Thread Jupiterz
Your work is nice.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Making an alternatice UI menu (like for example: the camera menu)

2011-08-01 Thread Thomas
I am trying to create a more appealing menu for my application,
however I am unsure as how to re-root the input of the menu button so
that it makes certain images in the corners visible, (they are all in
the same xml file, however just set to invisible by default. If also
possible I'd like to activate this menu by just touching the screen,
does anyone have any advice on how to do this?
If you need any more information please just ask :)
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] Re: Android Battery Reporting Error

2011-08-01 Thread tom
I seem to have exactly the same problem. After unregistering the sensors, my 
app does not get any sensor events anymore (according to logcat). However, 
the battery use increases steadily, even after stopping the app from the 
manage apps menu. The battery stats only normalize after rebooting the 
phone. Does anybody have a solution/hint what I could do to unregister the 
sensors such that Android no longer believes my app eats up the battery, 
even when it is not running?

Thanks,

Tom

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

2011-08-01 Thread Guyue Liu
it really works
thx a lot!

On Jul 17, 1:55 am, stevejbrot...@gmail.com
stevejbrot...@gmail.com wrote:
 Lemme EXPAND on the answer that Chrystian didn't explain...

 I don't know about Linux and Macs Operating systems, but you need to
 change to the short 8.3 format path (eg. the old MS-DOS 6.22 path) on
 Windows.

 In Eclipse, go to menu bar and click Windows - Preferences and on
 the left side, select Android.

 On the right side of menu near the top where it says  SDK Locations
 **AND** if you kept the default path during installations, change it
 to this:

 for 32 bit Windows 7 -- (C:\ProgramFiles\Android\android-sdk)
 C:\PROGRA~1\Android\android-sdk

 For 64 bit Windows  7 -- (C:\ProgramFiles(x86)\Android\android-sdk)
 C:\PROGRA~2\Android\android-sdk

 HOWEVER, if you changed the SDK path during the installation, then you
 need work it out on your own. Best to go through a DOS window and use
 dir /x to work out the short names.

 There was another alternative discussed by creating a link using
 MKLINK command. It might be worthwhile to investigate.

 More info was found at this link:

 http://stackoverflow.com/questions/6638713/android-emulator-is-not-st...

 -- Steve

 On Jul 16, 4:01 pm, Chrystian Vieyra chrys.vie...@gmail.com wrote:







  There is a problem with R12 where the SDK location cannot contain any
  spaces. You need to change the sdk location path in Eclipse.

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

2011-08-01 Thread Hari
Plz, Anyone can please help me with parsing an XML String in
Android???

Here is the Xml file which has to be accepted as a string and display
the contents of this xml code??

?xml version='1.0' encoding='iso-8859-1'?
categories
category id=1
nameReal Estate/name
/category
category id=2
nameHospitals/name
/category
category id=3
nameGifts/name
/category
category id=4
nameDomestic Help/name
/category
/categories

Plz help me out..
I'm extremely new to ANdroid development...

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


[android-developers] how to use tag view in OnClickListeners

2011-08-01 Thread vijay pratap
Hiii
i am trying to add some button, and i use OnClickListener for event. could
you please tell me... is there any way to use made Tag view on click
listeners.
if there is any way, please write me a example.
your last answer was, came out quickly, amazing, thanks.. thanks a lot.

-- 
Sincerely
Vijay

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

2011-08-01 Thread xkrishx
Hi,

it seems everyone is waiting for the Unicode support for Android
phones. I'm developing custom Unicode font and a language biased
converter Keyboard.
I need support from tamil beta users to improve the project.

the project can be seen in:
http://xkrishx.wordpress.com/2011/07/30/tamil-unicode-font-for-android/


Krish KM

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

2011-08-01 Thread volodymyr nedashkivskyi
Hi,
I want to change background behind Text and Indicator (header of tab).
Could anyone tell me how can I do 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] Collecting feedback through apps

2011-08-01 Thread Varun Agrawal
Hi all,

Two months back I had developed my first Android app. The feedback I got 
through the Android Market reviews was minimal and didn't help too much. In 
two months, there was only one constructive feedback. I thought that going 
to Android Market is a pain, and if feedback can be sent right from the app, 
it would be very useful.
To do this, I have been working for last few weeks and have come up with a 
website www.droidfeedback.com and an android library which you can add to 
your app, and you can collect feedback right through your apps.
The website is under development, so I am currently looking for a few 
developers who would be interested in testing it out, and let me know if it 
is useful and also report any bugs in the website.

Thanks,
Varun
http://www.droidfeedback.com

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

[android-developers] Organise

2011-08-01 Thread selvas selvas
Android Developers   android-developers@googlegroups.com
Discuss developing Android applications using the SDK: troubleshooting
apps, advice on implementation, strategies for improving your app's
speed and user experience. This group is for development-related
topics only, not for job opportunity announcements, advertisement,
debates about devices, etc.
Language: 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


Re: [android-developers] Re: hiii dearssssss

2011-08-01 Thread Suresh Indian
helo geniuss,,, if u knw means,,,reply probperlyy ,,, otherwise i wont need
ur replies here,, okk,, y r u doing lyk this,, any way thanks for motivating
me by irritating ,, i found solution sterday itselfff for printing via
bluetooth;):)





















Together For ever
(¨`·.·´¨)
`·.¸(¨`·.·´¨)Thanks
(¨`·.·´¨)¸.·´  
`·.¸.·´Regards
  §u®€§#[!ѝÐ!@ѝ]




On Sat, Jul 30, 2011 at 4:28 AM, CBD androi...@gmail.com wrote:

 I laughed so hard my face hurt.

 On Jul 29, 6:32 pm, Nick Risaro nris...@gmail.com wrote:
  Thanks that worked for me ;)
 
 
 
  On Fri, Jul 29, 2011 at 6:43 PM, TreKing treking...@gmail.com wrote:
   Just include in your project and run.

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


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

[android-developers] Re: Communication between android app and application on a remote server

2011-08-01 Thread work_84
No...But am still looking for any suggestions on this topic

On Jul 28, 11:00 am, Yue Zeng zenggon...@gmail.com wrote:
 Chinese?
 On 26/07/2011 12:49 PM, work_84 work8...@gmail.com wrote:







  Hello,

  I am developing an Android application which has to send/receive data
  to/from a remote server securely.
  The Android application has to authenticate the server and the server
  needs to authenticate the device. The data sent/received should also
  be encrypted.
  I have implemented similar feature on desktop applications using
  OpenVPN and thrift(Since the server is in C++ and the client in java).
  I was planning to use the same on Android but am not sure if openvpn
  package is available to be used by android applications.

  Any suggestions on this will be very much helpful.

  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] Kid app - callee streaming video automatically to caller?

2011-08-01 Thread Orchus
Hi,

I need to know if it is possible to have one cell phone stream the
video from its camera to another cell phone automatically without any
intervention from the callee. The caller simply presses this button
from this app yet written and the callee's cell phone start streaming
the video quietly.

The idea is to be able to have a device, possibly a small cellphone,
worn as around the neck like a camera with its holder, and to be able
as a parent to turn on the video on the cellphone of the wearer (your
kid) when he's in daycare or wherever, without any actions being
required from the wearer other than having this app installed.

Can such an app, that enables a callee to automatically stream on
request video from its webcam without any intervention, to a caller,
be possible?

Yeah, I know the answer is just find a better daycare... so please,
stick with the question :)

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] Is this possible?

2011-08-01 Thread Orchus
Hi,

I'm reposting since I never my post go through the group...

I want to know if its possible to write an app that can make another
phone (running the same app) stream the video of its camera. I know
this sounds like cloak and dagger.

I want to be able to see what's going on at the daycare and I thought
if my daughter has a cellphone around her neck, a bit like I have my
camera around my neck here in China, then I could start this app and
see from work the video streaming from my daughter's cell phone
camera.

I'm not a hacker. I'm a newbie at programming for Android and I
thought this would be a great first project. Please let me know what
you think. My name is Antoine Dubuc and I'm in China with my family.
I'm on facebook (Orchus) if you want to chat.

Cheers, and thanks,

Antoine Dubuc
banquo_ws at hotmail dot com

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


[android-developers] att's outright refusal to play fair and stomping on the....

2011-08-01 Thread tdog65
spirit of what i thought droid would stand for.  Completly open
sourced with the owner choosing where to download from. Without
rooting, is it possible  to get around att outright defiance  at what
droid stood for in the beggining. By not allowing apk from other
respectible markets to be installed and forceing u to take on almost a
gig of bloatware in the process. I bout to buy an infuse from art
where I have unfortunately bundled all my services at. I wonder if
this will alienate some of there long term consumers.  I loved my
captivate 1 1/2 years ago but the andriod has left it's first pasture
the marketplace and now it is grazing in at least 5 other pastures.
Good grass(apps) there too. Hope Att or some trick wil allow me to
without worrying about the warranty.

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

2011-08-01 Thread Doug
On Jul 31, 12:47 am, Indicator Veritatis mej1...@yahoo.com wrote:
 But one of the main points of Eckel's rather negative analysis of the
 checked/unchecked distinction is -precisely- that it lends itself to
 the abuse you mention. That is WHY no language since Java's invention
 has chosen to repeat the experiment. And sure enough, the problem
 really is not as bad in Python or Ruby as it is still in Java.

Yet Java is still the most popular programming language.  Perhaps it's
not quite as failed as one might think.  I would imagine that a lot
of the abuses stem from Java being used lazily or in inappropriate
circumstances (when a more flexible scripting language might do
better).

Java is statically typed, so comparing it in this respect to the
dynamically typed Python or Ruby might not be as fair as your
statement sounds.  Along with statically typed languages are better
tools to create and analyze better code, which helps avoid abuses of
the system if engineers understand how to use them.

Or maybe it's just different strokes for different folks.

The bottom line for me is that lousy programmers will abuse whatever
system you put in front of them, so complaining about the system
rarely sees anything get done.  It's like complaining about government
without being an activist.

Doug

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


Re: [android-developers] OnClick error

2011-08-01 Thread wu mark
Dear Robin :

   I import import android.view.View.OnClickListener;

The result is the same. The error is istill existed.

BTW, on another pc, I don't import it. It works.

Thanks.

BR,
Mark


2011/8/1 Robin Talwar r.o.b.i.n.abhis...@gmail.com

 Did u import onclicklistener library and wots d error line ?

 On 1 Aug 2011 11:59, mark2011 androidmark2...@gmail.com wrote:
 Dear All :

  I install eclipse  Android SDK under the Windows/XP successful. If
 I test a program using onClick that I want to click a button, it
 displays an error. But the code is ok on an another pc. Can anyone
 help me?

 my code is that :

 btnNumberOne.setOnClickListener(new ImageButton.OnClickListener()
{
@Override
public void onClick(View v) { =error line

 Thanks.

 BR,
 mark

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

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

2011-08-01 Thread Vikram
This has been discussed many times on the forum and on StackOverflow

To summarize: this cannot be done at real time without running a long
living service. If we go the long living Service way, a FileObserver
on the folder of interest/ContentObserver on the MediaStore can be
setup and we can detect photo clicks.

I was wondering as to how Google+ does it's instant upload. Any
thoughts anyone?

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

2011-08-01 Thread Jupiterz
Hello Everyone,


I want to know about the complete usage of RTP/SIP to make calls from
one end to another end. Can anyone share links/ example codes or
documents in which i can find detailed information.


Many Thanks,
Peace.

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

2011-08-01 Thread Robin Talwar
btnNumberOne.setOnClickListener(newOnClickListener()
   {
   @Override
   public void onClick(View v) {
Put your on click implementation here
}
});

btnNumberOne must be refering to some id in xml with findview


On Mon, Aug 1, 2011 at 1:41 PM, wu mark androidmark2...@gmail.com wrote:

 Dear Robin :

I import import android.view.View.OnClickListener;

 The result is the same. The error is istill existed.

 BTW, on another pc, I don't import it. It works.

 Thanks.

 BR,
 Mark


 2011/8/1 Robin Talwar r.o.b.i.n.abhis...@gmail.com

 Did u import onclicklistener library and wots d error line ?

 On 1 Aug 2011 11:59, mark2011 androidmark2...@gmail.com wrote:
 Dear All :

  I install eclipse  Android SDK under the Windows/XP successful. If
 I test a program using onClick that I want to click a button, it
 displays an error. But the code is ok on an another pc. Can anyone
 help me?

 my code is that :

 btnNumberOne.setOnClickListener(new ImageButton.OnClickListener()
{
@Override
public void onClick(View v) { =error line

 Thanks.

 BR,
 mark

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

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




-- 
Regards
Abhishek Talwar
9953395712

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

2011-08-01 Thread yanamala siddaiah
I took view in activity .

In that view nestedly I took listview . I want on click listener for
the listed items

pls

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

2011-08-01 Thread Vikram
Can you please send me the compiled APK so that I can send it to my
client :P

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

2011-08-01 Thread Vikram
http://developer.android.com/guide/index.html

and

http://developer.android.com/resources/index.html

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


[android-developers] Re: android view listview

2011-08-01 Thread Vikram
Check this out

http://developer.android.com/guide/tutorials/views/hello-listview.html

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


[android-developers] Re: Xml Parsing

2011-08-01 Thread Marta Rodriguez
Hi,

You should use DocumentBuilderFactory, DocumentBuilder and Document
classes.

Here you have an example.

URL url = new URL(http://...;);
HttpURLConnection urlConnection = (HttpURLConnection)
url.openConnection();
urlConnection.connect();

DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
DocumentBuilder db = dbf.newDocumentBuilder();
Document doc = db.parse(urlConnection.getInputStream());
doc.getDocumentElement().normalize();
NodeList nodeLst = doc.getElementsByTagName(categories);
for (int i = 0; i  nodeLst.getLength(); i++)
{
  Node currentNode = nodeLst.item(i);
  ...
}

You should do it in an AsyncTask or Runnable.

Regards,

On Aug 1, 9:29 am, Hari hariluv...@gmail.com wrote:
 Plz, Anyone can please help me with parsing an XML String in
 Android???

 Here is the Xml file which has to be accepted as a string and display
 the contents of this xml code??

 ?xml version='1.0' encoding='iso-8859-1'?
 categories
 category id=1
 nameReal Estate/name
 /category
 category id=2
 nameHospitals/name
 /category
 category id=3
 nameGifts/name
 /category
 category id=4
 nameDomestic Help/name
 /category
 /categories

 Plz help me out..
 I'm extremely new to ANdroid development...

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

2011-08-01 Thread Julius Spencer
Hi,

I can't figure out how to use this if I am using a SQLiteDatabase which isn't 
set up as a ContentProvider.  From what I remember there won't be source for 
Honeycomb released anytime soon so I'm not sure how I could use the Loader 
framework to make it work.

Regards,
Julius.


On 31/07/2011, at 11:40 PM, H wrote:

 You simply call getSupportLoaderManager() which you inherit from 
 FragmentActivity.
 
 -- 
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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] Use CursorLoader for SQLiteDatabase?

2011-08-01 Thread Nikolay Elenkov
On Mon, Aug 1, 2011 at 6:13 PM, Julius Spencer jul...@msa.co.nz wrote:
 Hi,

 I can't figure out how to use this if I am using a SQLiteDatabase which isn't 
 set up as a ContentProvider.  From what I remember there won't be source for 
 Honeycomb released anytime soon so I'm not sure how I could use the Loader 
 framework to make it work.


The source code for the compatibility library is available,
that includes the LoaderManager, Loader and AsyncTaskLoader.

To implement your custom DB loader you need to extend
AsyncTaskLoader to load and return whatever data you need.
Look at LoaderCustomSupport for an example of how to do this.

One thing to watch what for is that implementing the
onStartLoading() abstract method only is not enough:
you need to implement at least onStartLoading() to
kick the loading off. Not exactly clear why onStartLoading()
has a default implementation that does nothing, considering
it's required.

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

2011-08-01 Thread Kostya Vasilyev

How about:

Take the source for AsyncQueryHandler

http://developer.android.com/reference/android/content/AsyncQueryHandler.html

... and make modifications to work directly with a SQLiteDatabase object?

You could also look at AsyncTaskLoader, specifically, this example which 
doesn't use a ContentProvider, and adapt it to using a database:


http://developer.android.com/reference/android/content/AsyncTaskLoader.html

-- Kostya

01.08.2011 13:13, Julius Spencer пишет:

Hi,

I can't figure out how to use this if I am using a SQLiteDatabase which isn't 
set up as a ContentProvider.  From what I remember there won't be source for 
Honeycomb released anytime soon so I'm not sure how I could use the Loader 
framework to make it work.

Regards,
Julius.


--
Kostya Vasilyev

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

2011-08-01 Thread jjoe64
For me it's unclear how to test my activity. My Activity works together with 
my ContentProvider.

To test the functionality, I need to restore for every test a test scenario 
(fixtures) on my SQLite database.
At the moment I'm doing this so:

*MainActivityTest#setUp*:
contentResolver = getInstrumentation().getContext().getContentResolver();
contentResolver.insert(MyContentProvider.CONTENT_URI__FIXTURES, new 
ContentValues());

*MyContentProvider#insert:
* if (arg0.equals(CONTENT_URI__FIXTURES)) {
// reset database
dbHelper.onUpgrade(localDB, 0, 0);
DatabaseFixtures.insert(localDB);
localDB.close();
onCreate();
}


But it seem that this is not the right way, because the tests are very 
unstable. I often get errors like java.lang.IllegalStateException: database 
not open.

How do you test your activities that communicate with a content provider?

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

2011-08-01 Thread Antony K
you can follow this books

http://android-codes-examples.blogspot.com/2011/04/android-books-you-can-download-android.html


On Sat, Jul 30, 2011 at 9:34 PM, Yashwant kumar
kumar.eryashw...@gmail.comwrote:

 Hello there,

 I am learning android. Please give some online links and please give some
 practice application on android development.

 thanks in advance.


 Regards
 Yashwant

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

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

Re: [android-developers] Android Application materials

2011-08-01 Thread Wenhua Li
Absolutely, ANDROID developer guide and the official site are good choices,
and of course this group.

On Sun, Jul 31, 2011 at 12:04 AM, Yashwant kumar kumar.eryashw...@gmail.com
 wrote:

 Hello there,

 I am learning android. Please give some online links and please give some
 practice application on android development.

 thanks in advance.


 Regards
 Yashwant

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

  1   2   3   >