Posts

java - Howto maintain an app for publishing to google and amazon store -

I already have an app published on the Google play store. I want to publish it also in the Amazon Store. I read about the rehearsal for special format (4 numbers with dot). How do I maintain an app (in an eclipse project) to support both stores? For example: Do I have to change the version name or do some tricks? What else to do? Can not you name the version in the Amazon format What do you currently have for Google Play )? As far as I know, play version is very generous with naming. To maintain different plans, supports multiple flavors, where you can customize everything, up to the actual code by the name of the version so that you can see the play link in the Amazon app for example Avoid showing and in other ways, as well as potentially different ad networks, etc. I do not know what will be the migration path for this, although Gradal supports the generation of eclipse projects so that you can continue to use it.

Android GridView in a scroll view -

I have a layout for which I need to insert a grid view inside the scroll view, I have read this but my suggestion It is not necessary for the layout. When a GridView is inserted in a ScrollView the grid is not scrolled! I have got this with regard to the following. The problem I have is that I will not scroll the grid view smoothly, if I hold my finger and drag it scroll, but if I type a gesture, it's expected to be a smooth As soon as I scroll off my finger stops on the grid view. gridView.setOnTouchListener (New View.OnTouchListener () {@Override Public Boolean onTouch (see v, MotionEvent event) {if (event.getAction () == MotionEvent.ACTION_DOWN || event. GetAction () == MotionEvent.ACTION_MOVE) {gridView.requestDisallowInterceptTouchEvent (true);} return false;}}); I tried, but no luck adding this gridView.setOnScrollListener (New OnScrollListener () {@Override Public Zero onScrollStateChanged (AbsListView View, Int scrollState) {// TODO Automatic Created Me...

Python indentation error when documenting the code -

I have the following part of the code in Python. "" "=== ================================== =============== this file provides the casing around the web test API to start a test and every file ============ ============================= =================== "" "import json, urllib, OS, ConfigParser webPageTestConfigUtils webPageTestConfigUtils import pprint import class WebPageTestProcessor from pprint:" "" ====== ===================== ========================= method of test for Dbluteepiti to offer. takes a URL input for which you test To run Want. =============================== =============== ======= "" "def submitTest (self, url): response = No URL If no: wptUrl = WebPageTestConfigUtils.getConfigValue ( 'runTestURL"? f = json & amp; url = "') + url + "& amp; run = 3 and video = 1 & amp; web10 = 0 & amp; fvonly = 1 & amp; mv = 1 & amp; private = 1 and Area = us_east_wptd...

python - Confused about try/except with custom Exception -

मेरा कोड: class AError (अपवाद): print 'error occur' i रेंज (3) में: प्रयास करें: प्रिंट '--- ऊ' एईआरआर को छोड़कर एईआरआर बढ़ाएं: प्रिंट 'एएर्रर' और प्राप्त करें: प्रिंट अंत में: 'आखिरकार' प्रिंट करें 'अंत में' जब मैं उपरोक्त कोड को चलाता हूं, आउटपुट यह है: त्रुटि उत्पन्न होती है --- ओओ अंत में एईआरआर प्राप्त करें --- ओओ अंत में एईर प्राप्त करें --- ओओरो अंत में एईआरआर प्राप्त करें मुझे लगता है कि स्ट्रिंग "त्रुटि उत्पन्न होती है" तीन बार होनी चाहिए, जैसे "--- oo" , लेकिन यह केवल एक बार होती है; क्यों? स्पष्ट करने के लिए, यहां एक सरल उदाहरण है: class टेस्ट (ऑब्जेक्ट): प्रिंट "कक्षा परिभाषित किया जा रहा है" def __init __ (स्वयं): प्रिंट (उदाहरण के लिए) के लिए "इंस्टॉन्स बनाया जा रहा है": (3): t = test () यह हो जाएगा: परिभाषित किया जा रहा वर्ग उदाहरण बना रहा है उदाहरण बनाया जा रहा है उदाहरण बनाया जा रहा है कोड वर्ग परिभाषा के भीतर लेकिन एक विधि def इंतिशिप के बाहर केवल ए...

java - Hibernate Mapping when foreign key placed in reference class -

मेरे पास दो वर्ग विद्यार्थी और पता है। छात्र {stuid, stuName,} पता {स्ट्रीट, शहर, stuid; // forngn key »Studnet} के साथ रेफ़री क्या कोई भी मुझे मदद कर सकता है हाइबरनेट का उपयोग करके इन दो कक्षाओं को मैप करें ?? आपको सीखना चाहिए कि सबसे पहले हाइबरनेट में वन-टू मैपिंग क्या है दूसरा, अगर मैं डिजाइन करना चाहता हूं तो मुझे स्टूडेंट टेबल में विदेशी कुंजी के रूप में एड्रेस_आईड होगा और छात्र आईडी नहीं होगा। // टेबल नाम को छात्र के तौर पर लिया जाएगा क्योंकि आप @ टेबल एनोटेशन का उपयोग करके इसे निर्दिष्ट नहीं कर रहे हैं छात्र वर्ग @ एंटीटी सार्वजनिक कक्षा छात्र {@Id @Column ("stuid") @ जनरेटेड वैल्यू (रणनीति = जनरेशन टाइप.ऑटो) निजी पूर्णांक आईडी; @ कॉलम ("स्टुनाम") निजी स्ट्रिंग नाम; // setters और getters} पता वर्ग @ एंटीटी सार्वजनिक वर्ग पता {@Id @Column ("add_id" ) @ जनरेटेड वैल्यू (रणनीति = जनरेशन टाइप। एओटीओ) निजी पूर्णांक आईडी; @ स्तंभ ("सड़क") निजी स्ट्रिंग सड़क; @ कॉलम ("शहर") निजी स्ट्रिंग शहर; @OneToOne...

bash - Process output with `awk` when the command prompts for input with no newlines -

I have a process (Apache Maven) that produces a lot of production, from which I want to paint some parts In particular, if line starts with [INFO] , then I think the initial sub-corner should be in blue, all the other text remains unchanged. Here is a simplified version of my script: ColorMain : #! / Bin / zsh Export BLUE = `Tupet Set 4` Export Reset =` Tupput sgr0` function MVN-color () {(Mvn $ @ | awk "BEGIN {RS = \" \ "}; {sub (/ \ [INFO \ '$ {BLUE} [INFO] $ {RESET} \ "); printf \" \% s \ ", \ $ 0}")} mvn-color originally generated Example outputs (all initial [INFO] are colored in the shell), where & lt; Enter & gt; Issue where the program asks for my input: $ / Color-maven [INFO] Scanning for projects ... [..cut ...] 1192: Remote - & gt; Uk.ac.rdg.resc: edal-ncwms-based-webapp (-) & lt; Enter & gt; Select number or apply filter: 497: org.apache.maven.archetypes Choose: maven-archetype-quickstart versio...

java - In which version of hibernate @JoinColumnsOrFormulas is introduced? -

We are using Hibernate v3.3. I'm not sure why encryption is not able to use @JoinColumnsOrFormulas because the eclipse error is not found. Could you please tell me that this hibernate was introduced? @JoinColumnOrFormula Hibernation-3.5 , you can see different versions of Hibernate You can verify using the API. >