JPA 2.0 native query results as map

Which JPA are you using – Hibernate, EclipseLink or something else? There is no standard way to do this in JPA but your specific implementation may allow it – for example, Eclipselink has a query result type hint. http://dev.eclipse.org/mhonarc/lists/eclipselink-users/msg03013.html Query query = entityManager.createNativeQuery(sql); query.setHint(QueryHints.RESULT_TYPE, ResultType.Map); For Hibernate, with javax.persistence.Query dbQuery: org.hibernate.Query hibernateQuery =((org.hibernate.jpa.HibernateQuery)dbQuery) .getHibernateQuery(); hibernateQuery.setResultTransformer(AliasToEntityMapResultTransformer.INSTANCE);

Android – How to display a dialog over a native screen?

For my application I used an activity with the Dialog theme. You can declare the theme in the manifest file : <activity android:name=”PopupActivity” android:launchMode=”singleInstance” android:excludeFromRecents=”true” android:taskAffinity=”” android:theme=”@android:style/Theme.Dialog” /> use launcheMode=”singleInstance” and taskAffinity=”” if your popup is detached from your main application. Otherwise user may click the back button and return to the previous activity of … Read more

mylib.so has text relocations. This is wasting memory and is a security risk. Please fix

This would appear to be a result of two ndk-gcc bugs mentioned at https://code.google.com/p/android/issues/detail?id=23203 and stated there to have been fixed as of ndk-r8c. It would appear that the check for libraries with the issue has been added only recently. Note: please do not edit this post to hide the link URL. It is explicit … Read more