[android-developers] Re: Starting An Android App From An Url

2011-03-24 Thread perumal316
Hi Hackborn,

For the example you have specified what will be the URL be?

Is it something like market://?

Regards,
Perumal

On Mar 25, 1:46 pm, Dianne Hackborn  wrote:
> Yes, for example here is the declaration in the activity of Market that
> handles the user clicking on an Android Market URI link:
>
>         
>             
>                 
>                 
>                  />
>
>                                      android:host="market.android.com" android:pathPrefix=
> "/details" />
>                                      android:host="market.android.com" android:pathPrefix=
> "/apps" />
>                                      android:host="market.android.com" android:pathPrefix=
> "/search" />
>
>                                      android:host="market.android.com" android:pathPrefix=
> "/details" />
>                                      android:host="market.android.com" android:pathPrefix=
> "/apps" />
>                                      android:host="market.android.com" android:pathPrefix=
> "/search" />
>
>             
>         
>
>
>
> On Thu, Mar 24, 2011 at 8:23 PM, Syner  wrote:
> > is there a way to add a 'custom url scheme' to an Android app that
> > when a user goes to a certain http:// url in the web browser it will
> > open the app?
>
> > i need functionality that is the same as this on Android.
>
> >http://iphonedevelopertips.com/cocoa/launching-your-own-application-v...
>
> > Any ideas?
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en
>
> --
> Dianne Hackborn
> Android framework engineer
> hack...@android.com
>
> Note: please don't send private questions to me, as I don't have time to
> provide private support, and so won't reply to such e-mails.  All such
> questions should be posted on public forums, where I and others can see and
> answer them.

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


Re: [android-developers] Widget and Changing Orientation

2011-03-24 Thread Justin Anderson
Create a new layout that looks better in landscape mode...  You can have
separate layouts for both portrait and landscape

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


On Thu, Mar 24, 2011 at 7:47 PM, Jake Colman  wrote:

>
> My app is designed to use a 2x1 widget in Portrait mode.  When the phone
> is switched to landscape mode, that same 2x1 widget looks pretty bad: it
> becomes wide and short so that the two lines of text overlap one
> another.
>
> What is the basic approach one is supposed to take for this situation?
> Some big picture pointers would be helpful to point me to an approach on
> how this situation is usually handled.
>
> Thanks.
>
> --
> Jake Colman -- Android Tinkerer
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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: How do i upload the file from android mobile to public server

2011-03-24 Thread snehalal gangadharam
Thanks for your valuable reply,

i have to develop speed test application in andorid. i have developed
upload application in java , i can upload the file from java to public
server, when i put that application to android , it is not working , i
will attach the upload code and log. kinldy guid me how do i proceed.
Idea behind this application is to find upload speed , download speed
and roundtrip time calculation.now i am trying to upload the file from
android to public server and then i will find the speed .

Thanks in advance


source code

package com.example.uplaod;

import java.io.BufferedInputStream;
import java.io.BufferedOutputStream;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.MalformedURLException;
import java.net.URL;
import java.net.URLConnection;

import android.app.Activity;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.TextView;

public class MyUpload extends Activity {
private Button mbutt;
public static String ftpServer= "upload.easy-share.com:21";
public static String user ="aswini";
public static String password ="sairom143";
public static String fileName ="abc";
//public static String localpath ="/mnt/sdcard/sample.txt";
File source =new File("/mnt/sdcard/sample.txt");
int bytesIn=0;
OutputStream outstream=null;
BufferedReader /*InputStream*/instream=null;
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
 mbutt =(Button) findViewById(R.id.button1);
// (TextView) findViewById(R.id.textView1);
 mbutt.setOnClickListener(new OnClickListener() {

@Override
public void onClick(View v) {
// TODO Auto-generated method stub
upload(  ftpServer,  user,  password,
  fileName, source );

}

private void upload(String ftpServer, String user, 
String password,
String fileName, File source) {
// TODO Auto-generated method stub
if (ftpServer != null && fileName != null && 
source != null)
  {
 StringBuffer sb = new StringBuffer( "ftp://"; );
 // check for authentication else assume its 
anonymous
access.
 if (user != null && password != null)
 {
sb.append( user );
sb.append( ':' );
sb.append( password );
sb.append( '@' );
 }
 sb.append( ftpServer );
 sb.append( '/' );
 sb.append( fileName );
 /*
  * type ==> a=ASCII mode, i=image (binary) 
mode, d= file
directory
  * listing
  */
 sb.append( ";type=i" );

 BufferedInputStream bis = null;
 BufferedOutputStream bos = null;

 try
 {
URL url = null;
try {
url = new URL( 
sb.toString() );
} catch (MalformedURLException 
e) {
// TODO Auto-generated 
catch block
e.printStackTrace();
}
URLConnection urlc = null;

try {

urlc = 
url.openConnection();
if(urlc == null)
{
System.out.println( "URL didnt 
open" );
return ;
}
} catch (IOException e) {

[android-developers] eclipse/sdk combo crash

2011-03-24 Thread Keith Wiley
If I right-click the res folder of a project, I can create a menu
folder.  If I right click that folder and try to create a menu.xml
file, eclipse hangs.  I have to force quit it.  After relaunching
eclipse, menu.xml is there.  I've seen this behavior on two different
computers now.  If I then try to open the empty menu.xml to edit it,
on one computer eclipse hangs again, although on the other it opens
and I can then edit the file.

I'm running eclipse Helios and the very latest Android SDK 3.0.  Both
computers are running Snow Leopard although one is a core 2 duo
(macbook) and the other is an i7 (macbook pro).

Anyone else run into this?

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


Re: [android-developers] startActivity from a Fragment doesn

2011-03-24 Thread Dianne Hackborn
There is nothing special about calling this from a fragment; all it is doing
is calling the containing activity's startActivity().

If you say the logcat is showing the first activity being started again,
then most likely you are calling startActivity() somewhere and causing that.

On Thu, Mar 24, 2011 at 7:11 PM, jotobjects  wrote:

> startActivity from a fragment starts the Activity and then returns
> immediately.  It executes the onCreate in the new Activity but never
> brings it to the front.
>
> Has anyone seen this behavior?
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



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

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

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

Re: [android-developers] Starting An Android App From An Url

2011-03-24 Thread Dianne Hackborn
Yes, for example here is the declaration in the activity of Market that
handles the user clicking on an Android Market URI link:



















On Thu, Mar 24, 2011 at 8:23 PM, Syner  wrote:

> is there a way to add a 'custom url scheme' to an Android app that
> when a user goes to a certain http:// url in the web browser it will
> open the app?
>
> i need functionality that is the same as this on Android.
>
> http://iphonedevelopertips.com/cocoa/launching-your-own-application-via-a-custom-url-scheme.html
>
> Any ideas?
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



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

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

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

Re: [android-developers] Assets directory

2011-03-24 Thread Dianne Hackborn
No they remain in the .apk, and you must use the AssetManager APIs to access
them.

On Thu, Mar 24, 2011 at 9:55 PM, Demetris  wrote:

>
> Does Android expand the apk files into a filesystem structure? If yes
> where?
> I don't seem to find much in /data/data/ (package name
> as defined in the AndroidManifest.mf.
>
> 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
>



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

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

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

[android-developers] Re: Music for background

2011-03-24 Thread Nightwolf
http://developer.android.com/intl/de/guide/topics/media/index.html

Playing from a Raw Resource

 MediaPlayer mp = MediaPlayer.create(context, R.raw.sound_file_1);
 mp.start();

On Mar 24, 12:42 pm, Nikolay Yanev  wrote:
> How can I set mp3 for background music in my 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] Assets directory

2011-03-24 Thread Demetris


Does Android expand the apk files into a filesystem structure? If yes where?
I don't seem to find much in /data/data/ (package name
as defined in the AndroidManifest.mf.

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: ActionBar problems

2011-03-24 Thread Zsolt Vasvari
Good to know, thanks!

On Mar 25, 11:24 am, Jake Wharton  wrote:
> Going to throw a shameless plug...
>
> If you're looking to implement the action bar design pattern on all
> platforms in your app I have written a library which automatically abstracts
> and marshalls interactions to either the native ActionBar on 3.0+ or a
> custom third-party control on pre-3.0. You can find it 
> athttps://github.com/JakeWharton/ActionBarSherlock/.
>
> If you only want the ActionBar on 3.0+, simple omit passing in a custom
> handler and your applications layout will be shown untouched on pre-3.0
> devices.
>
> There are a few samples as well as a good bit of documentation. Let me know
> how you fare if you choose to use 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] Re: ActionBar problems

2011-03-24 Thread Jake Wharton
Going to throw a shameless plug...

If you're looking to implement the action bar design pattern on all 
platforms in your app I have written a library which automatically abstracts 
and marshalls interactions to either the native ActionBar on 3.0+ or a 
custom third-party control on pre-3.0. You can find it at 
https://github.com/JakeWharton/ActionBarSherlock/.

If you only want the ActionBar on 3.0+, simple omit passing in a custom 
handler and your applications layout will be shown untouched on pre-3.0 
devices.

There are a few samples as well as a good bit of documentation. Let me know 
how you fare if you choose to use 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] Starting An Android App From An Url

2011-03-24 Thread Syner
is there a way to add a 'custom url scheme' to an Android app that
when a user goes to a certain http:// url in the web browser it will
open the app?

i need functionality that is the same as this on Android.
http://iphonedevelopertips.com/cocoa/launching-your-own-application-via-a-custom-url-scheme.html

Any ideas?

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


[android-developers] Re: Developers Phone Program

2011-03-24 Thread Kevin TeslaCoil Software
I root all my phones. Root lets you access your app's data directory,
which is handy for viewing/editing a database or shared preferences
file.

But I don't run custom roms (Unless I'm actually tested something
related to that rom). Custom roms definitely can lead to ridiculous
problems.

I've gotten several phones from craigslist and ebay. Popular phones
can be much cheaper there and you don't need to deal with contracts or
activation fees or anything.

-Kevin


On Mar 24, 3:31 am, String  wrote:
> I've had enough irreproducible bug reports from users of rooted phones that
> I would *never* consider rooting a primary development device. For my money,
> it's got to be completely stock Android, and as close to vanilla (i.e., no
> funky manufacturer skins) as possible.
>
> String

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

2011-03-24 Thread jotobjects
More information -

- there are no errors in the logcat log
- the logcat shows ActivityManager starting the new Activity and then
immediately start the first Activity again.

On Mar 24, 7:11 pm, jotobjects  wrote:
> startActivity from a fragment starts the Activity and then returns
> immediately.  It executes the onCreate in the new Activity but never
> brings it to the front.
>
> Has anyone seen this behavior?

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

2011-03-24 Thread TreKing
On Thu, Mar 24, 2011 at 9:14 PM, perumal316  wrote:

> Sorry couldn't find much info regarding this.


Read this:
https://groups.google.com/group/android-developers/browse_thread/thread/4462c79065294680

-
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] Starting an Android App from a Website

2011-03-24 Thread perumal316
Hi All,

Is it possible to start an Android App from a browser. I would like to
create a website that has a button, and whenever the button is pushed,
an android application already previously installed have to start.

Is this possible? In some of the earlier post here, it was mentioned
that Intent can be used for this.

But in my website how to I linked it up to the Android application?
Using Intent or is it Intent Filter to register my app as can be
accessible from a browser? How do I do it?

Sorry couldn't find much info regarding this.

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] startActivity from a Fragment doesn

2011-03-24 Thread jotobjects
startActivity from a fragment starts the Activity and then returns
immediately.  It executes the onCreate in the new Activity but never
brings it to the front.

Has anyone seen this behavior?

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

2011-03-24 Thread TreKing
On Thu, Mar 24, 2011 at 4:42 AM, Nikolay Yanev  wrote:

> How can I set mp3 for background music in my app?


Read the relevant sections in the documentation and / or Google for
examples.

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

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

Re: [android-developers] Frustrating but quite common taking SNAPSHOT problem

2011-03-24 Thread TreKing
On Thu, Mar 24, 2011 at 4:49 AM, mathcat  wrote:

> This mechanism is so frustrating, how to handle such situation??


Sounds you're already doing it with onSaveInstanceState. If you have
Singletons, the whole point behind them is they are initialized on access if
they're not already. If you need to do some kind of set up on them, do lazy
initialization, where you always check if it's valid and initialize if
necessary.

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

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

Re: [android-developers] what`s the difference between inflate and reference directly

2011-03-24 Thread TreKing
On Wed, Mar 23, 2011 at 9:09 PM, asdf  wrote:

> for example,i want to get a view object in java file.there are
> two ways:inflate view and R.id.view.what`t the difference between
> them.and when to use them. thanks


Read the documentation - this is fairly thoroughly covered.

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

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

Re: [android-developers] Re: Triggering a Force Close to Test the Handling

2011-03-24 Thread TreKing
On Thu, Mar 24, 2011 at 8:33 PM, Jake Colman  wrote:

> Does any of this make any sense?


Not really. There are ways to debug ANRs, but I haven't looked into. There's
some file with the dump in it. Search this group, Dianne's mentioned it a
few times.

-
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] Widget and Changing Orientation

2011-03-24 Thread Jake Colman

My app is designed to use a 2x1 widget in Portrait mode.  When the phone
is switched to landscape mode, that same 2x1 widget looks pretty bad: it
becomes wide and short so that the two lines of text overlap one
another.

What is the basic approach one is supposed to take for this situation?
Some big picture pointers would be helpful to point me to an approach on
how this situation is usually handled.

Thanks.

-- 
Jake Colman -- Android Tinkerer

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

2011-03-24 Thread Jake Colman
> "T" == TreKing   writes:

   T> On Thu, Mar 24, 2011 at 5:16 PM, Jake Colman 
   T> wrote:
   >> But if I try something else such as divide by zero, and accessing a null
   >> object, I get a force close due to activity not responding.
   >> 

   T> That don't make much sense.

   T> What determines whether Android thinks I crashed via a thrown
   T> exeception or
   >> not responding because of divide by zero?

   T> Crashing is caused by exceptions. Not responding ("ANR") is caused
   T> by locking up the main UI thread. You're not stuck on a break
   T> point in the debugger are you?

No, I am not.

My application is composed of a broadcast receiver (an appwidget), a
service that does most of the work, an activity that is displayed when
the widget is tapped, and a preference activity that is displayed from a
menu on the first activity and is also the configuration activity.

I tried my divide by zero failure in the broadcast receiver and in the
preference activity.  In both cases I get ANR.

Does any of this make any sense?

-- 
Jake Colman -- Android Tinkerer

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

2011-03-24 Thread Nathan


On Mar 24, 2:50 pm, String  wrote:
> Well, correct me if I'm wrong, but you kind of need to trust your beta 
> testers anyway, no? If they "run off" with your $0.99, that's probably a good 
> - and cheap, actually - indication that they shouldn't be in your beta group.
>

Not every app is .99. But I think we pretty much agree about the
trust.

(So, are your beta testers ones that you've known since childhood?)

If this is after the fact, it's no problem sending them a reward after
they've been loyal beta testers. If what they did is worth $X dollars,
then whether they spend that on your app is their business.

Maybe you wouldn't want to setup a web page where you fill out a form
and it spits out a certificate, though. Also, I don't think you should
send out the codes.

Likewise, I wouldn't send it to 1000 people just to see who turns out
to be trustworthy.

I'm not talking from experience here. I haven't offered *anything* to
my beta testers. They get involved if they want to genuinely improve
the product.

Where I might use the idea is for nonprofit groups that want to use my
app, reviewers, or people who are influential at certain retail
outlets. They may not actually use it, but it's an advertising
expense.

Once you want to give it away to thousands of people, though, you
might consider whether there is a better use for $300-1000 in
advertising costs.

So anyway, String, your idea is awesome, despite these nitpicky
limitations. I may try it.

Nathan

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


[android-developers] Re: ActionBar problems

2011-03-24 Thread Zsolt Vasvari
Here's my class that accesses 3.0 related functionality.  This is for
the invalidateOptionsMenu API which is now needed on 3.0 to update the
Action Bar properly:

public class SDKLevel11Bridge
{
private static final SDKLevel11Interface intf;


private interface SDKLevel11Interface
{
void invalidateOptionsMenu(Activity activity);
}


private static class SDKLevel11Interface4 implements
SDKLevel11Interface
{
SDKLevel11Interface4()
{
// Default constructor
}


@Override
public void invalidateOptionsMenu(Activity activity)
{
// Nothing
}
}


private static class SDKLevel11Interface11 implements
SDKLevel11Interface
{
SDKLevel11Interface11()
{
// Default constructor
}


@Override
public void invalidateOptionsMenu(Activity activity)
{
activity.invalidateOptionsMenu();
}
}


// Can't instantiate this class
private SDKLevel11Bridge()
{
// Nothing to do
}


static
{
if (SDKLevelUtil.isAtLeastLevel11())
intf = new SDKLevel11Interface11();
else
intf = new SDKLevel11Interface4();
}


public static void invalidateOptionsMenu(Activity activity)
{
intf.invalidateOptionsMenu(activity);
}
}


And the when I need to call the 3.0 API, I just do a:

SDKLevel11Bridge.invalidateOptionsMenu(this);   // "this" is the
current Activity


On Mar 25, 6:24 am, Brion Emde  wrote:
> Hi All,
>
> We're trying to use ActionBars on Honeycomb and stay backward
> compatible with earlier code. Everything seemed to be fine when we
> just used the default behaviors, like the upgrade of options menus to
> show in the action bar as Actions.
>
> But then the requirements got broader and they wanted us to start
> styling the action bar, setting its background, adding the "go to
> home" indicator to the icon and other things and we lost our backwards
> compatibility.
>
> I've been trying to figure it out and saw this paragaph in the "using
> action bars" document:
>
> ---
>
> In this example, the application requires a minimum version of API
> Level 4 (Android 1.6), but it also targets API Level 11 (Android 3.0).
> This way, when the application is installed on a device running
> Android 3.0 or greater, the system applies the holographic theme to
> each activity, and thus, each activity includes the Action Bar.
>
> However, if you want to use Action Bar APIs, such as to add tabs or
> modify Action Bar styles, you need to set the android:minSdkVersion to
> "11", so you can access the ActionBar class.
>
> ---
>
> This seems to say that if we want to talk to the ActionBar directly,
> i.e. use the Action Bar API, that we have to set our minSdkVerion="11"
> in the manifest.
>
> I'm having an argument with my boss, who thinks that since it "works"
> on Honeycomb, that the above excerpt does not apply to us. But I point
> out that when I comment out the code that tries to talk to the action
> bar directly, then I don't get Verify Errors on pre-Honeycomb devices.
> Everything used to work fine before we started trying to talk to the
> Action Bar directly.
>
> So, does that section, specifically the second paragraph that starts
> with "However", which seems to modify the paragraph before it, really
> apply? If so, why can we talk to the ActionBar on Honeycomb devices,
> despite our minSdkVersion="8".
>
> Our access to the action bar is wrapped in a wrapper class, as
> described in the "backwards compatilibility" article.
>
> Thanks!!

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


Re: [android-developers] is it possible to disable the home key for an activity?

2011-03-24 Thread Ahsanul Karim
Thanks.. that explains a lot..

On Fri, Mar 25, 2011 at 6:32 AM, Mark Murphy  wrote:
> On Thu, Mar 24, 2011 at 8:15 PM, Ahsanul Karim  
> wrote:
>> Please check the Toddler Lock application. They can disable the Home key.
>
> No, "they" don't. It is a home screen app. It replaces the regular home 
> screen.
>
>> I am trying with a BroadcastReceiver.
>
> Which has nothing whatsoever to do with HOME buttons.
>
> --
> Mark Murphy (a Commons Guy)
> http://commonsware.com | http://github.com/commonsguy
> http://commonsware.com/blog | http://twitter.com/commonsguy
>
> _The Busy Coder's Guide to Android Development_ Version 3.5 Available!
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en



-- 
Ahsanul Karim Romel
phone:+8801731541394

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] is it possible to disable the home key for an activity?

2011-03-24 Thread Mark Murphy
On Thu, Mar 24, 2011 at 8:15 PM, Ahsanul Karim  wrote:
> Please check the Toddler Lock application. They can disable the Home key.

No, "they" don't. It is a home screen app. It replaces the regular home screen.

> I am trying with a BroadcastReceiver.

Which has nothing whatsoever to do with HOME buttons.

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

_The Busy Coder's Guide to Android Development_ Version 3.5 Available!

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


Re: [android-developers] PACKAGE_USAGE_STATS exception

2011-03-24 Thread Dianne Hackborn
It's also a private API so you don't even know if it will exist in the form
you are using on any particular device you run on.

On Thu, Mar 24, 2011 at 3:54 PM, Justin Anderson wrote:

> *> When I searched for the reason in forums, some said it is restricted
> > permission. Can anyone please help me out with this issue. *
>
> If it is a restricted permission then you cannot use it... hence the word
> "restricted."
>
> Thanks,
> Justin Anderson
> MagouyaWare Developer
> http://sites.google.com/site/magouyaware
>
>
>
> On Thu, Mar 24, 2011 at 3:31 PM, Sarath Krishna  > wrote:
>
>> Hello everyone,
>>
>> when I try to call getAllPkgUsageStats(); function of IUsageStats
>> package I get this exception.
>>
>> ERROR/AndroidRuntime(7413): java.lang.RuntimeException: Unable to
>> create service org.gps.CPUusage: java.lang.SecurityException: Neither
>> user 10081 nor current process has
>> android.permission.PACKAGE_USAGE_STATS.
>>
>> But, I have included PACKAGE_USAGE_STATS permission in my manifest
>> file.
>>
>> When I searched for the reason in forums, some said it is restricted
>> permission. Can anyone please help me out with this issue. Thanks in
>> advance
>>
>> thanks,
>> sarath
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, 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
>



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

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

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

Re: [android-developers] is it possible to disable the home key for an activity?

2011-03-24 Thread Ahsanul Karim
Please check the Toddler Lock application. They can disable the Home key.
Check this out https://market.android.com/details?id=marcone.toddlerlock

Whenever Home key pressed the intent is:
Intent {
act=android.intent.action.MAIN
cat=[android.intent.category.HOME
flg=0x1020
cmp=com.android.launcher/.Launcher
}

For the Toddler Lock app
Logcat shows:
Intent {
act=android.intent.action.MAIN
cat=[android.intent.category.HOME
flg=0x1020
cmp=marcone.toddlerlock/.LockScreen
}

I am trying with a BroadcastReceiver. But I think the Intent priority
to register the receiver doesn't allow to set priority more than the
Launcher. I might be wrong. But as they did it (although the app
doesn't work in Samsung devices) it is feasible of course.

I am guessing there is some missing link.

Please share your ideas.


On Tue, Mar 1, 2011 at 2:46 AM, Justin Anderson  wrote:
> That could cause major problems... The home key is supposed to be the user's
> safe way to get back to a stable state.  If you could disable the home key
> then an app could wreak havoc that would require you to reboot your phone to
> get to a stable state.
>
> On Mon, Feb 28, 2011 at 1:36 PM, TreKing  wrote:
>>
>> On Mon, Feb 28, 2011 at 2:34 PM, Aruna Shidling 
>> wrote:
>>>
>>> Is it possible to disable the Home key for an activity which shows alert
>>> dialog ?
>>
>> No, you can't intercept the Home Key.
>>
>>
>> -
>> TreKing - Chicago transit tracking app for Android-powered devices
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en



-- 
Ahsanul Karim Romel
phone:+8801731541394

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

2011-03-24 Thread jotobjects
All the examples of replace() have one Fragment inside one
FrameLayout.  This arrangement of one Container ViewGroup per Fragment
seems to be necessary for dynamically replacing Fragments.

On Mar 24, 4:32 pm, jotobjects  wrote:
> We did switch to using FrameLayout for other reasons (have not tried
> replace() with that yet).  LinearLayout works if you want to add and
> remove the last View in the LinearLayout.
>
> FragmentTransaction.replace() is used in samples in these files -
> - FragmentsStack.java
> - Fragments.Layout.java
> - FragmentPreferences.java
>
> Thanks for the tips
>
> On Mar 23, 6:35 pm, King Sun  wrote:
>
>
>
> > Try to use framelayout...
>
> > 2011/3/24 jotobjects 
>
> > > Having a bit of a go with Fragments and hitting a snag.  My layout
> > > looks like this.  The objective is to add a Fragment to the
> > > LinearLayout.
>
> > > http://schemas.android.com/apk/res/
> > > android"
> > >    android:id="@+id/foobar"
> > >    android:layout_width="fill_parent"
> > >    android:layout_height="wrap_content"
> > >    android:orientation="vertical"
> > > />
>
> > > First I do this - which works fine to add and display the Fragment
> > > into the layout container
>
> > > Fragment f1 = new FragmentOne();
> > > fragmentManager.beginTransaction().add(R.id.foobar, f1,
> > > "ABC").commit();
>
> > > later on I want to replace that Fragment with a different one so I do
> > > this -
>
> > > Fragment f2 = new FragmentTwo();
> > > fragmentManager.beginTransaction().replace(R.id.foobar, f2,
> > > "DEF").commit();
>
> > > But Fragment f1 is still there in the View. What part of this is am I
> > > doing incorrectly?
>
> > > --
> > > You received this message because you are subscribed to the Google
> > > Groups "Android Developers" group.
> > > To post to this group, send email to android-developers@googlegroups.com
> > > To unsubscribe from this group, 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: replacing a fragments not working

2011-03-24 Thread jotobjects
We did switch to using FrameLayout for other reasons (have not tried
replace() with that yet).  LinearLayout works if you want to add and
remove the last View in the LinearLayout.

FragmentTransaction.replace() is used in samples in these files -
- FragmentsStack.java
- Fragments.Layout.java
- FragmentPreferences.java

Thanks for the tips


On Mar 23, 6:35 pm, King Sun  wrote:
> Try to use framelayout...
>
> 2011/3/24 jotobjects 
>
>
>
> > Having a bit of a go with Fragments and hitting a snag.  My layout
> > looks like this.  The objective is to add a Fragment to the
> > LinearLayout.
>
> > http://schemas.android.com/apk/res/
> > android"
> >    android:id="@+id/foobar"
> >    android:layout_width="fill_parent"
> >    android:layout_height="wrap_content"
> >    android:orientation="vertical"
> > />
>
> > First I do this - which works fine to add and display the Fragment
> > into the layout container
>
> > Fragment f1 = new FragmentOne();
> > fragmentManager.beginTransaction().add(R.id.foobar, f1,
> > "ABC").commit();
>
> > later on I want to replace that Fragment with a different one so I do
> > this -
>
> > Fragment f2 = new FragmentTwo();
> > fragmentManager.beginTransaction().replace(R.id.foobar, f2,
> > "DEF").commit();
>
> > But Fragment f1 is still there in the View. What part of this is am I
> > doing incorrectly?
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, 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: Amazon Appmarket is now open!

2011-03-24 Thread Michael A.
On Mar 24, 9:34 pm, Justin Anderson  wrote:
> The main things people are complaining about are that the descriptions get
> edited and they essential have full control over price.

Personally, I rather prefer their descriptions of my apps to their
own. I can understand why one would get annoyed if the descriptions
started getting misleading, but there is no questions that they have
some good writers working on this.

As for their control of pricing, I am taking a wait and see approach
to this. Early on in the process, I had a sales rep from Amazon call
me trans-atlantic in order to resolve some of the issues I had with
their store (now THAT is what I call developer support); so I got the
full argument/spiel for their approach on the appstore. Essentially
what I felt the argument boiled down to is: Amazon knows how to sell
stuff (which involves things like handling pricing). You know how to
develop stuff. Let us each focus on our core competence.

To me, that is a rational and sound argument - assuming both sides are
interested in a win-win solution. I know I am no salesman. Any
opportunity also carries risks, and in this case I see no problem with
giving Amazon the chance to prove their ideas (and if I don't feel the
results are worth it, I'll simply pull my apps from their store in
future).

That being said, there are many issues with their market still; the
releasing process has been mentioned (~2 weeks for approval is really
too long) and there are lots of other niggling issues (large and
small). The difference here is that if you send in some feedback/
questions/issues, you will in fact actually receive a non-automated
reply (at least that has been the case for me so far). The fact that
they actually appear to listen, gives me hope that many of these
issues will eventually get fixed and resolved.

In terms of adjusting the app for the market, it worked out fairly
easy for me simply by developing the core app as an Android library
and then building the market specific parts into separate projects.
Your mileage will vary, of course.

Regards,

Michael A.

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

2011-03-24 Thread Mark Murphy
On Thu, Mar 24, 2011 at 6:24 PM, Brion Emde  wrote:
> In this example, the application requires a minimum version of API
> Level 4 (Android 1.6), but it also targets API Level 11 (Android 3.0).
> This way, when the application is installed on a device running
> Android 3.0 or greater, the system applies the holographic theme to
> each activity, and thus, each activity includes the Action Bar.
>
> However, if you want to use Action Bar APIs, such as to add tabs or
> modify Action Bar styles, you need to set the android:minSdkVersion to
> "11", so you can access the ActionBar class.

Generally speaking, this is incorrect, AFAICT. The action bar is no
different than anything else in Android.

> I'm having an argument with my boss, who thinks that since it "works"
> on Honeycomb, that the above excerpt does not apply to us. But I point
> out that when I comment out the code that tries to talk to the action
> bar directly, then I don't get Verify Errors on pre-Honeycomb devices.
> Everything used to work fine before we started trying to talk to the
> Action Bar directly.

Perhaps you need to try another backwards-compatibility approach. Here
is a sample project that uses getActionView() -- an HC-only action
bar-related method -- successfully on HC and works correctly on
earlier Android versions:

https://github.com/commonsguy/cw-android/tree/master/Menus/ActionBarBC

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

_The Busy Coder's Guide to Android Development_ Version 3.5 Available!

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


Re: [android-developers] PACKAGE_USAGE_STATS exception

2011-03-24 Thread Justin Anderson
*> When I searched for the reason in forums, some said it is restricted
> permission. Can anyone please help me out with this issue. *

If it is a restricted permission then you cannot use it... hence the word
"restricted."

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


On Thu, Mar 24, 2011 at 3:31 PM, Sarath Krishna
wrote:

> Hello everyone,
>
> when I try to call getAllPkgUsageStats(); function of IUsageStats
> package I get this exception.
>
> ERROR/AndroidRuntime(7413): java.lang.RuntimeException: Unable to
> create service org.gps.CPUusage: java.lang.SecurityException: Neither
> user 10081 nor current process has
> android.permission.PACKAGE_USAGE_STATS.
>
> But, I have included PACKAGE_USAGE_STATS permission in my manifest
> file.
>
> When I searched for the reason in forums, some said it is restricted
> permission. Can anyone please help me out with this issue. Thanks in
> advance
>
> thanks,
> sarath
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

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

Re: [android-developers] Re: Gift certificate or something like that

2011-03-24 Thread Justin Anderson
*> Either way you're out $0.99, either directly or through the lack of a
sale.*

I want to reward my beta testers.  But I'm a single developer without a lot
of resources...  If I get a lot of beta testers there can be a fairly large
difference between giving them the app for free and actually buying a gift
certificate so they can buy it.  As another poster mentioned, Amazon takes
their cut so you are at least out that much... and that can add up pretty
quick, especially if you have an app that is more than $0.99.  (I don't
right now... just saying it can make a difference and is not the same thing)

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


On Thu, Mar 24, 2011 at 3:50 PM, String wrote:

> Well, correct me if I'm wrong, but you kind of need to trust your beta
> testers anyway, no? If they "run off" with your $0.99, that's probably a
> good - and cheap, actually - indication that they shouldn't be in your beta
> group.
>
> String
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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: Beta Tester Infrastructure Project

2011-03-24 Thread Open
Getting back to this after a few weeks of other Android work.

The form includes the question:
Would you be willing to pay for this service? Yes/No
No, indicates you would not be willing to pay for the service and
would only use it if it were free.

I updated the third question:
How much would you be willing to pay per app?
To include options of $0, <$1, etc., etc.

Seems like there isn't a ton of interest though.  Other devs must have
their own methods for beta testing (or don't beta at all).


On Feb 22, 11:12 pm, metal mikey  wrote:
> It would be super handy, but before I enter anything into that form
> I'd like to be provided the option of 'not paying' and 'paying less
> than $1'. You should add an option to the 'Would you pay' input for
> '$0' and change (fix) the option for '> $1' to '< $1'
>
> On Feb 23, 10:02 am, Open  wrote:
>
>
>
>
>
>
>
> > Over the course of the last year or so I created a beta tester
> > infrastructure to help me test my new paid apps in the Android
> > market.
>
> > The infrastructure allows me to provision a list of beta users for an
> > app and provides beta test codes for them to use.  I add a small jar
> > to my project and a single line of code to launch the beta login
> > activity.
>
> > I'm trying to decide whether it makes sense for me to expand the
> > infrastructure so that other developers can use it too.  If you're
> > interested click through to a Google form I set up and leave your
> > email address.
>
> > P.S. I'm not a spammer, but feel free to leave a throwaway address if
> > you're not convinced.
>
> >http://bit.ly/hwXnNF

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

2011-03-24 Thread Justin Anderson
*> Class2 c2 = new Class2(); *

Woops... didn't notice that line.

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


On Thu, Mar 24, 2011 at 3:15 PM, TreKing  wrote:

> Class2 c2 = new Class2();
>
>

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

2011-03-24 Thread Indicator Veritatis
Your argument would be more compelling if you could spell the name of
the market you mention correctly: it is "SlideMe.com", not
"SlimeMe.com"!

Though I have to say: that latter would make a good name for a website
with a rather different purpose, such as spreading slimey accusations
of people...

On Mar 24, 2:03 am, Krischik Martin  wrote:
> On 24 Mrz., 09:21, String  wrote:
>
> > On Thursday, March 24, 2011 6:29:51 AM UTC, Krischik Martin wrote:
>
> > Which Hooray? Open to US only and with condition which turn
>
> > > independent developers into serf. Thanks, but no thanks.
>
> > If you don't like it, you don't have to list your apps there.
>
> Indeed I have not. And I am not alone.
>
> Note: My Apps are available in all shops mentioned below but Amazon.
>
> > That's the big
> > "hooray" IMHO: *choice*. There's now a credible alternative to the Android
> > Market, and that's a good thing.
>
> Well, this has made me have a look on how credible the alternative we
> already had for month? More apps? No Amazon is middle field here:
>
> Google: 150'000 Android Apps
> SlimeME: 7'600 Android Apps
> pdassi: 4'000 Android Apps
> Amanzon; 3'700 Android Apps
> Handango: 3'100 Android Apps
>
> Better conditions? For the Buyer: yes. For the Seller: No - the most
> horrible condition of them all.
>
> Larger reach? At the moment it is US only for Buyer. And the payment
> conditions for outside US Seller are plain horrible.
>
> I don't see any advantage apart from the Amazon brand itself. Do 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: Amazon Appmarket is now open!

2011-03-24 Thread Indicator Veritatis
Now that I have seen this complaint, I feel the need to treat with
greater skepticism ANY claim that any of the markets are "treating
developers as serfs".

On Mar 23, 11:29 pm, Krischik Martin 
wrote:
> On 22 Mrz., 11:47, Zsolt Vasvari  wrote:
>
> > I have one word to sum it up as:  Hooray!!
>
> Which Hooray? Open to US only and with condition which turn
> independent developers into serf. Thanks, but no thanks.

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


Re: [android-developers] Re: Triggering a Force Close to Test the Handling

2011-03-24 Thread TreKing
On Thu, Mar 24, 2011 at 5:16 PM, Jake Colman  wrote:

> But if I try something else such as divide by zero, and accessing a null
> object, I get a force close due to activity not responding.
>

That don't make much sense.

What determines whether Android thinks I crashed via a thrown exeception or
> not responding because of divide by zero?


Crashing is caused by exceptions. Not responding ("ANR") is caused by
locking up the main UI thread. You're not stuck on a break point in the
debugger are you?

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

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

[android-developers] Re: Developers Phone Program

2011-03-24 Thread Indicator Veritatis
Or Craigslist?

On Mar 18, 11:57 pm, Justin Anderson  wrote:
> How about eBay?
>
> Thanks,
> Justin Anderson
> MagouyaWare Developerhttp://sites.google.com/site/magouyaware
>
> On Fri, Mar 18, 2011 at 7:24 AM, oldskool73  wrote:
> > >http://android.brightstarcorp.com/index.htm
>
> > That just forwards you to your market page, you then need to click the
> > 'development phones' link at the bottom to view the phones on offer.
>
> > Unfortunately they are both old (G1 & Nexus1) and no cheaper than
> > buying new now, so I'd not recommend this route at all.
>
> > A
>
> > On Mar 18, 11:34 am, String  wrote:
> > >http://android.brightstarcorp.com/index.htm
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, 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: How do i upload the file from android mobile to public server

2011-03-24 Thread Nicholas Johnson
There are several FTP apps that can do just that. Astro file manager can 
create SFTP connections to upload files, or AndFTP... (there's a whole bunch 
if you search for FTP on the Android Market).

If you're talking about uploading a file to a public server from an app 
you're developing, then you can use HTTP POST methods or a custom built FTP 
uploader.

--Nick

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

2011-03-24 Thread Indicator Veritatis
But this should not be necessary: a camera shows up in USB with a
different device type than a disk drive. Or are you saying there is a
bug in Anroid that it fails to check this, and treats a connected USB
device as a disk drive no matter what? I have certainly seen no such
bug in Android 2.2 running on a phone.

Also, see Chris Paget's blog on how to connect a USB keyboard to an
Android Motorola Droid at http://www.tombom.co.uk/blog/?p=124. That
won't solve the problem, but it will give the OP a better idea of the
space he has to work in.

On Mar 23, 5:21 pm, gjs  wrote:
> Hi
> Consider Bluetooth or wifi instead of USB
> Regards
>
> On Mar 23, 8:18 pm, rahul  wrote:
>
> > Hello,
>
> > We need to access the USB port on an andriod tablet(version 3.0).A
> > camera will be connected to the tablet via a usb port and should be
> > able to receive commands of start and stop from the tablet.
>
> > By default the usb is taken as a mass storage device and so we will
> > not be able to have a 2 way communication with the camera.For this
> > reason we need to develop a device driver which will run on the tablet
> > and handle the input  and output communications through the usb
> > port.We will implement the driver in c language.
>
> > We intend to install the driver in the linux kernel.
>
> > We need to know how the usb port is referenced on a tablet so that we
> > implement the same in the c code.Also we need to know how android will
> > need communicate with the driver.
>
> > Please do also mention if there is any other alternative to achieve
> > the same task.
>
> > Regards,
> > Rahul

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

2011-03-24 Thread Brion Emde
Hi All,

We're trying to use ActionBars on Honeycomb and stay backward
compatible with earlier code. Everything seemed to be fine when we
just used the default behaviors, like the upgrade of options menus to
show in the action bar as Actions.

But then the requirements got broader and they wanted us to start
styling the action bar, setting its background, adding the "go to
home" indicator to the icon and other things and we lost our backwards
compatibility.

I've been trying to figure it out and saw this paragaph in the "using
action bars" document:

---

In this example, the application requires a minimum version of API
Level 4 (Android 1.6), but it also targets API Level 11 (Android 3.0).
This way, when the application is installed on a device running
Android 3.0 or greater, the system applies the holographic theme to
each activity, and thus, each activity includes the Action Bar.

However, if you want to use Action Bar APIs, such as to add tabs or
modify Action Bar styles, you need to set the android:minSdkVersion to
"11", so you can access the ActionBar class.

---

This seems to say that if we want to talk to the ActionBar directly,
i.e. use the Action Bar API, that we have to set our minSdkVerion="11"
in the manifest.

I'm having an argument with my boss, who thinks that since it "works"
on Honeycomb, that the above excerpt does not apply to us. But I point
out that when I comment out the code that tries to talk to the action
bar directly, then I don't get Verify Errors on pre-Honeycomb devices.
Everything used to work fine before we started trying to talk to the
Action Bar directly.

So, does that section, specifically the second paragraph that starts
with "However", which seems to modify the paragraph before it, really
apply? If so, why can we talk to the ActionBar on Honeycomb devices,
despite our minSdkVersion="8".

Our access to the action bar is wrapped in a wrapper class, as
described in the "backwards compatilibility" article.

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: Triggering a Force Close to Test the Handling

2011-03-24 Thread Jake Colman
> "MO" == Marcin Orlowski  writes:

   MO> On 24 March 2011 18:03, Jake Colman  wrote:
   >> 
   >> Is there a way for me to trigger a force close so that I test
   >> how/whether my handling of it working as I expect?
   >> 

   MO> divide by zero; try to start non existing activity without using
   MO> try/catch, reach out of array bounds etc

Why are things never easy - at least for me?

I installed ACRA so that I can trap my crashes.  If I throw an exception
it works fine.  But if I try something else such as divide by zero, and
accessing a null object, I get a force close due to activity not
responding.  That form of crash is NOT caught by ACRA.

This not an ACRA question.

What determines whether Android thinks I crashed via a thrown exeception
or not responding because of divide by zero?

-- 
Jake Colman -- Android Tinkerer

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

2011-03-24 Thread TreKing
On Wed, Mar 23, 2011 at 7:55 PM, Bill Lee  wrote:

>  Is there something that I am missing Thanks.
>

That's pretty much how I do it and it works on my device (though actually
not on the emulator for some reason). Have you tried on a device?

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

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

[android-developers] Re: how to use Cache-Control with http get request?

2011-03-24 Thread Indicator Veritatis
The question is also open-ended and poorly phrased. The OP should
review the phrasing and post it in a Java Platform group.

On Mar 23, 8:29 pm, TreKing  wrote:
> hi,
>
> this does not appear to have anything to do with Android.
>
> regards,
> TK
>
> -
> TreKing  - Chicago
> transit tracking app for Android-powered devices

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


Re: [android-developers] Developing app to connect with websites

2011-03-24 Thread TreKing
On Wed, Mar 23, 2011 at 7:24 PM, Wolf85  wrote:

> I would like to know if it is possible to develop an app that connects with
> a website(s)
>

Yes, it's possible. You should probably make sure you're adhering to the
site's terms of service, if there are any, about scraping their data without
permission.

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

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

[android-developers] Re: Gift certificate or something like that

2011-03-24 Thread String
Well, correct me if I'm wrong, but you kind of need to trust your beta testers 
anyway, no? If they "run off" with your $0.99, that's probably a good - and 
cheap, actually - indication that they shouldn't be in your beta group. 

String 

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

2011-03-24 Thread Antony BODY
Oh nice.

Apparatly it's working!!
If I well understood, I just needed to force the visibility of the
ImageView, otherwise it's set visible in the xml layout.

It's good to know ;-)

Thanks Nadeem

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

2011-03-24 Thread TreKing
On Thu, Mar 24, 2011 at 2:25 AM, t22  wrote:

> Why can't i add  Intent.ACTION_CALL_BUTTON action to intent
> filter registered with BR (in manifest)?
>

If you do this http://lmgtfy.com/?q=ACTION_CALL_BUTTON, you will find this:
http://stackoverflow.com/questions/1760107/listen-to-hardware-button-click-event-in-android

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

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

Re: [android-developers] Re: Gift certificate or something like that

2011-03-24 Thread rich friedel
Actually that scenario is just like above... no matter how you do it 
Amazon(just like Google) will take their cut and you(the dev) will still absorb 
the cost.

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

2011-03-24 Thread Nathan


On Mar 24, 1:41 pm, String  wrote:
> It doesn't solve the 30% problem, but otherwise, it seems to me that there's 
> a simple solution on Amazon: gift certificates. Buy them for your beta 
> testers (or whoever), and they can buy your app with it.
>
> Is there some obvious flaw to this that I'm missing?
>
One possible flaw: you probably can't dictate what they can use the
gift certificate. It is pretty much the equivalent of giving them
cash.

If I did this, though, it would be a case of just trusting them. On
the other extreme, if it came out that you could get an $X gift
certificate at Amazon just for *saying* that you will beta test
something.

Nathan

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


[android-developers] PACKAGE_USAGE_STATS exception

2011-03-24 Thread Sarath Krishna
Hello everyone,

when I try to call getAllPkgUsageStats(); function of IUsageStats
package I get this exception.

ERROR/AndroidRuntime(7413): java.lang.RuntimeException: Unable to
create service org.gps.CPUusage: java.lang.SecurityException: Neither
user 10081 nor current process has
android.permission.PACKAGE_USAGE_STATS.

But, I have included PACKAGE_USAGE_STATS permission in my manifest
file.

When I searched for the reason in forums, some said it is restricted
permission. Can anyone please help me out with this issue. Thanks in
advance

thanks,
sarath

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

2011-03-24 Thread TreKing
On Thu, Mar 24, 2011 at 3:45 PM, Justin Anderson wrote:

> *> Is there some obvious flaw to this that I'm missing?*
>
> You mean other than the fact that you have to fork out your own money to do
> that?


What's the difference between giving the user $0.99 gift certificate and
issuing them a promo code that give's them the app ($0.99) for free? Either
way you're out $0.99, either directly or through the lack of a sale.

-
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] PACKAGE_USAGE_STATS exception

2011-03-24 Thread Sarath Krishna
Hello everyone,

when I try to call getAllPkgUsageStats(); function of IUsageStats
package I get this exception.

ERROR/AndroidRuntime(7413): java.lang.RuntimeException: Unable to
create service org.gps.CPUusage: java.lang.SecurityException: Neither
user 10081 nor current process has
android.permission.PACKAGE_USAGE_STATS.

But, I have included PACKAGE_USAGE_STATS permission in my manifest
file.

When I searched for the reason in forums, some said it is restricted
permission

thanks,
sarath

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

2011-03-24 Thread String
OK, I guess I misunderstood, but that's what I thought the OP was asking for. 
Who were you expecting to pay for your beta testers' copies? 

String 

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

2011-03-24 Thread TreKing
On Wed, Mar 23, 2011 at 7:57 PM, eli  wrote:

> public class Class2  extends Activity
>

 Class2 c2 = new Class2();


No. You don't create Activities, they're created for you by the system.

-
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] does anyone have an idea about m3u files

2011-03-24 Thread kiros88
Basically im trying to use this concept later messing around writing
and create m3u files but one issue im dealing with right now is when i
have a m3u file on the computer then i move it on tothe sd card
through usb and mounting like the basic way then if i run the default
app music player it wont show up and i go back searching the files on
the SD card and its deleted? i know theres no real programming
questions yet but i need to know y it does this for me to plan out how
to program my 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] does anyone have an idea about m3u files

2011-03-24 Thread kiros88
Basically im trying to use this concept later messing around writing
and create m3u files but one issue im dealing with right now is when i
have a m3u file on the computer then i move it on tothe sd card
through usb and mounting like the basic way then if i run the default
app music player it wont show up and i go back searching the files on
the SD card and its deleted? i know theres no real programming
questions yet but i need to know y it does this for me to plan out how
to program my 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


Re: [android-developers] Re: Amazon Appmarket is now open!

2011-03-24 Thread TreKing
On Wed, Mar 23, 2011 at 8:33 PM, Brill Pappin  wrote:

> Once again, you need to be able to tell which market you installed from in
> order to adjust your links to the correct market.


All that takes is a single compile-time flag.

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

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

Re: [android-developers] WifiManager WifiConfiguration

2011-03-24 Thread Kostya Vasilyev


23.03.2011 23:37, Felipe Alexandre Rodrigues пишет:

Hello!

How do i make my app conect with wifi (WEP, WPA, No Auth, ) using
wifimanager and wificonfiguration


You need to fill out WifiConfiguration and call WifiManager.addNetwork 
so it's saved in the "known list" and assigned a numeric id.


Once you have the id, you can call WifiManager.enableNetwork / 
disableNetwork.



Can anyone help me with links or tutorials


Here is one:

http://kmansoft.wordpress.com/2010/04/08/adding-wifi-networks-to-known-list/

Here is another:

http://android.git.kernel.org/?p=platform/packages/apps/Settings.git;a=tree;f=src/com/android/settings/wifi;h=2249c66827f8ffdedb5782372359705abbf2f05e;hb=refs/heads/master


thanks




--
Kostya Vasilyev -- http://kmansoft.wordpress.com

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


Re: [android-developers] Re: Newbie: Widget onUpdate called only on creation

2011-03-24 Thread Kostya Vasilyev
You can use AlarmManager, however, think twice before doing this, as too 
frequent updates can drain the battery.


A much better solution is to only update your widgets in response to 
events in your application or phone.


A widget provider is actually a subclass of BroadcastReceiver, and you 
can list more intent filters in the manifest than the required 
APPWIDGET_UPDATE. You can watch all kinds of events with this.


If you need to update your widgets in response to events that take place 
in your application, you can actually do it directly, bypassing onUpdate 
completely, by using AppWidgetManager.getAppWidgetIds and 
updateAppWidget(int widgetId, RemoteViews views).


-- Kostya

24.03.2011 11:01, Eduardo Yáñez Parareda пишет:

Yes, after searching more information about the problem I got the info
from the API documentation... I had to downgrade the min API version
needed to 1.5 in order to test the widget in an emulator. Is there
another way to update the widget in shorter intervals?




--
Kostya Vasilyev -- http://kmansoft.wordpress.com

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


Re: [android-developers] Re: Amazon Appmarket is now open!

2011-03-24 Thread Justin Anderson
At least they are consistent with all of their different stores though...
The main things people are complaining about are that the descriptions get
edited and they essential have full control over price.

They also do this with anything else that is listed on their website...  If
they changed it for the AppStore I'm sure they would get a lot of grief from
the other aspects of their business.

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


On Thu, Mar 24, 2011 at 1:11 PM, Brill Pappin  wrote:

> !!
>
> so much for getting a better market :)
>
> - Brill Pappin
>  Sixgreen Labs Inc.
>
>
>
>
> On 2011-03-24, at 2:18 PM, Gregg Reno wrote:
>
> > Have you all noticed a big discrepancy between the order counts on the
> > Amazon AppStore home dashboard and what is shown in the Reports page?
> > The counts for me on the home page are about one third of what shows
> > in the reports page
> > -Gregg
> >
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, 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

Re: [android-developers] Re: Gift certificate or something like that

2011-03-24 Thread Justin Anderson
*> Is there some obvious flaw to this that I'm missing?*

You mean other than the fact that you have to fork out your own money to do
that?

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


On Thu, Mar 24, 2011 at 2:41 PM, String wrote:

> It doesn't solve the 30% problem, but otherwise, it seems to me that
> there's a simple solution on Amazon: gift certificates. Buy them for your
> beta testers (or whoever), and they can buy your app with it.
>
> Is there some obvious flaw to this that I'm missing?
>
> String
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] AlarmManager doesnot fire after device get Boot-up

2011-03-24 Thread Kostya Vasilyev

AlarmManager alarms are lost after a reboot or power down/up cycle.

Implement a receiver for BOOT_COMPLETED, and reset the alarms as needed.

-- Kostya

24.03.2011 15:21, Nalin Chhajer пишет:

Hi,
I am developing a application that requires to go for server call 2
times every day. So I used alarmmanager to set up alarm to repeat
after every 12 hours. The application runs fine and I receive
broadcast every 12 hours. But when I switch off and switch on my
mobile, the alarmmanger doesnot fire up. It seems like either
alarmmanager erases all the data after mobile phone is switch off or
broadcast receiver is cancelled.
I want alarmmanger to be consistent and once set up the alarm timing
it should call my receiver even after boot-up.

Please help me out how to solve this problem. Thanks in advance for
any help.




--
Kostya Vasilyev -- http://kmansoft.wordpress.com

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


Re: [android-developers] bindService and onSeriveConnected behaviour

2011-03-24 Thread Kostya Vasilyev

24.03.2011 15:25, Sambhav ?:
After successful connection to the serivce the *onServiceConnected 
*callback is called.
So unitl this callback is called the activity should be blocked 
from making any calls to the Service.


Correct.

Except not "blocked", just "unable to call a bound service until it's 
actually bound".


Now if I do a sleep in the Activity in order to wait till 
*onServiceConnected *is called , *onServiceConnected *gets called 
after the sleep is over.


Don't ever call sleep() or wait() in the UI thread.

From my observation it looks like *onServiceConnected* is getting 
called in the same thread as the Activity.


Yes.

Review the fundamentals here:

http://developer.android.com/guide/topics/fundamentals/processes-and-threads.html#Threads

So I am not able to block the Acitivity to make call to the Serive 
until the it is successfully connected.


Don't block the activity. Return back to Android from whatever callback 
you were in when you called bindService.


The framework will call your service connection's onServiceConnected 
when it happens.


http://developer.android.com/guide/topics/fundamentals/bound-services.html

--
Kostya Vasilyev -- http://kmansoft.wordpress.com

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

Re: [android-developers] Re: Gift certificate or something like that

2011-03-24 Thread String
It doesn't solve the 30% problem, but otherwise, it seems to me that there's a 
simple solution on Amazon: gift certificates. Buy them for your beta testers 
(or whoever), and they can buy your app with it. 

Is there some obvious flaw to this that I'm missing? 

String 

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

2011-03-24 Thread Spike66
Hi
I have written an application in which I wish to interogate the
NeighboringCellInfo.
I can retrieve the cell info Ok, including cell id, signal strength
etc.
I have declared the Telephony manager as follows:

 public void onCreate(Bundle savedInstanceState)
{
try
{
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
tm = (TelephonyManager) getSystemService(TELEPHONY_SERVICE);

..and so on.

In a following thread, I try to get the Neighboroughing cell info:

List  neighCell = null;
neighCell = tm.getNeighboringCellInfo();
int noNCells=neighCell.size();
for (int i = 0; i < (noNCells-1); i++)
{
try
{
   NeighboringCellInfo thisCell = 
neighCell.get(i);
int thisNeighCID = thisCell.getCid();
int thisNeighRSSI = thisCell.getRssi();
int thisNeighLac = thisCell.getLac();

...and so on.

The problemi is that I don't ever detect any neighboroughing cells.
What have I missed- could someone point me in the right direction.
Cheers

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

2011-03-24 Thread Magemello
New free android library for facebook.Those who tried to integrate
facebook features into his own Android application knows that it's not
an easy thing to do. We tested many libraries: FbRocket, FbConnect and
even facebook's official sdk, but their implementation was very
complicated or they had very few features. That's why we decided to
create our own library from scratch. Facebook's official sdk will make
you insane while you try to get your Android application's HashSet
while all the unofficial libraries lack all the graph Api features and
doesn't support the pictures upload. The highlights of EASY FACEBOOK
ANDROID SDK are:

* The HashSet Code for Android application isn't needed
* Oauth 2.0 authentication support
* Use the access token
* Pictures upload support
* Supports all the features of Graph API
* It can run any query FQL
* Contains BEAN of all facebook objects
* It's free

Download library : http://www.easyfacebookandroidsdk.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


Re: [android-developers] Unable to start service com.android.vending.billing.IMarketBillingService

2011-03-24 Thread Miguel Morales
Market billing will not work on the emulator.  You need a real device with
market version 2.3>.

On Thu, Mar 24, 2011 at 3:57 AM, Gustavo Costa  wrote:

> I'm trying start com.android.vending.billing.IMarketBillingService
> service and I received this message. I'm using emulator Android 2.3.3
> - API Level 10. AnyBody Help Me?
>
> 03-23 15:04:53.535: WARN/ActivityManager(61): Unable to start service
> Intent { act=com.android.vending.billing.IMarketBillingService }: not
> found
> 03-23 15:04:53.535: ERROR/BillingService(416): Could not bind to
> service.
>
> Code:
>
> private boolean bindToMarketBillingService() {
>try {
>if (Consts.DEBUG) {
>Log.i(TAG, "binding to Market billing service");
>}
>boolean bindResult = bindService(
>new Intent(IMarketBillingService.class.getName()),
>this,
>Context.BIND_AUTO_CREATE);
>
>if (bindResult) {
>return true;
>} else {
>Log.e(TAG, "Could not bind to service.");
>}
>} catch (SecurityException e) {
>Log.e(TAG, "Security exception: " + e);
>}
>return false;
> }
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en




-- 
~ Jeremiah:9:23-24
Android 2D MMORPG: http://solrpg.com/ http://www.youtube.com/user/revoltingx

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

2011-03-24 Thread Nikolay Yanev
How can I set mp3 for background music in my 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: Emulator problem

2011-03-24 Thread Yash :)
It happens all time, try relaunching emulator, that fixed it for 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: Uninstalling applications from emulator

2011-03-24 Thread asdf
when uninstal from the command line,you need to know the package name.
i think it`s the reason

On Mar 23, 6:46 pm, Jumana  wrote:
> I was just wondering whether uninstalling applications through command
> line was better than uninstalling them from the emulator itself? Coz
> everywhere on the net I find the former option as the solution. Is
> there a reason for that?

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


[android-developers] what`s the difference between inflate and reference directly

2011-03-24 Thread asdf
for example,i want to get a view object in java file.there are two
ways:inflate view and R.id.view.what`t the difference between them.and
when to use them.
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] Parsing a large amount of data from a xml

2011-03-24 Thread Sebastien S
Hi,
I'm developping an application where I had to synchronize my phone
with the entreprise server.
The response of the server is a xml file with each record between
 and I had to receive 19000 record.
What's the best way to parse it and add it to my content provider?


At the moment, I do my connection with the server:
[...]
HttpResponse httpResponse;
httpResponse = client.execute(request);
HttpEntity entity = httpResponse.getEntity();
InputStream instream = entity.getContent();

And then, I parse the input stream:
XMLSyncParser xmlSyncParser = new XMLSyncParser(instream, sharedPrefs,
mContext);
xmlSyncParser.parse(event); // a xml pull parser implementation

The parser, parse it and when he is at the end of the REC element, he
add it to the content provider.


Is there a better way to do it and a way who's taking less time?

Thank you,
Sebastien

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

2011-03-24 Thread asdf
http://developer.android.com/guide/publishing/app-signing.html
i can learn how to sign from here

On Mar 24, 1:01 am, rishabh agrawal  wrote:
> I have no real android mobile.I check my apps on emulator it working
> perfect.So how to check i sign my apps properly or not for real
> android deveice.Any other method for checking my apps in real android
> device.Please suggest

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


[android-developers] How do i upload the file from android mobile to public server

2011-03-24 Thread snehalal gangadharam
Hi all,

I am trying to upload the file from android phone to some public
servers.
kindly guide me how do i do that.


Thanks  & Regards
Sneha

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

2011-03-24 Thread mathcat
Taking photos using system provided
component(MediaStore.ACTION_IMAGE_CAPTURE) is quit common.

As Ive experimented, with a certain rate the android system will kill
the snapshot calling Activity to prevent memory related exception, and
the calling activity will be created again where returned. Thus I have
to save the states of the calling Activity via onSaveInstanceState,
and retrieve them via onRestoreInstanceState. (If Im not correct and
there is further info, please point it out)

However, I also found out that, when the killing occurs, all my
information stored in the RAM were ERASED, RESETED, for example those
Singleton class type objects, or static classes and their fields!

This mechanism is so frustrating, how to handle such situation??

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

2011-03-24 Thread Vidocq
I'm fighting with memory leaks now. So i'm curious if there any way to
manually destroy view(in onDestroy method) ? The whole layout(activity
contentView) is a bit complex because of parent-child references,
context references, tags, etc.

GC is not able to collect my layout now. And the problem is hiding
deeply in view structure... So the only way to find it - is to try
destroy leaf views manualy so at some moment GC will collect root view
and give me a knowlege of where is problem located.

My layout structure: ViewFlipper(RelativeLayout,
ListView(ViewFlipper(RelativeLayout, RelativeLayout)))

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

2011-03-24 Thread t22
Why can't i add  Intent.ACTION_CALL_BUTTON action to intent filter
registered with BR (in manifest)? it doesn't work when I tried to do
so.
Are actions specifically assigned for specific component (since this
action shows that it is Activity Action in API,see below)?


(Activity Action: The user pressed the "call" button to go to the
dialer or other appropriate UI for placing a call.
Input: Nothing.
Output: Nothing.
Constant Value: "android.intent.action.CALL_BUTTON")

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

2011-03-24 Thread silverfalcon
it is easy to trace error in java code,but when a crash happens in
native code libs,only logcat could give some help.but afer the project
released.there is no way to use logcat. I read some topices about
making a core file.but it said only native program could use reset
core file size and make core file,Dalvik would limited core file size
to 0 during it initialze process.So,is anyone have fixed this 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


Re: [android-developers] Can't solve this problem.

2011-03-24 Thread Justin Anderson
What does the stacktrace say? My initial guess is that you aren't calling
setContentView in the onCreate method of Class2...


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


On Wed, Mar 23, 2011 at 6:57 PM, eli  wrote:

> FILE MainClass.java
>
> package xxx.yyy;
>
> import android.app.Activity;
> import android.os.Bundle;
> import android.widget.TextView;
>
> public class MainClass extends Activity {
>
>/** Called when the activity is first created. */
>@Override
>public void onCreate(Bundle savedInstanceState) {
>super.onCreate(savedInstanceState);
>setContentView(R.layout.items);
>
> // This
>Test1();
> //  or that
>Class2 c2 = new Class2();
>C2.Test2();
> }
>
> public void Test1() {
> setContentView(R.layout.layoutA);
>  TextView tv = (TextView)findViewById(R.id.DisplayLine);
> tv.setText("Start");
> }
> }
> ---
> FILE Class2.java
>
> package xxx.yyy;
>
> import android.app.Activity;
> import android.os.Bundle;
> import android.widget.TextView;
>
>
> public class Class2  extends Activity {
>TextView tv;
>
> //  @Override
> public void onCreate(Bundle savedInstanceState) {
>super.onCreate(savedInstanceState);
>  }
>
>  public void Test2 () {
>  setContentView(R.layout.layoutA);
>  TextView tv = (TextView)findViewById(R.id.DisplayLine);
>tv.setText("Start");
>}
> }
> ---
> FILE layoutA.xml
> 
>  android:id="@+id/widget0"
> android:layout_width="fill_parent"
> android:layout_height="fill_parent"
> xmlns:android="http://schemas.android.com/apk/res/android";
> >
>  android:id="@+id/DisplayLine"
> android:layout_width="350px"
> android:layout_height="40px"
> android:background="#ff99ff99"
> android:textStyle="bold"
> android:textColor="#ff00"
> android:layout_x="10px"
> android:layout_y="10px"
> >
> 
> 
>
> If  Test1 is allowed to run, it is OK.
> If  Test2 is allowed to run, get 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

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

2011-03-24 Thread Bill Lee
I have the following code which when testing in the emulator takes me
correctly to being able to send an email. However, the TO field isn't
displaying the email(in this case t...@email.com). Is there something
that I am missing Thanks.


public boolean onTouch(View v, MotionEvent event) {
if(event.getAction() == MotionEvent.ACTION_DOWN)
{

Intent displayIntent = new 
Intent(Intent.ACTION_SEND);
String[] extra = new String[ 
]{"t...@email.com"};
displayIntent. 
putExtra(Intent.EXTRA_EMAIL, extra);

displayIntent.putExtra(android.content.Intent.EXTRA_SUBJECT,
"Subject");
displayIntent.setType("text/plain");
//
_this.startActivity(displayIntent);
}
return true;
}

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

2011-03-24 Thread guisjlender
Olá povão Android o/
Saiu um tutorial fresquinho sobre como resolver aquele grande problema
do AutoComplite que acaba travando o eclipse por alguns segundos...

espero que gostem! Sucesso a todos.

Link: http://gflex.biz/blog/?p=151

Att. Guilherme Sjlender - http://www.gflex.biz

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Unable to start service com.android.vending.billing.IMarketBillingService (Not found)p me?

2011-03-24 Thread Gustavo Costa
Kostya,
What the version of emulator do you using and What the android version?

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

[android-developers] Developing app to connect with websites

2011-03-24 Thread Wolf85
Hello,

I would like to know if it is possible to develop an app that connects
with a website(s) (not mine) and pull info, news, images...etc, and
display them in the app.

Basically, I want to develop an app that provides latest news,
fixtures, match results...etc of a football club which has a website
on the web.

If more details are required, please let me know.

Thanks

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


Re: [android-developers] Re: SQLiteDatabase or XML(saving)?

2011-03-24 Thread Dianne Hackborn
Your data is always on internal storage.  Moving to SD card only moves your
.apk to the SD card.

On Wed, Mar 23, 2011 at 2:09 PM, Robert  wrote:

> Hmmm I've been thinking about using a database to store a lot of
> data (several MB in text format).  Is the sqlite db moved to the SD
> card when the app is moved or is it always on the internal memory?
> I'd rather not leave a big table on the phone's internal memory.
> Right now I have this data in a combination of internal arrays
> declared in the app itself and in a collection of html files in  /
> assets
>
> Robert
>
> On Mar 23, 1:48 am, Dianne Hackborn  wrote:
> > Um, no.  A database doesn't have anything to do with security.  An XML
> file
> > is not intrinsically tied to The Internet.
> >
> > You probably do not want to use a database.  A database is good for
> > situations where you have structured data with relatively lots of items
> > where you want to do queries against those items using the structure.
>  This
> > is generally not a good description of a document.
> >
> > An XML file can work, but you will find it to be relatively inefficiently
> > especially if you are going to start embedding images inside of it.  Note
> > that things like Microsoft's XML document format is actually a .zip file
> > consisting of XML files holding the document and the images stored as
> > separate entries in the .zip.
> >
> > On Tue, Mar 22, 2011 at 10:32 PM, harsh chandel  >wrote:
> >
> >
> >
> >
> >
> > > database if security is invloved
> > > if on xml on internet
> >
> > > On Mar 22, 2:46 pm, -Ernest  wrote:
> > > > Hello guys,
> > > > Thanks for making android a wonderful platform.
> > > > Me and my mate are writing a project and its an android app.
> > > > Yesterday i finish my third book about programing for
> > > > the android platform "Hello, Android".
> >
> > > > He comes my questions:
> > > > What is the best option for saving a well formatted document(a
> > > > document with images) on a device?
> > > > I know this can be done by saving to a XML file or on a database, but
> > > > which of these
> > > > two is the most preferable.
> >
> > > > Hope the question was clear.
> >
> > > > Thanks in advance.
> > > > -Ernest
> >
> > > --
> > > You received this message because you are subscribed to the Google
> > > Groups "Android Developers" group.
> > > To post to this group, send email to
> android-developers@googlegroups.com
> > > To unsubscribe from this group, send email to
> > > android-developers+unsubscr...@googlegroups.com
> > > For more options, visit this group at
> > >http://groups.google.com/group/android-developers?hl=en
> >
> > --
> > Dianne Hackborn
> > Android framework engineer
> > hack...@android.com
> >
> > Note: please don't send private questions to me, as I don't have time to
> > provide private support, and so won't reply to such e-mails.  All such
> > questions should be posted on public forums, where I and others can see
> and
> > answer them.- Hide quoted text -
> >
> > - Show quoted text -
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



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

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

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

[android-developers] Re: Unable to start service com.android.vending.billing.IMarketBillingService (Not found)p me?

2011-03-24 Thread Gustavo Costa
But the com.android.vending.billing.IMarketBillingService is a service 
implement for Android Market (app). 
I'm using "Implementing In-app Billing" document and sample app to 
implemente my In-app Billing, therefore I couldn't do.
Implementing In-app 
Billing

Does someone already implement a In-app Billing and can post the sample?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 start service com.android.vending.billing.IMarketBillingService (Not found)p me?

2011-03-24 Thread Gustavo Costa
 

I'm trying start com.android.vending.billing.IMarketBillingService service 
and I received this message. I'm using emulator Android 2.3.3 - API Level 
10. Anybody help me?

03-23 15:04:53.535: WARN/ActivityManager(61): Unable to start service Intent { 
act=com.android.vending.billing.IMarketBillingService }: not found
03-23 15:04:53.535: ERROR/BillingService(416): Could not bind to service.

Code:

private boolean bindToMarketBillingService() {
try {
if (Consts.DEBUG) {
Log.i(TAG, "binding to Market billing service");
}
boolean bindResult = bindService(
new Intent(IMarketBillingService.class.getName()),
this,  
Context.BIND_AUTO_CREATE);

if (bindResult) {
return true;
} else {
Log.e(TAG, "Could not bind to service.");
}
} catch (SecurityException e) {
Log.e(TAG, "Security exception: " + e);
}
return false;
}

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] AlarmManager doesnot fire after device get Boot-up

2011-03-24 Thread Nalin Chhajer
Hi,
I am developing a application that requires to go for server call 2
times every day. So I used alarmmanager to set up alarm to repeat
after every 12 hours. The application runs fine and I receive
broadcast every 12 hours. But when I switch off and switch on my
mobile, the alarmmanger doesnot fire up. It seems like either
alarmmanager erases all the data after mobile phone is switch off or
broadcast receiver is cancelled.
I want alarmmanger to be consistent and once set up the alarm timing
it should call my receiver even after boot-up.

Please help me out how to solve this problem. Thanks in advance for
any 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


Re: [android-developers] Re: Unable to start service com.android.vending.billing.IMarketBillingService (Not found)p me?

2011-03-24 Thread Gustavo Costa
If it's possible, Can you send me a sample code that you are using? I'm 
trying during 3 days and I couldn't complete the codification.

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

2011-03-24 Thread Jared
Yeah, I'm having the exact same problem.  I'm using a HTC Droid
Incredible to test this on which is running froyo (Android 2.2) and
any time I use an intent to get a photo in that manner, it puts the
photo where I told it to go, but then also puts a separate file copy
in my "/SDCard/DCIM/100Media/" folder as well as where I told it to go
using my URI. :-(

Any help would be greatly appreciated. :-)

-Jared

On Mar 1, 8:52 am, tmartin  wrote:
> Hi Group,
>
> I am using the camera of device to get photo this way:
>
>         File file = new File( Path.getPath() );
>         Uri outputFileUri = Uri.fromFile( file );
>
>         Intent intent = new
> Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE );
>         intent.putExtra( MediaStore.EXTRA_OUTPUT, outputFileUri );
>
>         startActivityForResult( intent, 0 );
>
> It is working. The specified file is created but the camera is
> creating a photo file by its default filename in the default folder,
> too.
> So 2 same files are created in this case.
> The other interesting thing is that the file which has been specified
> in extra_output is not visible
> to integrated photo Gallery application of the device. (Samsung Galaxy
> S)
> EXTRA_OUTPUT file is in same directory as device's default.
> /mnt/sdcard/DCIM/Camera/myfile.jpg
>
> Thank you for any 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


Re: [android-developers] Re: Unable to start service com.android.vending.billing.IMarketBillingService (Not found)p me?

2011-03-24 Thread Gustavo Costa
Justin,
   I think the same way. But the class is not avaiable in the emulator or 
I'm use the wrong class.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Unable to start service com.android.vending.billing.IMarketBillingService (Not found)p me?

2011-03-24 Thread Gustavo Costa
Kostya,
Where Can I find BillingService.java and where I need paste/put this class?

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

2011-03-24 Thread Sambhav
Hi,

I have an Android Service running as a separate process.
When an Activity is launched , this activity connects to the service.
After successful connection to the serivce the *onServiceConnected *callback
is called.
So unitl this callback is called the activity should be blocked from making
any calls to the Service.

 Now if I do a sleep in the Activity in order to wait till  *onServiceConnected
*is called , *onServiceConnected  *gets called after the sleep is over.
>From my observation it looks like *onServiceConnected* is getting called in
the same thread as the Activity.
So I am not able to block the Acitivity to make call to the Serive until
the it is successfully connected.

Is my observation correct or am I missing something wrong ?

Consider the AIDL

interface IAddService {
void addNos(int num1, int num2);
}

public class HomeScreen extends Activity {

@Override
public void onCreate(Bundle savedInstanceState)

connection = new Connection();
Intent i = new Intent();
i.setClassName("android.service",
android.service.AddService.class.getName());
boolean ret = context.bindService(i, connection, Context.BIND_AUTO_CREATE);
**
*//Wait till onServiceConnected*
**
*addNos(1,2); //Not able to wait or syncronize until onServiceConnected is
called as the callback is getting called from same thread as the Activity is
running*


class Connection implements ServiceConnection {
 public void onServiceConnected(ComponentName name, IBinder
boundService) {
service = IAddService.Stub.asInterface((IBinder) boundService);
}

}

Regards,
Sambhav

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 change the font style for particular selected text in text view

2011-03-24 Thread pradeep narava
Hi guys ,
I am able to get the position where the text has got selected ,but how can I
get the selected text value so that I can change the font style and replace
the text at concerned position.
 I was using Typecase to change the font style.

Please can you help me
My code is as follows:
package com.pradeep.texteditor;



import java.util.ArrayList;






import android.app.Activity;
import android.app.ListActivity;
import android.content.Intent;
import android.graphics.Color;
import android.graphics.Typeface;
import android.os.Bundle;
import android.text.Editable;
import android.text.Spannable;
import android.text.style.StyleSpan;
import android.util.Log;
import android.view.KeyEvent;
import android.view.View;
import android.view.View.OnKeyListener;
import android.widget.ArrayAdapter;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;
import android.widget.Toast;

public  class TextEditor extends Activity {
private static final String TAG = "pradeep";



String text;
String txt;
private EditText mUserText;
private EditText waitingTimeView;

private ArrayAdapter mAdapter;

private ArrayList mStrings = new ArrayList();

/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
mUserText = (EditText) findViewById(R.id.enterText);
mUserText.setTextColor(Color.BLACK);


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

@Override
public void onClick(View v) {
// TODO Auto-generated method stub
  mUserText.setTextColor(Color.RED);
  //txt1 =
mUserText.setTypeface(Typeface.SERIF,Typeface.BOLD);
   int start = mUserText.getSelectionStart();
int end = mUserText.getSelectionEnd();
//TextView myTextView = new  TextView(this);
  //String selectedText =
mUserText.getText().toString().substring(start, end);
// txt1=
mUserText.setTypeface(Typeface.SERIF,Typeface.BOLD);


Editable txt = mUserText.getText();



//   Editable a = mUserText.getText() ;
////a.append(txt, start, end);
//Editable txt1 = mUserText.getText().s

//txt.replace(start,end,a);

 // String selectedText =
et.getText().substring(startSelection, endSelection);

//  int selStart = ((EditText) v).getSelectionStart();
//int end = ((EditText) v).getSelectionEnd();
// Determine the word "under" selStart...

  //char a = txt.charAt(end);



Log.d(TAG, "sel:" + String.valueOf(start)+" end:"+
String.valueOf(end));







 // int selStart = ((EditText) v).getSelectionStart();
//int end = ((EditText) v).getSelectionEnd();
 //Determine the word "under" selStart...
//Log.d(TAG, "sel:" + String.valueOf(selStart) + "
end:"+ String.valueOf(end));

//Typeface myTypeface =
Typeface.createFromAsset(this.getAssets(),"DS-DIGIB.TTF");
Typeface myTypeface = Typeface.DEFAULT_BOLD;
waitingTimeView = (EditText)
findViewById(R.id.enterText);
waitingTimeView.setTypeface(myTypeface);
mUserText.setBackgroundColor(Color.GREEN);

}



});


}

private void sendText() {
text = mUserText.getText().toString();

   mAdapter.add(text);

   mUserText.setText(null);
   }

   public boolean onKey(View v, int keyCode, KeyEvent event) {

   if (event.getAction() == KeyEvent.ACTION_DOWN) {

   switch (keyCode) {
   case KeyEvent.KEYCODE_DPAD_CENTER:
   case KeyEvent.KEYCODE_ENTER:
  sendText();
   return true;
   }
   }
   return false;
   }






}

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

2011-03-24 Thread Gustavo Costa
I'm trying start com.android.vending.billing.IMarketBillingService
service and I received this message. I'm using emulator Android 2.3.3
- API Level 10. AnyBody Help Me?

03-23 15:04:53.535: WARN/ActivityManager(61): Unable to start service
Intent { act=com.android.vending.billing.IMarketBillingService }: not
found
03-23 15:04:53.535: ERROR/BillingService(416): Could not bind to
service.

Code:

private boolean bindToMarketBillingService() {
try {
if (Consts.DEBUG) {
Log.i(TAG, "binding to Market billing service");
}
boolean bindResult = bindService(
new Intent(IMarketBillingService.class.getName()),
this,
Context.BIND_AUTO_CREATE);

if (bindResult) {
return true;
} else {
Log.e(TAG, "Could not bind to service.");
}
} catch (SecurityException e) {
Log.e(TAG, "Security exception: " + e);
}
return false;
}

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Unable to start service com.android.vending.billing.IMarketBillingService (Not found)p me?

2011-03-24 Thread Gustavo Costa
Kostya,
Thank for your answer. I ran the dungeons & potions sample and I receive 
the same message. I had copy the code of the dungeons & potions sample and 
include in my app.

Do you have another 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

Re: [android-developers] Re: replacing a fragments not working

2011-03-24 Thread Dianne Hackborn
Many of the API demos use this -- for example the stack and layout demos.
 You can look at those and see what you are doing differently.

On Thu, Mar 24, 2011 at 10:37 AM, jotobjects  wrote:

> I can remove and add fragments, but replace doesn't cause the new
> Fragment to show up.
>
> The API docs are a little unclear about which existing Fragment would
> be replaced.
>
> On Mar 23, 4:49 pm, jotobjects  wrote:
> > Having a bit of a go with Fragments and hitting a snag.  My layout
> > looks like this.  The objective is to add a Fragment to the
> > LinearLayout.
> >
> > http://schemas.android.com/apk/res/
> > android"
> > android:id="@+id/foobar"
> > android:layout_width="fill_parent"
> > android:layout_height="wrap_content"
> > android:orientation="vertical"
> > />
> >
> > First I do this - which works fine to add and display the Fragment
> > into the layout container
> >
> > Fragment f1 = new FragmentOne();
> > fragmentManager.beginTransaction().add(R.id.foobar, f1,
> > "ABC").commit();
> >
> > later on I want to replace that Fragment with a different one so I do
> > this -
> >
> > Fragment f2 = new FragmentTwo();
> > fragmentManager.beginTransaction().replace(R.id.foobar, f2,
> > "DEF").commit();
> >
> > But Fragment f1 is still there in the View. What part of this is am I
> > doing incorrectly?
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



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

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

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

  1   2   3   >