Monday, February 28, 2011

[android-developers] Re: Installpackged

Okie thanks.

On Feb 28, 10:43 pm, TreKing <treking...@gmail.com> wrote:
> On Mon, Feb 28, 2011 at 11:14 AM, Idan <idan.f...@gmail.com> wrote:
> > we as a manufacture have permissions to use methods which are not available
> > to end-client users/developers.
>
> You should try a different group then - try platform or porting. This is for
> using the SDK to do "official" things.
>
> --------------------------------------------------------------------------- ----------------------
> 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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] how to disable hint while typing password in android

Hi I am new to this android development.
I have tried to disable the hint from my application
while typing the password but the code doesn,t work.
Could you please suggest any way for 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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: limit number of rows in change_list

On Feb 28, 1:55 pm, bigfudge <benwhal...@gmail.com> wrote:
> How do I limit the number of rows displayed by default in a
> change_list?
>
> Many thanks,

In the admin.py file, under the class whose number of rows you want to
display - use "list_per_page"

class MyModelAdmin(admin.ModelAdmin):
list_per_page = 10

There is no "global" default that I have been able to find. I simply
set a constant in the admin.py file (say DEFAULT_ROWS = 12) and then
in each class I use:
list_per_page = DEFAULT_ROWS

D.

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

Re: [android-developers] Toast not disappearing

Unfortunately that didn't work. In on Destroy() I put in:

System.out.println("Duration: "+toastMessage.getDuration());
toastMessage.cancel();

(where toastMessage was assigned any toastMessage I'd created and shown)

and I got:
Duration: 0

Not sure if that is of any use. I've never had any trouble with Toasts (except not calling show() :) ). I'm a bit stumped.

Regards,
Julius.


On 1/03/2011, at 7:50 PM, Julius Spencer wrote:

> Yeah it's definitely being hit just once (I put a break point in).
>
> I'll try out dismissing it if the IntentService is destroyed.
>
> Thanks for the replies everyone.
>
> Regards,
> Julius.
>
>
> On 1/03/2011, at 4:15 PM, TreKing wrote:
>
>> On Mon, Feb 28, 2011 at 8:53 PM, Julius Spencer <julius@msa.co.nz> wrote:
>> I'm sure it's just something I'm not thinking of but I'm stumped...
>>
>> You're not calling it over and over again are you?
>>
>> -------------------------------------------------------------------------------------------------
>> TreKing - Chicago transit tracking app for Android-powered devices
>>
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscribe@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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] bionic getprotoname issue?

hi all guys:
   I want to  porting a network library to android, but when I run the application,get the error message with "FIX ME!implement getprotobyname() bionic/libc/bionic/stubs.c:372", so I compile the iptables commands, and get the same message.

how do I fixed it?

implement the bionic getprotoname function?

thanks in advance.

best regards.

mumutouv@gmail.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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: To find particular Data from Database

Thanks ,really it was helpful

On Feb 28, 5:26 pm, Marcin Orlowski <webnet.andr...@gmail.com> wrote:
> On 28 February 2011 12:19, Jayanthi <jaia...@gmail.com> wrote:
>
> > Hi Dude,
>
> I am not native, but it may be that "dude", "bro" or so, does not work
> well for many.
>
> >              1.I need to check whether the name entered is already
> > existing in database or Not can anyone point out the exact code for
> > the same .
>
> Just query your database by the name and if no rows is returned then
> it's not there
>
> >               2. How to save password in Encrypted form in Database
>
> Well, just encrypt it and store? Usually storing encrypted passwords
> is not the right path - you shall store hash (i.e. sha1) of the
> password  (unless you need to know the plain pass for some
> reasons/usage)
>
> PS: aren't you looking for newbie tutorial to android database by any chance?
> --
> Regards,
> Marcin

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

Re: Refreshing a celltree

Have you had a chance to look at the showcase: http://gwt.google.com/samples/Showcase/Showcase.html#!CwCellTree

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

[android-developers] Re: reflection

Hi Zsolt,

Thanks for the response.

I am trying to alter something in android framework source , and this
calls for an addition of a new class in framework source.
But I did not want to add any new source under framework, instead
planned to have it under vendor and load that new class dynamically in
framework later.

So I was thinking if reflection will come in handy.

Regards,
Krt

On Mar 1, 9:47 am, Zsolt Vasvari <zvasv...@gmail.com> wrote:
> The answer is, of course, not.  They are probably using different
> class loaders.
>
> The better question is, why would you want to do this?
>
> On Mar 1, 12:09 pm, Krt <keerthira...@gmail.com> wrote:
>
>
>
> > Hi All,
>
> > I am trying reflection in android.
>
> > It works fine for classes, say A and B, under same project(same
> > process in other words).
>
> > It does not work between two different processes.
> > i.e. I have
> > project A, package name com.ref.classA
> > project B, package name com.ref.classB
>
> > Can I call from project B, Class.forName("com.ref.classA");
>
> > I get exception class not found when I do this.
> > Please note I have not imported package of calssA in classB.
>
> > Am I missing something? or it is just not possible to do it between
> > different processes.
>
> > Any input would be of great help.
>
> > Regards,
> > Krt

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

[android-developers] Re: User can purchase other apps but not mine?

> I wouldn't recommend that... I have had a couple people actually update
> their information and then the sale goes through.

By the time I see it, it's usually hours after the attempted
purchase. And they can always repurchase (and usually do).

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

Refreshing a celltree

I can't seem to find any good information on how to refresh a celltree
so that selected cells can be displayed as "selected" somehow. I've
tried refreshing the listDataProvider that's used in getNodeInfo but
when I make the dataProvider a class variable (instead of a local
variable as shown in the example
http://google-web-toolkit.googlecode.com/svn/javadoc/2.1/index.html?overview-summary.html)
the tree behaves badly (clicking a child causes the tree to be
replaced by the content of that child, instead of just opening that
child). Obviously I'm doing something wrong.
I also tried programmatically collapsing and reopening the nodes but I
don't know how to get the nodes. I can get the root node using
CellTree.getRootTreeNode() but then how do I get the children of these
children as TreeNode objects?
Since I must be doing something wrong and probably haven't really
figured out how to use the CellTree class properly, could someone
provide a small example of a cell tree that updates it's children (for
example when you click a node it becomes bold).

Thanks a lot.

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

Re: [android-developers] Gingerbread BroadcastReceiver Issue

Sorry to bother you again but I just want to clarify...

So onStartCommand() will in fact always be called at some point after the service is restarted when using the START_STICKY flag in 2.3+? Is this correct?

I have tested it in the emulator and it seems to work fine (I don't have a physical device with 2.3 yet) I am just making sure.

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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Friendship Corner

Learn business laws in one year
To Create GPs with Special Interest Leading to formal Accreditation
http://bit.ly/career99

--------

--
You received this message because you are subscribed to the Google Groups "Work From Home Make Money Online" group.
To post to this group, send email to trgbests-home-base-business@googlegroups.com.
To unsubscribe from this group, send email to trgbests-home-base-business+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/trgbests-home-base-business?hl=en.

Accessing foreign key fields

class Article(models.Model):
author = models.ForeignKey(Author)
title = models.CharField(max_length = 100)

(assume an article can have only one author)

article = Article.objects.get(title="Django is awesome)

if I need only author id, I can access author id as 1)
article.author_id or 2) article.author.id

I prefer first article.author_id as it requires less db lookup and
hence better performance.

Any reason to use 2nd way over 1st.

( I understand this approach only works for id and not for say author
name)

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

Re: Model Question

I'm not sure about your first question; I've never tried overriding a field in a subclass.

For your second question are you trying to check on the whole query set, or an individual model instance?

If you're checking on an individual model instance, you can use hasattr() like:

if hasattr(instance, 'field_name'):
# do stuff

Otherwise, the way you specified it is pretty much the only way I know how to do it. I made it a method on my model that looks like the following:

def get_field_names(self):
return [field.name for field in ModelName._meta.fields]

You would call it by instantiating a 'blank' instance of the model:

fields = ModelName().get_field_names()

On Feb 25, 2011, at 12:11 PM, Noah Nordrum wrote:

> I'm trying to cram the ORM into an existing schema and have an issue I
> can't seem to get around.
>
> I have a number of tables with a timestamp column, but the column name
> is inconsistent. I would like to put the timestamp field in an
> abstract superclass, but I can't seem to figure out how to override
> the column name in the subclass. Can I do this?
>
> Also, is there a better way to check for existence of a field in a
> models.Manager method than the following:
>
> def filteredResults(self):
> qs = super(MyManager, self).get_query_set()
> for field in qs.model._meta.fields:
>
> It works, but not sure how hacky this is...
>
> New to django and python (from primarily Java recently).
>
> --
> You received this message because you are subscribed to the Google Groups "Django users" group.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
>

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

[android-developers] Re: IllegalStateException: database not open

Just got a chance to resume this issue. How to search the device for
the database file? Apparently something really strange is going on or
I am doing something wrong. Shouldn't databases be private by default?
I haven't done anything special to make them public. databases aren't
on the memory card. Any other idea what could have gone wrong and how
to go about haunting db files on the device to remove (if they exist
on the device)? Also note, I have always uninstalled these apps from
the device's "Applications -->Manage Applications-->" option. Is this
ininstall different than adb uninstall? adb uninstall keeps giving me
"Failure" message.

Thanks,


On Feb 21, 10:57 am, Kostya Vasilyev <kmans...@gmail.com> wrote:
> Each application has its own private data files, including the
> databases. Uninstalling should remove those.
>
> So either somehow the files didn't get removed (which is strange by
> itself), or else something even more strange is going on.
>
> Are the databases, perhaps, not private to the respective applications?
> Are you using a shared user id for both apps? Are the databases on the
> memory card?
>
> -- Kostya
>
> 21.02.2011 18:46, javaxmlsoapdev :
>
>
>
>
>
>
>
>
>
> > yes. both apps are uninstalled but unable to remove database from the
> > phone, which originally was created by app1 (and subsequently app2
> > used the same db name, which screwed up the things)?
>
> > I also tried context.deleteFile(DATABASE_NAME);
> >           context.deleteDatabase(DATABASE_NAME);
> > without any luck.
>
> > how to go about deleting/removing db from on the device. permission is
> > denied even to "cd" to data directory. any idea how to go about this?
>
> > Thanks,
>
> > On Feb 20, 11:26 am, Kostya Vasilyev<kmans...@gmail.com>  wrote:
> >> Have you tried uninstalling both applications? For example, "adb uninstall
> >> your.package.name"?
>
> >> --
> >> Kostya Vasilyev --http://kmansoft.wordpress.com
> >> 16.02.2011 5:37 "javaxmlsoapdev"<vika...@gmail.com>   :
>
> >>> I had an existing working application which was creating a database
> >>> using SQLite helper/code. In another application, which I am
> >>> developing I copied app1's DBHelper code and honestly forgetting to
> >>> rename the database name in the DBHelper, which I copied from app1
> >>> code. Now I keep getting following error for both app1 (from which I
> >>> copied DBHelper code) and app2 as well. Caused by:
> >>> java.lang.IllegalStateException: database not open. Seems like
> >>> something is badly screwed up. Any idea?
> >>> Also when I tried to view database from adb shell I get Permission
> >>> Defined error.
> >>> 02-15 21:31:25.798: WARN/dalvikvm(10965): threadid=1: thread exiting
> >>> with uncaught exception (group=0x400259f8)
> >>> 02-15 21:31:25.808: ERROR/AndroidRuntime(10965): FATAL EXCEPTION: main
> >>> 02-15 21:31:25.808: ERROR/AndroidRuntime(10965):
> >>> java.lang.RuntimeException: Unable to start activity ComponentInfo
> >>> AddressActivity}: java.lang.IllegalStateException: database not open
> >>> 02-15 21:31:25.808: ERROR/AndroidRuntime(10965): at
> >>> android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
> >>> 2787)
> >>> 02-15 21:31:25.808: ERROR/AndroidRuntime(10965): at
> >>> android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:
> >>> 2803)
> >>> 02-15 21:31:25.808: ERROR/AndroidRuntime(10965): at
> >>> android.app.ActivityThread.access$2300(ActivityThread.java:135)
> >>> 02-15 21:31:25.808: ERROR/AndroidRuntime(10965): at
> >>> android.app.ActivityThread$H.handleMessage(ActivityThread.java:2136)
> >>> 02-15 21:31:25.808: ERROR/AndroidRuntime(10965): at
> >>> android.os.Handler.dispatchMessage(Handler.java:99)
> >>> 02-15 21:31:25.808: ERROR/AndroidRuntime(10965): at
> >>> android.os.Looper.loop(Looper.java:144)
> >>> 02-15 21:31:25.808: ERROR/AndroidRuntime(10965): at
> >>> android.app.ActivityThread.main(ActivityThread.java:4937)
> >>> 02-15 21:31:25.808: ERROR/AndroidRuntime(10965): at
> >>> java.lang.reflect.Method.invokeNative(Native Method)
> >>> 02-15 21:31:25.808: ERROR/AndroidRuntime(10965): at
> >>> java.lang.reflect.Method.invoke(Method.java:521)
> >>> 02-15 21:31:25.808: ERROR/AndroidRuntime(10965): at
> >>> com.android.internal.os.ZygoteInit
> >>> $MethodAndArgsCaller.run(ZygoteInit.java:868)
> >>> 02-15 21:31:25.808: ERROR/AndroidRuntime(10965): at
> >>> com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
> >>> 02-15 21:31:25.808: ERROR/AndroidRuntime(10965): at
> >>> dalvik.system.NativeStart.main(Native Method)
> >>> 02-15 21:31:25.808: ERROR/AndroidRuntime(10965): Caused by:
> >>> java.lang.IllegalStateException: database not open
> >>> 02-15 21:31:25.808: ERROR/AndroidRuntime(10965): at
> >>> android.database.sqlite.SQLiteDatabase.endTransaction(SQLiteDatabase.java:
> >>> 611)
> >>> 02-15 21:31:25.808: ERROR/AndroidRuntime(10965): at
> >> android.database.sqlite.SQLiteOpenHelper.getWritableDatabase(SQLiteOpenHelp er.java:
>
> >>> 113)
> >>> 02-15 21:31:25.808: ERROR/AndroidRuntime(10965): at
> >>> DataHelper.<init>(DataHelper.java:37)
> >>> 02-15 21:31:25.808: ERROR/AndroidRuntime(10965): at
> >>> AddressActivity.onCreate(AddressActivity.java:15)
> >>> 02-15 21:31:25.808: ERROR/AndroidRuntime(10965): at
> >>> android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:
> >>> 1069)
> >>> 02-15 21:31:25.808: ERROR/AndroidRuntime(10965): at
> >>> android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
> >>> 2751)
> >>> 02-15 21:31:25.808: ERROR/AndroidRuntime(10965): ... 11 more
> >>> --
> >>> You received this message because you are subscribed to the Google
> >>> Groups "Android Developers" group.
> >>> To post to this group, send email to android-developers@googlegroups.com
> >>> To unsubscribe from this group, send email to
> >>> android-developers+unsubscribe@googlegroups.com
> >>> For more options, visit this group at
> >>>http://groups.google.com/group/android-developers?hl=en
>
> --
> Kostya Vasilyev --http://kmansoft.wordpress.com

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

Re: Python/Django AMQP?

+! for Celery, though I haven't used it with django-celery yet.  Soon will, though.

On Feb 24, 2011, at 11:58 AM, Brian Bouterse wrote:

+1 for Celery and django-celery.  I use them also.

On Thu, Feb 24, 2011 at 9:07 AM, Shawn Milochik <shawn@milochik.com> wrote:
+1 on Celery and django-celery. I use them both.

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




--
Brian Bouterse
ITng Services

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

[android-developers] Re: startactivity vs launch from home screen - for adobe AIR app

I finally achieved what I wanted.

Here is the code.

Intent myIntent;
myIntent = new Intent(this, newActivity.class);
myIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
myIntent.addCategory("android.intent.category.LAUNCHER"); //earlier
I did not add this line.
myIntent.setAction("android.intent.action.MAIN"); //
earlier I did not add this line.
startActivityForResult(myIntent, 10);


To debug the issue: i used LogCat log. I checked the difference
between when activity is started by clicking in home screen and
started from another activity.

On Feb 24, 7:38 pm, Niket <niket.kapa...@gmail.com> wrote:
> Hi,
>
> I downloaded this java application from net.
> Link :http://rosarioconti.wordpress.com/2010/10/03/extending-your-android-a...
>
> Basically this application uses
> dexLoader.loadClass("com.adobe.air.AndroidActivityWrapper") to create
> class instance and then call "OnCreate()" method of Adobe Air class
> with swf file name as an argument. And so air runtime is launched and
> SWF file is run.
>
> This activity is working perfectly fine.
>
> Now when I try to launch same activity via startactivity(), activity
> is launched successfully. All function calls are done successfully.
> But Air application is not launched. I can say, Java part is loaded
> successfully because I can see buttons which I put in java app layout.
>
> I am not getting the reason, why application launches AIR module and
> SWF while invoking directly but not when calling from another
> activity.
>
> I tried several permutations like : multiprocess flag true; specify
> process name; specify task affinity etc.; but no luck!!!
>
> So I want to know:
>
> 1. What is difference between startactivity()  and clicking on
> activity from home screen?
> 2. How to invoke Air Application via StartActivity?
>
> Thanks
> Niket

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

Python/Django position in King of Prussia, PA, US

Hi everyone. I thought I'd check in with my "home group" before I post
this up on Dice. Any locals?

Shawn


Python/Django Developer

Greenphire is a growing company in King of Prussia, PA. We are looking
for a bright developer to join us in our quest for truth, justice, and
the Pythonic way. We wear jeans. We write code. If you join us, you
will write production code that will be used by real people and help
them to do their jobs better.

Necessary habits:

Love coding in Python ;o)

Pragmatism; must be able to deliver, first and foremost.
When in a pinch, get the job done instead of getting it perfect.

Desirable habits:

Read programmers' blogs

Attend conferences or user group meetings

Participate in a mailing list for a technology you love

Share code on github or bitbucket

Enjoy keeping up with developments in the Python and Django world

If this sounds like a dream opportunity, e-mail me your resume and cover
letter and let's get the conversation started.

shawn.milochik@greenphire.com

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

Re: [android-developers] Toast not disappearing

On Mon, Feb 28, 2011 at 8:53 PM, Julius Spencer <julius@msa.co.nz> wrote:
I'm sure it's just something I'm not thinking of but I'm stumped...

You're not calling it over and over again are you?

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

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

Re: [android-developers] Gingerbread BroadcastReceiver Issue

Sorry yes I meant 2.3.

This has been out in the code base since the GB code was released, so there will be who knows what devices that ship with it.

The problem is *not* that services are not being restarted, just that their onStartCommand() is not called with null at that time.  The onCreate() method is still called.  As a work-around, you could probably just post a message in onCreate() and set a flag in onStartCommand(); if you haven't received an onStartCommand() by the time the message is processed, then you probably aren't going to get the null Intent call.  (If you need to do this at all...  generally for things like registering receivers, you really really want to do this in onCreate(), since that method is only called once.)

On Mon, Feb 28, 2011 at 6:50 PM, rich friedel <rich.friedel@gmail.com> wrote:
On Monday, February 28, 2011 9:38:13 PM UTC-5, TreKing wrote:
On Mon, Feb 28, 2011 at 8:35 PM, Dianne Hackborn <hac...@android.com> wrote:
Okay, this did indeed break in 3.3.

Can we assume you meant 2.3?

Furthermore, can I assume that the START_STICKY behavior won't ever work as intended in 2.3? If this is the case what would be the recommended course of action to make sure a service stays running or is restarted after the system kills it? Again I ask because of the HTC issue...

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



--
Dianne Hackborn
Android framework engineer
hackbod@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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

ContextMenuHandler and CellBrowser

Has anyone successfully used ContextMenuHandler with CellBrowser?  
How can I find an EntityProxy associated with the point of a right-click in ContextMenuHandler.onContextMenu(ContextMenuEvent event)?

Any help would be greatly appreciated!

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

[android-developers] Toast not disappearing

Hi,

I have an IntentService from which I am showing a Toast using:

Toast.makeText(this, errorMessage.toString(), Toast.LENGTH_SHORT).show();

For some reason it's not disappearing. Just wondering if anyone has seen this before or knows what I'm doing wrong. I'm sure it's just something I'm not thinking of but I'm stumped...

Thanks in advance.

Regards,
Julius.

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

use of ClientBundle for html pages referring to images

Hi,

I have made an online documentation in html with images which are
referred to by the html with the <img/> tag.
I am trying to use the client bundle for the html. My application
finds the html but it is looking for the images here /lea/
com.saic.lea.rpc.LeaRPC/images/menu-build.png (/lea is the application
context and com.saic.lea.rpc.LeaRPC is the concatenation of the
package name and the name of the gwt descriptor.
I tried to put the html under /com/saic/lea/rpc/client/resources/html/
user and the images under /com/saic/lea/rpc/client/resources/html/user/
images.

So my question is : is there a way to create resources in the
ClientBundle and say : hey, these resources refer to other resources
by relative path, so please package the whole thing so that resolution
can happen.

The same could happen with xml documents using <xi:include/> or xsl
using <xsl:import/>.

Here is how I have declared my resources :

public interface HtmlResources extends ClientBundle {
public static final HtmlResources INSTANCE =
GWT.create(HtmlResources.class);
@Source("user/lea-user.html")
@DoNotEmbed
public DataResource userManual();
@Source("admin/lea-admin.html")
@DoNotEmbed
public DataResource adminManual();
}

Packaging the complete documentation under www/manual and accessing it
by URL without resources works. But it leaves a taste of "unfinished"

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

Re: [android-developers] Gingerbread BroadcastReceiver Issue

Just wondering...

I have avoided the use of startForeground() due to its issue on HTC devices http://code.google.com/p/android/issues/detail?id=9682 & http://code.google.com/p/android/issues/detail?id=9663 thus I am only utilizing START_STICKY in onStartCommand(). This currently works fine (2.2) but with the upcoming release of OS 2.3 on a wider variety of mobile devices Mr. Basile's issue concerns me as it will also affect how my application works on those devices.

Should I be concerned or am I worrying prematurely?

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

[android-developers] User can purchase other apps but not mine?

Hi all,

I just got an odd email from a prospective customer...

"So, I have tried to download numerous times from US android phone and
have card declined. Google account works ffine for other apps is this
a common issue"

Looking at the checkout it appears his card has been declined
repeatedly, and he's tried updating the details but to no avail. I'd
normally assume he'd made some kind of user error or had something up
with his card, but he states that it's working for other apps.

I've mailed him back to clarify it's actually other purchases that
work, not just free downloads, but in the mean time has anyone seen
this happen before and/or know anything I can do to fix it? (App is
called 'TouchTag' if that helps?)

Thanks,
Adam

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

Re: [android-developers] Gingerbread BroadcastReceiver Issue

On Mon, Feb 28, 2011 at 8:27 PM, Dianne Hackborn <hackbod@android.com> wrote:
> What is the bug report?  I don't see any link you have posted to it here.
>  Nor do I see a self-contained sample I can run to try to repro the problem.

FWIW, he had a link in HTML-formatted mail in a preceding post:

http://code.google.com/p/android/issues/detail?id=14340

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

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

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

[Google Maps API v2] How to get signature using places API

http://code.google.com/intl/ko/apis/maps/documentation/webservices/index.html#GeneratingSignatures

I followed upper link sample.
but i don't know what is 'center' parameter?
I don't get any descriptions about 'center' parameter.

and i don't understand how to get signature in google api manuals.

is there anyone who explain how to get signature simply?

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

Re: [Rails] live search.....

On Feb 27, 2011, at 5:48 PM, Mauro wrote:

> Do you use ajax live searching?
> With rails 2 I had used observe_field.
> Now in rails 3 with unobtrusive javascript it can be used jquery and
> onkeyup event, but I don't like keyup, on every key I press there is a
> database search, it's too expensive.
> What solutions do you adopt?

each onkeyup restarts a timer, if the timer ever expires (100ms or so)
then fire the search.

Walter

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

Re: urls.py usage

I only followed manuals! Please, Mr. Daniel, give me more details!

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

3akarat.com -

إعلان جديد من عقارات دوت كوم تفاصيل الأعلان : تفاصيل الإعلان . . .

عقارات دوت كوم
----------------------------------------------------------------------------------------

Re: java.security.AccessControlException: access denied (java.lang.RuntimePermission modifyThreadGroup)

This solution is correct; it works!


jhulford <jhulford@...> writes:

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

Re: how images stored in database

My file upload behavior allows you to save metadata to the database:

https://github.com/milesj/cake-uploader/blob/master/tests/upload.php

On Feb 26, 6:02 am, Elvis Nguyen <nvnt...@gmail.com> wrote:
> I love this way because it is very simple and easy. When browsing the
> images, the application saves the path to database. However, we have
> app/webroot/img folder contains all images of the application.

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

Re: GWT with JPA

You need to place your entity in server/domain folder and your DTO in
shared. After that add the client and shared folder to your
<module>.gwt.xml file.

On 2/28/11, FritzTheCat <wg27_2000@hotmail.com> wrote:
> Hi people,
>
> i try to use gwt 2.2 with JPA. For this I use the @Entity annotation
> in my shared folder and i get the error message:
> The import javax.persistence cannot be resolved, Entity cannot be
> resolved to a type. For me it is clear that something is missing in
> the .gwt.xml file and I found the rpc enhanced feature but I don't
> know how to include those classes. I used the following "<define-
> configuration-property name="rpc.enhancedClasses" is-multi-
> valued="true"/>" in my .gwt.xml file but I also have to define my
> @Entity annotated classes. So how must the be defined in the .gwt.xml
> file? Any help is appreciated,
>
> thank you and nice greetings
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscribe@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>


--
Odeyemi 'Kayode O.

B.Sc(Hons) Econs, Application Developer & Systems Engineer (Sun Certified
Professional),
Oracle Certified Associate, Solaris Systems Administrator, Drupal Developer

Website: http://sinati.com <http://www.sinati.com>
Socialize with me: http://profile.to/charyorde, http://twitter.com/charyorde,

http://www.google.com/profiles/dreyemi
Skype:drecute

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

[Rails] form level validation, where to do it.

Form level validation involving enforcing a relation between two or
more form inputs that may not even be in the model:

I am building a form that will query a range of records between two
dates.

The form ask for a starting data and a ending date.

I want to validate that the user selected a starting data before or
equal to the ending date.

It seems that this validation should happen in the controller, rather
than in the model.

If it should happen in the model, what would be an example?

( a more complex, but maybe idea way would be to do the validation for
this in javascript in the client browser?)

Or if it makes since in the controller, how do I do validation in the
controller?

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

[android-developers] What is "Failed to finish input event. Check logs for details." Runtime crash?

Hi,

I am working on ginger bread.

I am porting an application which was running properly on Foryo to
GingerBread.

While close one of my application activities i am getting RunTime
exception.

Can any body help me?


The logcat as follows.

java.lang.RuntimeException: Failed to finish input event. Check
logs for details.
03-01 01:15:51.583 E/AndroidRuntime( 422): at
android.view.InputQueue.nativeFinished(Native Method)
03-01 01:15:51.583 E/AndroidRuntime( 422): at
android.view.InputQueue.access$100(InputQueue.java:26)
03-01 01:15:51.583 E/AndroidRuntime( 422): at android.view.InputQueue
$FinishedCallback.run(InputQueue.java:165)
03-01 01:15:51.583 E/AndroidRuntime( 422): at
android.view.ViewRoot.finishInputEvent(ViewRoot.java:2064)
03-01 01:15:51.583 E/AndroidRuntime( 422): at
android.view.ViewRoot.handleMessage(ViewRoot.java:1890)
03-01 01:15:51.583 E/AndroidRuntime( 422): at
android.os.Handler.dispatchMessage(Handler.java:99)
03-01 01:15:51.583 E/AndroidRuntime( 422): at
android.os.Looper.loop(Looper.java:123)
03-01 01:15:51.583 E/AndroidRuntime( 422): at
android.app.ActivityThread.main(ActivityThread.java:3661)
03-01 01:15:51.583 E/AndroidRuntime( 422): at
java.lang.reflect.Method.invokeNative(Native Method)
03-01 01:15:51.583 E/AndroidRuntime( 422): at
java.lang.reflect.Method.invoke(Method.java:507)
03-01 01:15:51.583 E/AndroidRuntime( 422): at
com.android.internal.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:842)
03-01 01:15:51.583 E/AndroidRuntime( 422): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:600)
03-01 01:15:51.583 E/AndroidRuntime( 422): at
dalvik.system.NativeStart.main(Native Method)


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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: Problems with Firefox 4B12 in dev mode.

i went ahead and filed it here: http://code.google.com/p/google-web-toolkit/issues/detail?id=6084

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

[Rails] Re: DISTRIBUTE BLACKBERRY APPLICATION WITH RAILS

ken bob wrote in post #984481:> has anyone any idea on how to distribute
a BLACKBERRY APPLICATION
> ( i.e .jad and .cod files)
> using rails? I would want a little example on how to achieve this on
> heroku.

I don't think this is going to have anything to do with Rails. If you
can figure out how to do it with anything else it will work exactly the
same in Rails.

Do you have a specific question about this that directly involves Rails?
If not then it would probably be better to direct your question to a
Blackberry developer forum.

--
Posted via http://www.ruby-forum.com/.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

Re: Django+ oracle, working with apache(mod_python, wsgi) and in runserver, ora-03114 in fastcgi

also when i first run fast cgi it is working, but only first page,
second return error, after killing fcgi and run it again a can get
another page (but only one)
it;s looks like this:
1)python2.6 manage.py runfcgi host=127.0.0.1 port=9001 --
settings=settings
2) go to http://localhost <- page is working
3) go to http://localhost <- error
4) kill fcgi, run "1" point again
5) go to http://localhost <- page is working
6) go to http://localhost <- error

On 28 Lut, 16:04, lipt0n <michal.lipin...@gmail.com> wrote:
> Hi
> my application works fine in apache as mod_python and wsgi, also work
> great when I run manage.py runserver
> but I have to move it on nginx.
>
> so I run it by 'python2.6 manage.py runfcgi host=127.0.0.1 port=9001 --
> settings=settings'
> and it works fine until it have to connect to the database (oracle in
> my situation) and i get " Unhandled Exception",
> when I checked logs its what I found :
> "
> OperationalError: ORA-03114: not connected to ORACLE" while reading
> response header from upstream, client: 192.168.1.105, server:
> localhost, request: "POST / HTTP/1.1", upstream: "fastcgi://
> 127.0.0.1:9001", host: "192.168.1.50", referrer: "http://
> 192.168.1.50/"
> "
>
> ORACLE enviroment vars are set correctly, what can I do to fix this?

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

[android-developers] Installpackged

Hi all, I have developed an app for Android 1.5.

I used the method:
android.content.pm.PackageManager.installPackage(..) successfully.

Now I need to use the same app for Android ver 2.1 but for my luckless
the method has removed.

I know this method is inside hidden API

anyone know about replecment for this method? (I am aware to the fact
which I must have system permissions in order to use it)

thanks,

ray.

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

Re: Own GWT library without web.xml

I unchecked the "This project has a war directory" already - The
strange thing is that the type of the error message "The web.xml file
does not exist" is "Google Web App Problem". So the suggestion to
uncheck this field was a great idea but unfortunately I did that
already. I also checked the eclipse.pref files and of course restarted
eclipse.

@Jaff Schwartz: What do you mean with importing the library into my
web.xml file?

thanks so far, hopefully sb can help me out anyway...

On 25 Feb., 16:55, Jack <mlsubscri...@gmail.com> wrote:
> Go to project properties -> Google -> Web Application and uncheck "This
> project has a war directory".

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

Django+ oracle, working with apache(mod_python, wsgi) and in runserver, ora-03114 in fastcgi

Hi
my application works fine in apache as mod_python and wsgi, also work
great when I run manage.py runserver
but I have to move it on nginx.

so I run it by 'python2.6 manage.py runfcgi host=127.0.0.1 port=9001 --
settings=settings'
and it works fine until it have to connect to the database (oracle in
my situation) and i get " Unhandled Exception",
when I checked logs its what I found :
"
OperationalError: ORA-03114: not connected to ORACLE" while reading
response header from upstream, client: 192.168.1.105, server:
localhost, request: "POST / HTTP/1.1", upstream: "fastcgi://
127.0.0.1:9001", host: "192.168.1.50", referrer: "http://
192.168.1.50/"
"

ORACLE enviroment vars are set correctly, what can I do to fix this?

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

[android-developers] Re: Math question

center is (x0, y0)
locX = x0 + radius * cos(angle)
locY = y0 + radius * sin(angle)

On Feb 27, 12:37 am, Scott Deutsch <surger...@gmail.com> wrote:
> I know that v = 2piR/T.
>
> How would polar coord 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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: urls.py usage

> AlreadyRegistered at /blog/
> The model BlogPost is already registered

That you have duplicate registration of one model in your admin.py
somewhere (I believe, I may be wrong).

Cheers

Jirka

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

[Google Maps API v2] Regarding Map License and Usage for Static Map and KML Geocode

Hello,

My company wants to develop a web application which will be sold to
our client

after its development.
And after that out client company is going to sell this product in
market.
This application needs to use following queries to get static map's
images and

location search result in KML.

For getting Static Map:
"http://maps.google.com/maps/api/staticmap?center=20.59368,78.96288"

For getting Geocode search information in KML:
"http://maps.google.com/maps?
f=q&source=s_q&hl=en&geocode=&q=india&output=kml
"

So my questions are as below.
1. Which kind of licenses are required from Google to do so?
2. If licenses are required then how can We get those from Google?
3. Do end users (Product buyers from our client company) also need any
kind of

licenses from Google?

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

[Rails] bad to still start a 2.x app?

Hi,

I am still quite new to rails and now I have to do a project for a
client. She has her hosting a hostgator and they use cpanel as admin
panel.
The problem is that cpanel is not compatible with rails 3, the actual
installed version there is 2.3.5
Is it a bad idea to still start a 2.3.x application or is it "nearly
the same"...
like more a problem in my head than it really is...
meaning should i try to find a workaround to get v 3.x running or just
learn 2.3 as well...?

thanks for your opinions

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

Re: is it possible to use an SLF4J adapter in GWT to wrap java.util.logging ?

I never knew of i_log until now. I suggest you write some documentation and provide a website if you want to attract users.

Anyway, we aren't using JME, and SF4J/Logback with a simple GWT emulation is working fine for us.

-Richard

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

[android-developers] How to send email programmatically?

how we can send email programmatically?

i try the following code:

http://www.jondev.net/articles/Sending_Emails_without_User_Intervention_(no_Intents)_in_Android

this is work fine with gmail. but if i try this with different smtp
server its not working such like yahoo,hotmail and my company smtp
server.

how this 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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: Problems with the Market

On 28 February 2011 12:20, Leszek Koltunski <lkoltunski@gmail.com> wrote:

> So it really is a Market bug and there's nothing I can do about it??

I am afraid you can't do much about it, because it mostly not your
fault, so you can't fix it.

>>That's because your phone shows only comments in selected language,
>>while developer console shows them all.
> 10 out of those 11 comments are in English. So another Market bug? And why

It does not matter what language the comments are written in but the
rather locale users run on their phones when they posted. I.e. if I
write my commentin english while using polish locale it won't appear
when you switch locale to english. But you see it in market console
and while you can't tell from there what locale user used for posting,
just live with it. Ratings however is totalled so my "polish" stars
would contribute to overall rate of the app.

> did the one comment and rating ( it wasn't mine, mind you ) disappear?

User can cancel own rating and that removes both rating and comment

> Hmm, so no support whatsoever? Even with such blatant bugs like those? I
> also publish in Nokia's Ovi and Blackberry's AppWorld, I used to complain a
> lot about Ovi, but now I see it's not so bad afterall. Profits are way
> better there, too, even though it is supposed to be a 'declining' market.

There's contact form in market console but chances to get the response
usually depend on wind, moon phase and tides.

--
Regards,
Marcin

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

[android-developers] EditText onKey does not fire in android 2.1

Hi

I have came across a problem with android 2.1 EditText. It does not
fire onKey event listener.

EditText edit = (EditText) findViewById(R.id.edit);
edit.setOnKeyListener(new OnKeyListener() {

@Override
public boolean onKey(View v, int keyCode, KeyEvent event) {
Log.d("TAG","onKey() - " + keyCode);
return false;
}
});


I dont see any log's print when I type any key. It works on other
platform but not in 2.1. Anyone has any idea how I can get rid of this
problem or any way around (if any). Or this is not a problem at all
and I'm being stupid using it wrong way :-)

Regards
Mohammad

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

Re: CGI problem

Whilst my fix worked for my app running on GWT development mode, I had
to make a change so it would run properly on a separate Jetty server
running on port 8080. The change I had to make was as follows:

change : Frame bugFrame = new Frame("/bugzilla/")

to : Frame bugFrame = new Frame("/bugzilla/index.cgi")

I made no change to web.xml

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

HOT ACTRESS SO SEXY VIDEOS AND ROMANTIC PICTURES HERE

http://www.love4indianpeople.blogspot.com/

http://www.love4indianpeople.blogspot.com/

http://www.love4indianpeople.blogspot.com/

http://www.love4indianpeople.blogspot.com/

http://www.love4indianpeople.blogspot.com

--
You received this message because you are subscribed to the Google Groups "Work From Home Make Money Online" group.
To post to this group, send email to trgbests-home-base-business@googlegroups.com.
To unsubscribe from this group, send email to trgbests-home-base-business+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/trgbests-home-base-business?hl=en.

[Rails] Best Linux distro to code Rails

Hello Group,

I want to start a project that uses Rails 3 and ruby 1.9.2 . with
(Rmagick). Can any one tell me a Linux distro that supports these
software seamlessly?

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

[android-developers] Re: User interaction with Background applications

Thanks everyone for the suggestions.

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

How to cache and clean paginated content?

I know how to create cache and delete it. But - how can cache and then remove cached content based on pagination. Now my caches are named result-1, result-2, .....
How in 1 line can I delete all paginated content?

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

[android-developers] Re: How to resize an icon at run time to achieve specific size

Hi Guys,

I've found the solution and in case you guys are interested the
following code will do the work for icon resize.

Regards,
argongold
----------------------

public Drawable scaleIcon(Drawable mIcon){

int width = mIcon.getMinimumWidth();
int height = mIcon.getMinimumHeight();

int newWidth = 42;
int newHeight = 42;


// calculate the scale to apply
float scaleWidth = ((float) newWidth) / width;
float scaleHeight = ((float) newHeight) / height;


// createa matrix for the manipulation
Matrix matrix = new Matrix();

// resize the bit map
matrix.postScale(scaleWidth, scaleHeight);

// recreate the new Bitmap
Bitmap bmp = ((BitmapDrawable) mIcon).getBitmap();
Bitmap resizedBitmap = Bitmap.createBitmap(bmp, 0, 0, width,
height, matrix, true);

// make a Drawable from Bitmap to allow to set the BitMap
// to the ImageView, ImageButton or what ever
BitmapDrawable newIcon = new BitmapDrawable(resizedBitmap);

return newIcon;
}


On Feb 28, 2:26 pm, argongold <argongol...@gmail.com> wrote:
> Hello,
>
> I am working on an android application for which I need to get
> specific size of icons as I am displaying on smaller scale.
> Is there a straight forward way to resize/scale an icon to achieve its
> specific size.
>
> Kind regards,
> argongold

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

Re: Some cache problems

Anyone can help me with that error?

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

Sunday, February 27, 2011

[android-developers] how to make the app rotate follow the gravity

I have decompile a apk file using apktools.But the app can fill the
480*800 device.And i want it to work on 800*480 device.But it don`t
rotate when i change the screan orientation,so what can i do?
thanks and sorry for my poor english

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

Re: Containable Query Slow - Am I doing it wrong?

It looks like it's just the way it is. Because of the way the
associations are it has to query each variation. I just removed the
variations from the containable and queried them separately and then
combined the arrays in PHP. Much quicker now.

Thanks for everybody's help!

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

Re: What is "=>" in an Array?

'=>' is one way to assign a value in an array in PHP. For more info
check:

http://php.net/manual/en/book.array.php

Regards,
Anatoli

On Feb 28, 6:47 am, nicolas <xu.shen...@gmail.com> wrote:
> hi,
> in this code: $this->redirect(array('action'=>'index'));
> I am absolutely new to cakePHP.  the "=>" really confuses me a lot. I
> couldn't find it in PHP documentation.
>
> Can anybody tell me what "=>" means exactly? and explain the syntax of
> =>?
>
> Thanks a lot!
>
> REgards,
> Nicolas

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

require(config/core.php)

i have host my site with new hosting server and got below given error,
on previous server it work fine ,

pls suggest any solution of that problem?

Warning: require(config/core.php) [function.require]: failed to open
stream: No such file or directory in /var/www/sitename/cake/
bootstrap.php on line 35

Fatal error: require() [function.require]: Failed opening required
'config/core.php' (include_path='/var:/var/www/:.:/usr/share/pear')
in /var/www/sitename/cake/bootstrap.php on line 35

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

[android-developers] How to resize an icon at run time to achieve specific size

Hello,

I am working on an android application for which I need to get
specific size of icons as I am displaying on smaller scale.
Is there a straight forward way to resize/scale an icon to achieve its
specific size.

Kind regards,
argongold

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

[Google Maps API v2] Re: About my Maps Digits.

A LatLng object has a toUrlValue method:
http://code.google.com/apis/maps/documentation/javascript/reference.html#LatLng

toUrlValue accepts an optional integer parameter to specify how many
decimal places are required, so you could update your code like this:


google.maps.Event.addListener(gmap, "move", function() {
var center = gmap.getCenter();
document.getElementById("latlon").innerHTML =
center.toUrlValue(6);


});

Martin.


On Feb 28, 5:55 am, blakilox <g...@4ustralia.com> wrote:
> Hi, I am trying to work out how to reduce the amount of digits on my
> map (Where it echo's the Lat Long at the bottom) to 6 decimal places,
>
> This is the bit in the code where it echos the digits,
> At then moment, when i move my map I am getting 14 digits. Is that
> accurate to like less than 1 mm? I only want 6 digits. thanks so much,
> Gazz.
>
> My map is athttp://cairns.info
>
> <table width="640" border="0" cellpadding="4">
>   <tr>
>     <td width="448"><strong>Latitude, Longitude:&nbsp;&nbsp;</strong>
> <span id="latlon"></span></td>
>     <td width="170"><strong>Zoom level:</strong> <span id="zoom"></
> span></td>
>   </tr>
> </table>

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

CellList custom style css not working

Hi there,

So I have created my own extension for the CellList.Resources interface and I have provided a new css file for the styling.
I have even provided the new resources class to the CellList constructor. However when the code runs the changes are not getting reflected.... 
Is there anything that I have missed out?

tej

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

[android-developers] Render Script samples does't show anything

Hi all,

I tried to run the render script samples, but it doesn't show
anything and crashes.
Did any one face this issue? Or is there any other way to run those
sample ?

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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: error with database

On Feb 27, 2011, at 13:54, a17s wrote:

> I am having an issue with a cakephp site. I keep having an error in
> connecting to mysql database though my database config seems correct.
> Any suggetions.
> Find below error messages
>
> Warning (2): mysql_connect() [function.mysql-connect]: Can't connect
> to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
> [CORE/cake/libs/model/datasources/dbo/dbo_mysql.php, line 540]
> Code | Context

Is there in fact a MySQL socket at /var/run/mysqld/mysqld.sock?

Can you connect to the MySQL server via, say, the command line MySQL client?

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

[Google Maps API v2] change marker icon when button selected

http://www.landvizmedia.net/testFiles/gmapIconSwap.php

I added an alert that displays the color name but now need to have it
replace the iconGreen that is currently used. I tried to put the
value of the iconImage into a var but it will not work when done this
way.

Thanks,

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

urls.py usage

2. Studying example (CMS) in "Python Web Development with Django.
J.Forcier, P.Bissex, W.Chun" I have got an error:
https://docs.google.com/leaf?id=0B5W4njXO9ND_Mzg1M2U0ZGItYzZiMS00Y2Qx...

adding detailes. I study CMS project in Chapter 8 in that book.
Following authors I wrote:
1) project level cmsproject/urls.py:
from django.contrib import admin
from django.conf.urls.defaults import *
admin.autodiscover()
urlpatterns = patterns('',
# Uncomment the next line to enable the admin:
# (r'^admin/', include(admin.site.urls)),
# url(r'^admin/(.*)', admin.site.root),
url(r'^admin/(.*)', admin.site.urls),
url(r'^cms/', include('cmsproject.cms.urls')),
# Example:
# Uncomment the admin/doc line below to enable admin
documentation:
url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
)

2) application level cmsproject/cms/urls.py:
from django.conf.urls.defaults import *
from cms.models import Story
from cms.models import Category
info_dict = {'queryset': Story.objects.all(), 'template_object_name':
'story'}
urlpatterns = patterns('cmsproject.cms.views',
url(r'^category/(?P<slug>[-\w]+)/$', 'category', name="cms-
category"),
url(r'^search/$', 'search', name="cms-search"),
)
urlpatterns += patterns('django.views.generic.list_detail',
url(r'^(?P<slug>[-\w]+)/$', 'object_detail', info_dict, name="cms-
story"),
url(r'^$', 'object_list', info_dict, name="cms-home"),
)

error message is: TemplateSyntaxError at /admin/
Caught AlreadyRegistered while rendering: The model Category is
already registered

I also don't understand why cmsproject/cms/urls.py contains = but not
+= in the statement
urlpatterns = patterns...

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

Re: RE: pages_controller

Wish I would have made it to this post earlier : ) ... I ran into the same issue and complicated it beyond belief! But it's as simple as stated above.

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
 
 
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

TERKINI JAWATAN KOSONG 28 FEB 2011 : TABUNG HAJI, FELDA, PUBLIC BANK, JAIS, JPM, TNB, BSN, AND MORE ...

SALAM 1 MALAYSIA ...
------------------------------

INFO TERKINI [ HOT ] : Info Terkini : Kepada Mereka yang Inginkan
Ilmu tentang Bagaimana Untuk mendapatkan RM1 pertama melalui
Internet .. Panduan ini amat bernilai utk anda terutama kepada mereka
yang menganggur, atau yg bekerja ingin menambah pendapatan
sampingan .. Dapatkan segera PANDUAN ini .. PERCUMA!!! -->
http://bit.ly/Bisnes-Internet [ MUAT TURUN SEGERA.. RUGI
KALU SIAPA TAK DAPATKAN EBOOK PANDUAN INI .. IANYA AKAN BERBAYAR
SELEPAS INI ]

--> http://bit.ly/Bisnes-Internet

***********************************************************

INFO JAWATAN KOSONG 28 FEBRUARI 2011 --> http://bit.ly/JobsMalaysia2011
| http://www.kerjakosong.info

New Info : All Technical and IT Jobs / Engineering UPDATED!! HERE -->

http://www.jobsmalaysiaonline.com | http://www.techjobsonline.info

---------------

1. PUBLIC BANK BERHAD - TUTUP 15 MAC 2011

2. Jabatan Perangkaan Malaysia (296 Kekosongan) - TUTUP 1 March 2011

3. Syarikat Air Terengganu (SATU) - TUTUP 10 Mac 2011

4. TIOXIDE (MALAYSIA) SDN BHD - TUTUP 19 MAC 2011

5. Institut Integriti Malaysia - TUTUP - 15 Mac 2011

6. PROTON - TUTUP - MARCH 2011

7. Majlis Agama Islam Wilayah Persekutuan (MAIWP) - TUTUP 4 Mac 2011

8. BH Petroleum - TUTUP - 5 MAC 2011

9. TELEKOM MALAYSIA - TUTUP - 10 MAC 2011

10. Perbadanan Kemajuan Filem Nasional Malaysia (FINAS) - TUTUP 7 Mac
2011

11. FELDA HOLDING - TUTUP 4 MAC 2011

12. Lembaga Pelabuhan Klang - TUTUP 4 Mac 2011

13. Jabatan Agama Islam Selangor (JAIS) - TUTUP 2 MAC 2011

14. JABATAN PERDANA MENTERI - TUTUP 28 FEBRUARI 2011

15. TESCO - TUTUP MAC 2011

16. Majlis Agama Islam Dan Adat Melayu Perak (MAIPk) - TUTUP 4 MAC
2011

17. Lembaga Tabung Haji - TUTUP 11 MAC 2011

18. Majlis Ugama Islam Dan Adat Resam Melayu Pahang (MUIP) - TUTUP 10
MAC 2011

20. TENAGA NASIONAL BERHAD - TUTUP 2 MAC 2011

22. Prudential BSN Takaful Berhad - TUTUP MAC 2011

23. MAJLIS PERBANDARAN KUANTAN - TUTUP 3 MAC 2011

24. MAJLIS PERBANDARAN SUBANG JAYA - TUTUP 3 MAC 2011

25. SPN KELANTAN - TUTUP 1 MAC 2011

26. PROTON - TUTUP 14 MARCH 2011

28. INSTITUT JANTUNG NEGARA - 13 MAC 2011

31. Kuwait Finance Home Berhad - 186 Vacancies

32. KONICA MINOLTA

33. Intel Corporation Sdn Bhd

34. Petrolink Energy

AND MORE .... http://www.jawatankosong.info | http://www.jobsmalaysia.info

UNTUK LEBIH LANJUT DAN PERMOHONAN

Info Jawatan Kosong GLC & SWASTA --> http://www.jobsmalaysiaonline.info


------------------------------

INFO 2 : ANDA PERNAH TERTANYA2 KENAPA TAK PERNAH DI PANGGIL TEMUDUGA..
KERAJAAN MAHUPUN SWASTA ? KAT MANA SILAPNYA .. RESUME AKU TAK LENGKAP
KER ? TAK MENARIK KER ? ATAU KURANG MANTOPPP!!! .. NAH INI DIAA...
DAPATKAN SEGERA RAHSIANYA

DAPATKAN SEGERA --> http://bit.ly/ResumeLengkap

INFO 3: PENTING UTK KERJAYA LEPASAN SPM ( BOLEH MUAT TURUN UTK ADIK-
ADIK, ABANG KAKAK DAN RAKAN TAULAN SEBELUM IANYA DIKENAKAN BAYARAN
BERMULA MAC INI

--> http://bit.ly/TipsLepasanSPM ( JANGAN LEPASKAN
PELUANG KEEMASAN INI )


DAPATKAN PRODUK TERBAIK DENGAN HARGA PROMOSI DISINI SEMENTARA

STOK MASIH DIBUKA

--> http://bit.ly/KuasaiBahasaInggeris [ PAKEJ TERBAIK MENGUASAI

BAHASA INGGERIS DGN PANTAS ]

REGARDS,
ADMIN

--
You received this message because you are subscribed to the Google Groups "Work From Home Make Money Online" group.
To post to this group, send email to trgbests-home-base-business@googlegroups.com.
To unsubscribe from this group, send email to trgbests-home-base-business+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/trgbests-home-base-business?hl=en.


Real Estate