[android-developers] Facebook Nearby Graph API (with out fragment)

2013-02-12 Thread giles ian
Hello,

I need to get nearby places using FB's new graph API. I am able to do that
but it returns me Fragment. Is there an API which will return me only
content (JSON)

Thanks,
-Giles

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] 9GAG like app [ api for images along with some some data attached to it ]

2013-04-01 Thread giles ian
Hello Guys,

I am planning to develop 9GAG like for learning purpose.

Obviously I dont want to waste time on server building, so is there any
dummy server, free images api.

So that i can directly start working on android client.

Thanks,

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




[android-developers] Open Default Dialog Box on click of Notification item

2012-03-13 Thread giles ian
Hi All,

Is there a direct way to open a dialog box on click of Notification item by
passing it to pending intent.

Is there a better way than this
(link)
or setting dialog theme of activity.

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

Re: [android-developers] Open Default Dialog Box on click of Notification item

2012-03-13 Thread giles ian
Thanks Mark

On Tue, Mar 13, 2012 at 5:36 PM, Mark Murphy wrote:

> On Tue, Mar 13, 2012 at 8:02 AM, giles ian  wrote:
> > Is there a direct way to open a dialog box on click of Notification item
> by
> > passing it to pending intent.
>
> No, only an Activity can open a true Dialog.
>
> > Is there a better way than this (link) or setting dialog theme of
> activity.
>
> A dialog-themed activity would work. You could also have a no-UI
> activity that displays an actual Dialog, though I would think the
> dialog-themed activity would be more efficient.
>
> --
> 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

[android-developers] Duplicate Calendar Event

2012-03-13 Thread giles ian
Hi,

I am using the below code for adding events.

Now the issue is im able to add same event (all details same) multiple
times.

How to i avoid this.



> public static void addToCalendar(Context ctx, final String title,
>
> final long dtstart, final long dtend) {
>
> final ContentResolver cr = ctx.getContentResolver();
>
> Cursor cursor;
>
> if (Integer.parseInt(Build.VERSION.SDK) >= 8)
>
> cursor = cr.query(
>
> Uri.parse("content://com.android.calendar/calendars"),
>
> new String[] { "_id", "displayname" }, null, null, null);
>
> else
>
> cursor = cr.query(Uri.parse("content://calendar/calendars"),
>
> new String[] { "_id", "displayname" }, null, null, null);
>
> if (cursor.moveToFirst()) {
>
> final String[] calNames = new String[cursor.getCount()];
>
> final int[] calIds = new int[cursor.getCount()];
>
> for (int i = 0; i < calNames.length; i++) {
>
> calIds[i] = cursor.getInt(0);
>
> calNames[i] = cursor.getString(1);
>
> cursor.moveToNext();
>
> }
>
>
>> AlertDialog.Builder builder = new AlertDialog.Builder(ctx);
>
> builder.setSingleChoiceItems(calNames, -1,
>
> new DialogInterface.OnClickListener() {
>
>
>> @Override
>
> public void onClick(DialogInterface dialog, int which) {
>
> ContentValues cv = new ContentValues();
>
> cv.put("calendar_id", calIds[which]);
>
> cv.put("title", title);
>
> cv.put("dtstart", dtstart);
>
> cv.put("hasAlarm", 1);
>
> cv.put("dtend", dtend);
>
>
>> Uri newEvent;
>
> if (Integer.parseInt(Build.VERSION.SDK) >= 8)
>
> newEvent = cr.insert(
>
> Uri.parse("content://com.android.calendar/events"),
>
> cv);
>
> else
>
> newEvent = cr.insert(
>
> Uri.parse("content://calendar/events"),
>
> cv);
>
>
>> if (newEvent != null) {
>
> long id = Long.parseLong(newEvent
>
> .getLastPathSegment());
>
> ContentValues values = new ContentValues();
>
> values.put("event_id", id);
>
> values.put("method", 1);
>
> values.put("minutes", 0); // 15 minuti
>
> if (Integer.parseInt(Build.VERSION.SDK) >= 8)
>
> cr.insert(
>
> Uri.parse("content://com.android.calendar/reminders"),
>
> values);
>
> else
>
> cr.insert(
>
> Uri.parse("content://calendar/reminders"),
>
> values);
>
>
>> }
>
> dialog.cancel();
>
> }
>
>
>> });
>
>
>> builder.create().show();
>
> }
>
> cursor.close();
>
> }
>
>

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

Re: [android-developers] Duplicate Calendar Event

2012-03-13 Thread giles ian
Thanks Mike you your answer.

Now my question is how do i check if a particular event is already present.

Basically i want a select with where clause (for title,start date and end
date)

On Wed, Mar 14, 2012 at 12:01 AM, Michael Chan  wrote:

> Hi Giles,
>
> The code below will add an event every time onClick is called since
> it's doing an insert().  If you want to modify an existing event, you
> need to get the event id via a query then do an update. Search for
> "Updating Events" in
> http://developer.android.com/guide/topics/providers/calendar-provider.html
>
> Thanks,
> Mike
>
> On Tue, Mar 13, 2012 at 7:28 AM, giles ian  wrote:
> > Hi,
> >
> > I am using the below code for adding events.
> >
> > Now the issue is im able to add same event (all details same) multiple
> > times.
> >
> > How to i avoid this.
> >
> >
> >>>
> >>> public static void addToCalendar(Context ctx, final String title,
> >>>
> >>> final long dtstart, final long dtend) {
> >>>
> >>> final ContentResolver cr = ctx.getContentResolver();
> >>>
> >>> Cursor cursor;
> >>>
> >>> if (Integer.parseInt(Build.VERSION.SDK) >= 8)
> >>>
> >>> cursor = cr.query(
> >>>
> >>> Uri.parse("content://com.android.calendar/calendars"),
> >>>
> >>> new String[] { "_id", "displayname" }, null, null, null);
> >>>
> >>> else
> >>>
> >>> cursor = cr.query(Uri.parse("content://calendar/calendars"),
> >>>
> >>> new String[] { "_id", "displayname" }, null, null, null);
> >>>
> >>> if (cursor.moveToFirst()) {
> >>>
> >>> final String[] calNames = new String[cursor.getCount()];
> >>>
> >>> final int[] calIds = new int[cursor.getCount()];
> >>>
> >>> for (int i = 0; i < calNames.length; i++) {
> >>>
> >>> calIds[i] = cursor.getInt(0);
> >>>
> >>> calNames[i] = cursor.getString(1);
> >>>
> >>> cursor.moveToNext();
> >>>
> >>> }
> >>>
> >>>
> >>> AlertDialog.Builder builder = new AlertDialog.Builder(ctx);
> >>>
> >>> builder.setSingleChoiceItems(calNames, -1,
> >>>
> >>> new DialogInterface.OnClickListener() {
> >>>
> >>>
> >>> @Override
> >>>
> >>> public void onClick(DialogInterface dialog, int which) {
> >>>
> >>> ContentValues cv = new ContentValues();
> >>>
> >>> cv.put("calendar_id", calIds[which]);
> >>>
> >>> cv.put("title", title);
> >>>
> >>> cv.put("dtstart", dtstart);
> >>>
> >>> cv.put("hasAlarm", 1);
> >>>
> >>> cv.put("dtend", dtend);
> >>>
> >>>
> >>> Uri newEvent;
> >>>
> >>> if (Integer.parseInt(Build.VERSION.SDK) >= 8)
> >>>
> >>> newEvent = cr.insert(
> >>>
> >>> Uri.parse("content://com.android.calendar/events"),
> >>>
> >>> cv);
> >>>
> >>> else
> >>>
> >>> newEvent = cr.insert(
> >>>
> >>> Uri.parse("content://calendar/events"),
> >>>
> >>> cv);
> >>>
> >>>
> >>> if (newEvent != null) {
> >>>
> >>> long id = Long.parseLong(newEvent
> >>>
> >>> .getLastPathSegment());
> >>>
> >>> ContentValues values = new ContentValues();
> >>>
> >>> values.put("event_id", id);
> >>>
> >>> values.put("method", 1);
> >>>
> >>> values.put("minutes", 0); // 15 minuti
> >>>
> >>> if (Integer.parseInt(Build.VERSION.SDK) >= 8)
> >>>
> >>> cr.insert(
> >>>
> >>> Uri.parse("content://com.android.calendar/reminders"),
> >>>
> >>> values);
> >>>
> >>> else
> >>>
> >>> cr.insert(
> >>>
> >>> Uri.parse("content://calendar/reminders"),
> >>>
> >>> values);
> >>>
> >>>
> >>> }
> >>>
> >>> dialog.cancel();
> >>>
> >>> }
> >>>
> >>>
> >>> });
> >>>
> >>>
> >>> builder.create().show();
> >>>
> >>> }
> >>>
> >>> cursor.close();
> >>>
> >>> }
> >
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com
> > For more options, visit this group at
> > http://groups.google.com/group/android-developers?hl=en
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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

2012-03-14 Thread giles ian
thanks a lot Mike

On Wed, Mar 14, 2012 at 12:43 PM, Michael Chan  wrote:

> Have a look at "Querying a calendar" in the link I gave you and
> replace the following:
>
>  Uri uri = Events.CONTENT_URI;
>  String selection = Events.TITLE + " = ? AND "
>+ Events.DTSTART + " = ? AND "
>+ Events.DTEND + " = ?";
>  String[] selectionArgs = new String[] {"title",
> Long.toString(startTimeInMillis), Long.toString(endTimeInMillis)};
>
> In the projection, use Events._ID for the event id.
>
>
> On Tue, Mar 13, 2012 at 11:47 PM, giles ian 
> wrote:
> > Thanks Mike you your answer.
> >
> > Now my question is how do i check if a particular event is already
> present.
> >
> > Basically i want a select with where clause (for title,start date and end
> > date)
> >
> >
> > On Wed, Mar 14, 2012 at 12:01 AM, Michael Chan 
> wrote:
> >>
> >> Hi Giles,
> >>
> >> The code below will add an event every time onClick is called since
> >> it's doing an insert().  If you want to modify an existing event, you
> >> need to get the event id via a query then do an update. Search for
> >> "Updating Events" in
> >>
> http://developer.android.com/guide/topics/providers/calendar-provider.html
> >>
> >> Thanks,
> >> Mike
> >>
> >> On Tue, Mar 13, 2012 at 7:28 AM, giles ian 
> wrote:
> >> > Hi,
> >> >
> >> > I am using the below code for adding events.
> >> >
> >> > Now the issue is im able to add same event (all details same) multiple
> >> > times.
> >> >
> >> > How to i avoid this.
> >> >
> >> >
> >> >>>
> >> >>> public static void addToCalendar(Context ctx, final String title,
> >> >>>
> >> >>> final long dtstart, final long dtend) {
> >> >>>
> >> >>> final ContentResolver cr = ctx.getContentResolver();
> >> >>>
> >> >>> Cursor cursor;
> >> >>>
> >> >>> if (Integer.parseInt(Build.VERSION.SDK) >= 8)
> >> >>>
> >> >>> cursor = cr.query(
> >> >>>
> >> >>> Uri.parse("content://com.android.calendar/calendars"),
> >> >>>
> >> >>> new String[] { "_id", "displayname" }, null, null, null);
> >> >>>
> >> >>> else
> >> >>>
> >> >>> cursor = cr.query(Uri.parse("content://calendar/calendars"),
> >> >>>
> >> >>> new String[] { "_id", "displayname" }, null, null, null);
> >> >>>
> >> >>> if (cursor.moveToFirst()) {
> >> >>>
> >> >>> final String[] calNames = new String[cursor.getCount()];
> >> >>>
> >> >>> final int[] calIds = new int[cursor.getCount()];
> >> >>>
> >> >>> for (int i = 0; i < calNames.length; i++) {
> >> >>>
> >> >>> calIds[i] = cursor.getInt(0);
> >> >>>
> >> >>> calNames[i] = cursor.getString(1);
> >> >>>
> >> >>> cursor.moveToNext();
> >> >>>
> >> >>> }
> >> >>>
> >> >>>
> >> >>> AlertDialog.Builder builder = new AlertDialog.Builder(ctx);
> >> >>>
> >> >>> builder.setSingleChoiceItems(calNames, -1,
> >> >>>
> >> >>> new DialogInterface.OnClickListener() {
> >> >>>
> >> >>>
> >> >>> @Override
> >> >>>
> >> >>> public void onClick(DialogInterface dialog, int which) {
> >> >>>
> >> >>> ContentValues cv = new ContentValues();
> >> >>>
> >> >>> cv.put("calendar_id", calIds[which]);
> >> >>>
> >> >>> cv.put("title", title);
> >> >>>
> >> >>> cv.put("dtstart", dtstart);
> >> >>>
> >> >>> cv.put("hasAlarm", 1);
> >> >>>
> >> >>> cv.put("dtend", dtend);
> >> >>>
> >> >>>
> >> >>> Uri newEvent;

[android-developers] Execute code on app install OR where to put C2DM registration code

2012-03-15 Thread giles ian
I need to execute some code on app install event. How do i do it.

After some googleing i found there is no direct way. So which is the best
work around for that.

What i basically want to achieve is when the user installs app i want to do
C2DM Registration.

I tried to achieve above thing using shared prefs, but shared prefs
remembers the value across multiple app install( on same device)

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

[android-developers] MapActivity: Couldn't get connection factory client

2012-04-04 Thread giles ian
After a lot of googling I findout this error id because of invalid May Key.

And the reason for invalid May Key could be bad debug.keystore file.

Any solutions ??

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: MapActivity: Couldn't get connection factory client

2012-04-05 Thread giles ian
Thanks All, So i has first delete the corrupt debug.keystore and then
regenerate  a new one. Then the map key generated from this forked fine

On Thu, Apr 5, 2012 at 1:36 PM, Vo Trung Liem  wrote:

> Do you have a valid map key?
> Please use new key store to build and display map.
>
> On Thu, Apr 5, 2012 at 5:22 AM, lbendlin  wrote:
>
>> I still get that error a lot even with a correct map key (map tiles are
>> loading). Apart from the error message, do you see any negative effects in
>> your app?
>>
>>
>> On Wednesday, April 4, 2012 10:01:35 AM UTC-4, giles ian wrote:
>>>
>>> After a lot of googling I findout this error id because of invalid May
>>> Key.
>>>
>>> And the reason for invalid May Key could be bad debug.keystore file.
>>>
>>> Any solutions ??
>>>
>>>  --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, 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] Four Square Integration

2012-04-10 Thread giles ian
I followed this
tutorial
.

I am getting:

04-08 20:55:40.044: W/System.err(5330): java.io.FileNotFoundException:
https://api.foursquare.com/v2/users/self?oauth_token
=CBVR2KICI4VRRQ0EMCSPC2DNDL12KDOO2XT3MWVI2HOVT42L


And on ui im getting "connected as null"

It might be because of call back url. As i dont have  website.

Now can some one tell me what changes do i need to make in the above
solution if I dont have a website ??

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

[android-developers] Force Close like iPhone

2012-04-11 Thread giles ian
What i want is when ever there is a Force close i totally want to exit the
app ( just like iOS does)

I know im making some of the android dev angry and im also sorry for that.

But is there any way to achieve that.

PS: I know i can achive that by using try catch and exiting app in catch,
but ill need to do this on all the activities. Is there any application
level settings for the same

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

2012-04-11 Thread giles ian
I was expecting something like this from you :)

Reason being when one activity crashes, its previous activity comes in
foreground and then that one crashes as well. So there are multiple crashes.

If it would have exited the app this would not have happened

On Wed, Apr 11, 2012 at 8:34 PM, TreKing  wrote:

> On Wed, Apr 11, 2012 at 10:00 AM, giles ian wrote:
>
>> What i want is when ever there is a Force close i totally want to exit
>> the app ( just like iOS does)
>
>
> Why? This is not iOS.
>
>
> -
> TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
> transit tracking app for Android-powered devices
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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

[android-developers] set focus not working + show all pins on map

2012-04-18 Thread giles ian
In the below code setfocus is not working.


> point = new GeoPoint((int)(18.60692*1E6), (int)(73.713276*1E6));
> overlayitem = new OverlayItem(point, "Me","Me");
> itemizedOverlayMe.addOverlay(overlayitem);
> itemizedOverlayMe.setFocus(overlayitem);
> mapOverlays.add(itemizedOverlayMe);


Also, i have to set a zoom level in such a way that all the pins can be
seen in that screen.
Pin locations are dynamic

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

[android-developers] Best encryption method?

2012-01-06 Thread giles ian
Hello,

Which is the best encryption method.

My need is to encrypt data and store it in DB.

Which would be the best among:

1. Base 64
2. AES
3. 3 DES
4. MD - 5

 in terms of:

1. Security
2. Performance
3. Easy of implementation

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

Re: [android-developers] Re: How to route sound to the speaker, even if phones are plugged in?

2012-01-06 Thread giles ian
its the second one

On Fri, Jan 6, 2012 at 4:27 PM, Terry  wrote:

> Since I have had no responses on this request so far, I guess that
> either the solution is so simple that noone bothers to reply, or that
> noone knows. Which is it?
>
> Terry
>
>
> On 4 Jan, 08:24, Terry  wrote:
> > I seem to be unable to route sound to the speaker when the phones are
> > plugged in.
> > I want to generate an alarm to/in the speaker - to get the user's
> > attention - even if the phones should be plugged in.
> > But after having tried everything I can think of (using the
> > AudioManager), I seem unable to do it.
> >
> > Has anyone managed to do this?
> >
> > Regards, Terry.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] Java code for xml arrtibute

2012-01-23 Thread giles ian
Hello,

I have below code in xml.



I need java code for highlighted text as I'm creating radio buttons
programmatically.

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

Re: [android-developers] Java code for xml arrtibute

2012-01-23 Thread giles ian
Hi Mark,

Thanks for the reply. And there is such attribute and the use of that is to
remove the default radio button image.

I also found the solution for the same

newRadioButton.setButtonDrawable(android.R.id.empty);



On Mon, Jan 23, 2012 at 7:56 PM, Mark Murphy wrote:

> There is no android:button attribute on RadioButton. Simply delete it.
>
> On Mon, Jan 23, 2012 at 9:23 AM, giles ian  wrote:
> > Hello,
> >
> > I have below code in xml.
> >
> >  >   android:layout_margin="5dip"
> >  android:layout_width="wrap_content"
> >  android:layout_height="wrap_content"
> >  android:background="@drawable/button_radio"
> >  android:gravity="center"
> >  android:button="@null"/>
> >
> > I need java code for highlighted text as I'm creating radio buttons
> > programmatically.
> >
> >
> >
> >
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com
> > For more options, visit this group at
> > http://groups.google.com/group/android-developers?hl=en
>
>
>
> --
> Mark Murphy (a Commons Guy)
> http://commonsware.com | http://github.com/commonsguy
> http://commonsware.com/blog | http://twitter.com/commonsguy
>
> Android App Developer Books: http://commonsware.com/books
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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

[android-developers] How to run 4" optimised app on a portion of galaxy tab 10.1"

2012-02-14 Thread giles ian
Hi,

I have developed an app optimised for 4" inch (480X800)

Now how can i run this on a portion of a galaxy tab 10.1" screen.

Is that possible, if yes what needs to be done.

Thanks

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

Re: [android-developers] How to run 4" optimised app on a portion of galaxy tab 10.1"

2012-02-14 Thread giles ian
:( .. any future plans ?? .. btw it was great to hear from you  Dianne
Hackborn

On Wed, Feb 15, 2012 at 3:11 AM, Dianne Hackborn wrote:

> Sorry, you can't.
>
> On Tue, Feb 14, 2012 at 1:04 AM, giles ian  wrote:
>
>> Hi,
>>
>> I have developed an app optimised for 4" inch (480X800)
>>
>> Now how can i run this on a portion of a galaxy tab 10.1" screen.
>>
>> Is that possible, if yes what needs to be done.
>>
>> Thanks
>>
>>
>>
>>
>>  --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>
>
>
>
> --
> Dianne Hackborn
> Android framework engineer
> hack...@android.com
>
> Note: please don't send private questions to me, as I don't have time to
> provide private support, and so won't reply to such e-mails.  All such
> questions should be posted on public forums, where I and others can see and
> answer them.
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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

[android-developers] Toast not working on honeycomb and ics

2012-02-15 Thread giles ian
Hi,

The below piece of code is working fine on 2.2&2.3 but not on 3.0 onwards.

Toast.makeText(SomeActivity.this,
getResources().getString(R.string.not_implemented),
Toast.LENGTH_SHORT).show();

Thanks,
Pawan Nimje

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

2012-02-15 Thread giles ian
FYI

working on Galaxy S 2.2 but not on galaxy tab 10.1" 3.2 and Nexus S 4.0.3

On Wed, Feb 15, 2012 at 2:13 PM, giles ian  wrote:

> Hi,
>
> The below piece of code is working fine on 2.2&2.3 but not on 3.0 onwards.
>
> Toast.makeText(SomeActivity.this,
> getResources().getString(R.string.not_implemented),
> Toast.LENGTH_SHORT).show();
>
> Thanks,
> Pawan Nimje
>

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

[android-developers] App Design Issue

2012-02-16 Thread giles ian
Hi,

I have 2 activities A & B. Both display data fetched from 2 different web
service lets say ws1 and ws2

When i click on a button on Activity A i call ws2 in that avtivity itself
and show loading dialog there itself and then move to Activity B and
display data.(In this case i have to save lot of data in static variables
so that they can be shared across activities as im getting data on Activity
A and need to display  on Activity B)

Is this rite approach.

The other option that i have is i call ws2 from Activity B instead of A

Which is a better way.

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

Re: [android-developers] Re: App Design Issue

2012-02-17 Thread giles ian
Hi,

basically my question is which of the below methods is better in terms of
app design and UI:

M1: Loding dialog show on first activity and then moving on to next
activity and then displaying data.

M2: Moving to next Activity, then showing loding dialog and then displaying
data



On Fri, Feb 17, 2012 at 3:15 PM, moktarul anam  wrote:

>
> HI Giles
>  if your web service data he heavy then i will suggest you to
> store in database or local files. otherwise memory will be allocated
> through out ur application( if u store in static variable/ stack
> memory).
>
> if your web service data is xml file use saxParser. ( android sax
> parser)
>
> Moktarul anam
>
>
>
> On Feb 17, 12:09 pm, giles ian  wrote:
> > Hi,
> >
> > I have 2 activities A & B. Both display data fetched from 2 different web
> > service lets say ws1 and ws2
> >
> > When i click on a button on Activity A i call ws2 in that avtivity itself
> > and show loading dialog there itself and then move to Activity B and
> > display data.(In this case i have to save lot of data in static variables
> > so that they can be shared across activities as im getting data on
> Activity
> > A and need to display  on Activity B)
> >
> > Is this rite approach.
> >
> > The other option that i have is i call ws2 from Activity B instead of A
> >
> > Which is a better way.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] hosting web services (php+mysql)

2012-08-10 Thread giles ian
Hi All,

I will be creating a (php + mysql) server, which will expose few web
services for android app,

Where can i host this for free or may be paid as well.

Is app engine as option.

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] Android Qualcomm AR

2011-10-22 Thread giles ian
Hi Guys,

I am working on an QCAR app.

I have managed to change change the Market and overlay a custom 3d Model .
But im struggling to find a simple example which handles a Tap event on that
3d Model.

Any help ?

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] Translucent Activity over camera view

2011-10-23 Thread giles ian
Hi All,

What i want to do is:

I click on a button and the camera starts, now how can i lay a Translucent
activity/any view/controls etc over this camera view.

Any suggestions how can this be done

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] How to embed (or add) Watermark/Text to a video.

2011-11-09 Thread giles ian
Hello,

I want to take a video from with in my app and *embed(or add) some
text/watermark on the video*. Plz suggest me how can this be done.

And also tell me which of the below method would be suitable:
1. Using Intent (android.provider.MediaStore.ACTION_VIDEO_CAPTURE)
2. Using MediaRecorder

Thanks

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

Re: [android-developers] How to embed (or add) Watermark/Text to a video.

2011-11-10 Thread giles ian
Hi Kristopher,

thanks for the quick reply.

i want to do it offline.

i did read your below suggestion but i did not get it.

Let me tell u what i have done so far:

1. Launching the cam using
"Intent(android.provider.MediaStore.ACTION_VIDEO_CAPTURE)"
2. Capturing the video and getting the data in android.net.Uri.

now how to proceed further ??

On Thu, Nov 10, 2011 at 11:59 AM, Kristopher Micinski <
krismicin...@gmail.com> wrote:

> do you want to do this online or offline?  There aren't any kinds of
> intents for this, rightfully so, if you want a watermark online you'll
> have to capture the stream, apply the filter (or whatever), then pump
> it back out.  If you want to do it offine you do the same thing,
> except you can parse the video file (obviously not yourself, using
> some library), apply the mark, and re encode the new thing and put it
> in a new file to play.
>
> kris
>
> On Thu, Nov 10, 2011 at 12:34 AM, giles ian 
> wrote:
> > Hello,
> > I want to take a video from with in my app and embed(or add) some
> > text/watermark on the video. Plz suggest me how can this be done.
> > And also tell me which of the below method would be suitable:
> > 1. Using Intent (android.provider.MediaStore.ACTION_VIDEO_CAPTURE)
> > 2. Using MediaRecorder
> > Thanks
> >
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com
> > For more options, visit this group at
> > http://groups.google.com/group/android-developers?hl=en
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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

[android-developers] How to "Remote wipe SD card"

2011-12-08 Thread giles ian
Hi All,

How to "Remote wipe SD card"

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

[android-developers] Remote wipe SD card Invocation Event

2011-12-08 Thread giles ian
Hi Everyone,

I want to remote wipe data on sd card. I know the code of wiping the data
on SD card. What I am struggling with is how to invoke this code remotely.

Options that i have is

*1. Broadcast receiver for  SMS.*

Shortcoming: SIM Card removed immediately.

*3. **Broadcast receiver for **C2DM message*

Shortcoming: No Internet

*3. Broadcast receiver for Reboot of device.*

Shortcoming: SIM removed with out restarting (possible in Galaxy S)

Is there any full proof way other than these

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

Re: [android-developers] How to "Remote wipe SD card"

2011-12-08 Thread giles ian
haha u are funny daniel,

ok so,

I want to remote wipe data on sd card. I know the code of wiping the data
on SD card. What I am struggling with is how to invoke this code remotely.

Options that i have is

*1. Broadcast receiver for  SMS.*

Shortcoming: SIM Card removed immediately.

*3. **Broadcast receiver for **C2DM message*

Shortcoming: No Internet

*3. Broadcast receiver for Reboot of device.*

Shortcoming: SIM removed with out restarting (possible in Galaxy S)

Is there any full proof way other than these

On Thu, Dec 8, 2011 at 4:55 PM, Daniel Drozdzewski <
daniel.drozdzew...@gmail.com> wrote:

> On 8 December 2011 11:19, giles ian  wrote:
> > Hi All,
> >
> > How to "Remote wipe SD card"
>
> You cannot be serious...
>
> In case you are, here is the answer:
>
> With a soft antistatic cloth attached to a stick?
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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: Remote wipe SD card Invocation Event

2011-12-09 Thread giles ian
On Fri, Dec 9, 2011 at 1:13 PM, giles ian  wrote:

> Hi Everyone,
>
> I want to remote wipe data on sd card. I know the code of wiping the data
> on SD card. What I am struggling with is how to invoke this code remotely.
>
> Options that i have is
>
> *1. Broadcast receiver for  SMS.*
>
> Shortcoming: SIM Card removed immediately.
>
> *3. **Broadcast receiver for **C2DM message*
>
> Shortcoming: No Internet
>
> *3. Broadcast receiver for Reboot of device.*
>
> Shortcoming: SIM removed with out restarting (possible in Galaxy S)
>
> Is there any full proof way other than these
>
>
>

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

Re: [android-developers] How to "Remote wipe SD card"

2011-12-09 Thread giles ian
On Fri, Dec 9, 2011 at 1:14 PM, giles ian  wrote:

> haha u are funny daniel,
>
> ok so,
>
> I want to remote wipe data on sd card. I know the code of wiping the data
> on SD card. What I am struggling with is how to invoke this code remotely.
>
> Options that i have is
>
> *1. Broadcast receiver for  SMS.*
>
> Shortcoming: SIM Card removed immediately.
>
> *3. **Broadcast receiver for **C2DM message*
>
> Shortcoming: No Internet
>
> *3. Broadcast receiver for Reboot of device.*
>
> Shortcoming: SIM removed with out restarting (possible in Galaxy S)
>
> Is there any full proof way other than these
>
> On Thu, Dec 8, 2011 at 4:55 PM, Daniel Drozdzewski <
> daniel.drozdzew...@gmail.com> wrote:
>
>> On 8 December 2011 11:19, giles ian  wrote:
>> > Hi All,
>> >
>> > How to "Remote wipe SD card"
>>
>> You cannot be serious...
>>
>> In case you are, here is the answer:
>>
>> With a soft antistatic cloth attached to a stick?
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, 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] Remote wipe SD card Invocation Event

2011-12-12 Thread giles ian
Thanks All for your suggestions and help

On Fri, Dec 9, 2011 at 9:10 PM, Erwann Abalea  wrote:

>
> Le vendredi 9 décembre 2011 15:24:55 UTC+1, lbendlin a écrit :
>
>> There are a couple of technical difficulties. First of all the phone is
>> likely too heavy for the AC. Then, even if we assume the AC's excrements
>> are toxic - how does it target exactly the SD card? And the request says
>> "wipe", not "soil" anyhow.
>>
>
> You're right, if the intention were to let the AC carry the phone.
> I was thinking about sending AC to the phone holder (localization if left
> as an exercise for the reader), after a previous training for it to be able
> to compose the necessary operations with its beak.
> I hadn't thought about using the AC's excrement for the job. Maybe a v2
> feature?
>
> Seriously, Giles, you can't have a perfect solution. If there's no SIM
> card, no network coverage, no internet, then you have no hope. It's sad,
> but you must face it with dignity and go on.
>
> --
> Erwann.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] Button Issue

2011-09-16 Thread giles ian
There is some space at bottom of the bottom. Its not centered vertically
properly even after using android:layout_centerVertical="true". If u look
very closely the button is occupying all space vertically (lite shade of
green around button after selection) but the actual button image is slightly
upwards.


[image: issue1.JPG]

emulator:
[image: issue2.JPG]







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

2011-09-17 Thread giles ian
Has nobody faced this problem ?? i checked the images in android sdk .. the
button is slightly upwards .. any solution/workaround ??

On Sat, Sep 17, 2011 at 10:44 AM, giles ian  wrote:

>
> There is some space at bottom of the bottom. Its not centered vertically
> properly even after using android:layout_centerVertical="true". If u look
> very closely the button is occupying all space vertically (lite shade of
> green around button after selection) but the actual button image is slightly
> upwards.
>
>
> [image: issue1.JPG]
>
> emulator:
> [image: issue2.JPG]
>
>  android:id="@+id/image_bar_bottom" android:layout_height="0dip"
> android:layout_width="fill_parent" android:layout_weight="1">
>
>  android:layout_width="wrap_content" android:layout_height="fill_parent"
> android:layout_centerHorizontal="true"
> android:layout_centerVertical="true">
>
> 
>

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

[android-developers] Which buttons are these [ see image] ??

2011-09-19 Thread giles ian
[image: which_buttons.JPG]

what are these buttons called in android ?? and how do i develop/design/code
them ??

-Thanks

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

Re: [android-developers] Which buttons are these [ see image] ??

2011-09-19 Thread giles ian
Ok .. but is there something similar to that in android .. something like
multiple toggle buttons ..

On Tue, Sep 20, 2011 at 9:23 AM, Dianne Hackborn wrote:

> Those aren't Android UI elements.
>
> On Mon, Sep 19, 2011 at 8:13 PM, giles ian  wrote:
>
>> [image: which_buttons.JPG]
>>
>> what are these buttons called in android ?? and how do i
>> develop/design/code them ??
>>
>> -Thanks
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>
>
>
>
> --
> Dianne Hackborn
> Android framework engineer
> hack...@android.com
>
> Note: please don't send private questions to me, as I don't have time to
> provide private support, and so won't reply to such e-mails.  All such
> questions should be posted on public forums, where I and others can see and
> answer them.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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

Re: [android-developers] Which buttons are these [ see image] ??

2011-09-20 Thread giles ian
yea thats sounds a good workaround... will try that

On Tue, Sep 20, 2011 at 10:03 AM, Daniel Lukashevich wrote:

> You can use RadioGroup
> with custom radio buttons.
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] One View over other

2011-09-25 Thread giles ian
Hello,

I have to create a iPhone like edittext (one with cross at extreme right),
so im planing to have a edittext and an image on top of it @ extreme right.
Which layout can i use?

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

[android-developers] Custom Toggle Button

2011-09-27 Thread giles ian
Hello,

I could not find a good Custom Toggle button tutorial/example/code.I googled
a lot.

Any Help ??

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

Re: [android-developers] Which buttons are these [ see image] ??

2011-09-27 Thread giles ian
i tried this ... but im not able to set the text for those radio buttons abd
when i do the size of buttons increases... its like the text is written next
to the image

On Tue, Sep 20, 2011 at 10:03 AM, Daniel Lukashevich wrote:

> You can use RadioGroup
> with custom radio buttons.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] Menu To Action Bar transition

2012-05-31 Thread giles ian
Hi Developers,

I have an app developed for 2.2+. This app has menu options. Now on 4.X i
get a compatibly menu button. Now after including  action bar i am not sure
how the app should behave.

I change my app and set targetSdkVersion to 14 with proper min version and
include the support jar. Add action bar. Now on 3.0+ i should get an action
bar but on 2.2 and 2.3 should i get an action bar + menu button working or
there will be no action bar and only menu button (which basically mean
there is no change for 2.2 and 2.3 whatsoever)

Thanks

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

Re: [android-developers] Menu To Action Bar transition

2012-05-31 Thread giles ian
Thanks Mark, So what you are trying to say is if i don't use
ActionBarSherlock then i wont get ActionBar on 2.2 and 2.3, which will mean
there will absolutely be no change (ui wise) in my my but when it runs on
3.0+ an  action bar will pop up.

Now if this is the case what code changes do i need to make.



On Thu, May 31, 2012 at 5:13 PM, Mark Murphy wrote:

> On Thu, May 31, 2012 at 7:38 AM, giles ian  wrote:
> > Hi Developers,
> >
> > I have an app developed for 2.2+. This app has menu options. Now on 4.X i
> > get a compatibly menu button. Now after including  action bar i am not
> sure
> > how the app should behave.
> >
> > I change my app and set targetSdkVersion to 14 with proper min version
> and
> > include the support jar. Add action bar. Now on 3.0+ i should get an
> action
> > bar but on 2.2 and 2.3 should i get an action bar + menu button working
> or
> > there will be no action bar and only menu button (which basically mean
> there
> > is no change for 2.2 and 2.3 whatsoever)
>
> You will not get an action bar on Android 1.x/2.x devices by setting
> targetSdkVersion to any value.
>
> If you wish to have an action bar on Android 2.1+ devices, consider
> ActionBarSherlock.
>
> --
> Mark Murphy (a Commons Guy)
> http://commonsware.com | http://github.com/commonsguy
> http://commonsware.com/blog | http://twitter.com/commonsguy
>
> _The Busy Coder's Guide to Android Development_ Version 3.7 Available!
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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

[android-developers] Consume POJO based web services

2012-10-04 Thread giles ian
How can i consume  POJO based web services i

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

2012-10-04 Thread giles ian
So you are trying to say that the java clients
(1<http://www.j2mesalsa.com/axis/pojoclient.php>
,2<http://axis.apache.org/axis2/java/core/docs/pojoguide.html#testingpojows>)
which consumes those web services will run fine on android as well

On Thu, Oct 4, 2012 at 2:26 PM, TreKing  wrote:

> On Thu, Oct 4, 2012 at 3:50 AM, giles ian  wrote:
>
>> How can i consume  POJO based web services i
>
>
> Write some code. This has nothing to do with Android specifically.
>
>
> -
> TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
> transit tracking app for Android-powered devices
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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

[android-developers] Push me baby ( or 3rd-party Application Server simulator) like app for android GCM

2012-11-28 Thread giles ian
Is there a push me baby like app for android which will basically work as
server simulator for testing client.

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

[android-developers] SAX Parsing meta-data tags in menifest file

2013-06-20 Thread giles ian
Hello,

I need to parse meta-data tags for SyncAdapter, Authenticator etc.

Issue its not necessary that the order of name and resource tag is one
after the other.

 1. 

2. 

order of name and resource tag can be reverse also.

Can someone please tell me a good logic for the same.

Thanks,
Pawan Nimje

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Re: Modifying an String of Android Resource File (*.arsc)

2013-07-10 Thread giles ian
Thanks Illyoung Choi for sharing your findings, great help... and dont 
bother narrow minded people like Zsolt Vasvari

On Tuesday, June 21, 2011 8:09:12 PM UTC-7, Illyoung Choi wrote:
>
> Hi All. 
>
> Last day, I made a simple application for parsing an Android Resource 
> File (*.arsc) and modifying resource strings. 
>
> I think this thing might be a help for someone, so I'll share the 
> structure of *.arsc that I understood. 
>
> Since I could not spend many hours for this, my understanding is not 
> perfect and might be slightly wrong. 
>
>
> I patched string resource from *.apk. 
> Simply extracted *.apk with 7zip and got the resources.arsc file. 
>
> Below are the structure of *.arsc 
>
> struct ANDROID_RESOURCE_HEADER 
> { 
> int signature; // 0x000c0002, I assume this is a signature 
> int nImageLength; // total ARSC file size (bytes) 
> int nUnknown1[2]; // still unknown (not important for modifying 
> strings) 
> int nStringBlockLength; // total StringBlock(see below) size 
> int nStringCount; // total number of String Resources 
> int nUnknown2[4]; // still unknown  (not important for modifying 
> strings) 
> } 
>
> "struct ANDROID_RESOURCE_HEADER" is a header of ARSC file image. 
> So simply you can read this header information from file. 
>
> After this header, you will meet the StringBlock 
>
> StringBlock has 2Sections 
> { 
> [String Offset] 
> [String Data] 
> } 
>
> String Offset Section has Offset Values of Specific Strings from 
> StringBlock Start Address. 
>
> String Data Section has 2 Part 
>
> String Data 
> { 
> [Length] 
> [String] 
> } 
>
> Length part is 2byte. but, in AscII Mode, uses only 1byte. 
> Before reading String, you must check whether it is "Unicode" or 
> "AscII" format. 
>
> in Unicode format, Length part will be used with 2bytes. 
> normally it is "0x??, 0x00" (only if it is not longer than 256 bytes) 
>
> in AscII format, Length part will be used with 1bytes. but, they also 
> used second byte for mirroring. 
> if string length has a value 7, you will meet "0x07, 0x07" 
>
> So, I checked whether both bytes have same value to check string 
> format. 
>
>
> Lastly, actual string data will be after this length part with "Zero 
> Terminal" 
> in Unicode format, surely, Zero Terminal will be 2 byte of zero. 
>
>
>
> Whenever you change the string of this ARSC file, you should 
> recalculate these. 
> Length Part of String Data 
> String Offset of StringBlock 
> nImageLength of Header 
> nStringBlockLength of Header 
>
>
> After doing these all. 
> Simply, remove all JAR Signature (META-INF folder) from package. 
> Re-Archive with Zip and rename with *.apk. 
> Resign with your certificate by using "jarsigner" of JDK 
>
>
>
> Thanks.

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




[android-developers] Re: Modifying an String of Android Resource File (*.arsc)

2013-07-10 Thread giles ian
Hi Illyoung Choi,
*
*
*Is it possible for you to share the code for the entire thing. i.e. *
*
*
*1.Parsing*
*2. Modifying
*
On Tuesday, June 21, 2011 8:09:12 PM UTC-7, Illyoung Choi wrote:
>
> Hi All. 
>
> Last day, I made a simple application for parsing an Android Resource 
> File (*.arsc) and modifying resource strings. 
>
> I think this thing might be a help for someone, so I'll share the 
> structure of *.arsc that I understood. 
>
> Since I could not spend many hours for this, my understanding is not 
> perfect and might be slightly wrong. 
>
>
> I patched string resource from *.apk. 
> Simply extracted *.apk with 7zip and got the resources.arsc file. 
>
> Below are the structure of *.arsc 
>
> struct ANDROID_RESOURCE_HEADER 
> { 
> int signature; // 0x000c0002, I assume this is a signature 
> int nImageLength; // total ARSC file size (bytes) 
> int nUnknown1[2]; // still unknown (not important for modifying 
> strings) 
> int nStringBlockLength; // total StringBlock(see below) size 
> int nStringCount; // total number of String Resources 
> int nUnknown2[4]; // still unknown  (not important for modifying 
> strings) 
> } 
>
> "struct ANDROID_RESOURCE_HEADER" is a header of ARSC file image. 
> So simply you can read this header information from file. 
>
> After this header, you will meet the StringBlock 
>
> StringBlock has 2Sections 
> { 
> [String Offset] 
> [String Data] 
> } 
>
> String Offset Section has Offset Values of Specific Strings from 
> StringBlock Start Address. 
>
> String Data Section has 2 Part 
>
> String Data 
> { 
> [Length] 
> [String] 
> } 
>
> Length part is 2byte. but, in AscII Mode, uses only 1byte. 
> Before reading String, you must check whether it is "Unicode" or 
> "AscII" format. 
>
> in Unicode format, Length part will be used with 2bytes. 
> normally it is "0x??, 0x00" (only if it is not longer than 256 bytes) 
>
> in AscII format, Length part will be used with 1bytes. but, they also 
> used second byte for mirroring. 
> if string length has a value 7, you will meet "0x07, 0x07" 
>
> So, I checked whether both bytes have same value to check string 
> format. 
>
>
> Lastly, actual string data will be after this length part with "Zero 
> Terminal" 
> in Unicode format, surely, Zero Terminal will be 2 byte of zero. 
>
>
>
> Whenever you change the string of this ARSC file, you should 
> recalculate these. 
> Length Part of String Data 
> String Offset of StringBlock 
> nImageLength of Header 
> nStringBlockLength of Header 
>
>
> After doing these all. 
> Simply, remove all JAR Signature (META-INF folder) from package. 
> Re-Archive with Zip and rename with *.apk. 
> Resign with your certificate by using "jarsigner" of JDK 
>
>
>
> Thanks.

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




Re: [android-developers] Re: Modifying an String of Android Resource File (*.arsc)

2013-07-11 Thread giles ian
Thanks Yaron, but my requirement is parsing and modifying arsc file at
runtime on the device.

So my next question is can apktool be ported on device. What I mean is
since the source code is available are there any lib/frameworks (that
apktool) which are only available for desktop and not for android.


On Thu, Jul 11, 2013 at 8:13 AM, Yaron Reinharts
wrote:

>  No need to reinvent the wheel:
> https://code.google.com/p/android-apktool/
>
> Hope this helps
> Yaron
>
> On 07/11/2013 02:13 AM, giles ian wrote:
>
> Hi Illyoung Choi,
> *
> *
> *Is it possible for you to share the code for the entire thing. i.e. *
> *
> *
> *1.Parsing*
> *2. Modifying
> *
> On Tuesday, June 21, 2011 8:09:12 PM UTC-7, Illyoung Choi wrote:
>>
>> Hi All.
>>
>> Last day, I made a simple application for parsing an Android Resource
>> File (*.arsc) and modifying resource strings.
>>
>> I think this thing might be a help for someone, so I'll share the
>> structure of *.arsc that I understood.
>>
>> Since I could not spend many hours for this, my understanding is not
>> perfect and might be slightly wrong.
>>
>>
>> I patched string resource from *.apk.
>> Simply extracted *.apk with 7zip and got the resources.arsc file.
>>
>> Below are the structure of *.arsc
>>
>> struct ANDROID_RESOURCE_HEADER
>> {
>> int signature; // 0x000c0002, I assume this is a signature
>> int nImageLength; // total ARSC file size (bytes)
>> int nUnknown1[2]; // still unknown (not important for modifying
>> strings)
>> int nStringBlockLength; // total StringBlock(see below) size
>> int nStringCount; // total number of String Resources
>> int nUnknown2[4]; // still unknown  (not important for modifying
>> strings)
>> }
>>
>> "struct ANDROID_RESOURCE_HEADER" is a header of ARSC file image.
>> So simply you can read this header information from file.
>>
>> After this header, you will meet the StringBlock
>>
>> StringBlock has 2Sections
>> {
>> [String Offset]
>> [String Data]
>> }
>>
>> String Offset Section has Offset Values of Specific Strings from
>> StringBlock Start Address.
>>
>> String Data Section has 2 Part
>>
>> String Data
>> {
>> [Length]
>> [String]
>> }
>>
>> Length part is 2byte. but, in AscII Mode, uses only 1byte.
>> Before reading String, you must check whether it is "Unicode" or
>> "AscII" format.
>>
>> in Unicode format, Length part will be used with 2bytes.
>> normally it is "0x??, 0x00" (only if it is not longer than 256 bytes)
>>
>> in AscII format, Length part will be used with 1bytes. but, they also
>> used second byte for mirroring.
>> if string length has a value 7, you will meet "0x07, 0x07"
>>
>> So, I checked whether both bytes have same value to check string
>> format.
>>
>>
>> Lastly, actual string data will be after this length part with "Zero
>> Terminal"
>> in Unicode format, surely, Zero Terminal will be 2 byte of zero.
>>
>>
>>
>> Whenever you change the string of this ARSC file, you should
>> recalculate these.
>> Length Part of String Data
>> String Offset of StringBlock
>> nImageLength of Header
>> nStringBlockLength of Header
>>
>>
>> After doing these all.
>> Simply, remove all JAR Signature (META-INF folder) from package.
>> Re-Archive with Zip and rename with *.apk.
>> Resign with your certificate by using "jarsigner" of JDK
>>
>>
>>
>> Thanks.
>
>  --
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Android Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to android-developers+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>
>
>
> --
> Yaron Reinharts
> Smart Drive 
> Applicationshttp://www.poncho.co.il/gateaway.phphttps://market.android.com/details?id=com.poncho.gsm.gate.activities
>
>   --
> --
> You received this message because you are subscr

[android-developers] Parsing + Modifying resource.arsc programmatically [ without apktool ]

2013-07-11 Thread giles ian
Hello All,

I need to parse and make changes in resource.arsc programmatically without
the help of apktool.

Something like http://stackoverflow.com/a/4761689, but this is for android
manifest.

And the structure of manifest and resource.arsc is different so the above
link wont work.

Does anyone know structure of resource.arsc completely

Thanks,

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




[android-developers] Re: Modifying an String of Android Resource File (*.arsc)

2013-07-25 Thread giles ian
please find below link for understanding the entire structure binary xml 
ans .arsc

http://justanapplication.wordpress.com/android-internals/

My question is don't we have to move the bytes when we replace the string 
with bigger one, apart from changing the values you mentioned below



On Tuesday, June 21, 2011 8:09:12 PM UTC-7, Illyoung Choi wrote:
>
> Hi All. 
>
> Last day, I made a simple application for parsing an Android Resource 
> File (*.arsc) and modifying resource strings. 
>
> I think this thing might be a help for someone, so I'll share the 
> structure of *.arsc that I understood. 
>
> Since I could not spend many hours for this, my understanding is not 
> perfect and might be slightly wrong. 
>
>
> I patched string resource from *.apk. 
> Simply extracted *.apk with 7zip and got the resources.arsc file. 
>
> Below are the structure of *.arsc 
>
> struct ANDROID_RESOURCE_HEADER 
> { 
> int signature; // 0x000c0002, I assume this is a signature 
> int nImageLength; // total ARSC file size (bytes) 
> int nUnknown1[2]; // still unknown (not important for modifying 
> strings) 
> int nStringBlockLength; // total StringBlock(see below) size 
> int nStringCount; // total number of String Resources 
> int nUnknown2[4]; // still unknown  (not important for modifying 
> strings) 
> } 
>
> "struct ANDROID_RESOURCE_HEADER" is a header of ARSC file image. 
> So simply you can read this header information from file. 
>
> After this header, you will meet the StringBlock 
>
> StringBlock has 2Sections 
> { 
> [String Offset] 
> [String Data] 
> } 
>
> String Offset Section has Offset Values of Specific Strings from 
> StringBlock Start Address. 
>
> String Data Section has 2 Part 
>
> String Data 
> { 
> [Length] 
> [String] 
> } 
>
> Length part is 2byte. but, in AscII Mode, uses only 1byte. 
> Before reading String, you must check whether it is "Unicode" or 
> "AscII" format. 
>
> in Unicode format, Length part will be used with 2bytes. 
> normally it is "0x??, 0x00" (only if it is not longer than 256 bytes) 
>
> in AscII format, Length part will be used with 1bytes. but, they also 
> used second byte for mirroring. 
> if string length has a value 7, you will meet "0x07, 0x07" 
>
> So, I checked whether both bytes have same value to check string 
> format. 
>
>
> Lastly, actual string data will be after this length part with "Zero 
> Terminal" 
> in Unicode format, surely, Zero Terminal will be 2 byte of zero. 
>
>
>
> Whenever you change the string of this ARSC file, you should 
> recalculate these. 
> Length Part of String Data 
> String Offset of StringBlock 
> nImageLength of Header 
> nStringBlockLength of Header 
>
>
> After doing these all. 
> Simply, remove all JAR Signature (META-INF folder) from package. 
> Re-Archive with Zip and rename with *.apk. 
> Resign with your certificate by using "jarsigner" of JDK 
>
>
>
> Thanks.

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




[android-developers] Modifying an String Binary Resource File (*.arsc) of android

2013-07-25 Thread Giles Ian
Please check the question on the link:

http://stackoverflow.com/q/17867452/2585419

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] ResourceNotFound exception after modifying string in android resource (.arsc) file

2013-07-31 Thread Giles Ian
I have modified one of the strings in android binary resource(.arsc) file
successfully. By successfully I mean I am able to replace a string with a
bigger one, move other binary data, update offsets and lengths. I also
tested it out by trying to parse/read this same modified arsc file.

Now the issue is when I re-package the apk with this new arsc file and run
the app, it gives *ResourceNotFound* exception for the same string
reference whose value I changed.

*Any idea what I am missing?*

*May be I want something like below for arsc file.*
https://code.google.com/p/axml/

*Link on how to modify string in arsc:*

https://groups.google.com/forum/#!topic/android-developers/r0Q3AvOFYYw

Same question link SO:
http://stackoverflow.com/questions/17982959/resourcenotfound-exception-after-modifying-string-in-android-resource-arsc-fi

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Understanding android multi user framework [Not app related]

2013-09-12 Thread Giles Ian
I want to understand how the multi user profiles work on data level. Like
how the data isolation is maintained,  how and where is the data kept
for different user.

I did google but could not find any detailed document by google or aosp
except
http://developer.android.com/about/versions/android-4.2.html#MultipleUsers

Thanks,
GA

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[android-developers] Reading all accounts on the device

2013-09-12 Thread Giles Ian
Is it possible to developer a app which can read all the accounts on device
like FB/Twitter/gmail etc including password.

Can it be 3rd party app if yes what permission will it need.

Can it be a system app

Any help/link would be greatly appreciated.

Thanks

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


[android-developers] http://android.stackexchange.com/questions/53147/getting-all-account-details-including-password-on-rooted-device

2013-09-12 Thread Giles Ian
http://android.stackexchange.com/questions/53147/getting-all-account-details-including-password-on-rooted-device

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[android-developers] Uri for accounts table in contacts db

2013-10-02 Thread Giles Ian
I tried with

content://com.android.contacts/accounts

but that does not work

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [android-developers] Uri for accounts table in contacts db

2013-10-03 Thread Giles Ian
Thanks Douglous and Andrew,

What I am actually looking for is *account_id* based on *account_name* and *
account_type, *and this info is only available in accounts table.


On Wed, Oct 2, 2013 at 11:24 PM, Andrew Mackenzie <
and...@mackenzie-serres.net> wrote:

> The contacts content provider is quite complex, with three "tables" for
> contact' raw contact and data. I suggest you read the long explanation of
> it in developer.android.com there the answers to your questions are
> provided, with a number of constants for Uris and also field names.
>
> BTW: be sure to filter only VISIBLE group contacts in the query or you
> will get contacts not visible to the user in their 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 unsubscribe from this group and stop receiving emails from it, send an
> email to android-developers+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[android-developers] Can a system service read and write files inside app space[Framework]

2013-10-14 Thread Giles Ian
1. Can any system service (lets say SystemServer.java) read and write file
inside app space, lets say any file inside files dir

2. Can any system service create dir inside app space

Thanks

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


[android-developers] Custom exception in AIDL

2013-10-25 Thread Giles Ian
Can I throw a custom exception from an aidl service. If yes how ??

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[android-developers] How to use out and inout parameters in AIDL

2013-10-28 Thread Giles Ian
When I am using out or inout I am getting following error:

'inout String exception' can only be an in parameter.

'out String exception' can only be an in parameter.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[android-developers] Adding contacts to AIDL

2013-11-01 Thread Giles Ian
Is it possible to add constants to AIDL.

Thanks

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


[android-developers] Send a Mail and post on FB Wall

2010-08-09 Thread giles ian
Hi All,

I want to do following things from within my app

1. Send a mail (gmail to be precise).

2. Post some text on Face Book Wall.

I have no idea abt how to do the above things.

Any kind of help will do like personal experience, imp links,name of the
thing with which this is possible

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