It's the same code. getAppId is not available in static context. On Wednesday, September 12, 2012 7:00:13 AM UTC+4, Brian Michelich wrote: > > Have you tried this? > > > https://developers.google.com/appengine/docs/java/appidentity/overview#Identifying_Itself > > > The Application ID can be found in the ApiProxy.Environment.getAppId() > method. > > > On Sat, Sep 8, 2012 at 8:05 AM, Artem Kuroptev > <[email protected]<javascript:>> > wrote: > > Hello, > > > > I am trying to get an id of my app using > > 'ApiProxy.getCurrentEnvironment().getAppId()'. > > > > But the code returns application id with 's~' prefix. Which, I believe, > > somehow related to HDR datastore. > > > > How do I receive a clear id of my application in run-time? I don't > really > > want cut the prefix from the string, because that would looks like a > hack. > > > > -- > > You received this message because you are subscribed to the Google > Groups > > "Google App Engine" group. > > To view this discussion on the web visit > > https://groups.google.com/d/msg/google-appengine/-/htKSv-SVFWEJ. > > To post to this group, send email to > > [email protected]<javascript:>. > > > To unsubscribe from this group, send email to > > [email protected] <javascript:>. > > For more options, visit this group at > > http://groups.google.com/group/google-appengine?hl=en. >
-- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine/-/kB--oiJbKmoJ. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
