Re: [android-developers] Cursor LifeCycle

2011-11-07 Thread Dianne Hackborn
If you are closing the cursor yourself, you really shouldn't be having the
framework manage the cursor at all.  I mean...  the point of having the
framework manage the cursor is for it to close it (and otherwise manage it)
for you.  If you are then going to try to close it yourself, you then get
to fight with the framework about who owns it.

Also, loaders are not tied to content providers.  If you have something
else to load, you can make your own subclass of AsyncTaskLoader.

That said, the framework is really oriented around accessing data through
content providers.  I think you'll find it simpler to just go with that
rather than having to build up the various conveniences it already provides
for them.

2011/11/7 Júlio Cesar Bueno Cotta 

> Can someone try to help me please? I really preciate if it happen.
> I am stuck with the Android documentation.
> Should I convert all my SQLite methods to use Content Providers?
> Thanks in advance.
>
>
> 2011/11/5 Júlio Cesar Bueno Cotta 
>
>> Hi people,
>> I think I need some help here.
>> I did some search in the group and found this few 
>> topicsabout
>>  my questions, so sorry if I am being silly.
>>
>> First, When should I close my Cursors? I always close them in the onPause
>> method of an Activity (with the code bellow), and due a HoneyComb issue
>> before "open" the Cursor I check if it's not null and "opened" to avoid the
>> error described 
>> here
>> :
>>
>> protected void onResume () {
>>if(cursor != null && !cursor.isClosed()){
>>   stopManagingCursor(cursor);
>>   cursor.close();
>>}
>>cursor = getCursorFromMySQLiteDataBase();
>>startManagingCursor(cursor);
>>
>>//use cursor to fill a ListView ou Spinner
>> }
>>
>> protected void onPause () {
>>
>>   if(cursor != null && !cursor.isClosed()){
>>   stopManagingCursor(cursor);
>>cursor.close();
>>  }
>> }
>>
>> }
>>
>> Stop the cursor in onPause method seems to be a good thing because, when
>> I call another Activity from this, the father Activity is paused, right? I
>> also because when I close the app, onPause is also performed, right again?
>>
>> I know the startManagingCursor and StopManagingCursor is deprecated (this
>> pagesays
>>  it):
>>
>> "Use the new 
>> CursorLoaderclass
>>  with
>> LoaderManagerinstead;
>>  this is also available on older platforms through the Android
>> compatibility package. "
>>
>> But CursorLoader and LoaderManager works just with ContentProviders,
>> right? That I am doing (above code) it's a bad thing? I need to get a away
>> to change all my databases methods to use only ContentProviders?
>>
>> The documentation is not very clear about it. 
>> Heresay:
>>
>> "If you don't need to share data amongst multiple applications you can
>> use a database directly via 
>> SQLiteDatabase.
>> "
>>
>> but how to keep managing my Cursors from SQLiteDatabase without use
>> [start,stop]ManagingCursor (since it's deprecated and probably soon it will
>> not be there)?
>>
>> Well, I made a lot of questions in this topic, I don't want to mess
>> around, I am just lost in those questions.
>>
>> Sorry again if I am being not clear enough about, I tried to, English is
>> not my first lang.
>> Thanks in advance.
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>
>
>
>
> --
>  Júlio Cesar Bueno Cotta
> Bacharel em Ciência da Computação pela UFV
> Mestrando em Ciência da Computação pela UFABC
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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

Re: [android-developers] Customize Android Source Code to run multiple Application on same Screen.

2011-11-07 Thread Dianne Hackborn
On Mon, Nov 7, 2011 at 9:25 PM, Pawan Singh Rathore <
pawan.s.rath...@gmail.com> wrote:

> Have you gone through this link , I
> don't think they modified Platform.
>

Well you are wrong, because that is what they did.

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

2011-11-07 Thread Dianne Hackborn
You can't.  That is not what fragments are for.  And please stop posting
that link.  That is someone's hack on Android to add features that are not
in the current platform, so not a topic for discussion on this list.

On Mon, Nov 7, 2011 at 9:41 PM, Pawan Singh Rathore <
pawan.s.rath...@gmail.com> wrote:

> Hi All,
> I want to know that, how can we launch any app present in the device
> inside a fragment.
> For better idea about question you can check out this 
> link
> .
>
> Hope anyone can help me in figure out this situation, and can give me some
> directions.
>
> Thanks & BR,
> Pawan Rathore
>
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] Error in installing dynamically downloaded apk from custom android application programmatically

2011-11-07 Thread sam
Hi everyone,
I have downloaded new .apk file in /mnt/sdcard/download/ and i want to
install this apk by replacing my old(now using) apk because it is an
updated one.
This is my install method
public void installApplication(){
 Uri packageURI = Uri.parse(PackageName.toString());
 Intent updateintent = new
Intent(android.content.Intent.ACTION_VIEW, packageURI);
 updateintent.setDataAndType(Uri.fromFile(new
File(Environment.getExternalStorageDirectory() + "/download/" +
fileName)), "application/vnd.android.package-archive");
 startActivity(updateintent);

 }

And before that i uninstall application using this method
public void unInstallApplication()
{
 Uri packageURI = Uri.parse(PackageName.toString());
 Intent uninstallIntent = new Intent(Intent.ACTION_DELETE,
packageURI);
 startActivity(uninstallIntent);
}

but when i try to install the application it says "Application not
installed" What is the error how can i fix it. Please help me

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


[android-developers] Error in installing dynamically downloaded apk from custom android application programmatically

2011-11-07 Thread sam
Hi everyone,
I have downloaded new .apk file in /mnt/sdcard/download/ and i want to
install this apk by replacing my old(now using) apk because it is an
updated one.
This is my install method
public void installApplication(){
 Uri packageURI = Uri.parse(PackageName.toString());
 Intent updateintent = new
Intent(android.content.Intent.ACTION_VIEW, packageURI);
 updateintent.setDataAndType(Uri.fromFile(new
File(Environment.getExternalStorageDirectory() + "/download/" +
fileName)), "application/vnd.android.package-archive");
 startActivity(updateintent);

 }

And before that i uninstall application using this method
public void unInstallApplication()
{
 Uri packageURI = Uri.parse(PackageName.toString());
 Intent uninstallIntent = new Intent(Intent.ACTION_DELETE,
packageURI);
 startActivity(uninstallIntent);
}

but when i try to install the application it says "Application not
installed" What is the error how can i fix it. Please help me

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


[android-developers] Re: I need to add google search option to my android application

2011-11-07 Thread Ali Chousein
Yes, it is possible. Study the following links:

Google Web Search API (Deprecated)
http://code.google.com/apis/websearch/

JSON/Atom Custom Search API
http://code.google.com/apis/customsearch/v1/overview.html

But beware, this integration is not free.

-
Ali Chousein
Weather-Buddy
http://weatherbuddy.blogspot.com/ | http://twitter.com/weather_buddy
Geo-Filtered Assistant
http://geo-filtered-assistant.blogspot.com/
https://marketplace.cisco.com/apphq/store/products/994

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


[android-developers] Re: Re: Android and WinXP: look for some tips

2011-11-07 Thread SL


Your reply seems to indicate that you have some rather indirect concern.



I don't know I get what you meant by the above statement. As for me, I am  
thinking that once, say SMS/MMS, comes in, I just to transfer to my pc  
immediately.


Dalvik Debug Monitor Server (DDMS) seems to put the phone into debug mode,  
as the name suggests. Normal practice says once you are finished with it  
stop the service since it is for debugging only.


The term 'indirect concern' you suggest some evil motives, don't you ?

--
Using Opera's revolutionary email client: http://www.opera.com/mail/

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


[android-developers] Re: Android and WinXP: look for some tips

2011-11-07 Thread FBondarenko
Customers will have to start usb debug mode to get the connection to
work.
But how can a socket connection via usb cable without usb debugging
mode be established?


On 8 Nov., 06:41, Chris  wrote:
> On Tuesday, November 8, 2011 4:52:05 PM UTC-5, SL wrote:
>
> > > What do you mean?  You can use Android phones for development.  That
> > > doesn't mean they are in some low-level debugging mode.
>
> > Assume that I have an Android phone plugged onto a winxp pc via a USB
> > cable, and my program on winxp is running 24/7.
>
> Assumed, though you know what they say about assuming
>
> I am just wondering whether it is appropriate to let the phone on  > 
> debug-mode all the time (because my program is no longer debugging).
>
> If your program is no longer debugging (ie, doesn't have a remote debugger
> connected to it), its entirely appropriate.  Unsure what you're getting at
> here, but I keep the 'USB Debugging' pref on all time when I'm working on
> it, and only see slowdowns when there's a debugger actually attached to it.
>
> > Your reply seems to indicate that it is not running in the debug-mode.
>
> Your reply seems to indicate that you have some rather indirect concern.

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

2011-11-07 Thread Zsolt Vasvari
Great -- thanks.

So I just moved my code over.  My observations of the new Calendar
Content Provider vs. the one from SDK 8:

- Same URI
- Same logic works for reading the list of Calendars and creating/
reading Events and Reminders (only operations I am doing).
- A couple of the column names have been changed -- they have been
prepended with "calendar_"

So, in other words, if you just fix up the column names, the same code
works as before.



On Nov 5, 10:55 am, Brian  wrote:
> As a workaround, you can add your Google account as an activesync
> account.  Use your gmail.com address at first, but you'll need to
> change the server to be m.google.com when it complains it can't
> connect.  See here:
>
> http://www.google.com/support/mobile/bin/answer.py?hl=en&answer=13863...
>
> On Nov 2, 8:54 pm, Zsolt Vasvari  wrote:
>
>
>
> > No, Google Account seem to be broken on the ICS emulator:
>
> >http://groups.google.com/group/android-developers/browse_thread/threa...
>
> > On Nov 3, 5:44 am, Ralph  wrote:
>
> > > Hi,
>
> > > I'd also like to try out adding a subscription to a public google
> > > calendar.
>
> > > Where are the Intents documented?  Or at least where are the test
> > > cases that test adding a public calendar to an account and making it
> > > visible and sync'ed?
>
> > > I seem to only see a way to add an event to a particular calendar.
>
> > > Also, the emulator does not seem to support Google calendar accounts.
> > > The only thing that seems to work with calendar is Exchange.  Which
> > > seems odd.
>
> > > Does anyone have the emulator working with google calendars?
>
> > > Thanks,
> > > Ralph
>
> > > On Oct 25, 4:50 am, Zsolt Vasvari  wrote:
>
> > > > Thanks, of course that will work.  Duh...  How did I miss that?
>
> > > > That said, I am just looking in the Javadocs and under Constants,
> > > > CONTENT_URI is not listed, but it's further down, under Fields.  That
> > > > explains why I didn't see it, even though it's not a real excuse.
> > > > Since CONENT_URI is a "static final", why isn't it listed under
> > > > Constants?
>
> > > > On Oct 25, 2:41 pm, Michael Chan  wrote:
>
> > > > > Hi Zsolt,
>
> > > > > Can you tryCalendarContract.Calendars.CONTENT_URI instead of
> > > > >CalendarContract.CONTENT_URI?
>
> > > > > Thanks,
> > > > > Mike
>
> > > > > On Oct 24, 5:39 pm, Zsolt Vasvari  wrote:
>
> > > > > > I would have expected to work, also.
>
> > > > > > It's kind of frustrating that the first time we are goig to be able
> > > > > > "put out fires", is when the general public will get hold of the 
> > > > > > first
> > > > > > ICS device.  The emulator is all but useless.
>
> > > > > > On Oct 25, 12:25 am, Mark Murphy  wrote:
>
> > > > > > > I haven't had a chance to yet, and probably won't for a few weeks.
> > > > > > > Since the Calendar app is in the emulator, I would have expected 
> > > > > > > that
> > > > > > > content provider to work. It's possible that it is an emulator 
> > > > > > > bug --
> > > > > > > without hardware as a point of reference, it is difficult to tell.
>
> > > > > > > On Mon, Oct 24, 2011 at 10:19 AM, Zsolt Vasvari 
> > > > > > >  wrote:
> > > > > > > > Nobody tried this new API yet?
>
> > > > > > > > On Oct 24, 2:57 pm, Zsolt Vasvari  wrote:
> > > > > > > >> I am trying to convert my Calendar code to the new ICS APIs.
>
> > > > > > > >> For starters, I am trying the simplest possible operation -- 
> > > > > > > >> reading
> > > > > > > >> the list of Calendars.
>
> > > > > > > >> I am using the following code:
>
> > > > > > > >> context.getContentResolver().query(CalendarContract.CONTENT_URI,
> > > > > > > >> CALENDARS_PROJECTION, CALENDARS_WHERE, null,
> > > > > > > >>CalendarContract.Calendars.DEFAULT_SORT_ORDER)
>
> > > > > > > >> but I am getting an unknown URL exception on the ICS emulator, 
> > > > > > > >> both
> > > > > > > >> Standard and Google API images:
>
> > > > > > > >> E/ACRA    (  746): Caused by: 
> > > > > > > >> java.lang.IllegalArgumentException:
> > > > > > > >> Unknown URL content://com.android.calendar
> > > > > > > >> E/ACRA    (  746):      at
> > > > > > > >> android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:
> > > > > > > >> 165)
> > > > > > > >> E/ACRA    (  746):      at
> > > > > > > >> android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:
> > > > > > > >> 135)
> > > > > > > >> E/ACRA    (  746):      at
> > > > > > > >> android.content.ContentProviderProxy.query(ContentProviderNative.java:
> > > > > > > >> 358)
> > > > > > > >> E/ACRA    (  746):      at
> > > > > > > >> android.content.ContentResolver.query(ContentResolver.java:304)
>
> > > > > > > >> Is this supposed to work on the emulator?
>
> > > > > > > > --
> > > > > > > > You received this message because you are subscribed to the 
> > > > > > > > Google
> > > > > > > > Groups "Android Developers" group.
> > > > > > > > To post to this group, send email to 
> > > > > > > > android-developers@googlegroups.com
> > > > > > > > 

[android-developers] Re: No luck with new ICS CalenderContract

2011-11-07 Thread Zsolt Vasvari
Great -- thanks.

So I just moved my code over.  My observations of the new Calendar
Content Provider vs. the one from SDK 8:

- Same URI
- Same logic works for reading the list of Calendars and creating/
reading Events and Reminders (only operations I am doing).
- A couple of the column names have been changed -- they have been
prepended with "calendar_"

So, in other words, if you just fix up the column names, the same code
works as before.



On Nov 8, 3:04 am, Michael Chan  wrote:
> Hi,
>
> > Are you saying there is no way to help the user subscribe to a public> 
> > google calendar via the new calendar api?
>
> There just isn't a *supported* way via the Android Calendar API. (You
> can always do some reverse engineering and get something that work for
> now. But it may break suddenly one day when the user gets an update.
> So I really really want discourage everyone from doing that.)
>
> > Is there a better, more supported way to do this?
>
> The only supported way today is to talk to the server directly via the
> GData api.  You need to figure out how to get the 
> credentials.http://code.google.com/apis/calendar/data/2.0/developers_guide.html
> Looks like the code below is doing that.
>
> > Also what do you mean by using the browser?  Can I make the calendar
> > visible and sync'ed via the browser?
>
> 2 way:
> 1) Instruct the user to do it manually
> 2) Send the user tohttps://www.google.com/calendar/render?cid= 
> orhttp://www.google.com/calendar/hosted//render?cid= ID>. The user has to say they want to use the desktop UI, zoom in, and
> click "Yes, add this calendar". It is not a great experience.  The
> other drawback here is that the user won't be able to choose which
> account the calendar should be added to.
>
> Thanks,
> Mike
>
>
>
> On Fri, Nov 4, 2011 at 6:13 PM, Ralph  wrote:
> > Hi Michael,
>
> > Thanks again.
>
> > Are you saying there is no way to help the user subscribe to a public
> > google calendar via the new calendar api?
>
> > I am already subscribing using some example from Yaniv Inbar a while
> > back:
>
> > where ALERT_CALENDAR is "nyc.ale...@brooklynmarathon.com"
>
> > Is there a better, more supported way to do this?
>
> > Also what do you mean by using the browser?  Can I make the calendar
> > visible and sync'ed via the browser?
>
> > Thanks,
> > Ralph
>
> >  private void subscribeCalendar()
> >  {
> >    CalendarUrl url  = CalendarUrl.forAllCalendarsFeed();
> >    Log.i(TAG,"ADD NEW CALENDAR: " + url);
> >    CalendarEntry calendar = new CalendarEntry();
> >    //calendar should have something like setid of gdata api
>
> >    calendar.id = ALERT_CALENDAR;
> >    //calendar.title = "Test: " + new DateTime(new Date());
> >    try {
> >      calendar.executeInsert(transport, url);
>
> >      AlertDialog builder;
> >      try {
> >          builder = MessageDialogBuilder.create(this, MESSAGE );
> >          builder.show();
> >      } catch (NameNotFoundException e) {
> >          // TODO Auto-generated catch block
> >          e.printStackTrace();
> >      }
> >    } catch (IOException e) {
> >      handleException(e);
> >    }
>
> >  }
>
> > On Nov 4, 12:38 pm, Michael Chan  wrote:
> >> Hi Ralph,
>
> >> I wish I have a solution for you. That's not supported right now. The only
> >> (not so good) way is to use the browser. I will file an internal feature
> >> request if we don't have one already.
>
> >> Thanks,
> >> Mike
>
> >> On Fri, Nov 4, 2011 at 7:24 AM, Ralph  wrote:
> >> > Hi Michael and thank you.
>
> >> > Can you let us know the recommended way to subscribe a user to a
> >> > public google calendar.
>
> >> > For example, let's say you have a google calendar with public
> >> > information.  for example, some city alerts etc. data.
>
> >> > We want to make it easy for the user to subscribe to the public
> >> > calendar and make it sync'ed and visible (with their permission of
> >> > course)
>
> >> > Today, I have to give them instructions and it seems that each phone
> >> > manufacturer has implemented the calendar in a different way so the
> >> > instructions are very complicated.  What I'd like to send the user to
> >> > a screen with the calendar subscription (visible and sync'ed) already
> >> > set up and let them confirm it.
>
> >> > Thanks,
> >> > Ralph
>
> >> > On Nov 3, 2:29 pm, Michael Chan  wrote:
> >> > > Hi,
>
> >> > > I believe the GoogleCalendarSyncAdapter was not included in the
> >> > > emulator. That's why you can't sync Google Calendars in the emulator.
>
> >> > > The new Calendar API will support viewing, adding events (not
> >> > > calendars) via Intents. The user will need to confirm before the event
> >> > > is saved.
>
> >> > > Adding *Google* calendars via the provider is not supported at this
> >> > > time.
>
> >> > > We will be publishing a developer guide for Calendar APIs with more
> >> > > details on the set of supported intents as well as code snippets.
>
> >> > > managedQuery has been deprecated. It can cause ANRs. The recommend way
> >>

[android-developers] Fragments

2011-11-07 Thread Pawan Singh Rathore
Hi All,
I want to know that, how can we launch any app present in the device inside
a fragment.
For better idea about question you can check out this
link
.

Hope anyone can help me in figure out this situation, and can give me some
directions.

Thanks & BR,
Pawan Rathore

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

[android-developers] Re: Re: Android and WinXP: look for some tips

2011-11-07 Thread Chris


On Tuesday, November 8, 2011 4:52:05 PM UTC-5, SL wrote:
>
> >
> >
> > What do you mean?  You can use Android phones for development.  That
> > doesn't mean they are in some low-level debugging mode.
> >
>
> Assume that I have an Android phone plugged onto a winxp pc via a USB  
> cable, and my program on winxp is running 24/7.
>
Assumed, though you know what they say about assuming

I am just wondering whether it is appropriate to let the phone on  
> debug-mode all the time (because my program is no longer debugging).
>
If your program is no longer debugging (ie, doesn't have a remote debugger 
connected to it), its entirely appropriate.  Unsure what you're getting at 
here, but I keep the 'USB Debugging' pref on all time when I'm working on 
it, and only see slowdowns when there's a debugger actually attached to it.
 

> Your reply seems to indicate that it is not running in the debug-mode.
>

Your reply seems to indicate that you have some rather indirect concern. 

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

[android-developers] Help in integrating omniture in android app

2011-11-07 Thread Manish Garg
Hi,

I need help to get information regarding integration of Omniture in
Android app. Is it possible to integrate omniture in Android app and
collect analytics data.

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


Re: [android-developers] Customize Android Source Code to run multiple Application on same Screen.

2011-11-07 Thread Pawan Singh Rathore
Hi Kristopher,
Have you gone through this link , I
don't think they modified Platform.

Thanks & BR,
Pawan Rathore




On Tue, Nov 8, 2011 at 10:30 AM, Kristopher Micinski  wrote:

> "available to OEMs" mean they modified the platform...
>
> kris
>
> On Mon, Nov 7, 2011 at 11:18 PM, Pawan Singh Rathore
>  wrote:
> > Hi TreKing,
> > Please go through this link, hope you'll get some idea.
> > As people have already done it on honeycom.
> > Thanks & BR,
> > Pawan Rathore
> >
> >
> >
> >
> > On Tue, Nov 8, 2011 at 9:32 AM, TreKing  wrote:
> >>
> >> On Mon, Nov 7, 2011 at 9:59 PM, Pawan Singh Rathore
> >>  wrote:
> >>>
> >>> Currently, I don't know what changes I have to do,
> >>> Thats why I asked you experinced people.
> >>
> >> OK - but for the third time - this list is not for discussing modifying
> >> the source code to achieve things like this. So you will likely not
> find an
> >> answer here. If you post your question to a relevant list, you might get
> >> some direction as to where in the source to look to at least get you
> >> started.
> >>
> >>
> >>
> -
> >> 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
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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: Re: Android and WinXP: look for some tips

2011-11-07 Thread SL



What do you mean?  You can use Android phones for development.  That
doesn't mean they are in some low-level debugging mode.



Assume that I have an Android phone plugged onto a winxp pc via a USB  
cable, and my program on winxp is running 24/7.


I am just wondering whether it is appropriate to let the phone on  
debug-mode all the time (because my program is no longer debugging).


Your reply seems to indicate that it is not running in the debug-mode.


--
Using Opera's revolutionary email client: http://www.opera.com/mail/

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


Re: [android-developers] Re: Android and WinXP: look for some tips

2011-11-07 Thread Dianne Hackborn
On Mon, Nov 7, 2011 at 5:10 PM, SL@maxis  wrote:

>  Google  is my friend
>>
>> http://developer.android.com/**guide/developing/debugging/**ddms.html
>>
> I have a brief glimpse at the page, I a bit concerned that Android phoe
> would be running in the debug mode.


What do you mean?  You can use Android phones for development.  That
doesn't mean they are in some low-level debugging mode.

-- 
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] monkey wrench in the works ...

2011-11-07 Thread Dianne Hackborn
Sorry, I have no idea what you are talking about.

You stash away your state in onSaveInstanceState().  You get it back in
onCreate().

This is not directly related to onPause(), and definitely has nothing to do
with any  kind of constructor written like you show.  (In fact I would
strongly recommend not having a constructor at all on an Activity, it is
mostly a path to what you don't want.)

On Mon, Nov 7, 2011 at 6:42 PM, BCS  wrote:

> I saw this on a post from last January ~ monkey wrench in the works
> represented by Android's handling of image data outside of the Java
> heap ~ seems simple enough to do aggressive nulling but it does not
> sound like Android is doing the right thing here
>
> given that the docs state Activity Lifecycle Android will work on the
> idea that onPause() will be called in anything other than "brutal-
> dump" then one can write to Bundle and get it back when focus returns
> to the application
>
> thus we could just check objects for null and if Object != null
> then  would the value have been retained?
>
> seems rather simple - what gives?..
>
> Object value;
>
> MyClass(){ if (value == null) { value=new Object(); } }
>
> then if user wants to flip the phone around maybe we ^do^ need a new
> Object()
>
> maybe not
>
> if phone is filpped 20 times user may have to wait on gc but all of
> that is in the vendor's shop and would have to be hard-wired to work
> with the "whole thing" ~ trying to code away monkey wrench when one
> does not know where it is leads to knarled 
>
> suggestions on how to design ?..
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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: Android browser gets stuck when downloading files

2011-11-07 Thread gjs
Hi,

See http://developer.android.com/reference/org/apache/http/package-summary.html

Regards

On Nov 4, 7:43 am, arh  wrote:
> I have this very specific request that I need to implement. We are
> working on an application that lets users attach several different
> type of files (pdf, jpg, png, doc, txt, etc). I need to be able to
> download the file using Android's default browser.
>
> Here's the problem I have: the URL I get from the server is usually
> like this:https://server:port/notes/attachment/91and if I do:
>
> `Intent i = new Intent(Intent.ACTION_VIEW);
> i.setData(Uri.parse(url.toString()));
> mContext.startActivity(i);`
> Then, after the user authenticates the download seems to start but
> gets stuck in 0% and fails. I read that there's a restriction and
> Android's browser only downloads files the system recognizes, so I
> tried setting the type but then I get an exception:
>
> ERROR/AndroidRuntime(23344):
> android.content.ActivityNotFoundException: No Activity found to handle
> Intent { act=android.intent.action.VIEW dat=https://server:port/notes/
> attachment/91 typ=image/png }
>
> I'm not sure if this matters but the backend of this app is done in
> Ruby on Rails and also I know the name and type of file prior trying
> to download the file.
>
> I've already implemented a method for the app to handle the file
> download but the client wants to be completely sure there's no other
> way.
>
> One more thing, this app should support Android 2.1.
>
> Is there a way I can download this file using Android's file?

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


Re: [android-developers] Customize Android Source Code to run multiple Application on same Screen.

2011-11-07 Thread Kristopher Micinski
"available to OEMs" mean they modified the platform...

kris

On Mon, Nov 7, 2011 at 11:18 PM, Pawan Singh Rathore
 wrote:
> Hi TreKing,
> Please go through this link, hope you'll get some idea.
> As people have already done it on honeycom.
> Thanks & BR,
> Pawan Rathore
>
>
>
>
> On Tue, Nov 8, 2011 at 9:32 AM, TreKing  wrote:
>>
>> On Mon, Nov 7, 2011 at 9:59 PM, Pawan Singh Rathore
>>  wrote:
>>>
>>> Currently, I don't know what changes I have to do,
>>> Thats why I asked you experinced people.
>>
>> OK - but for the third time - this list is not for discussing modifying
>> the source code to achieve things like this. So you will likely not find an
>> answer here. If you post your question to a relevant list, you might get
>> some direction as to where in the source to look to at least get you
>> started.
>>
>>
>> -
>> 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

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Customize Android Source Code to run multiple Application on same Screen.

2011-11-07 Thread Dianne Hackborn
Please stop posting here.  This list is not for discussion about modifying
Android.  You will not get any help for that here.  Go to android-porting
or somewhere else more appropriate.

On Mon, Nov 7, 2011 at 8:18 PM, Pawan Singh Rathore <
pawan.s.rath...@gmail.com> wrote:

> Hi TreKing,
> Please go through this 
> link,
> hope you'll get some idea.
> As people have already done it on honeycom.
>
> Thanks & BR,
> Pawan Rathore
>
>
>
>
> On Tue, Nov 8, 2011 at 9:32 AM, TreKing  wrote:
>
>> On Mon, Nov 7, 2011 at 9:59 PM, Pawan Singh Rathore <
>> pawan.s.rath...@gmail.com> wrote:
>>
>>> Currently, I don't know what changes I have to do,
>>> Thats why I asked you experinced people.
>>>
>>
>> OK - but for the third time - this list is not for discussing modifying
>> the source code to achieve things like this. So you will likely not find an
>> answer here. If you post your question to a relevant list, you might get
>> some direction as to where in the source to look to at least get you
>> started.
>>
>>
>>
>> -
>> 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
>



-- 
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] Customize Android Source Code to run multiple Application on same Screen.

2011-11-07 Thread Pawan Singh Rathore
Hi TreKing,
Please go through this link , hope you'll get some
idea.
As people have already done it on honeycom.
Thanks & BR,
Pawan Rathore




On Tue, Nov 8, 2011 at 9:32 AM, TreKing  wrote:

> On Mon, Nov 7, 2011 at 9:59 PM, Pawan Singh Rathore <
> pawan.s.rath...@gmail.com> wrote:
>
>> Currently, I don't know what changes I have to do,
>> Thats why I asked you experinced people.
>>
>
> OK - but for the third time - this list is not for discussing modifying
> the source code to achieve things like this. So you will likely not find an
> answer here. If you post your question to a relevant list, you might get
> some direction as to where in the source to look to at least get you
> started.
>
>
>
> -
> TreKing  - Chicago
> transit tracking app for Android-powered devices
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

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

Re: [android-developers] Customize Android Source Code to run multiple Application on same Screen.

2011-11-07 Thread TreKing
On Mon, Nov 7, 2011 at 9:59 PM, Pawan Singh Rathore <
pawan.s.rath...@gmail.com> wrote:

> Currently, I don't know what changes I have to do,
> Thats why I asked you experinced people.
>

OK - but for the third time - this list is not for discussing modifying the
source code to achieve things like this. So you will likely not find an
answer here. If you post your question to a relevant list, you might get
some direction as to where in the source to look to at least get you
started.

-
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] Customize Android Source Code to run multiple Application on same Screen.

2011-11-07 Thread Pawan Singh Rathore
Hi TreKing,

Currently, I don't know what changes I have to do,
Thats why I asked you experinced people.
We will have our own hardware that runs Android.


Thanks & BR,
Pawan Rathore




On Tue, Nov 8, 2011 at 6:19 AM, TreKing  wrote:

> On Mon, Nov 7, 2011 at 7:00 AM, Pawan Singh Rathore <
> pawan.s.rath...@gmail.com> wrote:
>
>> Can you please share your idea, that how can I achieve this?
>
>
> Ask on a list that's related to modifying the source. You're not going to
> achieve this with the SDK.
>
>
>
> -
> TreKing  - Chicago
> transit tracking app for Android-powered devices
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

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

Re: [android-developers] Re: Customize Android Source Code to run multiple Application on same Screen.

2011-11-07 Thread Pawan Singh Rathore
Hi Spiral,
Let me clear scenario to you,  Suppose I want to run Internet browser on
50% screen, and on rest of 50% screen I want to run any chat application.
Can this thing be achieved,  You can go through this
link,People already have
achieved this.
Can you please share your thoughts regarding this.



Thanks & BR,
Pawan Rathore




On Tue, Nov 8, 2011 at 3:57 AM, Spiral123  wrote:

> just to be sure that everyone is on the same page here
>
> when you say "run multiple Application on the same screen", what do
> you mean?
>
> can you give an example of what you are trying to achieve please.
>
>
>
>
> On Nov 7, 1:48 am, Pawan Singh Rathore 
> wrote:
> > Hi All,
> >
> > I need to customize Android Source code in  a such a way that, It can run
> > multiple Application on  the same screen.
> > Is that possible? Please share your thoughts and Ideas...
> >
> > Thanks & BR,
> > Pawan
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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: remap hardware buttons for UI navigation

2011-11-07 Thread lbendlin
Never mind. I just discovered the joys of android:nextFocusDown - just what 
I needed.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Customize Android Source Code to run multiple Application on same Screen.

2011-11-07 Thread Pawan Singh Rathore
Hi Mark,
Thanks for your response, I am big fan of you.
Your examples are always helpful to me.
I want to achieve some think like this.
Can you please share some idea, that how can I do this task.



Thanks & BR,
Pawan Rathore




On Mon, Nov 7, 2011 at 6:36 PM, Mark Murphy  wrote:

> On Mon, Nov 7, 2011 at 8:03 AM, Pawan Singh Rathore
>  wrote:
> > But using fragments how can we run app, inside fragment.
>
> You can't. This would require substantial modifications to Android itself.
>
> --
> Mark Murphy (a Commons Guy)
> http://commonsware.com | http://github.com/commonsguy
> http://commonsware.com/blog | http://twitter.com/commonsguy
>
> Android Training...At Your Office: http://commonsware.com/training
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

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

Re: [android-developers] Android service killed immediately after start, despite calling startForeground()

2011-11-07 Thread Mark Murphy
On Mon, Nov 7, 2011 at 1:07 PM, Chris  wrote:
> I'm having a problem with my IntentService. Every time I start my
> service, the onDestroy() method is called as soon as the service
> becomes idle.

That is largely the definition of an IntentService. Once
onHandleIntent() completes its work on the background thread, the
service shuts down. Or, as the IntentService JavaDocs puts it:

"IntentService is a base class for Services that handle asynchronous
requests (expressed as Intents) on demand. Clients send requests
through startService(Intent) calls; the service is started as needed,
handles each Intent in turn using a worker thread, and stops itself
when it runs out of work."

> Reading the developer docs gives me the impression that calling
> startForeground() will allow your service to persist, even when idle,
> except when there is an very high demand for memory, or am I reading
> this wrong?

You are incorrect in your interpretation of startForeground().

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

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

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


Re: [android-developers] "lights out" mode PLUS menu soft key?

2011-11-07 Thread Mark Murphy
Put a menu in your UI. If you don't want it in the action bar (because
you have no other need for the action bar), that's fine -- put a menu
button somewhere in your UI that your users will find and use. Or
don't use menus, but rather some other UI paradigm (I haven't
encountered many games that use native options menus).

On Mon, Nov 7, 2011 at 4:01 PM, thedude  wrote:
> I am trying to add "lights out" mode to my game, but cannot get it to
> coexist with the "menu" soft key, which I still need to be accessible.
>
> To elaborate,  setSystemUiVisibility(View.STATUS_BAR_HIDDEN) seems to
> have no effect unless I also target sdk version 11 in my
> AndroidManifest ( android:targetSdkVersion="11"/>), which has the side effect of hiding
> the menu soft key.
>
> Any ideas?
>
> Thanks,
> Gil
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



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

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

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


[android-developers] monkey wrench in the works ...

2011-11-07 Thread BCS
I saw this on a post from last January ~ monkey wrench in the works
represented by Android's handling of image data outside of the Java
heap ~ seems simple enough to do aggressive nulling but it does not
sound like Android is doing the right thing here

given that the docs state Activity Lifecycle Android will work on the
idea that onPause() will be called in anything other than "brutal-
dump" then one can write to Bundle and get it back when focus returns
to the application

thus we could just check objects for null and if Object != null
then  would the value have been retained?

seems rather simple - what gives?..

Object value;

MyClass(){ if (value == null) { value=new Object(); } }

then if user wants to flip the phone around maybe we ^do^ need a new
Object()

maybe not

if phone is filpped 20 times user may have to wait on gc but all of
that is in the vendor's shop and would have to be hard-wired to work
with the "whole thing" ~ trying to code away monkey wrench when one
does not know where it is leads to knarled 

suggestions on how to design ?..

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

2011-11-07 Thread Francisco Dalla Rosa soares
create a REST API to do the operations you need. That's the easiest and
cleanest way.

2011/11/8 fba 

> Hi Charan,
>
> There isn't an easy way in Android to access a remote database.   I
> suppose you could dig around and figure out how mysql communicates
> across the network, and then develop an interface from there.
> However, it seems that would be pretty involved.
>
> I had a need to do something similar with a previous project.  The
> "easiest" way I could find was to hack up a little PHP to run on
> Apache that would output the data I needed in XML.   I could then put
> the XML through the SAX parser, and end up with the data I needed.   I
> suspect something like this is going to be your best bet.
>
> On Nov 6, 6:19 am, Charan  wrote:
> > Hello members,
> >
> > I am a novice android app developer. As of now i'm developing an app,
> that
> > needs to communicate with remote database.
> >
> > I tried using web service but that not working to me. Please provide me
> > complete information from A to Z steps in conencting, communicating, get
> > response from remote database. i am using mysql has remote database.
> >
> > Please respond quickly, urgent help needed.
> >
> > Thanking you,
> > --
> > With Regards,
> > Charan Kumar
> >
> > "COMPARISON IS THE BEST WAY TO JUDGE YOUR PROGRESS.
> > BUT DON'T COMPARE WITH OTHERS, COMPARE YOUR YESTERDAY WITH YOUR TODAY"
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
株式会社アルゴ ARGO Inc.
〒130-0012
東京都墨田区太平3-11-10
NTKオオノビル8階

ソアレス フランシスコ ( Soares Francisco )
Mail : soa...@argo.bz HP : http://www.argo.bz/
TEL:03-5619-4511 FAX:03-5619-4512

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

2011-11-07 Thread bjthe4th
Thanks, I had been switching between some different Intent Filters and 
hadn't returned it to proper format. I had changed the mime type and had 
forgotten to change it in the manifest. And I had left the "l" out of 
. Thanks for getting me to take a second look at it!

For external types I have figured out how to do it. If anyone else is 
wondering how to do it, here is what I did.

Manifest file:




   

Setting up the Foreground Dispatch
mPendingIntent = PendingIntent.getActivity(this, 0, new 
Intent(this, getClass()).addFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP), 0);
IntentFilter ndef = new 
IntentFilter(NfcAdapter.ACTION_NDEF_DISCOVERED);
try{
ndef.addDataScheme("vnd.android.nfc");
ndef.addDataAuthority("ext", null);
ndef.addDataPath("/mysite.com:a", 0);
}
catch (Exception e)
{
throw new RuntimeException("fail", e);
}

mFilters = new IntentFilter[]{ ndef };

  I hope it helps someone!

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

[android-developers] Re: Android and WinXP: look for some tips

2011-11-07 Thread SL@maxis



Google  is my friend

http://developer.android.com/guide/developing/debugging/ddms.html



I have a brief glimpse at the page, I a bit concerned that Android phoe  
would be running in the debug mode.



--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Customize Android Source Code to run multiple Application on same Screen.

2011-11-07 Thread TreKing
On Mon, Nov 7, 2011 at 7:00 AM, Pawan Singh Rathore <
pawan.s.rath...@gmail.com> wrote:

> Can you please share your idea, that how can I achieve this?


Ask on a list that's related to modifying the source. You're not going to
achieve this with the SDK.

-
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: Incorrect output values with gluUnProject… why?

2011-11-07 Thread Streets Of Boston
I experienced similar issues with gluUnProject. I wrote my own 
implementation. I posted it on this board a few years ago:
https://groups.google.com/d/msg/android-developers/nSv1Pjp5jLY/wX9QEe6jzwcJ

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

2011-11-07 Thread Kristopher Micinski
One suggestion if you go for ubuntu is to switch to the sun jdk (and
jre), instead of the default openjdk..

kris

On Mon, Nov 7, 2011 at 12:59 PM, Elias de Oliveira
 wrote:
> The best distro is that you know how to use.
>
> If you know ubuntu use ubuntu, if you know trisquel use trisquel.
> Simple like that.
>
> Any problem that may occurs you will know how to solve or how ask help ;)
>
> regards,
> Elias.
>
> 2011/11/7 aesptux :
>> I suggest Fedora 15 (Fedora 16 is coming out in two days) as the best
>> option.
>> I'm currently using it (I changed from Ubuntu) and I'm happier with it.
>> Best regards,
>> Adrián.
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] Stop service when next time app is started

2011-11-07 Thread Kristopher Micinski
Do you know how to start a service?  you do a startService() on a context...

Stopping the service is now literally calling a stopService() on the context...

So now all you have to do is call these methods.  You might think that
you have to keep the global application state around, but this isn't
really so bad, because your app and the service are both running at
the same time (i.e., they are *not* separate processes, it's just that
what you see in an activity is what people usually think of as the
app..., the service will run within your app!)

kris

On Mon, Nov 7, 2011 at 5:31 PM, Goutom  wrote:
> Hi
> I have an app with one screen(just one button). I will press the button and
> the background service will start(after binding with this activity).
> Close the app.Next time when I will start the app and if I press the button
> then my previous background service will stop.
>
> How to do this?
>
> Take care.
>
> Regards
> Goutom Roy
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] Has something changed recently with how the Market processes the Manifest File

2011-11-07 Thread tschallb
Hi Folks,

We are seeing some strange behavior with how the Market processes our
Manifest file.  This weekend we noticed that our list of available
devices dropped from 590 to 196.  If I then take a look at the Device
List itself I now have devices that can no longer Enable or Disable
manually as they are an "unsupported device due to your manifest
settings".

Has anyone else noticed this behavior recently?  Has there been any
new Filter Parameters added?

The Required device features shown are:
 android.hardware.location.network
 android.hardware.microphone
 android.hardware.location
 android.hardware.touchscreen
 android.hardware.screen.portrait

Our Manifest has the following:

...
  
  
  
  
  
  
  

  

Thanks,
Tim

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

2011-11-07 Thread krohnjw
WRT addDataType(string) I've only used it with mime types so I'll let 
someone else comment on the best practice here.


As far as the mime based filter, the more specific filter should start fire 
first.  If you have specified your app as default, for the correct action 
and for your specific mime type it should launch with no competition from 
other apps (no chooser dialog).

Were you specifying the filter in the manifest or at run time? 

Here's an example mime based filter to be specified under the activity in 
your manifest:

 

 
 


I use this type of filter in a few different apps and have yet to have any 
issues with my app(s) not starting when the tags are read or presenting the 
chooser dialog.

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

[android-developers] Displaying Percentage Text inside Android Progressbar

2011-11-07 Thread Ryan
In order to display a percentage text inside Android's progressbar,
you will need to set up a .  Give the RelativeLayout
parameters followed below:

android:layout_width="200dip"
android:layout_height="30dip"
android:padding="0dip"

Then close your RelativeLayout.  Inside your layout, insert your
 with following parameters:

android:id="@+id/youridgoeshere"
android:layout_width="200dip"
android:layout_height="30dip"
android:layout_centerInParent="true"
style="?android:attr/progressBarStyleHorizontal"
android:indeterminateOnly="false"
android:max="100"

That's all for the progressbar, now on to the percentage text.  Create
a  inside your layout and give it the following parameters:

android:"@+id/youridgoeshere"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:textColor="#00"
android:textStyle="bold"

Close your TextView and there you have it!!! Your text should be
centered horizontally and vertically inside your progressbar.  The key
is to set up a relative layout while keeping it the same width as the
progress bar. Then using the parameter "centerInParent" keeps both the
progress bar and textview in the center of the relative parent.  Hope
this helps out. Enjoy!

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


[android-developers] Android service killed immediately after start, despite calling startForeground()

2011-11-07 Thread Chris
Hi,

I'm having a problem with my IntentService. Every time I start my
service, the onDestroy() method is called as soon as the service
becomes idle. I set up my service to run in the foreground, and
despite this the service is still being killed right away. I have only
one other activity in my application, and it is not calling
stopService().

Reading the developer docs gives me the impression that calling
startForeground() will allow your service to persist, even when idle,
except when there is an very high demand for memory, or am I reading
this wrong?

My code below:

public class FileMonitorService extends IntentService {
  public int mNotifyId = 273;
  public FileMonitorService(){
super("FileMonitorService");
}

@Override
protected void onHandleIntent(Intent arg0) {

}

@Override
public void onDestroy() {
Toast.makeText(this, getText(R.string.toast_service_stop),
Toast.LENGTH_SHORT).show();
stopForeground(true);
super.onDestroy();
}

@Override
public int onStartCommand(Intent intent, int flags, int startId)
{
Notification notification = new Notification(R.drawable.icon,
getText(R.string.notification_short), System.currentTimeMillis());
notification.flags|=Notification.FLAG_NO_CLEAR;
Intent notificationIntent = new Intent(this,
FileMonitorActivity.class);
PendingIntent pendingIntent = PendingIntent.getActivity(this, 0,
notificationIntent, 0);
notification.setLatestEventInfo(this,
getText(R.string.notification_short),getText(R.string.notification_long),
pendingIntent);
startForeground(mNotifyId, notification);


Toast.makeText(this, getText(R.string.toast_service_start),
Toast.LENGTH_SHORT).show();
return super.onStartCommand(intent, flags, startId);
}
}

Thanks for any suggestions.

Cheers,
Chris

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


[android-developers] BT headset profile customization

2011-11-07 Thread Ronnie R
Hi,

I have been working on Bluetooth (BT) profiles to develop a module in
order to play with AT commands that would allow me to do following to
tasks:

1. Need to develop a wrapper that would help be setting up priority of
responding to BT client service discovery request instead of native
device/OS service module accept and acknowledge the BT client service
discovery request.

2. As Android OS 3.0 and above provide public API to access the BT
headset and handfree profile, that would allow access the BT h/w
through proxy, run AT commands to to find and authenticate the
headsets and recognize the voice for BT voice streaming. The problem
that i am facing and to define a class at application level using
these API calls with in the application search for available BT
devices based on available Servicediscovery module and reverse the
authentication process between BT client and BT server so that instead
of device giving accepting client and declaring the client as handfree/
headset, BT server itself becomes the client/headset and other BT
connected device (client) can receive the commands.
I have created the BT discovery, voice stream communication (working)
and handshaking the headset profile as provided by API however unable
to find the reverse work around, please suggest if this Android API
framework provide support such level of customization and is feasible.

Regards
Ronnie

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

2011-11-07 Thread Elias de Oliveira
The best distro is that you know how to use.

If you know ubuntu use ubuntu, if you know trisquel use trisquel.
Simple like that.

Any problem that may occurs you will know how to solve or how ask help ;)

regards,
Elias.

2011/11/7 aesptux :
> I suggest Fedora 15 (Fedora 16 is coming out in two days) as the best
> option.
> I'm currently using it (I changed from Ubuntu) and I'm happier with it.
> Best regards,
> Adrián.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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


[android-developers] Ideas for optimally developing a game with lots of animations without using openGL

2011-11-07 Thread JustTheTroll
So I' d like to develop a game that involves a lot of animations (like
>1000 frames made from images in 320*426 format). I already tried one
shot at it by creating sprite classes that have arrays of id's for
each frame from the res/drawables/ folder needed by the sprite). Using
2 sprites each of approximately 32 frames i got within 100kbytes from
going over heap budget (i used debug.getnativeheapsize/freesize/
allocatedsize to track my progress).
I also tried using animations created from animation-list xml's (=> it
went over heap budget).
Oh, also, my game will also make use of sounds.

Any suggestion is extremely welcomed. Thank you ^ ^

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


[android-developers] Way to save edittext box data in the xml code itself?

2011-11-07 Thread Neeta
Is there a way of saving data users have entered in an EditText box in
the xml itself? I don't want to have to write Java code to have to
grab the entered data and save 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


Re: [android-developers] Compound Component not getting onKeyDown onKeyListener events for Droid Bionic or X2

2011-11-07 Thread Eric Carman
Hello Dianne,

I don't have access to the physical devices, but the Motorola emulator was 
very helpful. I agree with your thoughts that the multi-touch keyboard 
might be at the root and I've posted to the Motorola forums with the sample 
project that demonstrates the issue. Hopefully they will take a look and 
make a determination as to where the issue actually lies.

But, on a more positive front, I took you advice and did some research on 
the onCreateInputConnection. By adding the following to my component, the 
problem has resolved itself. I got it to working on the Motorola emulator 
and a couple of very helpful customers tested it on their physical devices.


@Override
public InputConnection onCreateInputConnection(EditorInfo outAttrs) {
return new BaseInputConnection(this, false) {
@Override
public boolean sendKeyEvent(KeyEvent event) {
return super.sendKeyEvent(event);
}
};
}

Thank you again for your advice and participation in this forum. I am AGAIN 
extremely grateful for your help.

Best Regards,
Eric

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

[android-developers] Stop service when next time app is started

2011-11-07 Thread Goutom
Hi
I have an app with one screen(just one button). I will press the button and
the background service will start(after binding with this activity).
Close the app.Next time when I will start the app and if I press the button
then my previous background service will stop.

How to do this?

Take care.

Regards
Goutom Roy

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Customize Android Source Code to run multiple Application on same Screen.

2011-11-07 Thread Spiral123
just to be sure that everyone is on the same page here

when you say "run multiple Application on the same screen", what do
you mean?

can you give an example of what you are trying to achieve please.




On Nov 7, 1:48 am, Pawan Singh Rathore 
wrote:
> Hi All,
>
> I need to customize Android Source code in  a such a way that, It can run
> multiple Application on  the same screen.
> Is that possible? Please share your thoughts and Ideas...
>
> Thanks & BR,
> Pawan

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


[android-developers] "lights out" mode PLUS menu soft key?

2011-11-07 Thread thedude
I am trying to add "lights out" mode to my game, but cannot get it to
coexist with the "menu" soft key, which I still need to be accessible.

To elaborate,  setSystemUiVisibility(View.STATUS_BAR_HIDDEN) seems to
have no effect unless I also target sdk version 11 in my
AndroidManifest (), which has the side effect of hiding
the menu soft key.

Any ideas?

Thanks,
Gil

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Incorrect output values with gluUnProject… why?

2011-11-07 Thread Romain Guy
OpenGL ES (1.0 and 2.0) does not offer a way to read the depth buffer. You
can fake it in 2.0 by using a custom shader to render the scene in an FBO.
Here's the fragment shader I've used in the past to achieve this:

// uniform float UNI_near;
// uniform float UNI_far;

void main() {
// Non-linear depth value
float z = gl_FragCoord.z;
// Near and far planes from the projection
float n = UNI_near;
float f = UNI_far;
// Linear depth value
z = (2.0 * n) / (f + n - z * (f - n));

gl_FragColor = vec4(z, z, z, 1.0);
}

On Mon, Nov 7, 2011 at 12:48 PM, Latimerius wrote:

> On Mon, Nov 7, 2011 at 6:01 PM, saex  wrote:
> > Yes Latimerius, i think that i dont have to pass 0 as winZ parameter,
> > but i dont know how to get the Z value from the depth buffer. I'm
> > programming for Android 1.5 and openGL ES1, i didn't find a working
> > way to obtain winZ value on google after hours of searching :(
> >
> > Did you know how to do it?
>
> Actually, if you're stuck with GL ES 1.0, unfortunately I'm not aware
> of a way to read the depth buffer. I'm no expert on legacy GL ES
> though so you might want to consider asking on a GL ES forum -
> although there might not be a direct way to read the depth buffer
> under GL ES 1.0 someone could know a work-around.
>
> If you can't use GL to do the unprojection you can still compute it
> manually.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
Romain Guy
Android framework engineer
romain...@android.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] In-app billing: Creating coupons ?

2011-11-07 Thread Kostya Vasilyev
In-app billing does not allow free (of charge) items. You can refund a 
purchase once it's been completely processed (i.e. the money actually 
changed hands) and keep activation (it's up to the application code to 
treat refunded items as active: Dungeons does this).


There is no expiration date either, although you could try unpublishing 
the item in the Dev Console - don't know if this affects existing 
transactions; it might. This assumes that the app does a restore 
transactions once in a while (which is subject to throttling on Google's 
side).


Some similar requests for enhancements have been filed:

http://code.google.com/p/marketbilling/issues/detail?id=12

http://code.google.com/p/marketbilling/issues/detail?id=3

... but not specifically for coupon type functionality. You are welcome 
to do so (but I wonder if it makes any difference).


At this time, I'd go with some other solution, perhaps an activator type 
application that could be installed alongside the main one, and would 
talk to your own server.


-- Kostya

08.11.2011 0:38, androidmediadeveloper пишет:

We want the ability to setup a beta program for our pro app, which
uses in-app billing. I am exploring the possibility of giving our beta
testers access to the pro features on the app for free for a limited
amount of time, i.e., until we ship it in public. Was wondering if
there is a way to generate and issue something like a coupon which can
be redeemed by the beta tester to access the pro features. And, for us
as developers to have a way to put an "expiry" on the access acquired
via the coupon.

Thanks!



--
Kostya Vasilyev

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


Re: [android-developers] Re: Incorrect output values with gluUnProject… why?

2011-11-07 Thread Latimerius
On Mon, Nov 7, 2011 at 6:01 PM, saex  wrote:
> Yes Latimerius, i think that i dont have to pass 0 as winZ parameter,
> but i dont know how to get the Z value from the depth buffer. I'm
> programming for Android 1.5 and openGL ES1, i didn't find a working
> way to obtain winZ value on google after hours of searching :(
>
> Did you know how to do it?

Actually, if you're stuck with GL ES 1.0, unfortunately I'm not aware
of a way to read the depth buffer. I'm no expert on legacy GL ES
though so you might want to consider asking on a GL ES forum -
although there might not be a direct way to read the depth buffer
under GL ES 1.0 someone could know a work-around.

If you can't use GL to do the unprojection you can still compute it manually.

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


[android-developers] In-app billing: Creating coupons ?

2011-11-07 Thread androidmediadeveloper
We want the ability to setup a beta program for our pro app, which
uses in-app billing. I am exploring the possibility of giving our beta
testers access to the pro features on the app for free for a limited
amount of time, i.e., until we ship it in public. Was wondering if
there is a way to generate and issue something like a coupon which can
be redeemed by the beta tester to access the pro features. And, for us
as developers to have a way to put an "expiry" on the access acquired
via the coupon.

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: No APK file or DEX files are created - with no warning or Error whatsoever

2011-11-07 Thread jtoolsdev
I also found that selecting Run As->Android Application would trigger a 
build if nothing else would.



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

2011-11-07 Thread Marcin Orlowski
On 7 November 2011 09:51, Eugene Paschenko  wrote:

> I am using ACTION_TIME_CHANGED and ACTION_DATE_CHANGED. onReceiver
> calling after time was changed and I call System.currentTimeMillis()
> and got new time. How I can get old time or delta time?
>

You can't as there's no "old time" concept there. You simply get
notification that time has changed and that's it.

Regards,
Marcin Orlowski

*Tray Agenda * - keep you daily schedule handy...
*Date In Tray*  - current date at glance...
WebnetMobile on *Facebook * and
*Twitter
*

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

[android-developers] The new KeyChain API

2011-11-07 Thread fba
Has anyone out there attempted to use the new KeyChain APIs?   They
don't seem to work the way I would expect.

I am able to install a certificate easily enough using
KeyChain.createInstallIntent(), and passing it a PEM formatted
certificate.

The documentation indicates that you need the USE_CREDENTIALS
permission in order to read any certificate data back.  So, I have
enabled that. However, once I go back and try to read out the
certificate data with KeyChain.getCertificateChain() I get the
exception "java.lang.IllegalStateException: uid 10040 doesn't have
permission to access the requested alias".   Looking at the
documentation indicates that you need the USE_CREDENTIALS permission.

Has anybody made something like this work?


In trying to figure this out, I dug a little deeper to see what I
could find.   When I got a shell to the emulator, I found that my
certificate had been installed in two places.  One was in /data/misc/
keystore, and the other was in /data/misc/keychain/cacerts-added.
The new certificate also shows up in the Settings->Security->Trusted
Credentials->User.   So, the certificate appears to have been
installed correctly.

Digging around a little more found the database in /data/data/
com.android.keychain/databases.  This database looks like it is
supposed to handle the permission mapping for certificates that are
installed.  So, for fun, I added an entry to the database that I
thought should give uid 10040 access to the certificate with the alias
of "Testing".  ("Testing" is the alias I used to install the
certificate in the first place.)   When I run my test app, I no longer
get the "uid 10040 doesn't have permission..." error.  However, I now
get this error : "java.lang.IllegalArgumentException: bytes ==
null".   This change in errors would seem to indicate that my theory
about the permissions is correct, but even when it is fixed the
certificate still won't be returned to me.

Any help would be appreciated.

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


[android-developers] Re: Need help on connecting android app to remote database.

2011-11-07 Thread fba
Hi Charan,

There isn't an easy way in Android to access a remote database.   I
suppose you could dig around and figure out how mysql communicates
across the network, and then develop an interface from there.
However, it seems that would be pretty involved.

I had a need to do something similar with a previous project.  The
"easiest" way I could find was to hack up a little PHP to run on
Apache that would output the data I needed in XML.   I could then put
the XML through the SAX parser, and end up with the data I needed.   I
suspect something like this is going to be your best bet.

On Nov 6, 6:19 am, Charan  wrote:
> Hello members,
>
> I am a novice android app developer. As of now i'm developing an app, that
> needs to communicate with remote database.
>
> I tried using web service but that not working to me. Please provide me
> complete information from A to Z steps in conencting, communicating, get
> response from remote database. i am using mysql has remote database.
>
> Please respond quickly, urgent help needed.
>
> Thanking you,
> --
> With Regards,
> Charan Kumar
>
> "COMPARISON IS THE BEST WAY TO JUDGE YOUR PROGRESS.
> BUT DON'T COMPARE WITH OTHERS, COMPARE YOUR YESTERDAY WITH YOUR TODAY"

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

2011-11-07 Thread Michael Chan
Hi,

> Are you saying there is no way to help the user subscribe to a public> google 
> calendar via the new calendar api?
There just isn't a *supported* way via the Android Calendar API. (You
can always do some reverse engineering and get something that work for
now. But it may break suddenly one day when the user gets an update.
So I really really want discourage everyone from doing that.)

> Is there a better, more supported way to do this?

The only supported way today is to talk to the server directly via the
GData api.  You need to figure out how to get the credentials.
http://code.google.com/apis/calendar/data/2.0/developers_guide.html
Looks like the code below is doing that.

> Also what do you mean by using the browser?  Can I make the calendar
> visible and sync'ed via the browser?

2 way:
1) Instruct the user to do it manually
2) Send the user to
https://www.google.com/calendar/render?cid= or
http://www.google.com/calendar/hosted//render?cid=. The user has to say they want to use the desktop UI, zoom in, and
click "Yes, add this calendar". It is not a great experience.  The
other drawback here is that the user won't be able to choose which
account the calendar should be added to.

Thanks,
Mike

On Fri, Nov 4, 2011 at 6:13 PM, Ralph  wrote:
> Hi Michael,
>
> Thanks again.
>
> Are you saying there is no way to help the user subscribe to a public
> google calendar via the new calendar api?
>
> I am already subscribing using some example from Yaniv Inbar a while
> back:
>
> where ALERT_CALENDAR is "nyc.ale...@brooklynmarathon.com"
>
> Is there a better, more supported way to do this?
>
> Also what do you mean by using the browser?  Can I make the calendar
> visible and sync'ed via the browser?
>
>
> Thanks,
> Ralph
>
>  private void subscribeCalendar()
>  {
>    CalendarUrl url  = CalendarUrl.forAllCalendarsFeed();
>    Log.i(TAG,"ADD NEW CALENDAR: " + url);
>    CalendarEntry calendar = new CalendarEntry();
>    //calendar should have something like setid of gdata api
>
>    calendar.id = ALERT_CALENDAR;
>    //calendar.title = "Test: " + new DateTime(new Date());
>    try {
>      calendar.executeInsert(transport, url);
>
>      AlertDialog builder;
>      try {
>          builder = MessageDialogBuilder.create(this, MESSAGE );
>          builder.show();
>      } catch (NameNotFoundException e) {
>          // TODO Auto-generated catch block
>          e.printStackTrace();
>      }
>    } catch (IOException e) {
>      handleException(e);
>    }
>
>  }
>
> On Nov 4, 12:38 pm, Michael Chan  wrote:
>> Hi Ralph,
>>
>> I wish I have a solution for you. That's not supported right now. The only
>> (not so good) way is to use the browser. I will file an internal feature
>> request if we don't have one already.
>>
>> Thanks,
>> Mike
>>
>>
>>
>>
>>
>>
>>
>> On Fri, Nov 4, 2011 at 7:24 AM, Ralph  wrote:
>> > Hi Michael and thank you.
>>
>> > Can you let us know the recommended way to subscribe a user to a
>> > public google calendar.
>>
>> > For example, let's say you have a google calendar with public
>> > information.  for example, some city alerts etc. data.
>>
>> > We want to make it easy for the user to subscribe to the public
>> > calendar and make it sync'ed and visible (with their permission of
>> > course)
>>
>> > Today, I have to give them instructions and it seems that each phone
>> > manufacturer has implemented the calendar in a different way so the
>> > instructions are very complicated.  What I'd like to send the user to
>> > a screen with the calendar subscription (visible and sync'ed) already
>> > set up and let them confirm it.
>>
>> > Thanks,
>> > Ralph
>>
>> > On Nov 3, 2:29 pm, Michael Chan  wrote:
>> > > Hi,
>>
>> > > I believe the GoogleCalendarSyncAdapter was not included in the
>> > > emulator. That's why you can't sync Google Calendars in the emulator.
>>
>> > > The new Calendar API will support viewing, adding events (not
>> > > calendars) via Intents. The user will need to confirm before the event
>> > > is saved.
>>
>> > > Adding *Google* calendars via the provider is not supported at this
>> > > time.
>>
>> > > We will be publishing a developer guide for Calendar APIs with more
>> > > details on the set of supported intents as well as code snippets.
>>
>> > > managedQuery has been deprecated. It can cause ANRs. The recommend way
>> > > is to use a CursorLoader (http://developer.android.com/reference/
>> > > android/content/CursorLoader.html).  If you just need to read the data
>> > > and can close the query immediately, you can still do a query (in a
>> > > non-UI thread), read the data you want, and close the cursor.
>>
>> > > Thanks,
>> > > Mike
>>
>> > > On Nov 3, 8:20 am, Ralph  wrote:
>>
>> > > > Thanks again.
>>
>> > > > I can say that if you have access to an exchange server then the
>> > > > following examples do work in the android 4.0 level 14 emulator using
>> > > > google apis at the moment:
>>
>> > > > Insert an event via Intents:
>> > > >                         In

[android-developers] Tools for adding print Logs inside the Android Code

2011-11-07 Thread s.rawat
HI,
I am trying to understand the android code flow for camera module.Is there
any script to insert the print logs(FILENAME_FUNCTIONNAME_LINENUMBER)
inside the android code(java , cpp and c files) .I am planning to do this
and compile the image and run it and logcat the output while I run the
camera.apk application.Is it fine to do this sort of code analysis.I know
task is cumbersome , any other drawback for this approach.Plz assit.
Rgds,
Saurabh

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

[android-developers] remap hardware buttons for UI navigation

2011-11-07 Thread lbendlin
On the Parrot Asteroid there is only a scroll wheel that creates the 
keycodes 19 and 20 for vertical navigation. The device also has media 
buttons, specifically 87 and 88. I would like to translate these into the 
horizontal dpad keys to allow users the selection of buttons that are in a 
row.  I tried this

   @Override
public boolean onKeyDown(int keyCode, KeyEvent event) {

if(keyCode == KeyEvent.KEYCODE_MEDIA_PREVIOUS)
keyCode = KeyEvent.KEYCODE_DPAD_LEFT;
if(keyCode == KeyEvent.KEYCODE_MEDIA_NEXT)
keyCode = KeyEvent.KEYCODE_DPAD_RIGHT;

return super.onKeyDown(keyCode, event);
}


and while the keys are properly recognized they don't seem to translate 
into shifting the focus. 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: Directing user to webpage, then back to app

2011-11-07 Thread Neilz
Ah... it works when I run it from your sample page, yes. It doesn't
work from a WebView, hence my initial confusion.

At least I have the principle working... I can't actually test it in
full, as I want to pass parameters too, but don't have a webpage I can
manipulate at this moment.

Thanks for persevering...

On Nov 7, 5:37 pm, Mark Murphy  wrote:
> I can't speak for WebView. Point a browser 
> athttp://commonsware.com/sampletosee a page that uses links to be
> picked up by the sample app's activity.
>
> Mark Murphy
> mmur...@commonsware.com
> On Nov 7, 2011 9:12 AM, "Neilz"  wrote:
oup/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: Directing user to webpage, then back to app

2011-11-07 Thread Mark Murphy
I can't speak for WebView. Point a browser at
http://commonsware.com/sampleto see a page that uses links to be
picked up by the sample app's activity.

Mark Murphy
mmur...@commonsware.com
On Nov 7, 2011 9:12 AM, "Neilz"  wrote:

> Right, so if I'm looking at the correct part of the sample, you end up
> logging a strange 'intent' url, like this:
>
> intent:#Intent;action=com.commonsware.android.MY_ACTION;end
>
> I'm not sure what I do with this... I've tried using it in a link, as
> another sample suggested, but I just get a 'Web page not available'
> error. Here's my own example:
> webView.loadData(" href='intent:#Intent;action=com.commonsware.android.MY_ACTION;end'>Hello
> World!", "text/html", "utf-8");
>
>
> On Nov 7, 4:45 pm, Mark Murphy  wrote:
> > I have one inhttp://
> github.com/commonsguy/cw-advandroid/Introspection/URLHandler(though
> > that URL is from memory, as I am sitting in a conference keynote right
> > now...)
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

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

2011-11-07 Thread Kostya Vasilyev


07.11.2011 21:11, Neilz пишет:

Right, so if I'm looking at the correct part of the sample, you end up
logging a strange 'intent' url, like this:

intent:#Intent;action=com.commonsware.android.MY_ACTION;end


That strange URL is the result of calling intent.toUri().

http://developer.android.com/reference/android/content/Intent.html#toUri(int) 



Basically, you can make your own Intent in code, call toUri, and copy 
the result to the web page source.


Or just replace the action with your own, keeping the rest (from 
"intent:" to "end").



I'm not sure what I do with this... I've tried using it in a link, as
another sample suggested, but I just get a 'Web page not available'
error. Here's my own example:
webView.loadData("Hello
World!", "text/html", "utf-8");


com.commonsware.android.MY_ACTION matches the intent filter for the activity in 
Mark's sample code.

Your action string should match the intent filter in your project, not Mark's.


--
Kostya Vasilyev

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


[android-developers] Re: Custom file viewer

2011-11-07 Thread chrisn
Mike Murphy:

Thanks for the reply, writing my own *second* activity is the path I
will go down if I can't get this to work.

I don't think that this is good general practice if the intent filter
API is working as documented.  It pollutes the android device with
needless activities that work like file browser but are hardcoded.
This breaks the abstraction that intents were meant to provide and
obviously doesn't allow users to specify a different activity to
handle said file format.

I guess I am looking for acknowledgement that this doesn't work as is
documented *or* that I am doing it incorrectly.  Multiple people have
gone down this path and there are several threads on this group that
makes it seem like it works in some places and doesn't work in other
places.  One other thing I didn't mention is that I am using a version
of Gingerbread that NVIDIA is using.  So this bug may be fixed a while
back and I could just be out of luck until ICS is running on my
hardware.

Specifically, I would state this problem a little stronger than I have
so far.

Write a simple activity, perhaps all it does is log which file it is
started with.  Add a intent filter that tries to map this activity
view to a file with a given extension *but doesn't map this activity
in any other way*.  This file format needs to be completely
unregistered in the system any other way, webkit or otherwise so pdf
isn't an option.  Attempt to launch the activity with am just
specifying the category and the file.  It will not work and it should,
given the documentation around intents and intent filters.

Then pick up one of the may file browsers attempt to double click on
the file.  This also will not work; and this failure in the public
android API is leading to app pollution because people are just
working around the problem by writing half-done versions of file
browsers hard-coded to their desired activity.

Chris

On Nov 5, 6:26 am, Zsolt Vasvari  wrote:
> IIRC, I tried doing this unsuccessfully with OFX files.  I don't
> remember the details, but, if my recollection is right, unless the
> file extension is defined in android.webkit.MimeTypeMap, it won't
> work.
>
> On Nov 5, 9:18 am, chrisn  wrote:
>
>
>
>
>
>
>
> > This is *incredibly frustrating.  I have changed my intent-filter to
> > look like:
>
> > 
> >         
> >         
> >         
> >          > android:pathPattern=".*\\.bif"/>
> >       
>
> > $ adb shell am start -a android.intent.action.VIEW -d
> > file:///mnt/sdcard/UIComposer/basicredcube.bif-n
> > com.nvidia.devtech.UICViewer/.UICViewer
> > Starting: Intent { act=android.intent.action.VIEW
> > cat=[com.nvidia.devtech.UICViewer/.UICViewer] dat=file:///mnt/sdcard/
> > UIComposer/basicredcube.bif}
>
> > This works fine.
>
> > Dropping the -n {explicity component} from the equation fails.
>
> > What is going on?
>
> > Chris
>
> > On Nov 4, 5:26 pm, chrisn  wrote:
>
> > > I am having trouble getting my android system to launch my activity
> > > for all files with a given extension.
>
> > > I am using OI File Manager, and trying to get my activity launched for
> > > all files with a given suffix (bif).
>
> > > Here is the relevant section of my manifest:
>
> > >  > >                         android:icon="@drawable/icon"
> > >                         android:label="@string/app_name" >
> > >                 
> > >                  > >                                 android:label="@string/app_name"
> > >                                 android:screenOrientation="landscape">
> > >                         
> > >                          > >                                         android:value="UICViewer" />
> > >                         
> > >                                  > > android:name="android.intent.action.VIEW" />
> > >                                  > > android:name="android.intent.category.DEFAULT" />
> > >                                  > > android:name="android.intent.category.BROWSABLE" />
> > >                                 
> > >                                 
> > >                                 
> > >                                 
> > >                         
> > >                 
> > >     
>
> > > And here is the output of adb logcat when I 'click' on the file:
>
> > > I/ActivityManager(  145): Starting: Intent
> > > { act=android.intent.action.VIEW dat=file:///mnt/sdcard/UIComposer/
> > > basicredcube.biftyp=*/* cmp=android/
> > > com.android.internal.app.ResolverActivity } from pid 566
> > > I/ActivityManager(  145): Displayed android/
> > > com.android.internal.app.ResolverActivity: +370ms
>
> > > All that happens is that the screen goes slightly darker than it was
> > > and my app doesn't appear.
>
> > > Any thoughts as to why this may be?  Or more thorough ways to debug
> > > this?
>
> > > Chris- 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-d

[android-developers] Re: Directing user to webpage, then back to app

2011-11-07 Thread Neilz
Right, so if I'm looking at the correct part of the sample, you end up
logging a strange 'intent' url, like this:

intent:#Intent;action=com.commonsware.android.MY_ACTION;end

I'm not sure what I do with this... I've tried using it in a link, as
another sample suggested, but I just get a 'Web page not available'
error. Here's my own example:
webView.loadData("Hello
World!", "text/html", "utf-8");


On Nov 7, 4:45 pm, Mark Murphy  wrote:
> I have one 
> inhttp://github.com/commonsguy/cw-advandroid/Introspection/URLHandler(though
> that URL is from memory, as I am sitting in a conference keynote right
> now...)

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


[android-developers] Re: Incorrect output values with gluUnProject… why?

2011-11-07 Thread saex
Yes Latimerius, i think that i dont have to pass 0 as winZ parameter,
but i dont know how to get the Z value from the depth buffer. I'm
programming for Android 1.5 and openGL ES1, i didn't find a working
way to obtain winZ value on google after hours of searching :(

Did you know how to do it?




On Nov 7, 5:54 pm, Latimerius  wrote:
> I haven't ever used gluUnProject() myself but unless your geometry is
> glued right to the near plane I'm pretty sure it's wrong to pass zero
> for your window space Z.  Unless you have special knowledge of your Z
> I guess you'll need to read that value from the depth buffer.
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Incorrect output values with gluUnProject… why?

2011-11-07 Thread Latimerius
I haven't ever used gluUnProject() myself but unless your geometry is
glued right to the near plane I'm pretty sure it's wrong to pass zero
for your window space Z.  Unless you have special knowledge of your Z
I guess you'll need to read that value from the depth buffer.

On Mon, Nov 7, 2011 at 5:34 PM, saex  wrote:
> I have a simple Square with openGL es 1 and Android 1.5. The square is
> painted on the center of the screen.
>
> I want that when the user press on the screen, or moves the finger on
> the screen, the square get's moved to that position. For do this i
> tryed with GLuUnProject, i tryed to obtain the opengl coordinate that
> matches with the window XY coordinate touched with the finger (to
> translate the polygon to that coordinate in the future), and i'm
> writting the coordinates on the LogCat.
>
> The coordinate's i'm receiving are not true cordinates, are wrong
> coordinates. For example this logcat represents a horizontal movement
> to the right of the screen:
>
>    11-07 15:54:37.221: DEBUG/X(213): X: -0.003236022
>    11-07 15:54:37.221: DEBUG/X(213): Y: -0.047979668
>    11-07 15:54:37.241: DEBUG/X(213): X: -0.003236022
>    11-07 15:54:37.251: DEBUG/X(213): Y: -0.047807075
>    11-07 15:54:39.110: DEBUG/X(213): X: 0.03469036
>    11-07 15:54:39.110: DEBUG/X(213): Y: 0.04418271
>    11-07 15:54:43.021: DEBUG/X(213): X: -0.029469538
>    11-07 15:54:43.021: DEBUG/X(213): Y: -0.034172554
>    11-07 15:54:43.051: DEBUG/X(213): X: -0.026708115
>    11-07 15:54:43.051: DEBUG/X(213): Y: -0.034172554
>    11-07 15:54:43.081: DEBUG/X(213): X: -0.018596433
>    11-07 15:54:43.081: DEBUG/X(213): Y: -0.034172554
>    11-07 15:54:43.111: DEBUG/X(213): X: -0.013073588
>    11-07 15:54:43.111: DEBUG/X(213): Y: -0.034172554
>    11-07 15:54:43.141: DEBUG/X(213): X: -0.0039263717
>    11-07 15:54:43.141: DEBUG/X(213): Y: -0.03365
>    11-07 15:54:43.162: DEBUG/X(213): X: -0.0011649576
>    11-07 15:54:43.162: DEBUG/X(213): Y: -0.033827372
>    11-07 15:54:43.191: DEBUG/X(213): X: 7.335304E-4
>    11-07 15:54:43.191: DEBUG/X(213): Y: -0.033654787
>
>
>
>
>
> This is the source code:
>
>
>
>
>
>    public class MySurfaceView extends GLSurfaceView implements
> Renderer {
>        private float INITIAL_Z = -35.0f;
>        private Context context;
>        private Square square;
>        private float xrot;                                     //X Rotation
>        private float yrot;                                     //Y Rotation
>        private float zrot;                                     //Z Rotation
>        private float z = INITIAL_Z;                    //Profundidad en el 
> eje Z
>        private float x = 0.0f;                         //eje X
>        private float y = 0.0f;                         //eje Y
>
>    private MatrixGrabber mg = new MatrixGrabber(); //create the
> matrix grabber object in your initialization code
>        byte horizontal=-1; //0: LEFT  1:CENTER  2:RIGHT
>        byte vertical=-1; //0: TOP  1:CENTER  2:BOTTOM
>        float startX=-1;
>        float startY=-1;
>        float xMovement=0.0f;
>        float yMovement=0.0f;
>        private boolean movement_mode=false;
>
>        public MySurfaceView(Context context, Bitmap image, int width, byte
> horizontal, byte vertical) {
>                super(context);
>                this.context = context;
>                setEGLConfigChooser(8, 8, 8, 8, 16, 0); //fondo transparente
>                getHolder().setFormat(PixelFormat.TRANSLUCENT); //fondo 
> transparente
>                //Transformamos esta clase en renderizadora
>                this.setRenderer(this);
>                //Request focus, para que los botones reaccionen
>                this.requestFocus();
>                this.setFocusableInTouchMode(true);
>                square = new Square(image);
>                this.horizontal=horizontal;
>                this.vertical=vertical;
>        }
>
>        public void onSurfaceCreated(GL10 gl, EGLConfig config) {
>                MyGl=gl;
>                gl.glDisable(GL10.GL_DITHER);                           
> //dithering OFF
>                gl.glEnable(GL10.GL_TEXTURE_2D);                        
> //Texture Mapping ON
>                gl.glShadeModel(GL10.GL_SMOOTH);                        
> //Smooth Shading
>                gl.glClearDepthf(1.0f);                                        
>  //Depth Buffer Setup
>                gl.glEnable(GL10.GL_DEPTH_TEST);                        
> //Depth Testing ON
>                gl.glDepthFunc(GL10.GL_LEQUAL);
>                gl.glClearColor(0,0,0,0); //fondo transparente
>                gl.glHint(GL10.GL_PERSPECTIVE_CORRECTION_HINT, GL10.GL_NICEST);
>                //Cargamos la textura del cubo.
>                square.loadGLTexture(gl, this.context);
>        }
>
>        public void onDra

Re: [android-developers] Re: Directing user to webpage, then back to app

2011-11-07 Thread Mark Murphy
I have one in
http://github.com/commonsguy/cw-advandroid/Introspection/URLHandler (though
that URL is from memory, as I am sitting in a conference keynote right
now...)

Mark Murphy
mmur...@commonsware.com
On Nov 7, 2011 8:35 AM, "Neilz"  wrote:

> Right, I see. No, the path option doesn't make a difference, it still
> offers me a choice of apps to open with.
>
> Ok, it's the other approach that I'm struggling to find an example
> for. Just lots of messages discussing it! The appears to be an example
> on the following page, but it simply doesn't work for me:
>
> http://stackoverflow.com/questions/2430045/how-to-register-some-url-namespace-myapp-app-start-for-accessing-your-progr/2430468#2430468
>
> On Nov 7, 4:08 pm, Mark Murphy  wrote:
> > Correct. You will note that in Ms. Hackborn's answer, she cites two
> > approaches to the problem. You are taking one approach. The quotes you
> > used are for the other approach.
> >
> > BTW, try putting an android:path attribute on your  element and
> > see if it then only opens up in your app vs. giving you the chooser. I
> > know this works for NFC and NDEF and I can never remember if it works
> > for HTTP URLs as well. I know that this is what Barcode Scanner uses
> > to initiate a scan fro
> >
> > --
> > Mark Murphy (a Commons Guy)http://commonsware.com|
> http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
> >
> > _The Busy Coder's Guide to Android Development_ Version 3.6 Available!
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

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

Re: [android-developers] Incorrect output values with gluUnProject… why?

2011-11-07 Thread Daniel Drozdzewski
You coordinates are wrong for the screen/window coordinates, but how
do you know that those are not the object coordinates?

Daniel


On 7 November 2011 16:34, saex  wrote:
> I have a simple Square with openGL es 1 and Android 1.5. The square is
> painted on the center of the screen.
>
> I want that when the user press on the screen, or moves the finger on
> the screen, the square get's moved to that position. For do this i
> tryed with GLuUnProject, i tryed to obtain the opengl coordinate that
> matches with the window XY coordinate touched with the finger (to
> translate the polygon to that coordinate in the future), and i'm
> writting the coordinates on the LogCat.
>
> The coordinate's i'm receiving are not true cordinates, are wrong
> coordinates. For example this logcat represents a horizontal movement
> to the right of the screen:
>
>    11-07 15:54:37.221: DEBUG/X(213): X: -0.003236022
>    11-07 15:54:37.221: DEBUG/X(213): Y: -0.047979668
>    11-07 15:54:37.241: DEBUG/X(213): X: -0.003236022
>    11-07 15:54:37.251: DEBUG/X(213): Y: -0.047807075
>    11-07 15:54:39.110: DEBUG/X(213): X: 0.03469036
>    11-07 15:54:39.110: DEBUG/X(213): Y: 0.04418271
>    11-07 15:54:43.021: DEBUG/X(213): X: -0.029469538
>    11-07 15:54:43.021: DEBUG/X(213): Y: -0.034172554
>    11-07 15:54:43.051: DEBUG/X(213): X: -0.026708115
>    11-07 15:54:43.051: DEBUG/X(213): Y: -0.034172554
>    11-07 15:54:43.081: DEBUG/X(213): X: -0.018596433
>    11-07 15:54:43.081: DEBUG/X(213): Y: -0.034172554
>    11-07 15:54:43.111: DEBUG/X(213): X: -0.013073588
>    11-07 15:54:43.111: DEBUG/X(213): Y: -0.034172554
>    11-07 15:54:43.141: DEBUG/X(213): X: -0.0039263717
>    11-07 15:54:43.141: DEBUG/X(213): Y: -0.03365
>    11-07 15:54:43.162: DEBUG/X(213): X: -0.0011649576
>    11-07 15:54:43.162: DEBUG/X(213): Y: -0.033827372
>    11-07 15:54:43.191: DEBUG/X(213): X: 7.335304E-4
>    11-07 15:54:43.191: DEBUG/X(213): Y: -0.033654787
>
>
>
>
>
> This is the source code:
>
>
>
>
>
>    public class MySurfaceView extends GLSurfaceView implements
> Renderer {
>        private float INITIAL_Z = -35.0f;
>        private Context context;
>        private Square square;
>        private float xrot;                                     //X Rotation
>        private float yrot;                                     //Y Rotation
>        private float zrot;                                     //Z Rotation
>        private float z = INITIAL_Z;                    //Profundidad en el 
> eje Z
>        private float x = 0.0f;                         //eje X
>        private float y = 0.0f;                         //eje Y
>
>    private MatrixGrabber mg = new MatrixGrabber(); //create the
> matrix grabber object in your initialization code
>        byte horizontal=-1; //0: LEFT  1:CENTER  2:RIGHT
>        byte vertical=-1; //0: TOP  1:CENTER  2:BOTTOM
>        float startX=-1;
>        float startY=-1;
>        float xMovement=0.0f;
>        float yMovement=0.0f;
>        private boolean movement_mode=false;
>
>        public MySurfaceView(Context context, Bitmap image, int width, byte
> horizontal, byte vertical) {
>                super(context);
>                this.context = context;
>                setEGLConfigChooser(8, 8, 8, 8, 16, 0); //fondo transparente
>                getHolder().setFormat(PixelFormat.TRANSLUCENT); //fondo 
> transparente
>                //Transformamos esta clase en renderizadora
>                this.setRenderer(this);
>                //Request focus, para que los botones reaccionen
>                this.requestFocus();
>                this.setFocusableInTouchMode(true);
>                square = new Square(image);
>                this.horizontal=horizontal;
>                this.vertical=vertical;
>        }
>
>        public void onSurfaceCreated(GL10 gl, EGLConfig config) {
>                MyGl=gl;
>                gl.glDisable(GL10.GL_DITHER);                           
> //dithering OFF
>                gl.glEnable(GL10.GL_TEXTURE_2D);                        
> //Texture Mapping ON
>                gl.glShadeModel(GL10.GL_SMOOTH);                        
> //Smooth Shading
>                gl.glClearDepthf(1.0f);                                        
>  //Depth Buffer Setup
>                gl.glEnable(GL10.GL_DEPTH_TEST);                        
> //Depth Testing ON
>                gl.glDepthFunc(GL10.GL_LEQUAL);
>                gl.glClearColor(0,0,0,0); //fondo transparente
>                gl.glHint(GL10.GL_PERSPECTIVE_CORRECTION_HINT, GL10.GL_NICEST);
>                //Cargamos la textura del cubo.
>                square.loadGLTexture(gl, this.context);
>        }
>
>        public void onDrawFrame(GL10 gl) {
>                //Limpiamos pantalla y Depth Buffer
>                gl.glClear(GL10.GL_COLOR_BUFFER_BIT | 
> GL10.GL_DEPTH_BU

[android-developers] Re: Directing user to webpage, then back to app

2011-11-07 Thread Neilz
Right, I see. No, the path option doesn't make a difference, it still
offers me a choice of apps to open with.

Ok, it's the other approach that I'm struggling to find an example
for. Just lots of messages discussing it! The appears to be an example
on the following page, but it simply doesn't work for me:
http://stackoverflow.com/questions/2430045/how-to-register-some-url-namespace-myapp-app-start-for-accessing-your-progr/2430468#2430468

On Nov 7, 4:08 pm, Mark Murphy  wrote:
> Correct. You will note that in Ms. Hackborn's answer, she cites two
> approaches to the problem. You are taking one approach. The quotes you
> used are for the other approach.
>
> BTW, try putting an android:path attribute on your  element and
> see if it then only opens up in your app vs. giving you the chooser. I
> know this works for NFC and NDEF and I can never remember if it works
> for HTTP URLs as well. I know that this is what Barcode Scanner uses
> to initiate a scan fro
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> _The Busy Coder's Guide to Android Development_ Version 3.6 Available!

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


[android-developers] Incorrect output values with gluUnProject… why?

2011-11-07 Thread saex
I have a simple Square with openGL es 1 and Android 1.5. The square is
painted on the center of the screen.

I want that when the user press on the screen, or moves the finger on
the screen, the square get's moved to that position. For do this i
tryed with GLuUnProject, i tryed to obtain the opengl coordinate that
matches with the window XY coordinate touched with the finger (to
translate the polygon to that coordinate in the future), and i'm
writting the coordinates on the LogCat.

The coordinate's i'm receiving are not true cordinates, are wrong
coordinates. For example this logcat represents a horizontal movement
to the right of the screen:

11-07 15:54:37.221: DEBUG/X(213): X: -0.003236022
11-07 15:54:37.221: DEBUG/X(213): Y: -0.047979668
11-07 15:54:37.241: DEBUG/X(213): X: -0.003236022
11-07 15:54:37.251: DEBUG/X(213): Y: -0.047807075
11-07 15:54:39.110: DEBUG/X(213): X: 0.03469036
11-07 15:54:39.110: DEBUG/X(213): Y: 0.04418271
11-07 15:54:43.021: DEBUG/X(213): X: -0.029469538
11-07 15:54:43.021: DEBUG/X(213): Y: -0.034172554
11-07 15:54:43.051: DEBUG/X(213): X: -0.026708115
11-07 15:54:43.051: DEBUG/X(213): Y: -0.034172554
11-07 15:54:43.081: DEBUG/X(213): X: -0.018596433
11-07 15:54:43.081: DEBUG/X(213): Y: -0.034172554
11-07 15:54:43.111: DEBUG/X(213): X: -0.013073588
11-07 15:54:43.111: DEBUG/X(213): Y: -0.034172554
11-07 15:54:43.141: DEBUG/X(213): X: -0.0039263717
11-07 15:54:43.141: DEBUG/X(213): Y: -0.03365
11-07 15:54:43.162: DEBUG/X(213): X: -0.0011649576
11-07 15:54:43.162: DEBUG/X(213): Y: -0.033827372
11-07 15:54:43.191: DEBUG/X(213): X: 7.335304E-4
11-07 15:54:43.191: DEBUG/X(213): Y: -0.033654787





This is the source code:





public class MySurfaceView extends GLSurfaceView implements
Renderer {
private float INITIAL_Z = -35.0f;
private Context context;
private Square square;
private float xrot; //X Rotation
private float yrot; //Y Rotation
private float zrot; //Z Rotation
private float z = INITIAL_Z;//Profundidad en el eje 
Z
private float x = 0.0f; //eje X
private float y = 0.0f; //eje Y

private MatrixGrabber mg = new MatrixGrabber(); //create the
matrix grabber object in your initialization code
byte horizontal=-1; //0: LEFT  1:CENTER  2:RIGHT
byte vertical=-1; //0: TOP  1:CENTER  2:BOTTOM
float startX=-1;
float startY=-1;
float xMovement=0.0f;
float yMovement=0.0f;
private boolean movement_mode=false;

public MySurfaceView(Context context, Bitmap image, int width, byte
horizontal, byte vertical) {
super(context);
this.context = context;
setEGLConfigChooser(8, 8, 8, 8, 16, 0); //fondo transparente
getHolder().setFormat(PixelFormat.TRANSLUCENT); //fondo 
transparente
//Transformamos esta clase en renderizadora
this.setRenderer(this);
//Request focus, para que los botones reaccionen
this.requestFocus();
this.setFocusableInTouchMode(true);
square = new Square(image);
this.horizontal=horizontal;
this.vertical=vertical;
}

public void onSurfaceCreated(GL10 gl, EGLConfig config) {
MyGl=gl;
gl.glDisable(GL10.GL_DITHER);   
//dithering OFF
gl.glEnable(GL10.GL_TEXTURE_2D);
//Texture Mapping ON
gl.glShadeModel(GL10.GL_SMOOTH);
//Smooth Shading
gl.glClearDepthf(1.0f); 
//Depth Buffer Setup
gl.glEnable(GL10.GL_DEPTH_TEST);//Depth 
Testing ON
gl.glDepthFunc(GL10.GL_LEQUAL);
gl.glClearColor(0,0,0,0); //fondo transparente
gl.glHint(GL10.GL_PERSPECTIVE_CORRECTION_HINT, GL10.GL_NICEST);
//Cargamos la textura del cubo.
square.loadGLTexture(gl, this.context);
}

public void onDrawFrame(GL10 gl) {
//Limpiamos pantalla y Depth Buffer
gl.glClear(GL10.GL_COLOR_BUFFER_BIT | GL10.GL_DEPTH_BUFFER_BIT);
gl.glLoadIdentity();
//Dibujado
gl.glTranslatef(x, y, z);   //Move z units 
into the screen
//gl.glScalef(0.8f, 0.8f, 0.8f);
//Escalamos para que quepa en la
pantalla
//R

[android-developers] Re: button

2011-11-07 Thread Chrystian Vieyra
Button.setTextColor(color);

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

2011-11-07 Thread bjthe4th
Okay, I found out what I believe to be the proper way to format The 
external type (It is stored as a uri) but it doesn't seem to want to work.
This is how I set up the Foreground Dispatch for my tag:
mPendingIntent = PendingIntent.getActivity(this, 0, new Intent(this, 
getClass()).addFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP), 0);
IntentFilter ndef = new 
IntentFilter(NfcAdapter.ACTION_NDEF_DISCOVERED);
try{
 ndef.addDataType("vnd.android.nfc://ext/example.com:a");
}
catch (Exception e)
{
 throw new RuntimeException("fail", e);
}

Does anyone know if ndef.addDataType is the proper method to use to add a 
uri? I haven't found any examples of filtering based on any other Ndef type 
other than MIME. Using other apps, it detects the type of my card just 
fine, but I am unsure about how to format the Foreground Dispatch.

Also, when I was trying to start up using a MIME filter for Foreground 
Dispatch, I noticed that my app was always competing with other apps to 
start, and this was with a very specific MIME filter. After the first time 
I chose it, the app would start up when ever I selected the card with the 
app off, but until then others would compete with it. Does a specific MIME 
type trump the wild card "*/*" or if other apps use the wild card will it 
always compete with a custom app? 

Thanks to anyone who can help!

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

[android-developers] button

2011-11-07 Thread bob
I have a button with some white text.  When pressed, the text needs to
change to dark gray.  Anyone know the best way to do this?

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


[android-developers] Re: A quick hint as to where to start for a sliding box?

2011-11-07 Thread DismalSeas
Another thought is that there is the potential to build a flash
application outside the Android platform and then import that flash
application and run it.  I still haven't gotten the grasp around when
to use external graphical options such as OpenGL and when to use
Flash applications. Are these typically here for when people are
accustomed to using a particular language or need specific features?
If I were a Flash or OpenGL developer it would sound as though these
would be appealing, but at the moment they do not sound that
appealing.

On Nov 4, 3:02 pm, DismalSeas  wrote:
>   Not new to the Android community, but new to designing games and
> anything related to it.  I want to develop a sliding window that the
> user can slide over letters in a word.  Then retrieve the letters
> within the slider for use in a word game that I would like to design.
>
>   Perhaps someone could provide an idea of an existing UI element that
> could be used to achieve this effect, or if something like this would
> point towards doing OpenGL programming (which I am not familiar
> with).  Essentially this will be the most complicated portion of this
> game piece and I thought perhaps there were some experienced
> individuals who's virtual light would go off in their head right now
> about an approach for this task.
>
>   Thanks in advance for any past experience and input.

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

2011-11-07 Thread Mark Murphy
On Mon, Nov 7, 2011 at 11:00 AM, Neilz  wrote:
> Hmm, I don't get it, I'm missing something obvious :-/
>
> At the moment I have a webview (which is mimicking what may be a stock
> browser) which has a link, such as:
> webView.loadData("..etc.
>
> Then I have this in my manifest:
> 
>                
>                  
>                  
>                  >
>                   android:host="com.my.app.android.activity"  />
>                
>        
>
> There isn't anywhere for me to be creating, or setting properties on,
> an Intent.

Correct. You will note that in Ms. Hackborn's answer, she cites two
approaches to the problem. You are taking one approach. The quotes you
used are for the other approach.

BTW, try putting an android:path attribute on your  element and
see if it then only opens up in your app vs. giving you the chooser. I
know this works for NFC and NDEF and I can never remember if it works
for HTTP URLs as well. I know that this is what Barcode Scanner uses
to initiate a scan fro

-- 
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.6 Available!

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


[android-developers] Re: ACTION_TIME_CHANGED and ACTION_DATE_CHANGED old time detection

2011-11-07 Thread Eugene Paschenko
Any idea?

On Nov 7, 10:51 am, Eugene Paschenko  wrote:
> I am using ACTION_TIME_CHANGED and ACTION_DATE_CHANGED. onReceiver
> calling after time was changed and I call System.currentTimeMillis()
> and got new time. How I can get old time or delta time?

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


[android-developers] Re: Directing user to webpage, then back to app

2011-11-07 Thread Neilz


On Nov 7, 3:11 pm, Mark Murphy  wrote:
> FYI, hackbod is Dianne Hackborn.

Ah, thought so...

> > "Finally, you may want to set the package of the intent to your app
> > with 
> > this:http://developer.android.com/reference/android/content/Intent.html#se...)
>
> Um, that seems straightforward enough. Call setPackage() with the
> package name of whatever app should contain the recipient of the
> Intent -- no other app's components will be considered.
>
> > Where exactly is he suggesting that I use this? My link is going to
> > come from an external browser over which I have little control.
>
> No, but you are in charge of the URL that you are redirecting to.
> Those passages pertain to the use of an intent: URL, generated via a
> call to toUri() on a properly-constructed Intent. You would redirect
> to that URL.

Hmm, I don't get it, I'm missing something obvious :-/

At the moment I have a webview (which is mimicking what may be a stock
browser) which has a link, such as:
webView.loadData("..etc.

Then I have this in my manifest:


  
  
  
  



There isn't anywhere for me to be creating, or setting properties on,
an Intent.

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

2011-11-07 Thread Hazel Dayawon


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

[android-developers] Real-time audio capture and streaming on Android ... the latency problem ?

2011-11-07 Thread Emre A. Yavuz

Hi,
 
We would like to capture audio using the MIC on the phone and stream it to a 
laptop/desktop to play it in real-time. We have a RTSP server on the phone and 
a RTSP client on the laptop/desktop. The client side is supported by the 
Live555 streaming library and the MPlayer. We have a code working at the moment 
which does the job, however our concern is delay as you might have guessed. 
Real-time requires a low latency. I've done some search, but I haven't seen any 
concrete solution online so far.
 
Can anybody recommend where to look for ? A link to a library, suggestions etc. 
 
With regards,
 

Emre  

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

[android-developers] Delegate TouchEvents from WebView

2011-11-07 Thread Philipp
Hi, I have a problem:

I have a ViewGroup (LinearLayout) that holds one or more Fragments,
each containing a WebView.
I have a custom OnTouchListener for my ViewGroup that will react to
special events like touches on the screen borders. If none of these
special events is detected, the touch event should be passed to the
WebView.
The problem is that the WebView is the first element to get the touch
event and there does not seem to be a way to delegate the touch event
to the underlying View.
How can I modify the touch hierarchy in a way that the ViewGroup
receives the TouchEvent first and only if it doesn’t consume the event
it is passed to the WebView?

I made an example project to illustrate my problem at
https://github.com/pcomans/WebViewTouchTest

I have chosen to add two fragments containing a WebView in order to
make clear that it is not enough to just override the
setOnTouchListener of the WebView instead. I am interested in the
absolute position of the touch. Sure I could probably calculate the
absolute position from the relative position but this is not an
elegant solution.

I would really appreciate any help!

Best,

Philipp

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

2011-11-07 Thread Mark Murphy
On Mon, Nov 7, 2011 at 9:55 AM, Neilz  wrote:
> Thanks Mark. Now that I know what to be searching for, I've found
> several similar topics mostly on stackoverflow.
>
> Most topics have a response by Hackbod, stating not to do it that way,
> but I'm struggling a little to understand what it is he's suggesting
> instead.

FYI, hackbod is Dianne Hackborn.

> I don't get this bit:
>
> "The best way to use this, if you want to ensure it launches only your
> app, is with your own scoped action and using Intent.setPackage() to
> say the Intent will only match your app package."

"your own scoped action" would be, say,
com.commonsware.android.MY_OWN_CUSTOM_ACTION, instead of ACTION_VIEW.

> and also...
>
> "Finally, you may want to set the package of the intent to your app
> with this: 
> http://developer.android.com/reference/android/content/Intent.html#setPackage(java.lang.String)

Um, that seems straightforward enough. Call setPackage() with the
package name of whatever app should contain the recipient of the
Intent -- no other app's components will be considered.

> Where exactly is he suggesting that I use this? My link is going to
> come from an external browser over which I have little control.

No, but you are in charge of the URL that you are redirecting to.
Those passages pertain to the use of an intent: URL, generated via a
call to toUri() on a properly-constructed Intent. You would redirect
to that URL.

-- 
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.6 Available!

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


[android-developers] Re: Directing user to webpage, then back to app

2011-11-07 Thread Neilz
Thanks Mark. Now that I know what to be searching for, I've found
several similar topics mostly on stackoverflow.

Most topics have a response by Hackbod, stating not to do it that way,
but I'm struggling a little to understand what it is he's suggesting
instead.

http://stackoverflow.com/questions/3469908/make-a-link-in-the-android-browser-start-up-my-app

So far I've got an example link from a WebView to open up the 'choose
application' selector, which does at least contain my app - but I want
it to open my app automatically.

I don't get this bit:

"The best way to use this, if you want to ensure it launches only your
app, is with your own scoped action and using Intent.setPackage() to
say the Intent will only match your app package."

and also...

"Finally, you may want to set the package of the intent to your app
with this: 
http://developer.android.com/reference/android/content/Intent.html#setPackage(java.lang.String)

This is a newer feature in the platform, which allows you to direct
link intents to only your app so that other applications can not
intercept and handle them."

Where exactly is he suggesting that I use this? My link is going to
come from an external browser over which I have little control.

On Nov 7, 1:18 pm, Mark Murphy  wrote:
> On Mon, Nov 7, 2011 at 8:14 AM, Neilz  wrote:
> > Hi all. From my app I want to send the user to a web page to complete
> > some action, and then return to the app with some kind of code,
> > depending upon the success or failure of their action.
>
> > How can I achieve this? Will I have to use a WebView within the app,
> > or is there a way I can use the stock browser also?
>
> In theory, if you have the browser redirect to some URL that is
> handled by your app (ACTION_VIEW, CATEGORY_BROWSABLE, and an
> appropriate  element), you could accomplish this with your
> "code" baked into the URL (e.g., /postaction/success and
> /postaction/failure). I haven't tried a redirect as the trigger
> mechanism, though.
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> Android Training...At Your Office:http://commonsware.com/training

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

2011-11-07 Thread Kostya Vasilyev

You're talking about "compatibility mode version 1".

It's enabled if minSdk or targetSdk are not set, or set to 3 or less.

http://developer.android.com/guide/practices/screen-compat-mode.html

It's not something to aim for, really.

-- Kostya

07.11.2011 18:31, bob пишет:

I read that if I make my app for Android 1.5 and designed for a
320x480 device, Android will zoom the screen if it's run on a tablet.
However, this did not work when I tried it.  Anyone know about this?



--
Kostya Vasilyev

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


Re: [android-developers] Android and WinXP: look for some tips

2011-11-07 Thread J Handal
Google  is my friend

http://developer.android.com/guide/developing/debugging/ddms.html

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

[android-developers] zoom zoom?

2011-11-07 Thread bob
I read that if I make my app for Android 1.5 and designed for a
320x480 device, Android will zoom the screen if it's run on a tablet.
However, this did not work when I tried it.  Anyone know about this?

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


[android-developers] Android and WinXP: look for some tips

2011-11-07 Thread SL@maxis


I want to query an Android phone connected to a winxp PC via an USB cable.

1. Would socketing programming do the work ? Any better method ?

2. When, say an SMS comes in, I want the phone to notify the pc. Do I have  
to implement socket on Android as well ?



Thanks.




--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/

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

2011-11-07 Thread Júlio Cesar Bueno Cotta
Can someone try to help me please? I really preciate if it happen.
I am stuck with the Android documentation.
Should I convert all my SQLite methods to use Content Providers?
Thanks in advance.

2011/11/5 Júlio Cesar Bueno Cotta 

> Hi people,
> I think I need some help here.
> I did some search in the group and found this few 
> topicsabout
>  my questions, so sorry if I am being silly.
>
> First, When should I close my Cursors? I always close them in the onPause
> method of an Activity (with the code bellow), and due a HoneyComb issue
> before "open" the Cursor I check if it's not null and "opened" to avoid the
> error described 
> here
> :
>
> protected void onResume () {
>if(cursor != null && !cursor.isClosed()){
>   stopManagingCursor(cursor);
>   cursor.close();
>}
>cursor = getCursorFromMySQLiteDataBase();
>startManagingCursor(cursor);
>
>//use cursor to fill a ListView ou Spinner
> }
>
> protected void onPause () {
>
>   if(cursor != null && !cursor.isClosed()){
>   stopManagingCursor(cursor);
>cursor.close();
>  }
> }
>
> }
>
> Stop the cursor in onPause method seems to be a good thing because, when I
> call another Activity from this, the father Activity is paused, right? I
> also because when I close the app, onPause is also performed, right again?
>
> I know the startManagingCursor and StopManagingCursor is deprecated (this
> pagesays
>  it):
>
> "Use the new 
> CursorLoaderclass
>  with
> LoaderManagerinstead;
>  this is also available on older platforms through the Android
> compatibility package. "
>
> But CursorLoader and LoaderManager works just with ContentProviders,
> right? That I am doing (above code) it's a bad thing? I need to get a away
> to change all my databases methods to use only ContentProviders?
>
> The documentation is not very clear about it. 
> Heresay:
>
> "If you don't need to share data amongst multiple applications you can use
> a database directly via 
> SQLiteDatabase.
> "
>
> but how to keep managing my Cursors from SQLiteDatabase without use
> [start,stop]ManagingCursor (since it's deprecated and probably soon it will
> not be there)?
>
> Well, I made a lot of questions in this topic, I don't want to mess
> around, I am just lost in those questions.
>
> Sorry again if I am being not clear enough about, I tried to, English is
> not my first lang.
> Thanks in advance.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en




-- 
Júlio Cesar Bueno Cotta
Bacharel em Ciência da Computação pela UFV
Mestrando em Ciência da Computação pela UFABC

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 can I allocate multiple instances of the emulator per each CPU?

2011-11-07 Thread Mark Murphy
On Mon, Nov 7, 2011 at 7:10 AM, SangWon Kim  wrote:
> I have a quadcore CPU, but when I'm running multiple emulators, only
> run cpu0(first cpu) is running 100%
>
>
> it seems that the other cores are not used at all.
> is this a bug or limitation by design?

It is a limitation of the underlying qemu environment, in concert with
the Android emulator image.

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

Android Training...At Your Office: http://commonsware.com/training

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

2011-11-07 Thread Mark Murphy
On Mon, Nov 7, 2011 at 8:14 AM, Neilz  wrote:
> Hi all. From my app I want to send the user to a web page to complete
> some action, and then return to the app with some kind of code,
> depending upon the success or failure of their action.
>
> How can I achieve this? Will I have to use a WebView within the app,
> or is there a way I can use the stock browser also?

In theory, if you have the browser redirect to some URL that is
handled by your app (ACTION_VIEW, CATEGORY_BROWSABLE, and an
appropriate  element), you could accomplish this with your
"code" baked into the URL (e.g., /postaction/success and
/postaction/failure). I haven't tried a redirect as the trigger
mechanism, though.

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

Android Training...At Your Office: http://commonsware.com/training

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Customize Android Source Code to run multiple Application on same Screen.

2011-11-07 Thread Mark Murphy
On Mon, Nov 7, 2011 at 8:03 AM, Pawan Singh Rathore
 wrote:
> But using fragments how can we run app, inside fragment.

You can't. This would require substantial modifications to Android itself.

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

Android Training...At Your Office: http://commonsware.com/training

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


[android-developers] How can I allocate multiple instances of the emulator per each CPU?

2011-11-07 Thread SangWon Kim
I have a quadcore CPU, but when I'm running multiple emulators, only
run cpu0(first cpu) is running 100%


it seems that the other cores are not used at all.
is this a bug or limitation by design?

if anyone has any solutions, 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


[android-developers] Directing user to webpage, then back to app

2011-11-07 Thread Neilz
Hi all. From my app I want to send the user to a web page to complete
some action, and then return to the app with some kind of code,
depending upon the success or failure of their action.

How can I achieve this? Will I have to use a WebView within the app,
or is there a way I can use the stock browser also?

Thanks for some 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


Re: [android-developers] Customize Android Source Code to run multiple Application on same Screen.

2011-11-07 Thread Pawan Singh Rathore
Can you please share your idea, that how can I achieve this?
Best Regards,
Pawan Rathore




On Mon, Nov 7, 2011 at 6:17 PM, TreKing  wrote:

> On Mon, Nov 7, 2011 at 12:48 AM, Pawan Singh Rathore <
> pawan.s.rath...@gmail.com> wrote:
>
>> I need to customize Android Source code in  a such a way that, It can run
>> multiple Application on  the same screen.
>> Is that possible? Please share your thoughts and Ideas...
>>
>
> Sure, that's possible. This is not the list to discuss modifying the
> source though.
>
>
> -
> TreKing  - Chicago
> transit tracking app for Android-powered devices
>
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

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

[android-developers] Re: Development platform

2011-11-07 Thread aesptux
I suggest Fedora 15 (Fedora 16 is coming out in two days) as the best 
option.

I'm currently using it (I changed from Ubuntu) and I'm happier with it.

Best regards,

Adrián.

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

Re: [android-developers] Proguard problem

2011-11-07 Thread Marcelo Henrique
In your project folder browse to the folder bin / it will be an apk that
was installed in the emulator,

as to look at a problem if not proguard.cfg nengum contains error

2011/11/6 André 

> I have  a problem when I'm trying to export my project in eclipse.
> While trying to create the apk gives me this error.
> What could cause this?
>
> [2011-11-06 17:29:50 - Project- X] Proguard returned with error code
> 1. See console
> [2011-11-06 17:29:50 - Project- X] java.io.FileNotFoundException: C:
> \android\tools\proguard\bin\X\proguard\dump.txt (The system cannot
> find the path specified)
> [2011-11-06 17:29:50 - Project- X]  at
> java.io.FileInputStream.open(Native Method)
> [2011-11-06 17:29:50 - Project- X]  at
> java.io.FileInputStream.(Unknown Source)
> [2011-11-06 17:29:50 - Project- X]  at
> java.io.FileReader.(Unknown Source)
> [2011-11-06 17:29:50 - Project- X]  at
> proguard.FileWordReader.(FileWordReader.java:46)
> [2011-11-06 17:29:50 - Project- X]  at
> proguard.ConfigurationParser.parseIncludeArgument(ConfigurationParser.java:
> 196)
> [2011-11-06 17:29:50 - Project- X]  at
> proguard.ConfigurationParser.parse(ConfigurationParser.java:105)
> [2011-11-06 17:29:50 - Project- X]  at
> proguard.ProGuard.main(ProGuard.java:491)
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
  - Marcelo Henrique -
  "Se não puder se destacar pelo talento, vença pelo esforço." (Dave
Weinbaum)

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

2011-11-07 Thread Marcelo Henrique
This is going to taste, with any distro you can develop well

2011/11/7 Pawan Singh Rathore 

>
> Best Regards,
> Pawan Rathore
>
> Ubuntu is best one.
> I am using 11.04
>
>
> On Sat, Nov 5, 2011 at 4:28 PM, anup  wrote:
>
>> Hello i am newbee for the android development can anyone suggest
>> suitable linux platform to develop application for android phone...
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
  - Marcelo Henrique -
  "Se não puder se destacar pelo talento, vença pelo esforço." (Dave
Weinbaum)

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Customize Android Source Code to run multiple Application on same Screen.

2011-11-07 Thread Pawan Singh Rathore
Hi Rafel,

Now we can use Fragments in any API level,
But using fragments how can we run app, inside fragment.
Can you please explain tad more.
Best Regards,
Pawan Rathore




On Mon, Nov 7, 2011 at 6:24 PM, Rafael Maas  wrote:

> Fragments?
> http://developer.android.com/guide/topics/fundamentals/fragments.html
> >=android 3.0
>
>
> 2011/11/7 TreKing :
> > On Mon, Nov 7, 2011 at 12:48 AM, Pawan Singh Rathore
> >  wrote:
> >>
> >> I need to customize Android Source code in  a such a way that, It can
> run
> >> multiple Application on  the same screen.
> >> Is that possible? Please share your thoughts and Ideas...
> >
> > Sure, that's possible. This is not the list to discuss modifying the
> source
> > though.
> >
> >
> -
> > 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
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Customize Android Source Code to run multiple Application on same Screen.

2011-11-07 Thread Rafael Maas
Fragments?
http://developer.android.com/guide/topics/fundamentals/fragments.html
>=android 3.0


2011/11/7 TreKing :
> On Mon, Nov 7, 2011 at 12:48 AM, Pawan Singh Rathore
>  wrote:
>>
>> I need to customize Android Source code in  a such a way that, It can run
>> multiple Application on  the same screen.
>> Is that possible? Please share your thoughts and Ideas...
>
> Sure, that's possible. This is not the list to discuss modifying the source
> though.
>
> -
> TreKing - Chicago transit tracking app for Android-powered devices
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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


Re: [android-developers] Customize Android Source Code to run multiple Application on same Screen.

2011-11-07 Thread TreKing
On Mon, Nov 7, 2011 at 12:48 AM, Pawan Singh Rathore <
pawan.s.rath...@gmail.com> wrote:

> I need to customize Android Source code in  a such a way that, It can run
> multiple Application on  the same screen.
> Is that possible? Please share your thoughts and Ideas...
>

Sure, that's possible. This is not the list to discuss modifying the source
though.

-
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] parsing XML

2011-11-07 Thread TreKing
On Sun, Nov 6, 2011 at 12:43 PM, Tom  wrote:

> It says that I need to add a cast to element, but even when I do that it
> doesn't work
>

What says you need to add a cast?
What does "doesn't work" mean?

http://catb.org/~esr/faqs/smart-questions.html

-
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

  1   2   >